/* ===== CUSTOM PROPERTIES ===== */
:root {
    --c-bg:       #f7f6f2;
    --c-white:    #ffffff;
    --c-text:     #1c1c1c;
    --c-muted:    #5a5a5a;
    --c-border:   #dedbd5;
    --c-accent:   #243447;
    --c-accent-h: #2e4060;
    --c-success:  #2d6a2d;
    --c-error:    #8b1a1a;

    --f-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --f-sans:  'Montserrat', 'Helvetica Neue', Arial, sans-serif;

    --max-w: 900px;
    --gutter: 24px;
    --section-y: 80px;

    --radius: 2px;
    --transition: 0.2s ease;
}

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

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

body {
    font-family: var(--f-sans);
    background: var(--c-bg);
    color: var(--c-text);
    line-height: 1.75;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: var(--c-accent); }
a:hover { text-decoration: underline; }

/* ===== LAYOUT ===== */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* ===== HEADER ===== */
#header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: var(--c-bg);
    border-bottom: 1px solid var(--c-border);
    padding: 16px 0;
    transition: box-shadow var(--transition);
}

#header.scrolled {
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.logo {
    font-family: var(--f-serif);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--c-accent);
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 28px;
}

.nav-links a {
    text-decoration: none;
    color: var(--c-muted);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    transition: color var(--transition);
}

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

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
}

.hamburger span {
    display: block;
    height: 2px;
    background: var(--c-text);
    border-radius: 1px;
    transition: all 0.3s;
    width: 100%;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
    padding: 64px 0 56px;
    border-bottom: 1px solid var(--c-border);
}

.hero-inner {
    display: flex;
    align-items: center;
    gap: 52px;
}

.hero-photo {
    flex-shrink: 0;
}

.hero-photo img {
    width: 210px;
    height: 210px;
    object-fit: cover;
    border-radius: var(--radius);
    filter: grayscale(15%) contrast(1.02);
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-family: var(--f-serif);
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 300;
    color: var(--c-accent);
    line-height: 1.1;
    letter-spacing: 0.02em;
    margin-bottom: 6px;
}

.hero-role {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--c-muted);
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 0.95rem;
    color: var(--c-muted);
    line-height: 1.8;
    max-width: 520px;
}

/* ===== SECTIONS ===== */
.section-bio,
.section-awards,
.section-contact,
.section-privacy {
    padding: var(--section-y) 0;
}

.section-bio { background: var(--c-white); }
.section-awards { background: var(--c-bg); }
.section-contact { background: var(--c-white); border-top: 1px solid var(--c-border); }
.section-privacy { background: var(--c-bg); border-top: 1px solid var(--c-border); }

/* Section headings */
h2 {
    font-family: var(--f-serif);
    font-size: clamp(1.6rem, 3.5vw, 2rem);
    font-weight: 300;
    color: var(--c-accent);
    letter-spacing: 0.02em;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--c-border);
    margin-bottom: 48px;
}

/* ===== BIO BLOCKS ===== */
.bio-block {
    padding-bottom: 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--c-border);
}

.bio-block:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.bio-block h3 {
    font-family: var(--f-serif);
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--c-accent);
    letter-spacing: 0.01em;
    margin-bottom: 14px;
    line-height: 1.3;
}

.bio-block p {
    font-size: 1rem;
    color: var(--c-text);
    line-height: 1.85;
    margin-bottom: 12px;
}

.bio-block p:last-child { margin-bottom: 0; }

.bio-block strong { font-weight: 600; }
.bio-block em { font-style: italic; }

/* Bio list */
.bio-list {
    list-style: none;
    padding: 0;
    margin-bottom: 0;
}

.bio-list li {
    display: flex;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--c-border);
    font-size: 0.95rem;
    line-height: 1.6;
    align-items: baseline;
}

.bio-list li:last-child { border-bottom: none; }

.list-year {
    font-family: var(--f-serif);
    font-size: 1rem;
    font-weight: 300;
    color: var(--c-muted);
    flex-shrink: 0;
    width: 36px;
}

/* ===== AWARDS ===== */
.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
    gap: 20px;
}

.award-card {
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 24px 22px;
}

.award-year {
    font-family: var(--f-serif);
    font-size: 1.9rem;
    font-weight: 300;
    color: var(--c-accent);
    opacity: 0.35;
    line-height: 1;
    margin-bottom: 10px;
}

.award-title {
    font-family: var(--f-sans);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--c-text);
    line-height: 1.5;
    margin-bottom: 8px;
}

.award-note {
    font-size: 0.78rem;
    color: var(--c-muted);
    font-style: italic;
    line-height: 1.5;
}

/* ===== CONTACT FORM ===== */
.contact-intro {
    color: var(--c-muted);
    font-size: 0.95rem;
    margin-bottom: 40px;
}

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

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--c-muted);
    margin-bottom: 8px;
}

.required {
    color: var(--c-error);
    font-style: normal;
}

.form-group input,
.form-group textarea {
    display: block;
    width: 100%;
    padding: 11px 14px;
    font-family: var(--f-sans);
    font-size: 0.95rem;
    color: var(--c-text);
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    transition: border-color var(--transition);
    appearance: none;
    -webkit-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--c-accent);
    background: var(--c-white);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #aaa;
}

.form-group textarea {
    resize: vertical;
    min-height: 130px;
    line-height: 1.6;
}

/* Privacy checkbox */
.form-check {
    margin-bottom: 24px;
}

.check-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.82rem;
    color: var(--c-muted);
    cursor: pointer;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
    line-height: 1.5;
}

.check-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: var(--c-accent);
    appearance: auto;
    -webkit-appearance: auto;
    display: inline-block;
    padding: 0;
    border: none;
    background: none;
}

