/* ===== CSS Variables ===== */
:root {
    /* Colors */
    --primary: #0A6B72;
    --primary-light: #0D8A93;
    --primary-dark: #085459;
    --secondary: #E8F4F5;
    --accent: #D4A574;
    --accent-light: #E5C4A8;

    /* Neutrals */
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;

    /* Sizes */
    --header-height: 80px;
    --container-width: 1200px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    /* Transitions */
    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;

    /* Border Radius */
    --radius-sm: 4px;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-700);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

input, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* ===== Utility Classes ===== */
.container {
    width: min(var(--container-width), 100% - 3rem);
    margin-inline: auto;
}

.section {
    padding: 6rem 0;
}

.section__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section__subtitle {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.section__title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section__description {
    font-size: 1.125rem;
    color: var(--gray-500);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--radius);
    transition: var(--transition);
    cursor: pointer;
}

.btn--primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn--primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn--outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn--outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn--full {
    width: 100%;
}

/* ===== Header & Navigation ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: var(--white);
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav__logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
}

.nav__list {
    display: flex;
    gap: 2rem;
}

.nav__link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--gray-600);
    position: relative;
    padding: 0.25rem 0;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav__link:hover,
.nav__link.active {
    color: var(--primary);
}

.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-switch {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-600);
    background: var(--gray-100);
    border-radius: var(--radius);
    transition: var(--transition);
}

.lang-switch:hover {
    background: var(--primary);
    color: var(--white);
}

.nav__toggle,
.nav__close {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-700);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 8rem;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--white) 100%);
    overflow: hidden;
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero__subtitle {
    display: inline-block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.hero__title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 600;
    line-height: 1.15;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
}

.hero__title .highlight {
    color: var(--primary);
}

.hero__description {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    max-width: 540px;
}

.hero__buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero__image {
    position: relative;
}

.hero__image-wrapper {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    max-width: 400px;
    aspect-ratio: 3 / 4;
}

.hero__image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    min-height: 400px;
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-50) 100%);
    color: var(--gray-400);
}

.image-placeholder.large {
    min-height: 500px;
}

.image-placeholder span {
    font-size: 0.875rem;
    font-weight: 500;
}

.hero__stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    padding: 1.5rem 2rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.stat {
    text-align: center;
}

.stat__number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.stat__label {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.hero__wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.hero__wave svg {
    width: 100%;
    height: 80px;
}

/* ===== About Section ===== */
.about__content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.about__image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

.about__heading {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
}

.about__text {
    color: var(--gray-600);
    margin-bottom: 1rem;
}

.about__features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feature__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--secondary);
    color: var(--primary);
    border-radius: var(--radius);
}

.feature span {
    font-weight: 500;
    color: var(--gray-700);
}

/* ===== Services Section ===== */
.services {
    background: var(--gray-50);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.service-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: var(--secondary);
    color: var(--primary);
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
}

.service-card__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.service-card__description {
    font-size: 0.9375rem;
    color: var(--gray-500);
    line-height: 1.7;
}

/* Featured Service Card (TMS) */
.service-card--featured {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    position: relative;
    text-decoration: none;
    display: block;
}

.service-card--featured:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.service-card--featured .service-card__icon {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.service-card--featured .service-card__title {
    color: var(--white);
}

.service-card--featured .service-card__description {
    color: rgba(255, 255, 255, 0.9);
}

.service-card__badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.service-card__link {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 500;
    color: var(--white);
    opacity: 0.9;
    transition: var(--transition-fast);
}

.service-card--featured:hover .service-card__link {
    opacity: 1;
}

/* ===== Credentials Section ===== */
.credentials__content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: start;
}

.credentials__list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.credential-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary);
    transition: var(--transition);
}

.credential-card:hover {
    background: var(--secondary);
    transform: translateX(4px);
}

.credential-card__icon {
    color: var(--primary);
}

