/* --- IMPORTS & VARIABLES --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');
@import url('https://cdn-uicons.flaticon.com/3.0.0/uicons-brands/css/uicons-brands.css');
@import url('https://cdn-uicons.flaticon.com/3.0.0/uicons-solid-rounded/css/uicons-solid-rounded.css');
@import url('https://cdn-uicons.flaticon.com/3.0.0/uicons-regular-rounded/css/uicons-regular-rounded.css');
@import url('https://cdn-uicons.flaticon.com/3.0.0/uicons-thin-straight/css/uicons-thin-straight.css');


:root {
    /* WABI-SABI PALETTE (SPEC) */
    --wabi-offwhite: #F5F0EB;
    --wabi-warm-beige: #E8DDD0;
    --wabi-clay: #A07850;
    --wabi-charcoal: #2C2C2C;
    --wabi-sage: #8A9B80;

    /* Existing tokens (kept for compatibility) */
    --primary: var(--wabi-charcoal);
    --accent: var(--wabi-clay);
    --bg-light: var(--wabi-offwhite);
    --bg-dark: #1e1e1e;
    --text-gray: #6e6b65;
    --border-color: rgba(44, 44, 44, 0.12);

    /* Design system */
    --surface: rgba(255, 255, 255, 0.7);
    --surface-solid: #ffffff;
    --shadow-soft: 0 18px 50px rgba(0,0,0,0.06);
    --radius: 10px;
    --max-width: 1200px;
    --max-width-wide: 1600px;
    --section-pad: clamp(64px, 7vw, 110px);
}

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

html.lenis {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto; /* IMPORTANT: Disable native smooth scroll */
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}



body { 
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; 
    line-height: 1.7; 
    color: var(--primary); 
    background-color: var(--bg-light);
    width: 100%; min-height: 100vh;
    overflow-x: hidden; 
    display: flex; flex-direction: column;
}

/* Subtle grain texture overlay (no external assets) */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    opacity: 0.04;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

body > * { position: relative; }

/* --- TYPOGRAPHY --- */
h1, h2, h3, .nav-branding, .hero-main, .section-title {
    font-family: 'Cormorant Garamond', serif; 
    font-weight: 400;
}

/* --- NAVIGATION --- */
nav { 
    position: fixed;
    top: 0; 
    left: 0;
    width: 100%;
    background: rgba(242, 240, 235, 0.95);
    backdrop-filter: blur(12px); 
    z-index: 1000; /* Increased z-index to ensure it stays above other fixed elements */
    border-bottom: 1px solid rgba(0,0,0,0.03); 
    padding: 20px 4%;
    transition: transform 0.3s ease; /* Optional: adds smoothness if you animate it later */
}

/* Ensure content never sits under the fixed/sticky nav */
main { padding-top: var(--nav-offset, 92px); }

.nav-container {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; margin: 0 auto; max-width: 1600px;
}
.nav-branding {
    text-decoration: none; color: var(--primary); 
    font-size: 1.6rem; font-style: italic; font-weight: 600;
    flex-shrink: 0;
}
.nav-links { 
    list-style: none; display: flex; gap: 3vw; 
    margin: 0; padding: 0; flex-wrap: wrap; 
    justify-content: flex-end; text-transform: uppercase;
}
nav a { 
    text-decoration: none; color: var(--primary); font-weight: 500; 
    font-size: 0.9rem;  letter-spacing: 0.1em;
    position: relative; transition: color 0.3s ease;
}
nav a:hover, nav a.active { color: var(--accent); }

