/* =========================================================
   Harish Photography & Videography — editorial design
   Palette: cream #F4EFEA · burgundy #93282D · ink #1C1A18
            taupe #706B65 · border #E2DDD7 · footer #1A1817
   ========================================================= */
:root {
  --bg: #f4efea;
  --ink: #1c1a18;
  --accent: #93282d;
  --accent-dark: #7a2024;
  --muted: #706b65;
  --line: #e2ddd7;
  --white: #ffffff;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Jost", "Inter", system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--bg); color: var(--ink); font-weight: 300; }
::selection { background: var(--accent); color: #fff; }

.serif { font-family: var(--serif); }
.text-accent { color: var(--accent); }
.eyebrow {
  text-transform: uppercase; letter-spacing: .35em; font-size: .72rem;
  color: var(--muted); font-weight: 500;
}
h1, h2, h3, .display { font-family: var(--serif); font-weight: 600; }
.accent-italic { font-style: italic; color: var(--accent); }

/* ---------- Buttons ---------- */
.btn-accent {
  background: var(--accent); color: #fff; border: 1px solid var(--accent);
  border-radius: 0; padding: .9rem 2.2rem; letter-spacing: .12em;
  text-transform: uppercase; font-size: .75rem; font-weight: 500;
  transition: all .3s ease;
}
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-ghost {
  background: transparent; color: var(--ink); border: 1px solid var(--ink);
  border-radius: 0; padding: .9rem 2.2rem; letter-spacing: .12em;
  text-transform: uppercase; font-size: .75rem; font-weight: 500;
}
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-ghost-light { border-color: #fff; color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1030; background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.navbar { padding-top: 1.1rem; padding-bottom: 1.1rem; }
.logo-serif { font-family: var(--serif); font-weight: 700; letter-spacing: .18em; font-size: 1.35rem; }
.logo-serif small { display: block; font-family: var(--sans); font-weight: 400; font-size: .58rem; letter-spacing: .42em; color: var(--muted); text-transform: uppercase; margin-top: 2px; }
.navbar .nav-link {
  text-transform: uppercase; letter-spacing: .18em; font-size: .72rem; font-weight: 400;
  color: var(--ink); padding: .5rem 1rem !important;
}
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--accent); }

/* ---------- Hero (split editorial layout) ---------- */
.hero { background: var(--bg); overflow: hidden; }
.hero-text { padding: clamp(2.5rem, 6vw, 6rem) 0 clamp(2.5rem, 6vw, 6rem) 0; }
.hero-title { font-size: clamp(2.6rem, 5.6vw, 4.6rem); line-height: 1.06; }
.hero-media { position: relative; min-height: 420px; height: 100%; }
.hero-media .slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.2s ease;
}
.hero-media .slide.active { opacity: 1; }
.hero-media::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(28,26,24,.06);
}
.hero-counter {
  position: absolute; left: 2rem; bottom: 1.6rem; z-index: 3;
  font-family: var(--sans); letter-spacing: .25em; font-size: .78rem; color: #fff;
  text-shadow: 0 1px 8px rgba(0,0,0,.6);
}
.hero-dots { display: flex; gap: 8px; margin-top: 2rem; }
.hero-dots button {
  width: 34px; height: 3px; border: 0; padding: 0; background: var(--line); transition: background .3s;
}
.hero-dots button.active { background: var(--accent); }

