/* ===== CSS Variables ===== */
:root {
    --stone: #f5f0eb;
    --stone-light: #faf8f5;
    --stone-dark: #e8e0d8;
    --navy: #1a2744;
    --navy-light: #2a3d5e;
    --navy-dark: #111b30;
    --gold: #a0872e;
    --gold-accent: #b89a45;
    --gold-light: #d4b96e;
    --gold-muted: rgba(184, 154, 69, 0.15);
    --black: #111111;
    --white: #ffffff;
    --text: #3a3a3a;
    --text-light: #6b6b6b;
    --border: #ddd5ca;

    --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --max-width: 1100px;
    --section-padding: 5.5rem 0;
    --radius: 6px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
    --transition: 0.25s ease;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 150px;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background-color: var(--stone);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
    list-style: none;
}

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

.text-link {
    color: var(--gold);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.text-link:hover {
    color: var(--gold-light);
}

/* ===== Skip Link (accessibility) ===== */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--navy);
    color: var(--white);
    padding: 0.5rem 1rem;
    z-index: 9999;
    font-size: 0.85rem;
}

.skip-link:focus {
    top: 0;
}

/* ===== Focus styles (accessibility) ===== */
*:focus-visible {
    outline: 2px solid var(--navy);
    outline-offset: 2px;
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===== Typography ===== */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--navy);
    line-height: 1.25;
}

h2 {
    font-size: 2.1rem;
}

h3 {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.small-text {
    font-size: 0.7em;
    vertical-align: baseline;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.8rem;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.88rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all var(--transition);
    border: 1.5px solid transparent;
}

.btn-primary {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

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

.btn-outline {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
}

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

.btn-full {
    width: 100%;
    text-align: center;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    border-top: 3px solid var(--gold-accent);
    border-bottom: 1px solid var(--border);
    transition: box-shadow var(--transition), height var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 140px;
    transition: height 0.3s ease;
}

.navbar.shrink .nav-container {
    height: 100px;
}

.navbar.shrink .nav-logo {
    height: 94px;
}

.navbar.shrink .nav-logo-img {
    height: 140px;
}

.nav-logo {
    display: flex;
    align-items: center;
    height: 134px;
    overflow: hidden;
    transition: height 0.3s ease;
}

.nav-logo-img {
    height: 180px;
    width: auto;
    margin: 0 -10px;
    transition: height 0.3s ease;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.8rem;
}

.nav-links a {
    font-size: 0.88rem;
    font-weight: 400;
    color: var(--text);
    transition: color var(--transition);
    position: relative;
    padding-bottom: 2px;
}

.nav-links a:hover {
    color: var(--navy);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--navy);
    font-weight: 500;
}

.nav-links a.active::after {
    width: 100%;
}

.nav-cta {
    background: var(--navy) !important;
    color: var(--white) !important;
    padding: 0.45rem 1.15rem !important;
    border-radius: var(--radius);
    font-weight: 500 !important;
    transition: background var(--transition) !important;
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    background: var(--gold) !important;
    border-color: var(--gold) !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--navy);
    border-radius: 1px;
    transition: all 0.3s ease;
}

/* ===== Hero ===== */
.hero {
    padding: 12rem 0 5rem;
    background: var(--stone);
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, var(--gold-muted) 0%, transparent 70%);
    pointer-events: none;
}

.hero-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3.5rem;
    align-items: center;
    position: relative;
}

.hero-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.15rem;
}

.hero-label-line {
    width: 32px;
    height: 2px;
    background: var(--gold-accent);
}

