:root {
    --clr-primary: #13a37a;
    --clr-dark: #1b1b1b;
    --clr-light: #f8f9fa;
    --transition: 0.3s ease;
    --max-width: 1400px;
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    scrollbar-color: #13a37a lightblue;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Montserrat", sans-serif;
    color: var(--clr-dark);
    background-color: var(--clr-light);
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.no-scroll {
    overflow: hidden;
    height: 100vh;
}

/* ============== NAVIGATION ================= */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1rem;
    position: fixed;
    background: #f8f9fa;
    top: 0;
    z-index: 999;
    width: 100%;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--clr-dark);
    z-index: 1001;
}

.nav__logo img {
    height: 40px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--clr-dark);
    z-index: 1001;
}

.nav__list {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav__item a {
    text-decoration: none;
    color: var(--clr-dark);
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    transition: color var(--transition);
}

.nav__item a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0%;
    height: 2px;
    background: var(--clr-primary);
    transition: width var(--transition);
}

.nav__item a:hover::after {
    width: 100%;
}

.btn {
    padding: 1rem 2rem;
    background: var(--clr-primary);
    color: var(--clr-light);
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    text-decoration: none;
    transition: background var(--transition);
    cursor: pointer;
}

.btn-nav {
    padding: 0.8rem 1.5rem;
    background: var(--clr-primary);
    color: var(--clr-light);
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    text-decoration: none;
    transition: background var(--transition);
}

.btn:hover,
.btn-nav:hover {
    background: #0d7d5e;
}


/* ============== MOBILE MENU ================= */
@media (max-width: 768px) {
    .nav {
        padding: 1rem;
    }

    .mobile-menu-toggle {
        display: block;
        order: 2; /
    }

    .nav__list {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--clr-light);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        z-index: 1000;
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.4s ease-in-out;
    }

    .nav__list.active {
        transform: translateY(0);
        opacity: 1;
    }

    .nav__item a {
        font-size: 1.2rem;
    }

    .btn-nav {
        display: none;
    }

}

/* ============== HERO SECTION ================= */
.hero {
    display: grid;
    grid-template-columns: repeat(2, minmax(320px, 1fr));
    align-items: center;
    gap: 2rem;
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(19, 163, 122, 0.1);
    z-index: -1;
}

.circle--bottom {
    width: 500px;
    height: 500px;
    left: 97px;
    bottom: 204px;
}

.hero__content {
    z-index: 2;
    margin-left: 15%;
}

.hero__subtitle {
    font-size: 1.5rem;
    color: var(--clr-dark);
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.hero__title {
    font-size: 4rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero__title span {
    color: var(--clr-primary);
    font-weight: 600;
    font-size: 2rem;
    display: block;
}

.hero__cta {
    margin-top: 1.5rem;
}

.hero__image-wrapper {
    position: relative;
    z-index: 1;
}

.hero__image {
    width: 100%;
    max-width: 900px;
    border-radius: 6px;
    display: block;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.language-switcher {
    position: static;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 1000;
}

.language-switcher a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.language-switcher a.active {
    background-color: #13a37a;
    color: white;
}

.language-switcher a:hover:not(.active) {
    background-color: #f0f0f0;
}

.hero {
    padding: 7rem 0;
}

@media (max-width: 768px) {
    .language-switcher {
        position: static;
        margin-left: auto;
        margin-right: 15px;
    }
}

@media (max-width: 1280px) and (min-width: 1024px) {
  .circle--bottom {
      bottom: 35px;
  }
}

@media (max-width: 992px) {
    .services-section {
        background-image: none!important;
    }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 10rem 0;
    }

    .hero__content {
        margin: 0;
        order: 1;
    }

    .hero__image-wrapper {
        order: 2;
        margin-top: 2rem;
    }

    .hero__title {
        font-size: 3rem;
    }
}

@media (max-width: 576px) {
    .hero__title {
        font-size: 2.5rem;
    }

    .hero__subtitle {
        font-size: 1.2rem;
    }

    .hero__title span {
        font-size: 1.5rem;
    }
}

/* ============== SERVICES SECTION ================= */
.services-section {
    position: relative;
    overflow: hidden;
    padding: 100px 0 250px 0;
}

.services-section::before {
    content: "";
    position: absolute;
    right: 0;
    top: 150px;
    width: 700px;
    height: 700px;
    background-image: url(/assets/sabolic-balent/images/tooth.png);
    background-size: contain;
    background-repeat: no-repeat;
    z-index: -1;
}

.services-title {
    text-align: center;
    margin-bottom: 3rem;
}

.services-title h2 {
    font-size: 2.5rem;
    color: var(--clr-dark);
}

.gallery-section h2 {
    font-size: 2.5rem;
    color: var(--clr-dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.service-card {
    border-radius: 10px;
    padding: 15px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background-color: rgba(222, 242, 239, 0.56);
    align-self: flex-start;
    min-height: 200px;
}

.service-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.service-header {
    padding: 1.5rem;
    border: none;
    background-color: transparent;
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    text-align: left;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    pointer-events: none;
}

.service-content {
    height: 160px;
}

.service-content p {
    padding: 1.5rem;
    margin: 0;
    color: #666;
    line-height: 1.6;
}


@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    .services-section::before {
        display: none;
    }
}

/* ============== GALLERY SECTION ================= */
.gallery-section {
    padding: 4rem 0;
}

.gallery-section h1 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s;
    cursor: pointer;
}

.gallery img:hover {
    transform: scale(1.03);
}

.divider-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    margin: 2rem 0;
}

@media (max-width: 768px) {
    .divider-image {
        height: 300px;
    }
}

/* ============== LIGHTBOX ================= */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

.lightbox .prev,
.lightbox .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    color: white;
    font-size: 2em;
    padding: 10px;
    border-radius: 50%;
    user-select: none;
    transform: translateY(-50%);
    z-index: 1001;
}