/* --- SERVICES MEGA MENU --- */
.nav-links > li { position: relative; }
.nav-item-btn {
    appearance: none;
    background: transparent;
    border: 0;
    padding: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    font-weight: 500;
}
.nav-item-btn:hover { color: var(--accent); }

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: auto;
    width: min(360px, 92vw);
    background: rgba(245, 240, 235, 0.97);
    border: 1px solid rgba(44, 44, 44, 0.08);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px);
    padding: 22px;
    display: none;
    transform: translateY(-8px);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.25s ease;
}
.nav-dropdown.open {
    display: block;
    opacity: 1;
    transform: translateY(0);
}
.nav-dropdown-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}
.nav-dropdown-col {
    padding: 16px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(44, 44, 44, 0.06);
}
.nav-dropdown-col h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    letter-spacing: 0.02em;
    text-transform: none;
    margin-bottom: 8px;
}
.nav-dropdown-col p {
    color: var(--text-gray);
    font-size: 0.92rem;
    margin-bottom: 14px;
}
.nav-dropdown-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}
.nav-dropdown-links a {
    display: inline-flex;
    gap: 10px;
    align-items: baseline;
    text-transform: none;
    letter-spacing: 0.02em;
    font-size: 0.95rem;
    color: var(--primary);
}
.nav-dropdown-links a span {
    color: var(--text-gray);
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .nav-dropdown {
        position: static;
        width: 100%;
        margin: 10px 0 18px;
        box-shadow: none;
    }
    .nav-dropdown-grid { grid-template-columns: 1fr; }
    .nav-item-btn { width: 100%; padding: 20px; border-bottom: 1px solid rgba(0,0,0,0.03); }
}

/* --- Gentle motion utilities (IntersectionObserver will toggle) --- */
.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.8s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- PACKAGES (3-tier pricing) --- */
.pkg-wrap { max-width: var(--max-width-wide); margin: 0 auto; }
.pkg-header { text-align: center; margin-bottom: 40px; }
.pkg-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    max-width: var(--max-width-wide);
    margin: 0 auto;
}
.pkg-card {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(44, 44, 44, 0.10);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.04);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    position: relative;
    overflow: hidden;
}
.pkg-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.pkg-card.is-popular {
    border-color: rgba(160, 120, 80, 0.35);
    box-shadow: 0 22px 60px rgba(160, 120, 80, 0.10);
}
.pkg-head h3 { font-size: 2rem; margin-bottom: 6px; font-style: italic; }
.pkg-price { color: var(--text-gray); font-weight: 600; letter-spacing: 0.02em; margin-top: 8px; }
.pkg-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    background: rgba(160, 120, 80, 0.10);
    border: 1px solid rgba(160, 120, 80, 0.25);
    color: var(--accent);
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
}
.pkg-body { margin-top: 18px; display: grid; gap: 10px; }
.pkg-row { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 10px 0; border-top: 1px solid rgba(44, 44, 44, 0.08); }
.pkg-row:first-child { border-top: 0; padding-top: 0; }
.pkg-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-gray); font-weight: 700; }
.pkg-value { font-size: 0.96rem; color: var(--primary); }
.pkg-cta { text-align: center; margin-top: 28px; }

@media (max-width: 900px) {
    .pkg-grid { grid-template-columns: 1fr; }
}

/* --- CLIENTS / PARTNERS --- */
.clients-wrap { max-width: var(--max-width-wide); margin: 0 auto; }
.clients-header { text-align: center; margin-bottom: 28px; }
.clients-logos {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    align-items: center;
}

/* Marquee mode (Claude-like continuous scroll) */
.clients-wrap[data-mode="scroll-single"] .clients-logos {
    display: flex;
    position: relative;
    gap: 0;
    overflow: hidden;
    padding: 12px 0;
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.clients-marquee {
    display: inline-flex;
    gap: 0;
    align-items: center;
    will-change: transform;
    flex-shrink: 0;
    animation: wabiMarquee 28s linear infinite;
}
.clients-wrap[data-mode="scroll-single"] .clients-marquee .client-logo {
    margin-right: 14px;
}
.clients-wrap[data-mode="scroll-single"] .clients-logos:hover .clients-marquee {
    animation-play-state: paused;
}
@keyframes wabiMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    border-radius: 14px;
    background: rgba(255,255,255,0.6);
    border: 1px solid rgba(44, 44, 44, 0.08);
    transition: transform 0.25s ease;
}
.client-logo img {
    max-width: 160px;
    max-height: 46px;
    width: auto;
    height: auto;
    filter: grayscale(1);
    opacity: 0.78;
    transition: filter 0.25s ease, opacity 0.25s ease;
}
.client-logo:hover { transform: translateY(-3px); }
.client-logo:hover img { filter: grayscale(0); opacity: 1; }

@media (max-width: 900px) { .clients-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .clients-logos { grid-template-columns: 1fr; } }

@media (max-width: 600px) {
    .t-wrap { padding: 0 14px; }
}