.check-label a {
    color: var(--c-accent);
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background: var(--c-accent);
    color: #fff;
    border: 1px solid var(--c-accent);
    padding: 12px 28px;
    font-family: var(--f-sans);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: var(--radius);
    transition: background var(--transition), opacity var(--transition);
    text-align: center;
}

.btn-primary:hover { background: var(--c-accent-h); border-color: var(--c-accent-h); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-outline {
    display: inline-block;
    background: transparent;
    color: var(--c-text);
    border: 1px solid var(--c-border);
    padding: 11px 22px;
    font-family: var(--f-sans);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: var(--radius);
    transition: border-color var(--transition), color var(--transition);
    text-align: center;
}

.btn-outline:hover {
    border-color: var(--c-accent);
    color: var(--c-accent);
}

.btn-submit { margin-top: 4px; }

/* Form feedback */
.form-message {
    margin-top: 14px;
    font-size: 0.875rem;
    line-height: 1.5;
    min-height: 1.5em;
}

.form-message.success { color: var(--c-success); }
.form-message.error   { color: var(--c-error); }

/* ===== PRIVACY SECTION ===== */
.section-privacy h2 {
    font-size: 1.3rem;
    margin-bottom: 24px;
}

.privacy-text p {
    font-size: 0.88rem;
    color: var(--c-muted);
    margin-bottom: 12px;
    line-height: 1.75;
}

.privacy-text p:last-child { margin-bottom: 0; }

/* ===== FOOTER ===== */
footer {
    background: var(--c-accent);
    color: rgba(255,255,255,0.65);
    padding: 36px 0;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.footer-name {
    font-family: var(--f-serif);
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    letter-spacing: 0.03em;
}

.footer-links {
    display: flex;
    gap: 14px;
    align-items: center;
    font-size: 0.8rem;
}

.footer-links a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    transition: color var(--transition);
}

.footer-links a:hover { color: #fff; }

.footer-copy {
    font-size: 0.78rem;
    margin-top: 4px;
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--c-white);
    border-top: 2px solid var(--c-border);
    z-index: 500;
    padding: 20px var(--gutter);
    box-shadow: 0 -6px 24px rgba(0,0,0,0.08);
}

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

.cookie-content {
    max-width: var(--max-w);
    margin: 0 auto;
}

.cookie-content p {
    font-size: 0.85rem;
    color: var(--c-muted);
    margin-bottom: 16px;
    line-height: 1.6;
}

.cookie-content p a { color: var(--c-accent); }

.cookie-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 600;
    align-items: center;
    justify-content: center;
    padding: var(--gutter);
}

.modal.open { display: flex; }

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}

.modal-content {
    position: relative;
    background: var(--c-white);
    border-radius: 3px;
    padding: 36px 32px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.modal-content h2 {
    font-size: 1.25rem;
    margin-bottom: 24px;
    border: none;
    padding: 0;
    font-weight: 400;
}

.cookie-option {
    padding: 18px 0;
    border-bottom: 1px solid var(--c-border);
}

.cookie-option:last-of-type { border-bottom: none; padding-bottom: 0; }

.cookie-option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 0.9rem;
    font-weight: 500;
}

.cookie-option p {
    font-size: 0.82rem;
    color: var(--c-muted);
    line-height: 1.5;
}

.badge-required {
    font-size: 0.72rem;
    background: #e4f0e4;
    color: #2d6a2d;
    padding: 3px 9px;
    border-radius: 20px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* Toggle switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 22px;
    flex-shrink: 0;
}

.toggle-switch input { opacity: 0; width: 0; height: 0; position: absolute; }

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--c-border);
    border-radius: 22px;
    transition: background 0.3s;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.toggle-switch input:checked + .toggle-slider { background: var(--c-accent); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

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

/* Stagger children in awards grid */
.awards-grid .award-card:nth-child(2) { transition-delay: 0.08s; }
.awards-grid .award-card:nth-child(3) { transition-delay: 0.14s; }
.awards-grid .award-card:nth-child(4) { transition-delay: 0.20s; }
.awards-grid .award-card:nth-child(5) { transition-delay: 0.26s; }
.awards-grid .award-card:nth-child(6) { transition-delay: 0.32s; }
.awards-grid .award-card:nth-child(7) { transition-delay: 0.38s; }

/* ===== RESPONSIVE ===== */

/* Tablet */
@media (max-width: 768px) {
    :root { --section-y: 52px; }

    html { scroll-padding-top: 60px; }

    /* Mobile nav */
    .hamburger { display: flex; }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--c-bg);
        flex-direction: column;
        gap: 0;
        border-bottom: 1px solid var(--c-border);
        padding: 8px 0;
    }

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

    nav { position: relative; }

    .nav-links a {
        display: block;
        padding: 14px var(--gutter);
        font-size: 0.85rem;
    }

    /* Hero */
    .hero-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 32px;
    }

    .hero-photo img { width: 170px; height: 170px; }

    .hero-desc { max-width: none; }

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

    /* Awards */
    .awards-grid { grid-template-columns: 1fr; }

    /* Cookie */
    .cookie-actions { flex-direction: column; }
    .cookie-actions .btn-primary,
    .cookie-actions .btn-outline { width: 100%; text-align: center; }

    /* Modal */
    .modal-content { padding: 28px 20px; }
    .modal-actions { flex-direction: column-reverse; }
    .modal-actions .btn-primary,
    .modal-actions .btn-outline { width: 100%; text-align: center; }
}

/* Small phones */
@media (max-width: 380px) {
    .logo { font-size: 1.1rem; }
}
