/* ==========================================================================
   Motamal Handlooms — Shared Stylesheet
   Palette: ivory/paper base, deep maroon + antique zari-gold accents
   ========================================================================== */
:root{
  --ivory:#F8F1E4;
  --paper:#FFFCF6;
  --maroon:#5C1A2E;
  --maroon-deep:#3B1120;
  --gold:#AD8A3F;
  --gold-light:#E4CE9C;
  --ink:#2B211C;
  --ink-soft:#5C4F45;
  --teal:#1F4B49;
  --font-display:'Fraunces', serif;
  --font-body:'Work Sans', sans-serif;
  --max:1180px;
}
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{font-family:var(--font-body); background:var(--ivory); color:var(--ink); line-height:1.6; -webkit-font-smoothing:antialiased;}
img{max-width:100%; display:block;}
a{color:inherit; text-decoration:none;}
ul{list-style:none;}
.wrap{max-width:var(--max); margin:0 auto; padding:0 24px;}
.eyebrow{font-family:var(--font-body); font-weight:600; letter-spacing:.16em; text-transform:uppercase; font-size:.72rem; color:var(--gold); display:flex; align-items:center; gap:10px;}
.eyebrow::before{content:""; width:26px; height:1px; background:var(--gold);}
.eyebrow.center{justify-content:center;}
h1,h2,h3{font-family:var(--font-display); font-weight:500; color:var(--maroon); line-height:1.15;}
h1{font-size:clamp(2.1rem,5vw,3.4rem); font-weight:600;}
h2{font-size:clamp(1.6rem,3.4vw,2.3rem);}
h3{font-size:1.15rem;}
p{color:var(--ink-soft);}
.btn{display:inline-flex; align-items:center; gap:8px; font-family:var(--font-body); font-weight:600; font-size:.86rem; letter-spacing:.03em; padding:13px 26px; border-radius:2px; border:1px solid transparent; cursor:pointer; transition:all .25s ease; white-space:nowrap;}
.btn-primary{background:var(--maroon); color:var(--paper);}
.btn-primary:hover{background:var(--maroon-deep);}
.btn-ghost{border-color:var(--maroon); color:var(--maroon); background:transparent;}
.btn-ghost:hover{background:var(--maroon); color:var(--paper);}
.btn-sm{padding:9px 16px; font-size:.78rem;}

/* Signature motif: the zari thread line */
.thread-line{height:22px; width:100%; background-image:radial-gradient(circle, var(--gold) 0 3px, transparent 3.5px), linear-gradient(var(--gold-light), var(--gold-light)); background-repeat:repeat-x, repeat-x; background-size:52px 22px, 100% 1px; background-position:center, center; opacity:.85;}

/* Topbar */
.topbar{background:var(--maroon-deep); color:var(--gold-light); font-size:.78rem;}
.topbar .wrap{display:flex; justify-content:space-between; align-items:center; padding:8px 24px; flex-wrap:wrap; gap:6px;}
.topbar a{display:inline-flex; align-items:center; gap:6px; opacity:.92;}
.topbar a:hover{color:var(--gold);}
.topbar .contacts{display:flex; gap:20px; flex-wrap:wrap;}
.topbar .socials{display:flex; gap:14px;}
.topbar svg{width:14px; height:14px; fill:currentColor;}

