:root{
  --bg:#ffffff; --fg:#0f172a; --muted:#64748b; --line:#e5e7eb;
  --card:#ffffff; --soft:#f8fafc; --shadow:0 10px 24px rgba(2,6,23,.08);
  --accent:#111827; --accentText:#ffffff; --focus:#2563eb;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;color:var(--fg);background:var(--bg);line-height:1.6}
img{max-width:100%;height:auto;display:block}
.container{max-width:1180px;margin:0 auto;padding:0 20px}
.skip-link{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden}
.skip-link:focus{left:10px;top:10px;width:auto;height:auto;background:#000;color:#fff;padding:8px;border-radius:6px;z-index:999}

/* Ribbon & Header */
.ribbon{background:#f8fafc;color:#0f172a;text-align:center;padding:8px 12px;border-bottom:1px solid var(--line);font-weight:700}
.site-header{position:sticky;top:0;z-index:20;background:#fff;box-shadow:var(--shadow);border-bottom:1px solid var(--line)}
.header-inner{display:flex;align-items:center;justify-content:space-between;height:72px}
.logo{height:32px}
.nav-list{display:flex;gap:18px;list-style:none;margin:0;padding:0}
.nav-list a{color:#0f172a;text-decoration:none;font-weight:700}
.nav-list a:hover{color:#2563eb}
.util{display:flex;gap:10px}
.btn{display:inline-flex;align-items:center;justify-content:center;height:44px;padding:0 16px;border-radius:12px;border:1px solid var(--line);background:#fff;color:#0f172a;font-weight:800;text-decoration:none;cursor:pointer;box-shadow:var(--shadow)}
.btn-primary{background:linear-gradient(90deg, rgb(18, 198, 101) 0.85%, rgb(0, 148, 70) 100%);padding: 10px;color:#fff}
.btn-secondary{background:#111827;color:#fff;border-color:#111827}
.btn-ghost{background:#fff;border-color:var(--line);color:#0f172a}
.btn-ghost:hover{background:#f3f4f6}

/* Hero */
.hero{position:relative;border-bottom:1px solid var(--line)}
.hero-bg{position:absolute;inset:0;z-index:0;background:linear-gradient(180deg,#fff,#f8fafc)}
.hero-inner{position:relative;z-index:1;display:grid;grid-template-columns:1.1fr .9fr;gap:28px;align-items:center;padding:40px 0}
.eyebrow{letter-spacing:.2em;text-transform:uppercase;color:#16a34a;margin:0 0 6px;font-size:12px;font-weight:900}
.hero h1{font-family:"Playfair Display",serif;font-size:48px;line-height:1.06;margin:0 0 10px;color:#0f172a}
.lede{color:#334155;margin:0 0 18px}
.hero-art{height:380px;border-radius:18px;border:1px solid var(--line);background:#fff url('code/HSN004.jpeg') center/cover no-repeat}

/* Section headers */
.section-head h2{margin:28px 0 6px}
.section-head p{margin:0 0 18px;color:#334155}

/* Choose your fit (fixed grid) */

.fit-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;align-items:stretch}
.fit-card{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:var(--card);text-decoration:none;color:var(--fg);box-shadow:var(--shadow)}
.fit-card img{object-fit:cover}
.fit-body{padding:12px}
.fit-body h3{margin:0 0 6px}
.fit-body p{margin:0;color:#475569}

/* Product grid (Featured trousers) */
.product-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.product{border:1px solid var(--line);border-radius:14px;background:#fff;overflow:hidden;box-shadow:var(--shadow)}
.product-media{display:block}
.product-media img{width:100%;height:auto;object-fit:cover}
.product-info{padding:12px;display:grid;gap:10px}
.product-title{margin:0;font-size:18px}
.price{margin:0;font-weight:900;color:#0f172a}
.sizes{display:flex;gap:6px;flex-wrap:wrap}
.chip{height:34px;padding:0 12px;border-radius:999px;border:1px solid #e5e7eb;background:#fff;color:#0f172a;cursor:pointer;font-weight:700}
.chip.active{background:#111827;color:#fff;border-color:#111827}


/* Pricing */
.pricing{border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:#f8fafc;margin-top:24px;}

/* Footer */
.site-footer{border-top:1px solid var(--line);background:linear-gradient(180deg,#fff,#f1f5f9);margin-top:24px}
.footer-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;padding:20px 0}
.site-footer h4{margin:0 0 8px}
.site-footer p,.site-footer ul{margin:0}
.site-footer ul{padding-left:18px;color:#334155}
address{font-style:normal;color:#334155}
.legal{border-top:1px solid var(--line);padding:12px 0;color:#6b7280;font-size:14px}

/* Mobile-first responsiveness */
@media (max-width: 1024px){
  .hero-inner{grid-template-columns:1fr}
  .product-grid{grid-template-columns:repeat(3,1fr)}
  .fit-grid{grid-template-columns:repeat(3,1fr)}
}
@media (max-width: 768px){
  .product-grid{grid-template-columns:repeat(2,1fr)}
  .fit-grid{grid-template-columns:repeat(2,1fr)}
  .nav-list{display:none}
}
@media (max-width: 480px){
  .product-grid,.fit-grid{grid-template-columns:1fr}
  .hero h1{font-size:36px}
}

/* CTA row under product cards */
.cta-row{display:flex;gap:8px;flex-wrap:wrap;width:100%}
.btn-ghost{background:#fff;border:1px solid var(--line);color:#0f172a;width:100%;}
.btn-ghost:hover{background:#f3f4f6}

/* Footer base improvements */
.site-footer{
  border-top:1px solid var(--line);
  background:linear-gradient(180deg,#fff,#f1f5f9);
  margin-top:24px;
}
.footer-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:20px;
  padding:22px 0;
}
.site-footer h4{
  margin:0 0 10px;
  font-size:16px;
}
.site-footer p,
.site-footer address,
.site-footer ul{
  margin:0;
  color:#334155;
  line-height:1.5;
}
.site-footer ul{
  padding-left:18px;
}
.site-footer a{
  color:#0f172a;
  text-decoration:none;
}
.site-footer a:hover{
  text-decoration:underline;
}

/* Subtle separators for dense content */
.footer-grid > div{
  padding:4px 0;
  border-left:1px solid transparent;
}
.footer-grid > div:first-child{
  border-left-color:transparent;
}

/* Tablet: 2 columns */
@media (max-width: 900px){
  .footer-grid{
    grid-template-columns:repeat(2,1fr);
  }
  .footer-grid > div{
    border-left-color:transparent;
    border-top:1px solid var(--line);
    padding-top:12px;
  }
  .footer-grid > div:nth-child(-n+2){
    border-top-color:transparent;
    padding-top:0;
  }
}

/* Mobile: 1 column, bigger tap targets */
@media (max-width: 520px){
  .footer-grid{
    grid-template-columns:1fr;
    gap:16px;
  }
  .site-footer h4{
    font-size:18px;
  }
  .site-footer a{
    display:inline-block;
    padding:4px 0;
  }
  .site-footer address{
    font-style:normal;
    white-space:pre-line;
  }
  /* Stack the contact lines with spacing */
  #contact .footer-grid p{
    margin:2px 0;
  }
  .legal{
    text-align:center;
  }
}

/* Improve focus states for accessibility */
.site-footer a:focus{
  outline:2px solid #2563eb;
  outline-offset:2px;
  border-radius:4px;
}

/* Optional: sticky WhatsApp FAB for small screens */
@media (max-width: 520px){
  .wa-fab{
    position:fixed;
    right:16px;
    bottom:16px;
    z-index:50;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:54px;height:54px;border-radius:50%;
    background:#25D366;color:#fff;
    box-shadow:0 8px 18px rgba(37,211,102,.35);
    text-decoration:none;font-weight:900;
  }
  .wa-fab:focus{outline:2px solid #2563eb;outline-offset:2px}
}

/* Footer brand cell */
.footer-brand{
  display:flex;
  flex-direction:column;
  gap:8px;
  align-items:flex-start;
}
.footer-logo svg{
  height:32px;
  width:auto;
  display:block;
}
.tagline{
  margin:0;
  font-weight:800;
  color:#0f172a;
}

/* Responsive: center the brand cell on mobile */
@media (max-width: 520px){
  .footer-brand{
    align-items:center;
    text-align:center;
  }
  .footer-logo svg{
    height:36px;
  }
}
/* Utility icons */
.ico{width:18px;height:18px;margin-right:8px}

/* Buttons */

/* Visibility helpers */
/* .desktop-only{display:inline-flex} */
.mobile-only{display:none}

/* Switch at mobile breakpoint */
@media (max-width: 768px){
  .desktop-only{display:none}
  .mobile-only{display:inline-flex}
}

/* Header spacing keeps layout stable with one or two buttons */
.util{display:flex;gap:10px;align-items:center}
/* Desktop-only helper (visible by default) */
.desktop-only{display:block}

/* Hide on tablets/phones */
@media (max-width: 1024px){
  .desktop-only{display:none}
}
/* Visibility helpers from earlier */
/* .desktop-only{display:inline-flex} */
.mobile-only{display:none}
@media (max-width: 768px){
  .desktop-only{display:none}
  .mobile-only{display:inline-flex}
}

/* Mobile menu panel */
.mobile-menu{
  position:fixed;left:0;right:0;top:64px; /* below header */
  background:#ffffff;
  border-top:1px solid var(--line);
  box-shadow:0 12px 24px rgba(0,0,0,.12);
  z-index:40;
  animation:menuDrop .2s ease-out both;
}
@keyframes menuDrop{from{opacity:0;transform:translateY(-8px)} to{opacity:1;transform:translateY(0)}}
.mobile-menu-inner{padding:14px 16px}
.mobile-menu-close{
  position:absolute;right:10px;top:8px;border:0;background:#f1f5f9;border-radius:8px;width:32px;height:32px;font-size:22px;cursor:pointer
}
.mobile-menu-title{margin:0 0 10px;font-size:16px}
.mobile-links{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.mobile-links a{display:inline-flex;align-items:center;gap:8px;text-decoration:none;color:#0f172a;font-weight:700}
.mobile-links .addr{display:flex;align-items:center;gap:8px;color:#334155}
.bubble{
  display:inline-flex;align-items:center;justify-content:center;
  width:28px;height:28px;border-radius:50%;background:#f3f4f6;font-size:12px;font-weight:900
}
.bubble.wa{background:#25D366;color:#fff}
.bubble.call{background:#2563eb;color:#fff}
.bubble.mail{background:#111827;color:#fff}
.bubble.pin{background:#f59e0b;color:#111}
.mobile-actions{display:flex;gap:8px;margin-top:12px}

/* Button look for menu trigger */
.btn-menu{color:#111827}
.btn-menu .ico{width:18px;height:18px;margin-right:8px}
/* Header logo image */
.logo-img{
  height:32px;          /* matches previous SVG look */
  width:auto;           /* preserve aspect ratio */
  display:block;
}

/* Slightly larger on high-density/desktop if desired */
@media (min-width: 1024px){
  .logo-img{ height:34px }
}

/* Prevent layout shift as the image loads */
.brand{display:inline-flex;align-items:center}
/* Footer logo image */
.footer-logo-img{
  height:32px;
  width:auto;
  display:block;
  filter: none;              /* keep original colors */
}

/* If footer background is dark, optionally lighten the logo */
.site-footer.dark .footer-logo-img{
  filter: brightness(0) invert(1); /* makes dark logo appear light */
}

/* Mobile centering retained */
@media (max-width: 520px){
  .footer-brand{
    align-items:center;
    text-align:center;
  }
  .footer-logo-img{ height:36px }
}

.hero,
.fits,
.site-footer{
    padding:0px 20px;
}