/* --- TESTIMONIALS --- */
.t-wrap { max-width: var(--max-width-wide); margin: 0 auto; padding: 0 20px; }
.t-header { text-align: center; margin-bottom: 26px; }
.t-carousel {
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid rgba(44, 44, 44, 0.08);
    background: rgba(255,255,255,0.55);
    max-width: 980px; /* show at most ~3 cards on wide screens */
    margin: 0 auto;
}
.t-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(310px, 1fr);
    gap: 14px;
    padding: 24px 56px 30px; /* strong inner margin so outer cards don't touch border */
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.t-track::-webkit-scrollbar { display: none; }
.t-controls {
    margin-top: 12px;
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
}
.t-btn {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(44,44,44,0.12);
    background: rgba(255,255,255,0.8);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease;
}
.t-btn:active { transform: scale(0.96); }
.t-dots { display: flex; gap: 6px; align-items: center; padding: 0 4px; }
.t-dot {
    width: 6px;
    height: 6px;
    border-radius: 99px;
    background: rgba(44,44,44,0.25);
    transition: width 0.2s ease, background 0.2s ease;
}
.t-dot.active { width: 18px; background: rgba(44,44,44,0.55); }
.t-card {
    scroll-snap-align: start;
    background: rgba(245, 240, 235, 0.7);
    border: 1px solid rgba(44, 44, 44, 0.08);
    border-radius: 14px;
    padding: 18px;
    min-height: 170px;
    display: flex;
    flex-direction: column;
}
.t-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.t-badge {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-gray);
    font-weight: 800;
}
.t-rating { color: var(--accent); letter-spacing: 0.06em; font-size: 0.95rem; }
.t-quote { font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; line-height: 1.35; color: var(--primary); margin-bottom: 14px; }
.t-meta { display: flex; flex-direction: column; gap: 2px; color: var(--text-gray); font-size: 0.92rem; margin-top: auto; }
.t-meta strong { color: var(--primary); font-weight: 700; }

/* --- CONTACT FORM --- */
.contact-form .hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.field label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    font-weight: 800;
    color: var(--text-gray);
}
.field input, .field select, .field textarea {
    padding: 12px 12px;
    border-radius: 10px;
    border: 1px solid rgba(44, 44, 44, 0.14);
    background: rgba(255,255,255,0.70);
    color: var(--primary);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
    border-color: rgba(160, 120, 80, 0.55);
    box-shadow: 0 0 0 4px rgba(160, 120, 80, 0.10);
}
.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
    border-color: rgba(200, 60, 60, 0.55);
    box-shadow: 0 0 0 4px rgba(200, 60, 60, 0.10);
}
@media (max-width: 900px) { .form-grid { grid-template-columns: 1fr; } }

/* --- TOAST --- */
.toast {
    position: fixed;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(44,44,44,0.92);
    color: #fff;
    padding: 12px 14px;
    border-radius: 999px;
    box-shadow: 0 14px 40px rgba(0,0,0,0.25);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 5000;
    max-width: min(720px, 92vw);
    text-align: center;
}
.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(-6px);
}

/* --- HERO SECTION (Homepage) --- */
main { width: 100%; flex: 1; }

.hero-section {
    width: 100%;
    text-align: center; 
    padding: 160px 5% 100px; 
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--wabi-warm-beige) 100%);
    position: relative;
    overflow: hidden;
}
.hero-media {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: saturate(0.9) contrast(0.95);
    transform: scale(1.03);
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(245,240,235,0.82) 0%, rgba(245,240,235,0.92) 55%, rgba(245,240,235,1) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 1100px; margin: 0 auto; }
.hero-cta { display:flex; gap: 14px; justify-content:center; flex-wrap: wrap; margin-top: 24px; }
.hero-main { 
    font-size: clamp(3rem, 6vw, 5rem); 
    line-height: 1.1; margin-bottom: 1.5rem; 
    color: var(--primary); 
    max-width: 1100px; margin-inline: auto;
}
.hero-main em { font-style: italic; color: var(--text-gray); }
.hero-subtitle { 
    font-size: clamp(1.1rem, 1.5vw, 1.3rem); 
    color: var(--text-gray); max-width: 700px; 
    margin: 0 auto 2.5rem;
}