/* Nav */
header.site{position:sticky; top:0; z-index:50; background:rgba(248,241,228,.96); backdrop-filter:blur(6px); border-bottom:1px solid var(--gold-light);}
nav.wrap{display:flex; align-items:center; justify-content:space-between; padding:14px 24px;}
.logo{display:flex; align-items:center; gap:12px; flex-shrink:0;}
.logo img{height:52px; width:auto;}
.logo-text{font-family:var(--font-display); font-size:1.02rem; color:var(--maroon); line-height:1.1; white-space:nowrap;}
.logo-text span{display:block; font-family:var(--font-body); font-size:.6rem; letter-spacing:.14em; color:var(--ink-soft); font-weight:600; text-transform:uppercase; margin-top:2px;}
.navlinks{display:none; align-items:center; flex-wrap:nowrap; gap:16px; font-size:.8rem; font-weight:600; letter-spacing:.01em;}
.navlinks a{position:relative; padding:6px 0; color:var(--ink); white-space:nowrap; flex-shrink:0;}
.navlinks a::after{content:""; position:absolute; left:0; bottom:0; width:0; height:2px; background:var(--gold); transition:width .25s ease;}
.navlinks a:hover::after, .navlinks a.active::after{width:100%;}
.navlinks a:hover, .navlinks a.active{color:var(--maroon);}
.navcta{display:none; white-space:nowrap; flex-shrink:0;}
.has-dropdown{position:relative; flex-shrink:0;}
.dropdown{display:none; position:absolute; top:100%; left:0; background:var(--paper); border:1px solid var(--gold-light); min-width:210px; padding:10px 0; box-shadow:0 20px 30px -18px rgba(59,17,32,.3); z-index:60;}
.has-dropdown:hover .dropdown{display:block;}
.dropdown a{display:block; padding:10px 18px; font-size:.84rem; font-weight:600; white-space:nowrap;}
.dropdown a:hover{background:var(--ivory); color:var(--maroon);}
.mobilemenu .sub{padding-left:16px; display:flex; flex-direction:column; gap:10px; margin-top:8px; font-size:.86rem; font-weight:500;}
.burger{display:flex; flex-direction:column; gap:5px; background:none; border:none; cursor:pointer; padding:6px; flex-shrink:0;}
.burger span{width:24px; height:2px; background:var(--maroon);}
.mobilemenu{display:none; flex-direction:column; padding:0 24px 20px; gap:14px; font-weight:600; font-size:.95rem;}
.mobilemenu.open{display:flex;}
.mobilemenu a.active{color:var(--maroon);}
nav.wrap{flex-wrap:nowrap;}
@media(min-width:980px){ .navlinks{display:flex;} .burger{display:none;} }
@media(min-width:980px) and (max-width:1200px){ .navlinks{gap:12px; font-size:.76rem;} }
@media(min-width:1240px){ .navcta{display:inline-flex;} }

/* Page header banner (inner pages) */
.page-banner{padding:44px 0 34px; text-align:center;}
.page-banner .crumbs{margin-top:10px; font-size:.82rem; color:var(--ink-soft);}
.page-banner .crumbs a{color:var(--maroon); font-weight:600;}

/* Section shell */
section{padding:64px 0;}
.section-head{max-width:640px; margin-bottom:38px;}
.section-head h2{margin-top:14px;}
.section-head p{margin-top:14px;}
.center{text-align:center; margin-left:auto; margin-right:auto;}

/* Hero (homepage) */
.hero{padding:56px 0 0;}
.hero .wrap{display:grid; grid-template-columns:1fr; gap:40px; align-items:center;}
.hero-copy p.lead{font-size:1.04rem; max-width:46ch; margin:18px 0 28px;}
.hero-actions{display:flex; gap:14px; flex-wrap:wrap;}
.hero-stats{display:flex; gap:28px; margin-top:34px; flex-wrap:wrap;}
.hero-stats div strong{display:block; font-family:var(--font-display); font-size:1.5rem; color:var(--maroon);}
.hero-stats div span{font-size:.72rem; letter-spacing:.08em; text-transform:uppercase; color:var(--ink-soft);}
.hero-visual{position:relative; padding-bottom:20px;}
.hero-visual .img-a{border-radius:2px; box-shadow:0 30px 60px -20px rgba(59,17,32,.35); position:relative; z-index:2; aspect-ratio:4/5; object-fit:cover; width:78%;}
.hero-visual .img-b{position:absolute; right:0; bottom:-20px; width:52%; aspect-ratio:3/4; object-fit:cover; border:6px solid var(--paper); box-shadow:0 20px 40px -15px rgba(59,17,32,.4); z-index:3;}
.hero-visual .frame{position:absolute; top:-16px; left:16px; width:78%; aspect-ratio:4/5; border:1px solid var(--gold); z-index:1;}
@media(min-width:900px){ .hero .wrap{grid-template-columns:1.05fr .95fr;} }

