/* ─────────────────────────────────────────
   Design Tokens — Cream / Sage Green / Warm Brown
───────────────────────────────────────── */
:root {
    /* Light */
    --cream:        #F5F0E8;
    --soft-white:   #EDE6D8;
    --sage-pale:    #C8D8C3;

    /* Mid — sage green */
    --sage:         #8AAE8C;
    --sage-dark:    #5E8264;

    /* Dark — deep forest green */
    --dark:         #243C2A;

    /* Text */
    --text:         #1A2E20;
    --text-muted:   #547060;

    /* Surfaces */
    --card:         #FFFFFF;
    --border:       rgba(138, 174, 140, 0.28);
    --shadow:       0 4px 24px rgba(15, 28, 18, 0.09);
    --shadow-hover: 0 10px 36px rgba(15, 28, 18, 0.16);

    --radius-lg:   20px;
    --radius-md:   12px;
    --radius-pill: 100px;

    --nav-height: 72px;
    --max-width:  1100px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', Helvetica, Arial, sans-serif;
    background: var(--cream);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

/* ─────────────────────────────────────────
   Typography
───────────────────────────────────────── */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-weight: 600;
    line-height: 1.2;
    color: var(--dark);
}

p {
    line-height: 1.75;
    color: var(--text-muted);
}

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

/* ─────────────────────────────────────────
   Navigation
───────────────────────────────────────── */
nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--nav-height);
    background: rgba(245, 240, 232, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 40px;
    gap: 8px;
}

.nav-brand {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: -0.01em;
    margin-right: auto;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.tab {
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
}

.tab a {
    display: block;
    color: inherit;
    text-transform: capitalize;
}

.tab:hover {
    color: var(--dark);
    background: var(--soft-white);
}

.tab.selected {
    background: var(--dark);
    color: #fff;
}

.tab.selected a { color: #fff; }

.menu-toggle {
    display: none;
    background: var(--dark);
    color: #fff;
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    user-select: none;
    margin-left: auto;
}

/* ─────────────────────────────────────────
   Hero / Sunset
───────────────────────────────────────── */
.hero {
    position: relative;
    height: calc(100vh - var(--nav-height));
    min-height: 520px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#sunset-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* push content toward upper-half so name sits above the water */
    margin-top: -10%;
}

/* White text — green sky needs light contrast */
.hero-content h1 {
    font-size: 5rem;
    color: #fff;
    font-family: 'Playfair Display', Georgia, serif;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.hero-tagline {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.82);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 400;
    margin-bottom: 44px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.hero-btn {
    display: inline-block;
    background: rgba(255, 255, 255, 0.92);
    color: var(--dark);
    padding: 14px 42px;
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: all 0.25s ease;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.28);
}

.hero-btn:hover {
    background: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.30);
}

.scroll-hint {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255, 255, 255, 0.50);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: scrollBounce 2.4s ease-in-out infinite;
}

.scroll-hint::after {
    content: '';
    width: 1px;
    height: 36px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.45), transparent);
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(7px); }
}

/* ─────────────────────────────────────────
   Shared Page Body
───────────────────────────────────────── */
.page-body {
    flex: 1;
    background: var(--cream);
}

/* ─────────────────────────────────────────
   Sub-Page Title Bar — sage green wash
───────────────────────────────────────── */
.page-title {
    text-align: center;
    padding: 72px 24px 52px;
    background: linear-gradient(to bottom, rgba(138, 174, 140, 0.18) 0%, var(--cream) 100%);
}

.page-title h1 {
    font-size: 3.2rem;
    color: var(--dark);
    margin-bottom: 10px;
}

.page-title .subtitle {
    font-size: 0.8rem;
    color: var(--sage-dark);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 500;
}

/* ─────────────────────────────────────────
   Buttons
───────────────────────────────────────── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--dark);
    color: #fff;
    padding: 12px 28px;
    border-radius: var(--radius-pill);
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: var(--sage-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(94, 130, 100, 0.36);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1.5px solid var(--dark);
    color: var(--dark);
    padding: 11px 24px;
    border-radius: var(--radius-pill);
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-outline:hover {
    background: var(--dark);
    color: #fff;
}

/* ─────────────────────────────────────────
   Home — About Card
───────────────────────────────────────── */
.home-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 72px 32px;
}