/* --- CTA BANNER --- */
.cta-banner {
    background: rgba(44,44,44,0.92);
    color: #fff;
    border-radius: var(--radius);
    padding: clamp(26px, 4vw, 44px);
    max-width: var(--max-width-wide);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 18px;
    align-items: center;
}
.cta-banner p { color: rgba(255,255,255,0.78); margin-top: 6px; }
.cta-banner .btn { justify-self: end; }
@media (max-width: 900px) {
    .cta-banner { grid-template-columns: 1fr; text-align: center; }
    .cta-banner .btn { justify-self: center; }
}

/* --- SERVICES GRID (Homepage) --- */
.section-padding { width: 100%; padding: 100px 4%; margin: 0 auto; }
.services-header { text-align: center; margin-bottom: 60px; }
.services-header h2 { font-size: 3rem; margin-bottom: 15px; } 
.services-header p { color: var(--text-gray); font-size: 1.1rem; }
.services-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); 
    gap: 40px; 
    max-width: 1600px; margin: 0 auto;
}
.service-card { 
    background: #fff; padding: 25px; 
    border-radius: 4px; border: 1px solid rgba(0,0,0,0.05); 
    transition: transform 0.4s ease, box-shadow 0.4s ease; 
    display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.05); }
.service-card h3 { 
    font-size: 2rem; margin-bottom: 1.5rem; 
    font-style: italic; border-bottom: 1px solid var(--border-color); padding-bottom: 15px; 
}
.service-card p { color: var(--text-gray); margin-bottom: 1.5rem; font-size: 0.95rem; }
.service-list { list-style: none; margin: 0 0 2rem 0; padding: 0; }
.service-list li {
    margin-bottom: 12px; font-size: 0.95rem; color: var(--text-gray);
    position: relative; padding-left: 20px;
}
.service-list li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }
.service-note {
    margin-top: auto; padding-top: 10px;
    border-top: 1px dashed var(--border-color);
    font-family: 'Cormorant Garamond', serif; font-style: italic;
    font-size: 1rem; color: var(--text-gray);
}
.btn-text {
    display: inline-block; margin-top: 20px;
    color: var(--accent); font-weight: 600; text-decoration: none;
    text-transform: uppercase; letter-spacing: 0.1em; font-size: 1.0rem;
    transition: all 0.2s;
}
.btn-text:hover { color: var(--primary); transform: translateX(5px); }

/* --- EDGE-TO-EDGE MASONRY GALLERY --- */
.portfolio-header { text-align: center; padding: 5px 20px 50px; }
.portfolio-header h2 { font-size: 3rem; margin-bottom: 15px; }
.masonry-grid { 
    column-count: 4; column-gap: 24px; 
    width: 100%; padding: 0 24px; margin-bottom: 80px;
}
.masonry-item { 
    break-inside: avoid; margin-bottom: 24px; 
    position: relative; overflow: hidden; 
}
.masonry-item img { 
    width: 100%; display: block; 
    transition: transform 0.5s ease, opacity 0.3s; 
    cursor: zoom-in; 
}
.masonry-item:hover img { transform: scale(1.02); opacity: 0.95; }