/* About teaser / split content */
.about-grid{display:grid; grid-template-columns:1fr; gap:36px; align-items:start;}
.about-grid img{aspect-ratio:5/4; object-fit:cover; border-radius:2px;}
.about-copy .eyebrow{margin-bottom:14px;}
.about-copy p{margin-top:14px;}
@media(min-width:900px){ .about-grid{grid-template-columns:.9fr 1.1fr;} }
.bullet-list li{position:relative; padding-left:22px; margin-bottom:10px; color:var(--ink-soft); font-size:.94rem;}
.bullet-list li::before{content:""; position:absolute; left:0; top:9px; width:7px; height:7px; background:var(--gold); border-radius:50%;}

/* Weaves / category grid */
.weaves{background:var(--paper);}
.weave-grid{display:grid; grid-template-columns:1fr 1fr; gap:16px;}
.weave-card{position:relative; overflow:hidden; border-radius:2px; aspect-ratio:3/4; cursor:pointer;}
.weave-card img{width:100%; height:100%; object-fit:cover; transition:transform .6s ease;}
.weave-card:hover img{transform:scale(1.07);}
.weave-card .tag{position:absolute; left:0; right:0; bottom:0; padding:16px 14px 14px; background:linear-gradient(to top, rgba(59,17,32,.88), rgba(59,17,32,0)); color:var(--paper); font-family:var(--font-display); font-size:1rem;}
.weave-card .tag small{display:block; font-family:var(--font-body); font-weight:600; letter-spacing:.1em; text-transform:uppercase; font-size:.6rem; color:var(--gold-light); margin-top:4px;}
@media(min-width:640px){ .weave-grid{grid-template-columns:repeat(3,1fr);} }

/* Product catalogue (products.php) */
.filter-bar{display:flex; gap:10px; flex-wrap:wrap; margin-bottom:34px;}
.filter-chip{padding:9px 18px; border:1px solid var(--gold-light); border-radius:20px; font-size:.82rem; font-weight:600; background:var(--paper); cursor:pointer; transition:all .2s ease;}
.filter-chip.active, .filter-chip:hover{background:var(--maroon); border-color:var(--maroon); color:var(--paper);}
.product-grid{display:grid; grid-template-columns:repeat(2,1fr); gap:16px;}
@media(min-width:640px){ .product-grid{grid-template-columns:repeat(3,1fr);} }
@media(min-width:1000px){ .product-grid{grid-template-columns:repeat(4,1fr);} }
.product-card{background:var(--paper); border:1px solid var(--gold-light); border-radius:2px; overflow:hidden; transition:box-shadow .25s ease;}
.product-card:hover{box-shadow:0 16px 30px -18px rgba(59,17,32,.4);}
.product-card .thumb{aspect-ratio:3/4; overflow:hidden; cursor:pointer;}
.product-card .thumb img{width:100%; height:100%; object-fit:cover; transition:transform .5s ease;}
.product-card:hover .thumb img{transform:scale(1.06);}
.product-card .info{padding:12px 14px 16px;}
.product-card .info h3{font-size:.9rem; margin-bottom:8px;}
.product-card .info a.enquire{font-size:.72rem; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:var(--maroon); display:inline-flex; align-items:center; gap:6px;}
.product-card .info a.enquire svg{width:13px; height:13px; fill:var(--maroon);}
.load-more-wrap{text-align:center; margin-top:34px;}

/* Beyond the loom */
.beyond-grid{display:grid; grid-template-columns:1fr 1fr; gap:14px;}
.beyond-card{position:relative; border-radius:2px; overflow:hidden; aspect-ratio:1/1;}
.beyond-card img{width:100%; height:100%; object-fit:cover;}
.beyond-card .label{position:absolute; inset:auto 0 0 0; padding:12px 14px; background:rgba(92,26,46,.82); color:var(--paper); font-size:.8rem; font-weight:600; display:flex; align-items:center; justify-content:space-between;}
.beyond-card .label svg{width:14px; height:14px; fill:var(--gold-light);}
@media(min-width:768px){ .beyond-grid{grid-template-columns:repeat(4,1fr);} }