.credential-card__content h4 {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.credential-card__content p {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.credentials__memberships {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.credentials__memberships h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.credentials__memberships h3:not(:first-child) {
    margin-top: 2rem;
}

.credentials__memberships ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.credentials__memberships li {
    font-size: 0.9375rem;
    color: var(--gray-600);
    padding-left: 1.5rem;
    position: relative;
}

.credentials__memberships li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

.languages {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.language-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--secondary);
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-full);
}

/* ===== Prescription Section ===== */
.prescription {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.prescription .section__subtitle,
.prescription .section__title {
    color: var(--white);
}

.prescription .section__description {
    color: rgba(255, 255, 255, 0.8);
}

.prescription__content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

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

.info-card {
    display: flex;
    gap: 1rem;
    align-items: start;
}

.info-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius);
    flex-shrink: 0;
}

.info-card h4 {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.info-card p {
    font-size: 0.9375rem;
    opacity: 0.85;
}

.prescription__form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

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

.form-group label {
    display: block;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    transition: var(--transition);
    color: var(--gray-700);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(10, 107, 114, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-400);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-note {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin-top: 1rem;
    text-align: center;
}

/* ===== Contact Section ===== */
.contact__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

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

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

.contact-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--secondary);
    color: var(--primary);
    border-radius: var(--radius);
    flex-shrink: 0;
}

.contact-card h4 {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.contact-card p {
    font-size: 0.9375rem;
    color: var(--gray-600);
}

.contact-card a {
    color: var(--primary);
}

.contact-card a:hover {
    text-decoration: underline;
}

.contact-card .small {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}

.contact-card.hours {
    background: var(--gray-50);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
}

.hours-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5rem 1rem;
    font-size: 0.9375rem;
}

.hours-grid span:nth-child(odd) {
    font-weight: 500;
    color: var(--gray-700);
}

.hours-grid span:nth-child(even) {
    color: var(--gray-600);
}

.contact__map {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.contact__map iframe {
    display: block;
}

/* ===== Footer ===== */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 4rem 0 0;
}

.footer__content {
    display: grid;
    grid-template-columns: 1.5fr 2fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--gray-700);
}

.footer__brand h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.footer__brand p {
    font-size: 0.9375rem;
}

.footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    align-items: start;
}

.footer__links a {
    font-size: 0.9375rem;
    transition: var(--transition-fast);
}

.footer__links a:hover {
    color: var(--white);
}

.footer__contact {
    text-align: right;
}

.footer__contact p {
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
}

.footer__bottom {
    padding: 1.5rem 0;
    text-align: center;
}

.footer__bottom p {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* ===== Responsive Design ===== */
@media screen and (max-width: 1024px) {
    .hero__container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero__description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero__buttons {
        justify-content: center;
    }

    .hero__stats {
        justify-content: center;
    }

    .about__content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .credentials__content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .prescription__content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact__content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer__content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer__contact {
        text-align: center;
    }
}

@media screen and (max-width: 768px) {
    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: var(--white);
        box-shadow: var(--shadow-xl);
        padding: 6rem 2rem 2rem;
        transition: var(--transition);
        z-index: 1001;
    }

    .nav__menu.show-menu {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        gap: 1.5rem;
    }

    .nav__link {
        font-size: 1.125rem;
    }

    .nav__close {
        display: block;
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
    }

    .nav__toggle {
        display: block;
    }

    .services__grid {
        grid-template-columns: 1fr;
    }

    .hero__stats {
        flex-direction: column;
        gap: 1rem;
    }

    .stat {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .stat__number {
        font-size: 1.5rem;
    }

    .section {
        padding: 4rem 0;
    }

    .hero {
        padding-top: calc(var(--header-height) + 5rem);
        padding-bottom: 6rem;
    }

    .footer__links {
        justify-content: center;
    }
}

@media screen and (max-width: 480px) {
    .hero__buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero__buttons .btn {
        width: 100%;
    }

    .prescription__form {
        padding: 1.5rem;
    }

    .hours-grid {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .hours-grid span:nth-child(odd) {
        margin-top: 0.5rem;
    }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Form States ===== */
.prescription__form.loading button {
    pointer-events: none;
    opacity: 0.7;
}

.prescription__form .success-message,
.prescription__form .error-message {
    padding: 1rem;
    border-radius: var(--radius);
    margin-top: 1rem;
    text-align: center;
    display: none;
}

.prescription__form .success-message {
    background: #DEF7EC;
    color: #03543F;
}

.prescription__form .error-message {
    background: #FDE8E8;
    color: #9B1C1C;
}

.prescription__form .success-message.show,
.prescription__form .error-message.show {
    display: block;
}
