/* Page-specific styles preserved from collections.html. */

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

html{scroll-behavior:smooth}

body{font-family:"DM Sans",sans-serif;color:var(--ink);line-height:1.5;background:#fff}

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

button{font:inherit;cursor:pointer}

img{display:block;width:100%}

/* TOP BAR + NAV */
.topbar{background:var(--dark);color:#fff;font-size:11px}

.topbar-inner{max-width:var(--max);margin:auto;padding:0 22px;min-height:34px;display:flex;justify-content:space-between;align-items:center}

.top-features{display:flex;gap:25px}

header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.96);backdrop-filter:blur(12px);border-bottom:1px solid #eee8e1}

.nav{height:76px;max-width:var(--max);margin:auto;padding:0 22px;display:flex;align-items:center;justify-content:space-between;gap:20px}

.logo{display:flex;align-items:center;gap:10px;min-width:210px}

.logo-mark{width:42px;height:42px;border:1px solid var(--brown);display:grid;place-items:center;font-family:"Playfair Display",serif;font-size:20px;color:var(--brown)}

.logo-mark img{width:100%;height:100%;object-fit:contain;display:block}

.logo-mark{overflow:hidden;padding:2px;background:#fff}

.logo-text strong{display:block;font-size:14px;letter-spacing:.06em;line-height:1.1}

.logo-text small{display:block;color:var(--brown);font-size:8px;letter-spacing:.28em;margin-top:4px}

.nav-links{display:flex;gap:28px;font-size:13px;font-weight:500}

.nav-links a{padding:28px 0;position:relative}

.nav-links a:hover,.nav-links a.active{color:var(--brown)}

.nav-links a.active:after{content:"";position:absolute;left:0;right:0;bottom:19px;height:1px;background:var(--brown)}

.nav-actions{display:flex;align-items:center;gap:7px}

.icon-btn{border:0;background:transparent;width:38px;height:38px;display:grid;place-items:center;font-size:18px}

.btn{display:inline-flex;align-items:center;justify-content:center;border-radius:6px;padding:12px 19px;border:1px solid var(--dark);font-size:12px;font-weight:600;transition:.2s}

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

.btn-dark:hover{background:var(--brown);border-color:var(--brown)}

.btn-light{background:#fff}

.menu-btn{display:none}

/* COMMON */
.wrap{max-width:var(--max);margin:auto;padding:0 22px}

.eyebrow{text-transform:uppercase;letter-spacing:.2em;font-size:10px;color:var(--brown);font-weight:700;margin-bottom:11px}

h1,h2,h3{font-family:"Playfair Display",serif;font-weight:500}

.section{padding:90px 0}

.section-head{max-width:650px;margin-bottom:38px}

.section-head h2{font-size:42px;line-height:1.12}

.section-head p{font-size:13px;color:var(--muted);margin-top:12px}

/* HERO */
.hero{background:var(--cream);min-height:475px;display:grid;grid-template-columns:1fr 1.1fr;overflow:hidden}

.hero-copy{padding:75px 8% 75px max(22px,calc((100vw - var(--max))/2 + 22px));display:flex;justify-content:center;flex-direction:column}

.hero-copy h1{font-size:58px;line-height:1.03;max-width:580px}

.hero-copy p{font-size:13px;color:var(--muted);max-width:510px;margin-top:17px}

.hero-actions{display:flex;gap:10px;margin-top:25px}

.hero-image{
  min-height:475px;
  background:
  linear-gradient(90deg,var(--cream) 0%,rgba(247,243,238,.15) 22%,transparent 45%),
  url("https://images.unsplash.com/photo-1600210492486-724fe5c67fb0?auto=format&fit=crop&w=1400&q=88") center/cover
}

/* COLLECTION GRID */
.collection-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}

.collection-card{position:relative;min-height:470px;overflow:hidden;background:var(--cream);border-radius:2px}

.collection-card.large{min-height:560px}

.collection-card img{height:100%;object-fit:cover;transition:transform .55s}

.collection-card:hover img{transform:scale(1.045)}

.collection-card:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 35%,rgba(25,18,13,.72) 100%)}