/* Gallery pages (masonry-ish grid + lightbox) */
.gallery-grid{display:grid; grid-template-columns:repeat(2,1fr); gap:12px;}
@media(min-width:640px){ .gallery-grid{grid-template-columns:repeat(3,1fr);} }
@media(min-width:1000px){ .gallery-grid{grid-template-columns:repeat(4,1fr);} }
.gallery-grid figure{border-radius:2px; overflow:hidden; aspect-ratio:1/1; cursor:pointer; position:relative;}
.gallery-grid img{width:100%; height:100%; object-fit:cover; transition:transform .5s ease;}
.gallery-grid figure:hover img{transform:scale(1.08);}
.lightbox{position:fixed; inset:0; background:rgba(43,33,28,.94); display:none; align-items:center; justify-content:center; z-index:200; padding:24px;}
.lightbox.open{display:flex;}
.lightbox img{max-width:92vw; max-height:82vh; object-fit:contain; border:4px solid var(--paper);}
.lightbox .close, .lightbox .nav-btn{position:absolute; background:var(--gold-light); border:none; width:42px; height:42px; border-radius:50%; display:flex; align-items:center; justify-content:center; cursor:pointer; color:var(--maroon-deep);}
.lightbox .close{top:20px; right:20px;}
.lightbox .prev{left:14px; top:50%; transform:translateY(-50%);}
.lightbox .next{right:14px; top:50%; transform:translateY(-50%);}
.lightbox svg{width:18px; height:18px; fill:currentColor;}

/* Testimonial / visit split */
.split{display:grid; grid-template-columns:1fr; gap:32px;}
@media(min-width:900px){ .split{grid-template-columns:1fr 1fr;} }
.quote-card{background:var(--maroon); color:var(--gold-light); padding:38px 30px; border-radius:2px; position:relative;}
.quote-card .mark{font-family:var(--font-display); font-size:3.2rem; color:var(--gold); line-height:.5; display:block; margin-bottom:14px;}
.quote-card p.quote{color:var(--paper); font-family:var(--font-display); font-size:1.1rem; font-weight:500; font-style:italic;}
.quote-card .who{margin-top:20px; font-size:.84rem; letter-spacing:.04em; text-transform:uppercase; color:var(--gold-light); font-weight:600;}
.quote-card a.more{display:inline-block; margin-top:16px; font-size:.82rem; text-decoration:underline; color:var(--gold-light);}
.visit-card{background:var(--paper); border:1px solid var(--gold-light); padding:30px; border-radius:2px;}
.visit-card h3{font-size:1.15rem; margin-bottom:6px;}
.visit-card p{margin-bottom:16px; font-size:.9rem;}
.visit-row{display:flex; gap:12px; align-items:flex-start; padding:12px 0; border-top:1px solid var(--gold-light); font-size:.87rem;}
.visit-row:first-of-type{border-top:none;}
.visit-row svg{width:17px; height:17px; fill:var(--maroon); flex-shrink:0; margin-top:2px;}
.visit-row strong{display:block; color:var(--ink); font-weight:600;}
.map-embed{margin-top:18px; border-radius:2px; overflow:hidden; border:1px solid var(--gold-light);}
.map-embed iframe{width:100%; height:220px; border:0; display:block;}

/* FAQ accordion */
.faq-list{max-width:820px;}
.faq-item{border-bottom:1px solid var(--gold-light);}
.faq-q{width:100%; text-align:left; background:none; border:none; padding:18px 4px; display:flex; justify-content:space-between; align-items:center; cursor:pointer; font-family:var(--font-display); font-size:1.02rem; color:var(--maroon);}
.faq-q svg{width:16px; height:16px; fill:var(--gold); flex-shrink:0; transition:transform .25s ease;}
.faq-item.open .faq-q svg{transform:rotate(45deg);}
.faq-a{max-height:0; overflow:hidden; transition:max-height .3s ease;}
.faq-a p{padding:0 4px 18px;}
.faq-item.open .faq-a{max-height:300px;}

