/* ==========================================================================
   Shared design system for landing.php + gallery-*.php pages.
   Mirrors the look defined inline in landing.php so the standalone landing
   micro-site stays visually consistent without duplicating style blocks.
   ========================================================================== */

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
    --brown-900: #3d2f24;
    --brown-700: #6B5D52;
    --brown-500: #8B7355;
    --brown-400: #A0826D;
    --cream-200: #F5F1E8;
    --cream-300: #EDE4D3;
    --cream-400: #D4C4B0;
    --white: #ffffff;
    --shadow: 0 20px 60px rgba(61, 47, 36, 0.15);
}
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--brown-900);
    background: var(--cream-200);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; line-height: 1.15; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: min(1200px, 92%); margin: 0 auto; }

/* ---------- Sticky nav ---------- */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 1.25rem 0;
    transition: all .3s ease;
    background: transparent;
}
.nav.scrolled {
    background: rgba(245, 241, 232, 0.95);
    backdrop-filter: blur(10px);
    padding: .75rem 0;
    box-shadow: 0 2px 20px rgba(61, 47, 36, 0.08);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.brand { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 700; color: var(--white); letter-spacing: .5px; transition: color .3s; }
.nav.scrolled .brand { color: var(--brown-900); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
    font-size: .875rem; font-weight: 500; color: var(--white);
    letter-spacing: 1px; text-transform: uppercase;
    position: relative; transition: color .3s;
}
.nav.scrolled .nav-links a { color: var(--brown-700); }
.nav-links a::after {
    content: ''; position: absolute; bottom: -6px; left: 0; width: 0; height: 1px;
    background: currentColor; transition: width .3s;
}
.nav-links a:hover::after { width: 100%; }
.nav-toggle { display: none; background: none; border: none; color: var(--white); font-size: 1.5rem; cursor: pointer; }
.nav.scrolled .nav-toggle { color: var(--brown-900); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block; padding: 1rem 2.5rem;
    font-size: .875rem; letter-spacing: 2px; text-transform: uppercase; font-weight: 500;
    border: 1px solid currentColor; cursor: pointer;
    transition: all .3s ease;
}
.btn-primary { background: var(--white); color: var(--brown-900); border-color: var(--white); }
.btn-primary:hover { background: transparent; color: var(--white); }
.btn-ghost { background: transparent; color: var(--white); margin-left: 1rem; }
.btn-ghost:hover { background: var(--white); color: var(--brown-900); }
.btn-dark { background: var(--brown-900); color: var(--white); border-color: var(--brown-900); }
.btn-dark:hover { background: transparent; color: var(--brown-900); }

/* ---------- Typography helpers ---------- */
.eyebrow {
    display: inline-block; font-size: .8rem; letter-spacing: 4px; text-transform: uppercase;
    color: var(--brown-500);
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Footer ---------- */
footer {
    background: var(--brown-900); color: var(--cream-300);
    padding: 3rem 0 1.5rem; text-align: center;
}
footer h3 { font-size: 1.75rem; color: var(--white); margin-bottom: .5rem; }
footer p { font-size: .9rem; font-weight: 300; opacity: .85; }
footer .fine { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .8rem; opacity: .6; }

/* ==========================================================================
   Gallery page specifics
   ========================================================================== */

/* ---------- Page hero (smaller than landing hero) ---------- */
.page-hero {
    min-height: 60vh; display: flex; align-items: center; justify-content: center;
    text-align: center; color: var(--white);
    background-size: cover; background-position: center; background-repeat: no-repeat;
    padding: 6rem 1rem 3rem;
}
.page-hero-content { max-width: 820px; animation: fadeUp 1s ease-out; }
.page-hero .eyebrow {
    color: rgba(255,255,255,.9);
    margin-bottom: 1.25rem;
    padding-bottom: .5rem; border-bottom: 1px solid rgba(255,255,255,.4);
}
.page-hero h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); margin-bottom: 1rem; font-weight: 500; }
.page-hero h1 em { font-style: italic; color: var(--cream-400); }
.page-hero p { font-size: clamp(1rem, 1.4vw, 1.15rem); max-width: 600px; margin: 0 auto; opacity: .92; font-weight: 300; }