/* --- FAQ & FOOTER --- */
details { 
    background: #fff; border: 1px solid var(--border-color); 
    padding: 25px; margin-bottom: 15px; border-radius: 4px; cursor: pointer;
}
summary { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; font-weight: 600; }
footer { 
    width: 100%; background-color: #0d0d0d; color: #999; 
    padding: 100px 4% 50px; margin-top: auto;
}
.footer-grid { 
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
    gap: 60px; max-width: 1600px; margin: 0 auto; 
}
.footer-col h3 { color: #fff; margin-bottom: 1.5rem; letter-spacing: 0.05em; text-transform: uppercase; font-size: 0.85rem; font-weight: 700; font-family: 'Inter', sans-serif;}
.footer-col a { color: #999; text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }

/* --- BUTTONS --- */
.btn { 
    padding: 1rem 2.5rem; font-weight: 600; border-radius: 2px; 
    display: inline-block; transition: all 0.3s; border: 1px solid transparent; 
    cursor: pointer; text-decoration: none; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.85rem;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-secondary { background: transparent; border-color: var(--border-color); color: var(--primary); }
.btn-secondary:hover { border-color: var(--primary); }

/* Gallery filters */
.gallery-filter.is-active {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(160, 120, 80, 0.06);
}

/* --- LIGHTBOX (FIXED SLIDING & Z-INDEX) --- */
.lightbox { 
    display: none; 
    position: fixed; 
    inset: 0; 
    background: rgba(15, 15, 15, 0.98); /* Very dark background */
    z-index: 2000; 
    
    /* Flexbox centering for the slider container */
    align-items: center; 
    justify-content: center;
}
.lightbox.active { display: flex; }

/* The container that holds the images */
.lightbox-slider { 
    position: relative; /* Relative allows absolute children to animate within */
    width: 100vw; 
    height: 100vh; 
    overflow: hidden; /* Prevent scrollbars during slide */
    
    /* Flexbox centering ensures images start in the middle */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2001; /* Layer 1 */
}

/* The actual images */
.lightbox-slider img { 
    position: absolute; /* Stack them on top of each other */
    
    /* Sizing constraints */
    max-width: 90vw; 
    max-height: 85vh; 
    width: auto; 
    height: auto; 
    object-fit: contain; 

    -webkit-user-select: none; /* Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* IE10+/Edge */
    user-select: none;         /* Standard */
    
    /* Ensure click events still work for navigation */
    pointer-events: auto; 
    
    /* Shadow */
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    
    /* Critical for animation performance */
    will-change: transform; 
    
    /* Default state: Centered (because parent is flex-center) */
    /* We DO NOT use translate(-50%, -50%) here to avoid conflict with animation transforms */
}

/* --- ANIMATION CLASSES (Used by JS) --- */
/* Center (Active) */
.slide-center { 
    transform: translateX(0); 
    opacity: 1;
    z-index: 10; 
}

/* Starting positions for incoming slide */
.pos-right { 
    transform: translateX(100vw); 
    z-index: 5; 
}
.pos-left { 
    transform: translateX(-100vw); 
    z-index: 5; 
}

/* Destinations for outgoing slide */
.dest-left-out { 
    transform: translateX(-100vw) !important; 
    opacity: 0.5;
}
.dest-right-out { 
    transform: translateX(100vw) !important; 
    opacity: 0.5;
}
.dest-center { 
    transform: translateX(0) !important; 
    opacity: 1;
}

/* Smooth transition timing */
.anim-transition { 
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s ease; 
}

/* --- UI ELEMENTS (HIGHER Z-INDEX) --- */
.lightbox-ui { 
    transition: opacity 0.5s ease; 
    opacity: 1; 
    z-index: 3000; /* Layer 3: Above everything */
}
.lightbox-ui.idle { opacity: 0; pointer-events: none; }

/* Branding: Force it to top-left and white */
.lightbox-branding { 
    position: fixed; 
    top: 40px; 
    left: 75px; 
    z-index: 3000; /* Layer 3 */
    pointer-events: none; 
    color: #ffffff !important; 
    text-shadow: 0 2px 10px rgba(0,0,0,0.9);
    font-family: 'Cormorant Garamond', serif; 
    line-height: 1.1;
}
/* Ensure the inner span from JS is also white */
.lightbox-branding .brand-text {
    color: #ffffff !important;
}

/* Navigation Arrows */
.lightbox-nav { 
    position: fixed; 
    top: 50%; 
    transform: translateY(-50%); 
    z-index: 3000; /* Layer 3 */
    color: #fff; 
    font-size: 50px; 
    cursor: pointer; 
    padding: 20px; 
    user-select: none; 
    opacity: 0.7; 
    transition: opacity 0.3s; 
}
.lightbox-nav:hover { opacity: 1; }
.prev { left: 20px; right: auto; }
.next { right: 20px; left: auto; }

/* Close Button */
.lightbox-close { 
    position: fixed; 
    top: 30px; 
    right: 40px; 
    z-index: 3000; /* Layer 3 */
    color: #fff; 
    font-size: 40px; 
    cursor: pointer; 
    line-height: 1;
}

/* Info Container (Bottom Center) */
.lightbox-info { 
    position: fixed; 
    bottom: 30px; 
    left: 50%; 
    transform: translateX(-50%); 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 8px; 
    pointer-events: none; 
    z-index: 3000; /* Layer 3 */
}

#counter {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 5px;
    background: rgba(0,0,0,0.3);
    padding: 2px 10px;
    border-radius: 10px;
}

#copyright, .lightbox-copyright { 
    color: #fff; 
    font-size: 0.95rem; 
    background: rgba(0,0,0,0.75); 
    padding: 8px 16px; 
    border-radius: 99px;
    letter-spacing: 0.02em; 
    pointer-events: auto;
    backdrop-filter: blur(4px);
    white-space: nowrap;
}


/* --- SCROLL TOP --- */
#scrollTopBtn { position: fixed; bottom: 40px; right: 40px; z-index: 99; background-color: var(--accent); color: white; cursor: pointer; box-shadow: 0 5px 20px rgba(0,0,0,0.2); transition: all 0.3s ease; opacity: 0; pointer-events: none; transform: translateY(20px); display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 50%; font-size: 1.5rem; }
#scrollTopBtn.show { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* --- MOBILE --- */
@media (max-width: 1400px) { .masonry-grid { column-count: 3; } }
@media (max-width: 900px) {
    .nav-container { flex-direction: column; gap: 20px; }
    .nav-links { justify-content: center; gap: 20px; }
    .masonry-grid { column-count: 2; column-gap: 15px; padding: 0 15px; }
    .hero-section { padding: 120px 5% 60px; }
    .footer-grid { gap: 40px; }
}
@media (max-width: 480px) { .masonry-grid { column-count: 1; } .hero-main { font-size: 2.5rem; } }

/* =========================================
   NEW ADDITIONS FOR ROVING PHOTOGRAPHY PAGE
   (Added at the bottom to preserve above styles)
   ========================================= */

/* 1. Page Header (Alternative to Hero Section) */
.page-header {
    text-align: center;
    padding: 140px 20px 60px;
    background: linear-gradient(180deg, var(--bg-light) 0%, #e8e6e1 100%);
}
.page-header h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--primary);
}