/* ---------- About ---------- */
.about-wrap { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.about-title { font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.12; }

/* ---------- Portfolio grid ---------- */
.section-head h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.portfolio-grid { row-gap: 3.2rem; column-gap: 2.5rem; }
.masonry-card { text-decoration: none; color: var(--ink); display: block; }
.masonry-card:nth-child(odd) { padding-top: 0; }
.masonry-card:nth-child(even) { padding-top: 3.5rem; } /* staggered masonry offset */
.masonry-img { overflow: hidden; background: #e6e0d8; aspect-ratio: 4 / 5; }
.masonry-card:nth-child(even) .masonry-img { aspect-ratio: 4 / 4.4; }
.masonry-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s ease; }
.masonry-card:hover .masonry-img img { transform: scale(1.05); }
.masonry-meta { display: flex; align-items: center; justify-content: space-between; padding-top: 1rem; margin-top: 1rem; border-top: 1px solid var(--line); }
.masonry-meta h3 { font-size: 1.3rem; margin: 0; }
.masonry-meta p { color: var(--muted); font-size: .8rem; margin: .15rem 0 0; }
.masonry-arrow { color: var(--accent); font-size: 1.15rem; transition: transform .3s; }
.masonry-card:hover .masonry-arrow { transform: translateX(6px); }
@media (max-width: 767px) {
  .masonry-card:nth-child(even) { padding-top: 0; }
  .masonry-img, .masonry-card:nth-child(even) .masonry-img { aspect-ratio: 4/5; }
}

/* ---------- Films ---------- */
.films-wrap { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.film-thumb { position: relative; overflow: hidden; }
.film-thumb img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .9s; }
.film-thumb:hover img { transform: scale(1.04); }
.film-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
.film-play span {
  width: 74px; height: 74px; border-radius: 50%; background: rgba(255,255,255,.92);
  color: var(--ink); display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
}
.embed-wrap { border-radius: 0; overflow: hidden; background: #000; }
.embed-wrap iframe, .embed-wrap video { border: 0; width: 100%; display: block; }

/* ---------- Gallery page ---------- */
.gal-item { cursor: zoom-in; overflow: hidden; background: #e6e0d8; }
.gal-item img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .6s; }
.gal-item:hover img { transform: scale(1.05); }
.filter-chip {
  text-transform: uppercase; letter-spacing: .15em; font-size: .7rem; padding: .55rem 1.3rem;
  border: 1px solid var(--line); color: var(--muted); background: transparent; border-radius: 0;
}
.filter-chip.active, .filter-chip:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- Lightbox ---------- */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 2000; background: rgba(20,17,15,.95);
  align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; }
.lightbox button {
  position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 0;
  width: 48px; height: 48px; border-radius: 0; font-size: 1.2rem;
}
.lightbox button:hover { background: var(--accent); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lb-caption { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #ddd; font-size: .85rem; letter-spacing: .1em; }

/* ---------- Contact ---------- */
.contact-wrap { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.contact-title { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.08; }
.form-card { background: var(--white); border: 1px solid var(--line); padding: clamp(1.5rem, 3vw, 2.8rem); }
.form-control, .form-select {
  border-radius: 0; border: 1px solid var(--line); padding: .8rem 1rem; font-size: .95rem;
}
.form-control:focus, .form-select:focus { border-color: var(--accent); box-shadow: none; }
.form-label { text-transform: uppercase; letter-spacing: .14em; font-size: .68rem; color: var(--muted); font-weight: 500; margin-bottom: .4rem; }

/* ---------- Footer ---------- */
.site-footer { background: #1a1817; color: #a39d96; }
.site-footer h6 { text-transform: uppercase; letter-spacing: .25em; font-size: .7rem; color: #fff; margin-bottom: 1.2rem; }
.site-footer a { color: #a39d96; text-decoration: none; font-size: .9rem; }
.site-footer a:hover { color: #fff; }
.site-footer .logo-serif { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); font-size: .78rem; }

/* ---------- Mobile sticky "Contact Now" ---------- */
.mobile-cta {
    position: fixed !important; 
    left: 0 !important; 
    right: 0 !important; 
    bottom: 0 !important; 
    z-index: 99999 !important; /* Forces it above everything else */
    display: none;
    background: #93282d !important; /* Hardcoded brand color to ensure it shows */
    color: #fff !important; 
    text-align: center !important;
    padding: 1rem !important; 
    letter-spacing: .2em !important; 
    text-transform: uppercase !important; 
    font-size: 0.85rem !important; 
    font-weight: 600 !important;
    text-decoration: none !important;
    box-shadow: 0 -6px 24px rgba(0,0,0,.18) !important;
}
.mobile-cta:hover { 
    color: #fff !important; 
    background: #7a2024 !important; 
}

@media (max-width: 767px) { 
    .mobile-cta { display: block !important; } 
    body { padding-bottom: 60px !important; } /* Prevents the button from hiding the footer text */
}

/* =========================================
   CLAUDE'S CLEAN HERO LAYOUT
   ========================================= */

/* 1. Main Container */
.hero {
    position: relative !important;
    height: 100vh !important;
    min-height: 600px !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important; /* LEFT */
    overflow: hidden !important;
    background-color: #1a1a1a !important;
}

/* 2. Media Container */
.hero .hero-media {
    display: block !important;
    position: absolute !important;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important;
    isolation: isolate !important; /* Fixes z-index stacking */
}

/* 3. Slides */
.hero .slide {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    
    /* Note: No !important on opacity so JS/Animations can override it */
    opacity: 0; 
    transition: opacity 1s ease !important;
    z-index: 1 !important;
}

/* 4. Active Slide (for JS) */
.hero .slide.active {
    opacity: 1 !important;
    z-index: 2 !important;
}

/* 5. Dark Gradient Overlay */
.hero-media::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 3 !important;
    background: linear-gradient(90deg, rgba(0,0,0,.7) 0%, rgba(0,0,0,0.3) 50%, transparent 100%) !important;
    pointer-events: none !important;
}

/* 6. Text Alignment */
.hero .container {
    position: relative !important;
    z-index: 10 !important;
    width: 100% !important;
    max-width: 1200px !important;
    padding: 0 50px !important;
    margin: 0 auto !important;
}

.hero .row {
    display: flex !important;
    justify-content: flex-start !important;
    text-align: left !important;
}

.hero .col-lg-5, 
.hero .hero-content {
    text-align: left !important;
    max-width: 650px !important;
    width: 100% !important;
}

/* 7. Text Colors */
.hero h1 {
    color: #FFFFFF !important;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8) !important;
}

.hero p {
    color: #F4EFEA !important;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.8) !important;
}

/* =========================================
   ABSOLUTE FINAL PORTFOLIO GRID FIX
   ========================================= */

/* 1. Force the main container to be a strict 2-column grid */
section#portfolio .row.portfolio-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important; /* 2 equal columns */
    column-gap: 50px !important; /* Space between columns */
    row-gap: 80px !important; /* Space between rows */
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: start !important;
}

/* 2. Completely strip Bootstrap from the column wrappers */
section#portfolio .row.portfolio-grid > div.col-md-6 {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    flex: none !important; /* Kills Bootstrap flex-grow */
}

/* 3. Stagger the right column (offset every even item) */
section#portfolio .row.portfolio-grid > div.col-md-6:nth-child(even) {
    margin-top: 100px !important;
}

/* 4. Style the image wrapper (Stops the giant "H" from escaping) */
.masonry-img {
    width: 100% !important;
    height: 600px !important; /* Fixed height */
    position: relative !important;
    overflow: hidden !important;
    margin-bottom: 20px !important;
    background-color: #EBE5DD !important;
}

/* 5. Force the image to fill the wrapper perfectly */
.masonry-img img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}

/* 6. Mobile View */
@media (max-width: 768px) {
    section#portfolio .row.portfolio-grid {
        grid-template-columns: 1fr !important;
        row-gap: 40px !important;
    }
    section#portfolio .row.portfolio-grid > div.col-md-6:nth-child(even) {
        margin-top: 0 !important;
    }
    .masonry-img {
        height: 400px !important;
    }
}