.collection-content{position:absolute;z-index:2;left:30px;right:30px;bottom:28px;color:#fff}

.collection-tag{text-transform:uppercase;letter-spacing:.16em;font-size:9px;color:#dfb58f;font-weight:700}

.collection-content h3{font-size:31px;margin-top:6px}

.collection-content p{font-size:11px;color:#e3ddd8;max-width:430px;margin-top:6px}

.collection-link{display:inline-flex;align-items:center;gap:8px;margin-top:14px;font-size:10px;font-weight:600;border-bottom:1px solid rgba(255,255,255,.7);padding-bottom:3px}

/* FEATURED EDITORIAL */
.editorial{background:var(--cream)}

.editorial-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:70px;align-items:center}

.editorial-image{height:560px;overflow:hidden}

.editorial-image img{height:100%;object-fit:cover}

.editorial-copy h2{font-size:45px;line-height:1.1}

.editorial-copy p{font-size:13px;color:var(--muted);margin-top:15px;max-width:500px}

.feature-list{margin-top:27px;display:grid;gap:0}

.feature{display:grid;grid-template-columns:38px 1fr;gap:14px;border-top:1px solid var(--line);padding:17px 0}

.feature:last-child{border-bottom:1px solid var(--line)}

.feature-num{color:var(--brown);font-family:"Playfair Display",serif;font-size:18px}

.feature h3{font-family:"DM Sans",sans-serif;font-size:13px;font-weight:600}

.feature p{font-size:10px;color:var(--muted);margin-top:4px}

/* SMALL COLLECTIONS */
.small-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:15px}

.small-card{border:1px solid var(--line);background:#fff;overflow:hidden}

.small-image{height:250px;background:var(--cream);overflow:hidden}

.small-image img{height:100%;object-fit:cover;transition:.4s}

.small-card:hover img{transform:scale(1.04)}

.small-content{padding:17px}

.small-content h3{font-size:21px}

.small-content p{font-size:10px;color:var(--muted);margin-top:5px}

.small-content a{display:inline-block;color:var(--brown);font-size:10px;font-weight:700;margin-top:13px}

.btn-cta-primary{background:var(--brown);color:#fff;border-color:var(--brown)}

.cta .btn-cta-primary:hover{background:#87583a;border-color:#87583a}

.btn-cta-secondary{background:transparent;color:#fff;border-color:rgba(255,255,255,.75)}

.cta .btn-cta-secondary:hover{background:rgba(255,255,255,.08);border-color:#fff}

/* CTA */
.cta{background:var(--dark);color:#fff;text-align:center;padding:78px 22px}

.cta h2{font-size:43px;line-height:1.1}

.cta p{font-size:12px;color:#bdb3ab;max-width:560px;margin:12px auto 25px}

.cta-actions{display:flex;justify-content:center;gap:10px}

.cta .btn-light{border-color:#fff}

/* FOOTER */
footer{background:#17120f;color:#eee;padding:60px 22px 24px}

.footer-grid{max-width:var(--max);margin:auto;display:grid;grid-template-columns:1.5fr 1fr 1fr 1.2fr;gap:50px}

footer h4{font-size:11px;letter-spacing:.14em;text-transform:uppercase;margin-bottom:16px}

.footer-brand p,.footer-links a,.footer-contact{color:#a89f98;font-size:11px}

.footer-brand p{max-width:310px;margin-top:16px}

.footer-links{display:grid;gap:9px}

.footer-links a:hover{color:#fff}

.footer-bottom{max-width:var(--max);margin:45px auto 0;padding-top:18px;border-top:1px solid #3b322c;display:flex;justify-content:space-between;color:#898079;font-size:10px}

.whatsapp{position:fixed;right:22px;bottom:22px;width:55px;height:55px;border-radius:50%;background:#25d366;color:#fff;display:grid;place-items:center;font-size:23px;z-index:60;box-shadow:0 10px 30px rgba(0,0,0,.2)}

/* RESPONSIVE */

@media(max-width:900px){
  .nav-dropdown{display:block;width:100%;height:auto}
  .dropdown-trigger{padding:11px 0!important;width:100%;justify-content:space-between}
  .dropdown-menu{position:static;display:none;opacity:1;visibility:visible;transform:none;box-shadow:none;border:0;border-top:1px solid #eee8e1;padding:4px 0 4px 12px;min-width:0}
  .nav-dropdown:focus-within .dropdown-menu{display:block}
  .dropdown-menu a{padding:9px 0!important}
}

@media(max-width:900px){
  .nav{height:68px;padding:0 16px}
  .nav-links{display:none}
  .nav-actions .icon-btn:not(.menu-btn){display:none}
  .menu-btn{display:grid}
  .nav-whatsapp-btn{display:flex}
  .logo{min-width:auto}
  .logo-mark{width:37px;height:37px}
  .logo-text strong{font-size:12px}
  .hero{grid-template-columns:1fr}
  .hero-copy{padding:60px 22px}
  .hero-copy h1{font-size:47px}
  .hero-image{min-height:340px}
  .section{padding:70px 0}
  .collection-grid{grid-template-columns:1fr}
  .collection-card,.collection-card.large{min-height:450px}
  .editorial-grid{grid-template-columns:1fr;gap:40px}
  .editorial-image{height:440px}
  .small-grid{grid-template-columns:1fr 1fr}
  .footer-grid{grid-template-columns:1fr 1fr;gap:30px 20px}
}

@media(max-width:520px){
  .wrap{padding:0 15px}
  .hero-copy{padding:50px 20px}
  .hero-copy h1{font-size:39px}
  .hero-image{min-height:260px}
  .hero-actions,.cta-actions{flex-direction:column}
  .hero-actions .btn,.cta-actions .btn{width:100%}
  .section-head h2,.editorial-copy h2{font-size:34px}
  .collection-card,.collection-card.large{min-height:390px}
  .collection-content{left:21px;right:21px;bottom:22px}
  .collection-content h3{font-size:27px}
  .small-grid{grid-template-columns:1fr}
  .small-image{height:280px}
  .cta h2{font-size:36px}
  .footer-grid{grid-template-columns:1fr}
  .footer-bottom{display:block}
  .footer-bottom span{display:block;margin-top:7px}
}

/* --- Mobile Menu Fix --- */
@media (max-width: 900px) {
  /* Jab mobile menu open ho, toh woh proper overlay ya dropdown bane */
  .nav-links {
    display: none; /* Default hidden */
  }
   .nav-whatsapp-btn svg {
    width: 16px;
    height: 16px;
  }

  .nav-whatsapp-btn {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
  }

  /* Agar JS se koi active/open class lagti hai (jaise .active ya .open) */
  .nav-links.active, 
  .nav-links.is-open {
    display: flex !important;
    position: fixed;
    top: 76px; /* Header ke niche se shuru hoga */
    left: 0;
    width: 100%;
    height: calc(100vh - 76px);
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 24px;
    gap: 16px;
    z-index: 999;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
  }

  /* Links ke niche jo unwanted lines aa rahi hain unhe hatane ke liye */
  .nav-links > a {
    padding: 10px 0 !important;
    font-size: 18px;
    font-weight: 500;
    border-bottom: none !important; /* Lines remove karne ke liye */
  }

  /* Active link ke niche wali line ko mobile par hatane ke liye */
  .nav-links > a.active:after {
    display: none; 
  }

  /* Dropdown ko mobile menu ke andar adjust karne ke liye */
  .nav-links .nav-dropdown {
    width: 100%;
  }

  .nav-links .dropdown-menu {
    position: static;
    box-shadow: none;
    background: #f9f9f9;
    padding-left: 15px;
    margin-top: 8px;
    border: none;
  }
}
/* ================================================================
   FINAL RESPONSIVE NAVIGATION FIX
   Mobile-only: <= 900px. Desktop navigation is intentionally untouched.
   ================================================================ */
@media (max-width: 900px) {
  .nav-links.mobile-menu-open {
    display: flex !important;
    position: absolute !important;
    top: 68px !important;
    left: 0 !important;
    right: 0 !important;
    width: auto !important;
    height: auto !important;
    max-height: calc(100vh - 68px) !important;
    overflow-y: auto !important;
    background: #fff !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    padding: 8px 22px 18px !important;
    border-bottom: 1px solid #eee8e1 !important;
    box-shadow: 0 16px 34px rgba(0,0,0,.10) !important;
    z-index: 999 !important;
  }

  .nav-links.mobile-menu-open > a,
  .nav-links.mobile-menu-open > .nav-dropdown > .dropdown-trigger {
    min-height: 48px !important;
    box-sizing: border-box !important;
    padding: 14px 2px !important;
    border-bottom: 1px solid #f3ede5 !important;
    font-size: 15px !important;
    line-height: 1.3 !important;
  }

  .nav-links.mobile-menu-open > .nav-dropdown {
    position: static !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Critical: never use :focus-within to open the mobile dropdown.
     Tapping Categories gives focus to the anchor; :focus-within previously caused
     the old dropdown to appear immediately and made the menu look overlapped. */
  .nav-links.mobile-menu-open > .nav-dropdown > .dropdown-menu,
  .nav-links.mobile-menu-open > .nav-dropdown:focus-within > .dropdown-menu {
    position: static !important;
    display: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 4px 0 8px 14px !important;
    background: #f9f7f4 !important;
    border: 0 !important;
    border-left: 2px solid #eee8e1 !important;
    box-shadow: none !important;
  }

  .nav-links.mobile-menu-open > .nav-dropdown.mobile-open > .dropdown-menu {
    display: block !important;
  }

  .nav-links.mobile-menu-open > .nav-dropdown > .dropdown-trigger span {
    transform: none !important;
  }

  .nav-links.mobile-menu-open > .nav-dropdown.mobile-open > .dropdown-trigger span {
    transform: rotate(180deg) !important;
  }

  .nav-links.mobile-menu-open > .nav-dropdown .dropdown-menu a {
    display: block !important;
    min-height: 42px !important;
    padding: 11px 10px !important;
    box-sizing: border-box !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
    white-space: nowrap !important;
    border: 0 !important;
  }

  .nav-links.mobile-menu-open > .nav-dropdown .dropdown-menu a.selected {
    background: var(--dark) !important;
    color: #fff !important;
  }

  .nav-links.mobile-menu-open > a.active:after,
  .nav-links.mobile-menu-open > .nav-dropdown > .dropdown-trigger.active:after {
    display: none !important;
  }
}