/* Forms */
.form-card{background:var(--paper); border:1px solid var(--gold-light); border-radius:2px; padding:32px;}
.field{margin-bottom:18px;}
.field label{display:block; font-size:.8rem; font-weight:600; margin-bottom:6px; color:var(--ink);}
.field input, .field textarea, .field select{width:100%; padding:12px 14px; border:1px solid var(--gold-light); border-radius:2px; background:var(--ivory); font-family:var(--font-body); font-size:.92rem; color:var(--ink);}
.field textarea{resize:vertical; min-height:120px;}
.field input:focus, .field textarea:focus, .field select:focus{outline:2px solid var(--gold); outline-offset:1px;}
.stars{display:flex; gap:6px;}
.stars label{cursor:pointer; font-size:1.4rem; color:var(--gold-light);}
.stars input{display:none;}
.form-msg{padding:14px 16px; border-radius:2px; margin-bottom:20px; font-size:.9rem;}
.form-msg.success{background:#e8f3e9; color:#2c5c33; border:1px solid #b6dcbb;}
.form-msg.error{background:#fbe9e9; color:#7c2626; border:1px solid #f0bcbc;}

/* Testimonial cards grid (feedback page) */
.testi-grid{display:grid; grid-template-columns:1fr; gap:20px;}
@media(min-width:768px){ .testi-grid{grid-template-columns:1fr 1fr;} }
.testi-card{background:var(--paper); border:1px solid var(--gold-light); padding:24px; border-radius:2px;}
.testi-card .stars-static{color:var(--gold); font-size:1rem; margin-bottom:10px;}
.testi-card p.msg{font-style:italic; color:var(--ink-soft); font-size:.92rem;}
.testi-card .who{margin-top:14px; font-weight:700; font-size:.85rem; color:var(--maroon);}

/* CTA band */
.cta-band{background:var(--maroon-deep); color:var(--paper); text-align:center;}
.cta-band h2{color:var(--paper);}
.cta-band p{color:var(--gold-light); max-width:52ch; margin:14px auto 28px;}
.cta-actions{display:flex; gap:14px; justify-content:center; flex-wrap:wrap;}
.cta-band .btn-ghost{border-color:var(--gold-light); color:var(--gold-light);}
.cta-band .btn-ghost:hover{background:var(--gold-light); color:var(--maroon-deep);}
.cta-band .btn-primary{background:var(--gold); color:var(--maroon-deep);}
.cta-band .btn-primary:hover{background:var(--gold-light);}

/* Footer */
footer.site{background:var(--maroon-deep); color:var(--gold-light); padding-top:52px;}
.foot-grid{display:grid; grid-template-columns:1fr; gap:32px; padding-bottom:32px;}
.foot-brand img{height:44px; margin-bottom:14px;}
.foot-brand p{color:var(--gold-light); opacity:.8; font-size:.85rem; max-width:32ch;}
footer.site h4{font-family:var(--font-body); font-size:.76rem; letter-spacing:.1em; text-transform:uppercase; color:var(--paper); margin-bottom:16px;}
footer.site li{margin-bottom:10px; font-size:.87rem;}
footer.site a{opacity:.85;}
footer.site a:hover{opacity:1; color:var(--gold);}
.foot-social{display:flex; gap:14px; margin-top:16px;}
.foot-social a{width:34px; height:34px; border:1px solid var(--gold-light); border-radius:50%; display:flex; align-items:center; justify-content:center;}
.foot-social svg{width:15px; height:15px; fill:var(--gold-light);}
.foot-bottom{border-top:1px solid rgba(228,206,156,.2); padding:20px 0; font-size:.78rem; display:flex; flex-direction:column; gap:8px; align-items:center; text-align:center;}
@media(min-width:768px){ .foot-grid{grid-template-columns:1.4fr 1fr 1fr 1fr;} .foot-bottom{flex-direction:row; justify-content:space-between; text-align:left;} }

/* Sticky WhatsApp button */
.wa-float{position:fixed; right:20px; bottom:20px; width:56px; height:56px; background:#25D366; border-radius:50%; display:flex; align-items:center; justify-content:center; box-shadow:0 10px 24px rgba(0,0,0,.25); z-index:80;}
.wa-float svg{width:28px; height:28px; fill:#fff;}

/* Utility */
.mt-0{margin-top:0 !important;}
.text-center{text-align:center;}