.hero-label-text {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-name {
    font-size: 3.2rem;
    color: var(--navy);
    margin-bottom: 0.4rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.hero-credentials {
    font-size: 0.92rem;
    color: var(--text-light);
    letter-spacing: 0.04em;
    margin-bottom: 1.25rem;
    font-weight: 300;
}

.hero-description {
    font-size: 1rem;
    color: var(--text);
    line-height: 1.75;
    margin-bottom: 2rem;
    max-width: 440px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* --- Hero Image --- */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-frame {
    padding: 5px;
    border: 1.5px solid var(--gold-accent);
    border-radius: var(--radius);
    display: inline-block;
    line-height: 0;
}

.hero-photo {
    width: 300px;
    height: 370px;
    object-fit: cover;
    object-position: center top;
    border-radius: 4px;
    box-shadow: var(--shadow-lg);
}

/* ===== Sections ===== */
.section {
    padding: var(--section-padding);
}

.section-header {
    margin-bottom: 2.25rem;
}

.section-label {
    display: inline-block;
    font-size: 0.73rem;
    font-weight: 500;
    color: var(--gold);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.section-rule {
    width: 40px;
    height: 2px;
    background: var(--gold-accent);
    margin-top: 0.65rem;
}

.section-rule--light {
    background: var(--gold-accent);
}

.section-intro {
    font-size: 1rem;
    color: var(--text);
    line-height: 1.75;
    max-width: 660px;
    margin-bottom: 2.25rem;
}

/* ===== About ===== */
.about {
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-text p {
    margin-bottom: 1rem;
    line-height: 1.75;
}

.about-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.highlight-card {
    background: var(--stone-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.highlight-card:hover {
    border-color: var(--gold-accent);
    border-top: 2px solid var(--gold-accent);
    box-shadow: var(--shadow-sm);
}

.highlight-number {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--navy);
}

.highlight-label {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 400;
    line-height: 1.35;
}

/* ===== Research ===== */
.research {
    background: var(--stone);
}

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

.research-category h3 {
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--gold);
    margin-bottom: 1.5rem;
}

.research-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.research-degree {
    background: var(--navy);
    color: var(--white);
    padding: 0.25rem 0.65rem;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    white-space: nowrap;
    margin-top: 2px;
}

.research-title {
    font-weight: 500;
    color: var(--black);
    margin-bottom: 0.15rem;
    line-height: 1.5;
    font-size: 0.93rem;
}

.research-institution {
    font-size: 0.82rem;
    color: var(--text-light);
}

.publication-item {
    margin-bottom: 1.2rem;
    padding-left: 1rem;
    border-left: 2px solid var(--gold);
}

.publication-text {
    font-size: 0.9rem;
    line-height: 1.65;
}

.publication-text em {
    color: var(--navy);
}

/* ===== Specialities ===== */
.specialities {
    background: var(--white);
}

.specialities-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
}

.speciality-block {
    background: var(--stone-light);
    border: 1px solid var(--border);
    border-top: 3px solid var(--gold-accent);
    border-radius: var(--radius);
    padding: 1.75rem;
}

.speciality-block h3 {
    color: var(--navy);
}

.speciality-lead {
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 1rem;
    font-size: 0.93rem;
}

.condition-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.condition-list li {
    font-size: 0.88rem;
    color: var(--text);
    padding-left: 1rem;
    position: relative;
}

.condition-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 5px;
    height: 5px;
    background: var(--gold);
    border-radius: 50%;
}

.scope-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.7rem;
    font-size: 0.88rem;
}

.scope-icon {
    width: 6px;
    height: 6px;
    min-width: 6px;
    background: var(--gold);
    border-radius: 50%;
    margin-top: 0.5em;
}

/* ===== Medico-Legal ===== */
.medico-legal {
    background: var(--navy);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.medico-legal::before {
    content: '';
    position: absolute;
    top: -40%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(184, 154, 69, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.medico-legal .section-label {
    color: var(--gold);
}

.medico-legal h2 {
    color: var(--white);
}

.medico-legal .section-intro {
    color: rgba(255, 255, 255, 0.75);
}

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

.term-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    padding: 1.75rem 1.25rem;
    text-align: center;
    transition: background var(--transition), border-color var(--transition);
}

.term-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(184, 154, 69, 0.3);
}

.term-icon-wrap {
    width: 46px;
    height: 46px;
    margin: 0 auto 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(184, 154, 69, 0.12);
    border-radius: 50%;
}

.term-svg {
    width: 20px;
    height: 20px;
    color: var(--gold);
}

.term-card h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.term-card p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
}

/* ===== Charity ===== */
.charity {
    background: var(--stone);
}

.charity .section-intro {
    color: var(--text);
    max-width: 100%;
}

.charity-content {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.charity-highlight {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-left: 3px solid var(--gold-accent);
    border-radius: var(--radius);
    padding: 1rem 1.5rem;
    margin-top: 0.5rem;
    font-size: 0.93rem;
    font-weight: 500;
    color: var(--navy);
}

.charity-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.charity-photo {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.charity-photo img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.charity-photo:hover img {
    transform: scale(1.04);
}

/* ===== Contact ===== */
.contact {
    background: var(--white);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3.5rem;
    align-items: start;
}

.contact-info p {
    line-height: 1.75;
    margin-bottom: 1.75rem;
    color: var(--text);
}

.contact-detail {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-bottom: 1.25rem;
}

.contact-detail span:last-child {
    font-size: 0.93rem;
}

.contact-label {
    font-size: 0.73rem;
    font-weight: 500;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.contact-form {
    background: var(--stone-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

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

.form-group label {
    display: block;
    font-size: 0.83rem;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 0.3rem;
}

.required {
    color: var(--gold);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.88rem;
    background: var(--white);
    color: var(--text);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #bbb;
    font-weight: 300;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(26, 39, 68, 0.08);
}

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

.form-consent {
    margin-bottom: 1.25rem;
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.5;
    cursor: pointer;
}

.consent-label input[type="checkbox"] {
    margin-top: 2px;
    accent-color: var(--navy);
    flex-shrink: 0;
}

.form-note {
    font-size: 0.75rem;
    color: var(--text-light);
    text-align: center;
    margin-top: 0.75rem;
}

/* Form success state */
.form-success {
    text-align: center;
    padding: 3rem 1.5rem;
}

.form-success svg {
    width: 48px;
    height: 48px;
    color: var(--gold);
    margin-bottom: 1rem;
}

.form-success h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--navy);
    margin: 0 0 0.5rem;
}

.form-success p {
    color: var(--text-light);
    margin: 0;
}

/* Form inline validation */
.form-error {
    display: block;
    font-size: 0.78rem;
    color: #b44;
    margin-top: 0.3rem;
}

input.error,
textarea.error,
select.error {
    border-color: #b44;
}

.form-error-banner {
    background: #fef2f2;
    color: #b44;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    text-align: center;
}

/* ===== Gold Divider above Footer ===== */
.footer-divider {
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold-accent), transparent);
}

/* ===== Footer ===== */
.footer {
    background: var(--black);
    color: rgba(255, 255, 255, 0.5);
    padding: 2.5rem 0 2rem;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1.5rem;
}

.footer-brand {
    display: flex;
    align-items: center;
}

.footer-logo {
    height: 72px !important;
    width: auto;
    background: var(--white);
    padding: 8px 14px;
    border-radius: var(--radius);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.footer-copy {
    font-size: 0.75rem;
    white-space: nowrap;
}


/* ===== Cookie Banner ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--navy-dark);
    color: rgba(255, 255, 255, 0.85);
    z-index: 9998;
    padding: 1rem 0;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.15);
    display: none;
}

.cookie-banner.visible {
    display: block;
}

.cookie-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cookie-content p {
    font-size: 0.82rem;
    line-height: 1.5;
    flex: 1;
}

.cookie-accept {
    white-space: nowrap;
    padding: 0.5rem 1.25rem;
    font-size: 0.82rem;
    background: var(--gold);
    border-color: var(--gold);
}

.cookie-accept:hover {
    background: var(--navy);
    border-color: var(--navy);
}

/* ===== Scroll Reveal ===== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    :root {
        --section-padding: 3.5rem 0;
    }

    .nav-container {
        height: 100px;
    }

    .navbar.shrink .nav-container {
        height: 80px;
    }

    .nav-logo {
        height: 96px;
    }

    .navbar.shrink .nav-logo {
        height: 76px;
    }

    .nav-logo-img {
        height: 145px;
    }

    .navbar.shrink .nav-logo-img {
        height: 115px;
    }

    .hero {
        padding: 8.5rem 0 3rem;
        min-height: auto;
    }

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

    .hero-label {
        justify-content: center;
    }

    .hero-name {
        font-size: 2.4rem;
    }

    .hero-description {
        max-width: 100%;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-image {
        order: -1;
    }

    .hero-photo {
        width: 200px;
        height: 250px;
    }

    h2 {
        font-size: 1.8rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-highlights {
        grid-template-columns: 1fr 1fr;
    }

    .research-grid,
    .specialities-grid,
    .contact-layout,
    .charity-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .condition-list {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-top,
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        align-items: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-legal {
        text-align: center;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

@media (max-width: 600px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1.25rem 2rem 1.5rem;
        border-bottom: 1px solid var(--border);
        gap: 0.75rem;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero-name {
        font-size: 2rem;
    }

    .about-highlights {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 1.5rem;
    }
}