.lightbox .prev {
    left: 20px;
}

.lightbox .next {
    right: 20px;
}

/* ============== CONTACT SECTION ================= */
.contact-section {
    padding: 4rem 0;
    background-color: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.contact-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(19, 163, 122, 0.1);
    z-index: 0;
}

.contact-circle--left {
    width: 300px;
    height: 300px;
    left: -150px;
    bottom: 50px;
}

.contact-circle--right {
    width: 200px;
    height: 200px;
    right: -100px;
    top: 100px;
}

.contact-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}

.contact-info {
    padding: 2rem;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--clr-dark);
}

.contact-info p {
    color: #555;
}

.working-hours {
    background-color: rgba(222, 242, 239, 0.56);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.working-hours h3 {
    color: var(--clr-primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.working-hours ul {
    list-style: none;
}

.working-hours li {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(19, 163, 122, 0.2);
}

.working-hours li:last-child {
    border-bottom: none;
}

.working-hours .day {
    font-weight: 500;
    text-align: left;
}

.working-hours .time {
    color: var(--clr-primary);
    font-weight: 600;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    width: 24px;
    height: 24px;
    color: var(--clr-primary);
    flex-shrink: 0;
}

.map {
    color: var(--clr-primary);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: color 0.3s ease;
}

.map:hover {
    color: #0d7d5e;
    text-decoration: underline;
}

.map-icon {
    width: 16px;
    height: 16px;
    color: var(--clr-primary);
}

.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--clr-dark);
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: "Montserrat", sans-serif;
    font-size: 1rem;
    transition: border-color var(--transition);
}

select.form-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2328a745' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 45px;
    border-color: #28a745;
}

select.form-control:hover,
select.form-control:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.15);
}

.form-control:focus {
    outline: none;
    border-color: var(--clr-primary);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: var(--clr-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition);
}

.btn-submit:hover {
    background: #0d7d5e;
}

@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
    }

    .contact-info {
        text-align: center;
    }

    .contact-details {
        align-items: center;
    }

    .contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* ============== FOOTER ================= */
.footer {
    padding: 4rem 0 2rem;
    background-color: #8dc3b9;
    text-align: center;
}

.footer-logo {
    margin-bottom: 2rem;
}

.footer-logo img {
    height: 60px;
}

.copyright {
    padding: 1rem 0;
    background-color: #8dc3b9;
    text-align: center;
    color: white;
}

.copyright p {
    margin: 0;
}

/* ============== UTILITY CLASSES ================= */
.text-center {
    text-align: center;
}

/* Form Message Styles */
.form-message {
    margin-top: 1rem;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(-10px);
    animation: slideIn 0.3s ease forwards;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button Loading State */
.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-submit:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Alternative styles if you prefer icons */
.form-message.success::before {
    content: "✓ ";
    font-weight: bold;
}

.form-message.error::before {
    content: "⚠ ";
    font-weight: bold;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .form-message {
        font-size: 13px;
        padding: 10px 12px;
    }
}
