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

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

html{scroll-behavior:smooth}

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

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

button{font:inherit;cursor:pointer}

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

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

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

.top-features span{opacity:.92}

/* HEADER */
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(--brown-dark);font-size:12px;font-weight:600
}

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

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

.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:95px 0}

.section-head{max-width:640px;margin-bottom:45px}

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

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

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

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

.hero-copy h1{font-size:64px;line-height:1.02;max-width:560px}

.hero-copy p{font-size:14px;color:var(--muted);max-width:500px;margin-top:20px}

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

.btn-outline{background:transparent;color:var(--brown-dark)}

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

/* STORY */
.story-grid{display:grid;grid-template-columns:1fr 1fr;gap:75px;align-items:center}

.story-images{display:grid;grid-template-columns:1.12fr .88fr;gap:15px;align-items:end}

.story-image{overflow:hidden;background:var(--cream)}

.story-image.large{height:535px}

.story-image.small{height:370px;margin-bottom:55px}

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

.story-image:hover img{transform:scale(1.035)}

.story-copy h2{font-size:43px;line-height:1.12}

.story-copy p{font-size:13px;color:var(--muted);margin-top:16px}

.story-copy p + p{margin-top:11px}

.signature{margin-top:28px;color:var(--brown);font-family:"Playfair Display",serif;font-size:24px}

/* STATS */
.stats{background:var(--brown-dark);color:#fff}

.stat-grid{display:grid;grid-template-columns:repeat(4,1fr)}

.stat{padding:38px 28px;border-right:1px solid rgba(255,255,255,.14)}

.stat:last-child{border-right:0}

.stat-number{font-family:"Playfair Display",serif;font-size:42px}

.stat-label{font-size:11px;color:#b9aea5;margin-top:5px}

/* VALUES */
.values-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}

.value-card{border:1px solid var(--line);padding:32px 28px;min-height:245px}

.value-icon{
  width:45px;height:45px;border:1px solid var(--line);display:grid;place-items:center;
  color:var(--brown);font-size:18px;margin-bottom:25px
}

.value-card h3{font-size:23px}

.value-card p{font-size:12px;color:var(--muted);margin-top:11px}

/* PROCESS */
.process{background:var(--cream)}

.process-grid{display:grid;grid-template-columns:1fr 1fr;gap:70px;align-items:center}

.process-image{
  height:550px;overflow:hidden;
  background:url("https://images.unsplash.com/photo-1538688525198-9b88f6f53126?auto=format&fit=crop&w=1100&q=85") center/cover
}

.process-list{display:grid;gap:0}

.process-item{
  display:grid;grid-template-columns:50px 1fr;gap:18px;padding:25px 0;
  border-bottom:1px solid var(--line)
}

.process-item:first-child{border-top:1px solid var(--line)}

.process-number{
  font-family:"Playfair Display",serif;font-size:23px;color:var(--brown)
}

.process-item h3{font-family:"DM Sans",sans-serif;font-size:14px;font-weight:600}

.process-item p{font-size:11px;color:var(--muted);margin-top:6px}

/* PROMISE */
.promise{
  background:
    linear-gradient(90deg,rgba(43,29,20,.92),rgba(43,29,20,.58)),
    url("https://images.unsplash.com/photo-1618221195710-dd6b41faaea6?auto=format&fit=crop&w=1500&q=85")
    center/cover;
  color:#fff;min-height:450px;display:flex;align-items:center
}

.promise-copy{max-width:650px}

.promise h2{font-size:48px;line-height:1.1}

.promise p{color:#ded6d0;font-size:13px;margin-top:15px;max-width:560px}

.promise .btn{margin-top:25px}

/* CTA */
.cta{
  background:var(--cream);text-align:center;padding:85px 22px
}

.cta h2{font-size:42px}

.cta p{font-size:13px;color:var(--muted);max-width:560px;margin:12px auto 25px}

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

/* FOOTER */
footer{background:#1e1814;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)
}

/* MOBILE */

@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}
  .about-hero{grid-template-columns:1fr;min-height:auto}
  .hero-copy{padding:65px 22px}
  .hero-copy h1{font-size:48px}
  .hero-image{min-height:360px}
  .section{padding:70px 0}
  .story-grid,.process-grid{grid-template-columns:1fr;gap:40px}
  .story-image.large{height:450px}
  .story-image.small{height:300px;margin-bottom:0}
  .stat-grid{grid-template-columns:1fr 1fr}
  .stat:nth-child(2){border-right:0}
  .stat:nth-child(-n+2){border-bottom:1px solid rgba(255,255,255,.14)}
  .values-grid{grid-template-columns:1fr}
  .process-image{height:390px}
  .footer-grid{grid-template-columns:1fr 1fr;gap:30px 20px}
}

@media(max-width:520px){
  .wrap{padding:0 15px}
  .hero-copy{padding:52px 20px}
  .hero-copy h1{font-size:39px}
  .hero-copy p{font-size:12px}
  .hero-image{min-height:270px}
  .hero-actions,.cta-actions{flex-direction:column}
  .hero-actions .btn,.cta-actions .btn{width:100%}
  .story-images{grid-template-columns:1fr}
  .story-image.large{height:390px}
  .story-image.small{height:260px}
  .story-copy h2,.section-head h2{font-size:34px}
  .stat{padding:27px 18px}
  .stat-number{font-size:34px}
  .promise{min-height:430px}
  .promise h2{font-size:37px}
  .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;
  }
}