/* ---------- Gallery grid (CSS columns for masonry feel) ---------- */
.gallery-section { padding: 5rem 0; background: var(--white); }
.gallery {
    column-count: 3;
    column-gap: 1rem;
}
.gallery-item {
    display: block; margin: 0 0 1rem; break-inside: avoid;
    overflow: hidden;
    background: var(--cream-200);
    box-shadow: 0 8px 24px rgba(61, 47, 36, 0.08);
    transition: transform .35s ease, box-shadow .35s ease;
}
.gallery-item img {
    width: 100%; height: auto; display: block;
    transition: transform .6s ease;
}
.gallery-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.gallery-item:hover img { transform: scale(1.04); }

/* ---------- Portrait variant (chef-alex page) wider tiles ---------- */
.gallery.portrait { column-count: 2; column-gap: 1.5rem; max-width: 900px; margin: 0 auto; }

/* ---------- Gallery CTA at bottom ---------- */
.gallery-cta {
    margin-top: 5rem; text-align: center;
    padding: 4rem 1rem;
    background: var(--cream-200);
}
.gallery-cta h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: .75rem; }
.gallery-cta p { color: var(--brown-700); margin-bottom: 2rem; font-weight: 300; }

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

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .gallery { column-count: 2; }
    .gallery.portrait { column-count: 2; }
}
@media (max-width: 560px) {
    .gallery, .gallery.portrait { column-count: 1; }
}
@media (max-width: 820px) {
    .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--cream-200); flex-direction: column; padding: 1.5rem; gap: 1rem; box-shadow: var(--shadow); }
    .nav-links.open { display: flex; }
    .nav-links a { color: var(--brown-900) !important; }
    .nav-toggle { display: block; }
    .btn-ghost { margin-left: 0; margin-top: .75rem; display: block; }
}

/* ==========================================================================
   landing-v2: one section per service (zig-zag photo + text rows)
   ========================================================================== */
.service-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    min-height: 70vh;
}
.service-row .row-img {
    background-size: cover; background-position: center; background-repeat: no-repeat;
    min-height: 50vh;
    order: 1;
}
.service-row .row-text {
    padding: 5rem clamp(2rem, 5vw, 4.5rem);
    background: var(--cream-200);
    display: flex; flex-direction: column; justify-content: center;
    order: 2;
}
.service-row.flip .row-img { order: 2; }
.service-row.flip .row-text { order: 1; background: var(--white); }
.service-row .row-text .eyebrow { color: var(--brown-500); margin-bottom: 1rem; }
.service-row .row-text h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1.25rem; }
.service-row .row-text p { color: var(--brown-700); margin-bottom: 1rem; font-weight: 300; font-size: 1.05rem; }
.service-row .row-text .row-cta { margin-top: 1.5rem; align-self: flex-start; }

/* ==========================================================================
   Service subpages
   ========================================================================== */
.service-intro {
    padding: 5rem 0 3rem;
    background: var(--white);
}
.service-intro .wrap { max-width: 760px; }
.service-intro .eyebrow { color: var(--brown-500); margin-bottom: 1rem; display: block; text-align: center; }
.service-intro h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 1.5rem; text-align: center; }
.service-intro p { color: var(--brown-700); font-weight: 300; font-size: 1.05rem; margin-bottom: 1.25rem; text-align: center; }

.feature-list-section { padding: 0 0 5rem; background: var(--white); }
.feature-list {
    list-style: none;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin: 2rem auto 0;
    width: min(1000px, 92%);
}
.feature-list li {
    padding: 1.5rem 1.5rem;
    background: var(--cream-200);
    border-left: 3px solid var(--brown-500);
}
.feature-list li strong {
    display: block; font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem; color: var(--brown-900); margin-bottom: .25rem; font-weight: 600;
}
.feature-list li span {
    font-size: .9rem; color: var(--brown-700); font-weight: 300; line-height: 1.5;
}