.section-eyebrow {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--sage-dark);
    margin-bottom: 10px;
    display: block;
}

.section-heading {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    color: var(--dark);
    margin-bottom: 40px;
}

.home-about-card {
    display: grid;
    grid-template-columns: 260px 1fr;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--card);
    box-shadow: var(--shadow);
    margin-bottom: 72px;
    border-top: 4px solid var(--sage);
}

.home-about-card .about-img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    /* crop from the top — show the bottom where she's sitting */
    object-position: bottom center;
    display: block;
    max-width: none;
}

.home-about-text {
    padding: 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home-about-text h2 {
    font-size: 1.6rem;
    margin-bottom: 16px;
}

.home-about-text p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 28px;
    color: var(--text-muted);
}

/* ─────────────────────────────────────────
   Home — Selected Work
───────────────────────────────────────── */
.work-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 36px;
}

.work-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--card);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 3px solid var(--sage);
}

.work-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.work-card-img-wrap {
    overflow: hidden;
    height: 260px;
}

.work-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: none;
    display: block;
    cursor: zoom-in;
    transition: transform 0.5s ease;
}

.work-card:hover .work-card-img {
    transform: scale(1.06);
}

.work-card-body {
    padding: 22px 26px 24px;
}

.work-card-body h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
    color: var(--dark);
}

.work-card-body p {
    font-size: 0.875rem;
    line-height: 1.6;
}

.work-more {
    text-align: center;
    padding-bottom: 20px;
}

/* ─────────────────────────────────────────
   Divider
───────────────────────────────────────── */
.divider {
    height: 1px;
    background: var(--border);
    max-width: var(--max-width);
    margin: 0 auto;
}

/* ─────────────────────────────────────────
   Portfolio Page
───────────────────────────────────────── */
.portfolio-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 32px 96px;
}

.gallery-section-header {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin: 56px 0 28px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--sage);
}

.gallery-section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.8rem;
    color: var(--dark);
}

.project-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.project-tab {
    background: transparent;
    color: var(--text-muted);
    border: 1.5px solid var(--sage-pale);
    padding: 8px 22px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    font-family: 'Inter', Helvetica, Arial, sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.project-tab:hover {
    border-color: var(--sage-dark);
    color: var(--sage-dark);
}

.project-tab.active {
    background: var(--dark);
    border-color: var(--dark);
    color: #fff;
}

.project-panel {
    display: none;
    margin-bottom: 36px;
}

.project-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.4rem;
    color: var(--dark);
    margin-bottom: 6px;
}

.project-desc {
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.project-panel.active {
    display: block;
    animation: fadeUp 0.35s ease;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 40px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    aspect-ratio: 1;
    cursor: zoom-in;
    background: var(--sage-pale);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: none;
    display: block;
    transition: transform 0.45s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(20, 40, 24, 0.75));
    color: #fff;
    padding: 28px 14px 12px;
    opacity: 0;
    transition: opacity 0.25s ease;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.gallery-item:hover .gallery-label {
    opacity: 1;
}

/* ─────────────────────────────────────────
   Lightbox
───────────────────────────────────────── */
#lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(8, 4, 2, 0.93);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

#lightbox.open {
    display: flex;
    animation: fadeUp 0.2s ease;
}

#lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    max-width: none;
    border-radius: var(--radius-md);
    object-fit: contain;
    box-shadow: 0 0 80px rgba(0, 0, 0, 0.7);
}

#lightbox-close {
    position: absolute;
    top: 24px;
    right: 32px;
    font-size: 1.75rem;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    user-select: none;
    transition: color 0.2s;
    line-height: 1;
}

#lightbox-close:hover { color: #fff; }

/* ─────────────────────────────────────────
   About Page
───────────────────────────────────────── */
.about-layout {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 32px 96px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 48px;
    align-items: start;
}

.about-sidebar {
    position: sticky;
    top: calc(var(--nav-height) + 28px);
}