/* 2. Dark Pricing/Rates Container */
/* --- RATES CARD (Constrained Width) --- */
.rates-container {
    background: #1e1e1e;
    color: #e0e0e0;
    border: 1px solid #333;
    padding: 60px;
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    
    /* Constraint Logic */
    width: 90%;             /* Responsive: take 90% of screen on mobile */
    max-width: 1000px;      /* Maximum: stop growing at 1000px */
    margin: 0 auto 80px;    /* Center it horizontally */
}

/* Ensure inner text looks good */
.rates-container h3, .rates-container h4 { color: #fff; }
.rates-container p { color: #aaa; }
.rates-container ul li { color: #bbb; margin-bottom: 10px; }
.rates-container strong { color: #fff; font-weight: 500; }


/* 3. Footer Bottom Row */
.footer-bottom {
    margin-top: 60px; 
    padding-top: 20px; 
    border-top: 1px solid #222; 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    font-size: 0.85rem; 
    color: #555;
}
.social-links a { color: #aaa; margin-left: 15px; font-weight: 500; }
.social-links a:hover { color: #fff; }

/* --- RATE ESTIMATOR COMPONENT --- */
.estimator-container {
    max-width: 1000px;
    margin: 0 auto;
}

.estimator-header {
    text-align: center;
    margin-bottom: 40px;
}

.estimator-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.estimator-card {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.estimator-inputs {
    padding: 40px;
    border-right: 1px solid var(--border-color);
}

.estimator-output {
    background: var(--bg-light);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

/* Form Elements */
.input-group { margin-bottom: 25px; }
.input-label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-gray);
    margin-bottom: 10px;
    font-weight: 600;
}

.select-wrapper select, 
.range-header input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    background: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--primary);
    border-radius: 2px;
}

/* Toggle Tabs */
.toggle-tabs {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: 2px;
    margin-bottom: 20px;
    overflow: hidden;
}

.toggle-tabs input { display: none; }
.toggle-tabs label {
    flex: 1;
    text-align: center;
    padding: 10px;
    font-size: 0.9rem;
    cursor: pointer;
    border-right: 1px solid var(--border-color);
    transition: background 0.3s;
}

.toggle-tabs label:last-child { border-right: none; }
.toggle-tabs input:checked + label {
    background: var(--primary);
    color: #fff;
}

/* Range Slider */
.range-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.range-header input { width: 60px; text-align: center; }

.wabi-range {
    width: 100%;
    -webkit-appearance: none;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    outline: none;
}
.wabi-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--accent);
    border-radius: 50%;
    cursor: pointer;
}

/* Dynamic Location Styles */
.location-radios {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.radio-box input { display: none; }
.radio-box label {
    display: block;
    padding: 10px;
    text-align: center;
    border: 1px solid var(--border-color);
    font-size: 0.85rem;
    cursor: pointer;
    border-radius: 2px;
}
.radio-box input:checked + label {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(168, 78, 50, 0.05);
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    margin-top: 28px;
}
.checkbox-wrapper input { margin-right: 10px; accent-color: var(--accent); transform: scale(1.2); }
.checkbox-wrapper span { display: block; font-size: 0.8rem; color: var(--text-gray); }

/* Output Styles */
.quote-display {
    font-family: 'Cormorant Garamond', serif;
    color: var(--primary);
    margin-bottom: 20px;
}
.currency { font-size: 1.5rem; vertical-align: top; margin-right: 5px; }
.total-price { font-size: 4rem; line-height: 1; font-weight: 600; }

.quote-breakdown {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 30px;
    text-align: left;
    background: rgba(255,255,255,0.5);
    padding: 15px;
    border-radius: 4px;
}
.breakdown-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .estimator-card { grid-template-columns: 1fr; }
    .estimator-output { border-top: 1px solid var(--border-color); }
    .location-radios { grid-template-columns: 1fr; }
}

/* =========================================
   WABI 404 PAGE (TORII THEME)
   ========================================= */

/* Import Japanese Font for authenticity */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@400;600&display=swap');

.wabi-error-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 60px;
    background-color: var(--bg-light);
    background-image: radial-gradient(circle at center, #fff 0%, var(--bg-light) 70%);
    text-align: center;
    overflow: hidden;
}

/* --- The Art Container --- */
.torii-container {
    position: relative;
    width: 300px;
    height: 260px;
    margin-bottom: 2rem;
}

/* SVG Styles */
.torii-gate {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.gate-structure {
    fill: var(--accent); /* Uses your Rust color #a84e32 */
}

.gate-detail {
    fill: var(--primary); /* Dark charcoal details */
}

.sun-circle {
    fill: #d4d0c7; /* Subtle distinct sun color */
    opacity: 0.5;
    transform-origin: center;
    animation: sunRise 2s ease-out forwards;
}

/* --- Typography Overlay --- */
.error-overlay {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

.jp-error {
    font-family: 'Noto Serif JP', serif;
    color: var(--bg-light);
    background-color: var(--accent);
    padding: 2px 8px;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    border-radius: 2px;
    margin-bottom: 5px;
}

.error-digits {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4rem;
    line-height: 1;
    font-weight: 700;
    color: var(--primary);
    text-shadow: 2px 2px 0px var(--bg-light);
    margin: 0;
}

/* --- Text Content --- */
.error-text-content {
    position: relative;
    z-index: 5;
}

.english-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-style: italic;
}

.jp-subtitle {
    font-family: 'Noto Serif JP', serif;
    font-size: 1rem;
    color: var(--accent);
    margin-bottom: 0.2rem;
    letter-spacing: 0.15em;
}

.en-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
    opacity: 0.8;
}

.wabi-actions .btn-text {
    font-size: 1.1rem;
    border-bottom: 1px solid var(--accent);
    padding-bottom: 5px;
}

/* --- Animations --- */
@keyframes sunRise {
    0% { transform: translateY(50px) scale(0.8); opacity: 0; }
    100% { transform: translateY(0) scale(1); opacity: 0.5; }
}

/* Hover Effect for the Gate */
.torii-container:hover .gate-structure {
    filter: brightness(1.1);
    transition: filter 0.3s ease;
}

/* =========================================
   404 ERROR PAGE
   ========================================= */

.error-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 160px 5% 100px;
    background: linear-gradient(180deg, var(--bg-light) 0%, #e8e6e1 100%);
    text-align: center;
}

.error-content {
    max-width: 600px;
    margin: 0 auto;
}

.error-code {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(6rem, 15vw, 12rem);
    line-height: 1;
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-weight: 400;
    opacity: 0.9;
}

.error-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-weight: 400;
}

.error-message {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* =========================================
   COMING SOON PAGE
   ========================================= */

.coming-soon-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 160px 5% 100px;
    background: linear-gradient(135deg, var(--bg-light) 0%, #e8e6e1 50%, #ddd9d3 100%);
    text-align: center;
    position: relative;
}

.coming-soon-content {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.brand-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1.1;
    color: var(--primary);
    margin-bottom: 3rem;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.coming-soon-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    color: var(--accent);
    font-weight: 600;
    font-style: italic;
}

.coming-soon-subtitle {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    color: var(--primary);
    margin-bottom: 1rem;
    line-height: 1.6;
    font-weight: 500;
}

.coming-soon-description {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.coming-soon-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.coming-soon-footer {
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.coming-soon-footer p {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.social-links-inline {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.social-links-inline a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
    letter-spacing: 0.05em;
}

.social-links-inline a:hover {
    color: var(--accent);
}

/* =========================================
   RESPONSIVE - ERROR & COMING SOON
   ========================================= */

@media (max-width: 768px) {
    .error-section,
    .coming-soon-section {
        padding: 120px 5% 60px;
    }
    
    .error-actions,
    .coming-soon-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .error-actions .btn,
    .coming-soon-actions .btn {
        width: 100%;
    }
}


/* =========================================
   MOBILE MENU & HAMBURGER STYLES
   ========================================= */

/* Default: Hide Hamburger on Desktop */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1002;
}

.mobile-menu-btn .bar {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--primary);
    margin: 6px 0;
    transition: 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

/* Hamburger Animation (Active State) */
.mobile-menu-btn.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background-color: var(--accent);
}

.mobile-menu-btn.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background-color: var(--accent);
}

/* --- MOBILE RESPONSIVE STYLES --- */
@media (max-width: 900px) {
    /* 1. Reset Container to Row (Fixes the huge initial height) */
    nav .nav-container {
        flex-direction: row; /* Keep logo and burger side-by-side */
        justify-content: space-between;
        align-items: center;
        position: relative;
    }

    /* 2. Show the Hamburger */
    .mobile-menu-btn {
        display: block;
    }

    /* 3. Hide Links by Default & Style Dropdown */
    nav .nav-links {
        display: block; /* Prepare for transform animation */
        position: absolute;
        top: 100%; /* Push exactly below the navbar */
        left: 0;
        width: 100%;
        background: rgba(242, 240, 235, 0.98); /* Matches your Nav Color */
        backdrop-filter: blur(15px);
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 0;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        
        /* Animation Setup */
        transform-origin: top;
        transform: scaleY(0);
        opacity: 0;
        transition: transform 0.4s ease, opacity 0.3s ease;
        overflow: hidden;
    }

    /* 4. Active State (Menu Open) */
    nav .nav-links.active {
        transform: scaleY(1);
        opacity: 1;
    }

    /* 5. Mobile Link Styling */
    nav .nav-links li {
        width: 100%;
        text-align: center;
        margin: 0;
        opacity: 0; /* Fade in staggered */
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    nav .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Staggered delay for items */
    nav .nav-links.active li:nth-child(1) { transition-delay: 0.1s; }
    nav .nav-links.active li:nth-child(2) { transition-delay: 0.15s; }
    nav .nav-links.active li:nth-child(3) { transition-delay: 0.2s; }
    nav .nav-links.active li:nth-child(4) { transition-delay: 0.25s; }
    nav .nav-links.active li:nth-child(5) { transition-delay: 0.3s; }
    nav .nav-links.active li:nth-child(6) { transition-delay: 0.35s; }

    nav .nav-links a {
        display: block;
        padding: 20px;
        border-bottom: 1px solid rgba(0,0,0,0.03);
        font-size: 1.1rem;
    }
    
    nav .nav-links a:hover {
        background: rgba(0,0,0,0.02);
    }
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr; /* Contact info takes 1/3, form takes 2/3 */
    gap: 40px;
    align-items: start; /* Aligns both columns to the top */
}

/* Stack vertically on mobile */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}