.service-subnav {
    background: var(--cream-300);
    padding: 1.25rem 0;
    text-align: center;
    font-size: .8rem; letter-spacing: 2px; text-transform: uppercase;
}
.service-subnav a {
    color: var(--brown-700);
    margin: 0 .5rem;
    padding: .25rem 0;
    border-bottom: 1px solid transparent;
    transition: color .25s, border-color .25s;
}
.service-subnav a:hover, .service-subnav a.current {
    color: var(--brown-900);
    border-bottom-color: var(--brown-500);
}
.service-subnav .sep { opacity: .35; margin: 0 .25rem; }

@media (max-width: 820px) {
    .service-row { grid-template-columns: 1fr; min-height: 0; }
    .service-row .row-img { min-height: 40vh; order: 1 !important; }
    .service-row .row-text { padding: 3rem 1.5rem; order: 2 !important; }
    .service-subnav a { display: inline-block; margin: .25rem .5rem; }
    .service-subnav .sep { display: none; }
}

/* ==========================================================================
   Service-page bespoke (used by service-personal-chef.php)
   - Bullet lists inside service-row
   - Strong CTA band
   - Inquiry form
   ========================================================================== */
.row-text .row-bullets {
    list-style: none;
    margin: 1rem 0 1.5rem;
    padding: 0;
}
.row-text .row-bullets li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: .75rem;
    color: var(--brown-700);
    font-weight: 300;
    font-size: .98rem;
    line-height: 1.5;
}
.row-text .row-bullets li::before {
    content: '';
    position: absolute;
    left: 0; top: .7rem;
    width: 1rem; height: 1px;
    background: var(--brown-500);
}

.row-text .option-tags {
    list-style: none; padding: 0;
    display: flex; flex-wrap: wrap; gap: .5rem .55rem;
    margin: 1rem 0 .9rem;
}
.row-text .option-tags li {
    padding: .4rem .9rem;
    background: var(--cream-300);
    color: var(--brown-900);
    font-size: .8rem; letter-spacing: .5px;
    font-weight: 500;
}
.row-text .row-aside {
    font-size: .92rem; color: var(--brown-700);
    font-style: italic; font-weight: 300;
    margin-bottom: 1.5rem;
}

.row-text .row-callout {
    margin-top: 1.25rem;
    padding: 1.5rem 1.75rem;
    background: var(--cream-200);
    border-left: 3px solid var(--brown-500);
}
.row-text .row-callout h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--brown-900);
    margin-bottom: .5rem;
    line-height: 1.2;
}
.row-text .row-callout p {
    color: var(--brown-700);
    font-size: .95rem;
    line-height: 1.6;
    font-weight: 300;
    margin-bottom: 0;
}

/* Cultural / story band — full-width quiet section between rows and CTA */
.story-band {
    background: var(--cream-200);
    text-align: center;
    padding: clamp(4rem, 8vw, 6.5rem) 1rem;
    border-top: 1px solid var(--cream-300);
    border-bottom: 1px solid var(--cream-300);
}
.story-band .wrap { max-width: 720px; }
.story-band .eyebrow {
    display: inline-block; font-size: .75rem; letter-spacing: 4px; text-transform: uppercase;
    color: var(--brown-500); margin-bottom: 1rem;
}
.story-band h2 {
    font-size: clamp(1.85rem, 3.5vw, 2.75rem);
    color: var(--brown-900);
    margin-bottom: 1.25rem;
}
.story-band p {
    color: var(--brown-700);
    font-weight: 300;
    margin: 0 auto 1rem;
    font-size: 1.05rem;
    line-height: 1.7;
}
.story-band p:last-child { margin-bottom: 0; }

.inquiry-form .form-notes {
    display: flex; flex-direction: column; gap: .35rem;
}