.about-photo {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    object-position: top center;
    border-radius: var(--radius-lg);
    display: block;
    max-width: none;
    box-shadow: var(--shadow);
}

.about-sidebar-info {
    margin-top: 20px;
    padding: 0 4px;
}

.about-sidebar-info h2 {
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.about-sidebar-info .role {
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

.about-sidebar-info .location {
    margin-top: 10px;
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.about-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-top: 8px;
}

.about-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 32px 36px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--sage);
}

.about-card h2 {
    font-size: 1.35rem;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
    color: var(--dark);
}

.about-card p {
    color: var(--text-muted);
    line-height: 1.85;
    margin-bottom: 14px;
}

.about-card p:last-child { margin-bottom: 0; }

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.skill-tag {
    background: rgba(138, 174, 140, 0.13);
    color: var(--sage-dark);
    border: 1px solid var(--sage);
    padding: 6px 18px;
    border-radius: var(--radius-pill);
    font-size: 0.82rem;
    font-weight: 500;
}

/* ─────────────────────────────────────────
   Contact Page
───────────────────────────────────────── */
.contact-layout {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 32px 96px;
}

.contact-intro {
    text-align: center;
    margin-bottom: 56px;
}

.contact-intro p {
    max-width: 480px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.8;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.contact-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 36px 24px 32px;
    box-shadow: var(--shadow);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 3px solid var(--sage);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.contact-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(138, 174, 140, 0.14);
    border: 1.5px solid var(--sage);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sage-dark);
    margin-bottom: 4px;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 22px;
    height: 22px;
    display: block;
}

.contact-card h3 {
    font-size: 1.05rem;
    color: var(--dark);
    margin: 0;
}

.contact-card p {
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--text-muted);
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--sage-dark);
    font-size: 0.85rem;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
    margin-top: 4px;
}

.contact-link:hover {
    border-color: var(--sage-dark);
}

/* ─────────────────────────────────────────
   Footer
───────────────────────────────────────── */
footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.38);
    text-align: center;
    padding: 28px 24px;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    border-top: 3px solid var(--sage);
}

/* ─────────────────────────────────────────
   Scroll Reveal
───────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}

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

/* ─────────────────────────────────────────
   Responsive — Tablet
───────────────────────────────────────── */
@media (max-width: 900px) {
    .home-about-card {
        grid-template-columns: 1fr;
    }

    .home-about-card .about-img {
        height: 280px;
        width: 100%;
    }

    .home-about-text { padding: 32px; }

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

    .about-sidebar {
        position: static;
        display: flex;
        gap: 24px;
        align-items: flex-start;
    }

    .about-photo {
        width: 180px;
        aspect-ratio: auto;
        height: 220px;
        flex-shrink: 0;
    }

    .about-sidebar-info { margin-top: 0; padding-top: 8px; }

    .contact-grid {
        grid-template-columns: 1fr;
        max-width: 360px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    nav { padding: 0 24px; }
    .hero-content h1    { font-size: 3.4rem; }
    .page-title h1      { font-size: 2.5rem; }
    .home-section       { padding: 52px 20px; }
    .work-grid          { grid-template-columns: 1fr; }
    .gallery            { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
    .portfolio-container{ padding: 0 20px 72px; }
    .about-layout       { padding: 0 20px 72px; }
    .contact-layout     { padding: 0 20px 72px; }
}

@media (max-width: 520px) {
    nav {
        height: auto;
        flex-wrap: wrap;
        padding: 16px 20px;
        gap: 0;
    }

    .nav-brand { flex: 1; }
    .menu-toggle { display: block; }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 4px;
        padding-top: 14px;
    }

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

    .tab {
        width: 100%;
        text-align: center;
        padding: 12px;
        border-radius: var(--radius-md);
    }

    .hero { height: 90svh; min-height: 420px; }
    .hero-content h1    { font-size: 2.6rem; }
    .hero-tagline       { font-size: 0.78rem; letter-spacing: 0.1em; }

    .about-sidebar {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .about-photo { width: 160px; height: 200px; }
}
