/* --- 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');


:root {
    /* WABI THEME PALETTE */
    --primary: #2c2b29;     /* Soft Charcoal */
    --accent: #a84e32;      /* Japanese Vermilion (Rust) */
    --bg-light: #f2f0eb;    /* Warm Washi Paper */
    --bg-dark: #1e1e1e;     /* Dark Stone */
    --text-gray: #6e6b65;   /* Earthy Gray */
    --border-color: #dcdbd5;
}

* { 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;
}

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

/* --- NAVIGATION --- */
/* --- NAVIGATION (FIXED) --- */
nav { 
    position: fixed; /* Changed from sticky to 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 */
}

.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); }

/* --- 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%, #e8e6e1 100%);
}
.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;
}

/* --- 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); }

/* --- 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; }
}