.cta-band {
    background: var(--brown-900);
    color: var(--white);
    text-align: center;
    padding: clamp(4rem, 8vw, 7rem) 1rem;
}
.cta-band h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--white);
    margin-bottom: 1rem;
}
.cta-band p {
    color: var(--cream-300);
    font-weight: 300;
    max-width: 560px;
    margin: 0 auto 2rem;
    font-size: 1.05rem;
}
.cta-band .btn-primary {
    background: var(--white); color: var(--brown-900); border-color: var(--white);
}
.cta-band .btn-primary:hover {
    background: transparent; color: var(--white);
}

.inquiry-section {
    background: var(--cream-200);
    padding: clamp(4rem, 8vw, 7rem) 0;
}
.inquiry-section .wrap { max-width: 920px; }
.inquiry-section .form-head { text-align: center; margin-bottom: 3rem; }
.inquiry-section .form-head .eyebrow {
    display: inline-block; font-size: .75rem; letter-spacing: 4px; text-transform: uppercase;
    color: var(--brown-500); margin-bottom: 1rem;
}
.inquiry-section .form-head h2 { font-size: clamp(1.85rem, 3vw, 2.5rem); margin-bottom: .75rem; }
.inquiry-section .form-head p { color: var(--brown-700); font-weight: 300; max-width: 560px; margin: 0 auto; }

.inquiry-form {
    display: grid;
    gap: 1.5rem;
    background: var(--white);
    padding: clamp(2rem, 4vw, 3rem);
    box-shadow: var(--shadow);
}
.inquiry-form .form-row { display: grid; gap: 1.5rem; }
.inquiry-form .form-row.two-col { grid-template-columns: 1fr 1fr; }
.inquiry-form label {
    display: flex; flex-direction: column; gap: .5rem;
    font-size: .72rem; letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--brown-700); font-weight: 500;
}
.inquiry-form label.full { grid-column: 1 / -1; }
.inquiry-form input,
.inquiry-form select,
.inquiry-form textarea {
    width: 100%; padding: .9rem 1rem;
    border: 1px solid var(--cream-400);
    background: var(--cream-200);
    font-family: inherit; font-size: 1rem;
    color: var(--brown-900);
    text-transform: none; letter-spacing: normal; font-weight: 400;
    transition: border-color .2s, background .2s;
    border-radius: 0;
}
.inquiry-form select {
    appearance: none; -webkit-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--brown-500) 50%), linear-gradient(135deg, var(--brown-500) 50%, transparent 50%);
    background-position: calc(100% - 1.25rem) center, calc(100% - .9rem) center;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 2.5rem;
}
.inquiry-form input:focus,
.inquiry-form select:focus,
.inquiry-form textarea:focus {
    outline: none;
    border-color: var(--brown-500);
    background: var(--white);
}
.inquiry-form textarea { resize: vertical; min-height: 120px; }
.inquiry-form .form-actions {
    margin-top: .5rem;
    display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
}
.inquiry-form .response-note {
    color: var(--brown-700); font-weight: 300; font-size: .9rem;
    letter-spacing: normal; text-transform: none;
}
.inquiry-form .hp {
    position: absolute; left: -9999px; width: 1px; height: 1px;
    overflow: hidden; opacity: 0; pointer-events: none;
}
.inquiry-form .form-error {
    flex-basis: 100%; margin: .25rem 0 0;
    color: #a94442; font-weight: 400; font-size: .9rem;
}
.inquiry-thanks {
    background: var(--white); padding: 3.5rem 2rem; text-align: center;
    box-shadow: var(--shadow);
}
.inquiry-thanks h3 { font-size: 1.75rem; margin-bottom: .75rem; }
.inquiry-thanks p { color: var(--brown-700); font-weight: 300; max-width: 460px; margin: 0 auto; }

@media (max-width: 700px) {
    .inquiry-form .form-row.two-col { grid-template-columns: 1fr; }
}
