/* =========================================================
   Ahmed Tailors — styles.css
   Maroon · White · Golden-yellow. Pure CSS, no libraries.
   ========================================================= */

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol {
  margin: 0;
}

ul, ol { padding: 0; list-style: none; }

img, svg { display: block; max-width: 100%; height: auto; }

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

input, textarea, select { font: inherit; }

table { border-collapse: collapse; }

address { font-style: normal; }

/* ---------- Custom properties ---------- */
:root {
  /* colours — maroon / white / golden-yellow */
  --bone:        #FBF6EE;   /* warm white — page bg + text on dark */
  --parchment:   #F4EBDC;   /* soft alternate light bg */
  --ink:         #2A0C12;   /* dark maroon-black — headings + dark bands */
  --ink-soft:    #574248;   /* body text on light (maroon-tinted) */
  --stone:       #7C665E;   /* muted meta text on light */
  --stone-onparchment: #8A6A1C; /* deep gold, AA on parchment */
  --pine:        #5C1020;   /* rich maroon — footer, primary buttons */
  --maroon-soft: #7A1C2C;   /* lighter maroon — hovers */
  --thread:      #9A741F;   /* deep antique gold — text/lines on light (AA) */
  --thread-light:#E7C463;   /* bright golden-yellow — accents on dark */
  --gold-line:   #C99A3C;   /* mid gold — decorative rules on light */
  --hairline:    #E6DAC6;   /* light borders */
  --wa-green:    #1EA952;
  --wa-green-dark:#178A43;
  --white:       #FFFFFF;

  /* type */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Karla', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* spacing */
  --s1: .5rem;
  --s2: 1rem;
  --s3: 1.5rem;
  --s4: 2.5rem;
  --s5: 4rem;
  --s6: 6rem;
  --s7: 9rem;

  /* structure */
  --radius: 2px;
  --container-max: 1200px;
  --prose-max: 720px;
  --side-pad: clamp(1.25rem, 5vw, 3rem);
  --section-pad: clamp(4rem, 10vw, 8rem);

  /* shadows */
  --shadow-lift: 0 12px 34px -14px rgba(42, 12, 18, 0.35);
  --shadow-header: 0 1px 0 var(--hairline);

  --header-h: 74px;
}

@media (max-width: 899px) {
  :root { --header-h: 60px; }
}

/* ---------- Base ---------- */
html, body { overflow-x: clip; }        /* responsiveness guard: never scroll sideways */

body {
  background: var(--bone);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

@media (min-width: 900px) {
  body { font-size: 1.0625rem; }
}

main { display: block; }

:focus-visible {
  outline: 2px solid var(--thread);
  outline-offset: 3px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: var(--s2);
  top: -60px;
  background: var(--ink);
  color: var(--bone);
  padding: var(--s2) var(--s3);
  z-index: 1000;
  transition: top 200ms ease;
  border-radius: var(--radius);
}

.skip-link:focus { top: var(--s2); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Typography ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  text-wrap: balance;
}

.h1, h1.hero-heading {
  font-size: clamp(2.6rem, 8vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.h2, h2 {
  font-size: clamp(1.9rem, 4.5vw, 3.25rem);
  line-height: 1.1;
}

.h3, h3 { font-size: clamp(1.35rem, 2.5vw, 1.9rem); }

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--thread);
  margin-bottom: var(--s2);
}

.on-parchment .eyebrow,
section.parchment .eyebrow,
.parchment-alt .eyebrow { color: var(--stone-onparchment); }

.prose { max-width: 62ch; }

.meta {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.8125rem;
  color: var(--stone);
}

.ledger-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--gold-line);
  line-height: 1;
}

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--side-pad);
}

.section { padding-block: var(--section-pad); }

.bg-bone { background: var(--bone); }
.bg-parchment { background: var(--parchment); }
.bg-ink { background: var(--ink); color: var(--bone); }
.bg-pine { background: var(--pine); color: var(--bone); }

.hairline-top { border-top: 1px solid var(--hairline); }
.hairline-bottom { border-bottom: 1px solid var(--hairline); }

.center { text-align: center; }
.mt-0 { margin-top: 0; }

/* ---------- Stitch rule motif ---------- */
.stitch-rule {
  height: 1px;
  background-image: repeating-linear-gradient(
    to right,
    var(--gold-line) 0, var(--gold-line) 6px,
    transparent 6px, transparent 11px
  );
}

.stitch-rule.vertical {
  width: 1px;
  height: 100%;
  background-image: repeating-linear-gradient(
    to bottom,
    var(--gold-line) 0, var(--gold-line) 6px,
    transparent 6px, transparent 11px
  );
}

/* diamond glyph */
.diamond {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--thread-light);
  transform: rotate(45deg);
}

/* ---------- Image mat ---------- */
.image-mat {
  background: var(--white);
  padding: 10px;
  border: 1px solid rgba(201, 154, 60, 0.55);
  box-shadow: var(--shadow-lift);
}

.image-mat img { display: block; width: 100%; height: auto; }

/* ---------- Reveal animation ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-group > .reveal:nth-child(1) { transition-delay: 0ms; }
.reveal-group > .reveal:nth-child(2) { transition-delay: 90ms; }
.reveal-group > .reveal:nth-child(3) { transition-delay: 180ms; }
.reveal-group > .reveal:nth-child(4) { transition-delay: 270ms; }
.reveal-group > .reveal:nth-child(5) { transition-delay: 360ms; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.95rem 1.85rem;
  border-radius: var(--radius);
  transition: background-color 200ms ease, color 200ms ease,
              transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--pine);
  color: var(--bone);
  border: 1px solid var(--gold-line);
}

.btn-primary:hover {
  background: var(--maroon-soft);
  border-color: var(--thread-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid currentColor;
}

.btn-outline:hover { background: var(--ink); color: var(--bone); }

.bg-ink .btn-outline,
.bg-pine .btn-outline,
.on-dark .btn-outline,
.hero .btn-outline { color: var(--bone); border-color: var(--thread-light); }

.bg-ink .btn-outline:hover,
.bg-pine .btn-outline:hover,
.on-dark .btn-outline:hover,
.hero .btn-outline:hover { background: var(--thread-light); color: var(--ink); }

.btn-whatsapp {
  background: var(--wa-green);
  color: #fff;
  border: 1px solid var(--wa-green);
}

.btn-whatsapp:hover {
  background: var(--wa-green-dark);
  border-color: var(--wa-green-dark);
  transform: translateY(-2px);
}

.btn-whatsapp svg { width: 18px; height: 18px; flex-shrink: 0; }

@media (prefers-reduced-motion: reduce) {
  .btn-primary:hover, .btn-whatsapp:hover { transform: none; }
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--thread);
}

.text-link .arrow { display: inline-block; transition: transform 200ms ease; }
.text-link:hover .arrow { transform: translateX(4px); }

@media (prefers-reduced-motion: reduce) {
  .text-link:hover .arrow { transform: none; }
}

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 900;
  display: flex;
  align-items: center;
  transition: background-color 250ms ease, box-shadow 250ms ease, backdrop-filter 250ms ease;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* transparent-over-hero (index) */
.site-header.header-transparent {
  background: transparent;
  color: var(--bone);
}

.site-header.header-transparent .wordmark,
.site-header.header-transparent .nav-link { color: var(--bone); }
.site-header.header-transparent .wordmark .mark { color: var(--thread-light); }
.site-header.header-transparent .hamburger .bar { background: var(--bone); }

.site-header.header-transparent.scrolled {
  background: rgba(251, 246, 238, 0.94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-header);
}

.site-header.header-transparent.scrolled .wordmark,
.site-header.header-transparent.scrolled .nav-link { color: var(--ink); }
.site-header.header-transparent.scrolled .wordmark .mark { color: var(--thread); }
.site-header.header-transparent.scrolled .hamburger .bar { background: var(--ink); }

/* solid (catalogue) */
.site-header.header-solid {
  background: rgba(251, 246, 238, 0.96);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-header);
  color: var(--ink);
}

.site-header.header-solid .wordmark,
.site-header.header-solid .nav-link { color: var(--ink); }
.site-header.header-solid .wordmark .mark { color: var(--thread); }

.wordmark {
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.28em;
  line-height: 1.3;
  transition: color 250ms ease;
}

.desktop-nav { display: none; align-items: center; gap: var(--s4); }

@media (min-width: 900px) {
  .desktop-nav { display: flex; }
}

.nav-links { display: flex; align-items: center; gap: var(--s4); }

.nav-link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  padding-bottom: 4px;
  background-image: linear-gradient(var(--gold-line), var(--gold-line));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 2px;
  transition: background-size 220ms ease, color 250ms ease;
}

.nav-link:hover { background-size: 100% 2px; }

.desktop-nav .btn { margin-left: var(--s2); }

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px; height: 44px;
  gap: 5px;
}

@media (min-width: 900px) { .hamburger { display: none; } }

.hamburger .bar {
  width: 22px; height: 2px;
  background: var(--ink);
  transition: transform 250ms ease, opacity 250ms ease, background-color 250ms ease;
}

.hamburger[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav overlay */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: linear-gradient(165deg, var(--ink), var(--pine));
  color: var(--bone);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--s5) var(--side-pad);
  transform: translateY(-100%);
  transition: transform 350ms cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-nav.is-open { transform: translateY(0); }

.mobile-nav-close {
  position: absolute;
  top: var(--s3);
  right: var(--side-pad);
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
}

.mobile-nav-close .bar {
  position: absolute;
  width: 22px; height: 2px;
  background: var(--bone);
}

.mobile-nav-close .bar:nth-child(1) { transform: rotate(45deg); }
.mobile-nav-close .bar:nth-child(2) { transform: rotate(-45deg); }

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  margin-bottom: var(--s5);
}

.mobile-nav-links a {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  color: var(--bone);
  width: max-content;
  background-image: linear-gradient(var(--thread-light), var(--thread-light));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 2px;
  transition: background-size 220ms ease;
}
.mobile-nav-links a:hover { background-size: 100% 2px; }

.mobile-nav-footer {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  border-top: 1px solid rgba(231, 196, 99, 0.25);
  padding-top: var(--s3);
}

.mobile-nav-footer a.phone-link {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--thread-light);
}

.mobile-nav-footer .btn-whatsapp { width: max-content; }

body.nav-locked { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .mobile-nav { transition: none; }
}

/* =========================================================
   FLOATING WHATSAPP BUTTON
   ========================================================= */
.wa-float {
  position: fixed;
  bottom: 1.25rem; right: 1.25rem;
  z-index: 800;
  display: flex;
  align-items: center;
  background: var(--wa-green);
  color: #fff;
  border-radius: 999px;
  box-shadow: var(--shadow-lift);
  overflow: hidden;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 600ms ease, transform 600ms ease, background-color 200ms ease;
}

.wa-float.is-visible { opacity: 1; transform: scale(1); }

@media (min-width: 900px) {
  .wa-float { bottom: 1.75rem; right: 1.75rem; }
}

.wa-float:hover { background: var(--wa-green-dark); }

.wa-float-icon {
  width: 56px; height: 56px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}

.wa-float-icon svg { width: 24px; height: 24px; }

.wa-float-label {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  transition: max-width 300ms ease, padding 300ms ease;
}

@media (min-width: 900px) {
  .wa-float:hover .wa-float-label { max-width: 160px; padding-right: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  .wa-float { transition: background-color 200ms ease; opacity: 1; transform: none; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--pine);
  color: var(--bone);
  padding-block: var(--s6) var(--s4);
  background-image: linear-gradient(180deg, var(--pine), var(--ink));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--s4);
}

@media (max-width: 899px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s4) var(--s3); }
}

@media (max-width: 559px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-wordmark {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.24em;
  margin-bottom: var(--s2);
}

.footer-col .eyebrow { color: var(--thread-light); }

.footer-col p, .footer-col address {
  color: rgba(251, 246, 238, 0.82);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.footer-col a:hover {
  text-decoration: underline;
  text-decoration-color: var(--thread-light);
  text-underline-offset: 3px;
}

.footer-col .hours-line {
  color: rgba(251, 246, 238, 0.82);
  font-size: 0.9375rem;
  margin-bottom: 0.35rem;
}

.footer-bottom {
  margin-top: var(--s5);
  padding-top: var(--s3);
  border-top: 1px solid rgba(231, 196, 99, 0.18);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s2);
  font-size: 0.8125rem;
  color: rgba(251, 246, 238, 0.65);
}

.footer-bottom a { margin-left: var(--s2); }
.footer-bottom a:first-child { margin-left: 0; }
.footer-bottom nav a:hover { color: var(--thread-light); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  color: var(--bone);
  background: var(--ink); /* fallback while images load */
}

/* --- slideshow layers --- */
.hero-slideshow { position: absolute; inset: 0; z-index: 0; }

.hero-slide {
  position: absolute;
  inset: 0;
  background-image: var(--d);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1600ms ease;
}

@media (max-width: 700px) {
  .hero-slide { background-image: var(--m); }
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
  animation: hero-kenburns 8000ms ease-out forwards;
}

@keyframes hero-kenburns {
  from { transform: scale(1.06); }
  to   { transform: scale(1.16); }
}

/* legibility scrim over the imagery */
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(26,7,11,0.90) 0%, rgba(26,7,11,0.58) 40%, rgba(26,7,11,0.12) 78%, rgba(26,7,11,0) 100%),
    linear-gradient(0deg, rgba(26,7,11,0.88) 0%, rgba(26,7,11,0.20) 36%, rgba(26,7,11,0) 60%);
}

/* --- content over imagery --- */
.hero-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  padding-top: calc(var(--header-h) + var(--s5));
  padding-bottom: var(--s6);
}

.hero-content { max-width: 640px; }

.hero .eyebrow { color: var(--thread-light); }

.hero .hero-heading {
  color: var(--bone);
  font-size: clamp(2.6rem, 7.5vw, 5.5rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35);
}

.hero-body {
  max-width: 46ch;
  margin-block: var(--s3) var(--s4);
  font-size: 1.0625rem;
  color: rgba(251, 246, 238, 0.92);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  margin-bottom: var(--s4);
}

.hero-meta { color: rgba(251, 246, 238, 0.72); }

@media (max-width: 899px) {
  .hero-inner { padding-bottom: var(--s5); }
  .hero-content { max-width: none; }
}

/* scroll indicator */
.hero-scroll-indicator { display: none; }

@media (min-width: 900px) {
  .hero-scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--s2);
    position: absolute;
    right: var(--side-pad);
    bottom: var(--s3);
    z-index: 4;
  }

  .hero-scroll-indicator .scroll-caption {
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--thread-light);
  }

  .hero-scroll-indicator .scroll-line {
    width: 1px; height: 34px;
    background: var(--thread-light);
    animation: pulse-opacity 2s ease-in-out infinite;
  }
}

@keyframes pulse-opacity {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
  .hero-slide.is-active { animation: none; transform: none; }
  .hero-scroll-indicator .scroll-line { animation: none; opacity: 0.7; }
}

/* =========================================================
   GARMENT TICKER
   ========================================================= */
.ticker {
  background: var(--ink);
  overflow: hidden;
  min-height: 64px;
  display: flex;
  align-items: center;
  border-block: 1px solid rgba(231, 196, 99, 0.22);
}

.ticker-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  width: max-content;
  animation: ticker-scroll 60s linear infinite;
}

.ticker-item {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--bone);
  padding-inline: var(--s2);
}

.ticker-item .diamond { margin-inline: var(--s3); vertical-align: middle; }

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; transform: none; }
  .ticker { overflow-x: auto; }
}

/* =========================================================
   CRAFT STORY
   ========================================================= */
.craft { position: relative; overflow: hidden; }

@media (min-width: 900px) {
  .craft-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--s4);
    align-items: center;
  }
  .craft-images { grid-column: 1 / 6; position: relative; }
  .craft-text { grid-column: 7 / 13; }

  .craft-img-1 { position: relative; z-index: 1; width: 82%; }

  .craft-img-2 {
    position: absolute;
    right: 0;
    bottom: -2.5rem;
    width: 58%;
    z-index: 2;
    margin: 0;
  }
}

/* image frames — robust aspect-ratio so parallax has real height */
.craft-img-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.craft-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (min-width: 900px) {
  .craft-img-frame.parallax-frame img {
    position: absolute;
    left: 0;
    top: -7.5%;
    height: 115%;
    will-change: transform;
  }
}

.craft-caption { margin-top: var(--s3); font-style: normal; }

@media (max-width: 899px) {
  .craft-images { display: flex; flex-direction: column; margin-top: var(--s4); }
  .craft-img-1 { width: 80%; }
  .craft-img-2 { width: 60%; align-self: flex-end; margin-top: -2.5rem; margin-right: 4%; }
}

.craft-signature {
  margin-top: var(--s3);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink);
}

.craft-text .stitch-rule { width: 90px; margin-block: var(--s3); }

/* =========================================================
   WHAT WE STITCH
   ========================================================= */
.stitch-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-bottom: var(--s5);
}

.stitch-header .see-all-link { display: none; }

@media (min-width: 900px) {
  .stitch-header .see-all-link { display: inline-flex; }
}

.garment-group { margin-bottom: var(--s5); }
.garment-group:last-child { margin-bottom: 0; }

.garment-group-label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--stone-onparchment);
  margin-bottom: var(--s2);
}

.ledger-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s3);
  align-items: center;
  padding: var(--s3) 0;
  border-top: 1px solid var(--hairline);
  transition: background-color 200ms ease;
}

.garment-group:last-child .ledger-row:last-child {
  border-bottom: 1px solid var(--hairline);
}

@media (min-width: 900px) {
  .ledger-row {
    grid-template-columns: 100px 1fr auto;
    padding-inline: var(--s3);
    align-items: center;
  }
  .ledger-row:hover { background: rgba(201, 154, 60, 0.08); }
  .ledger-row:hover .ledger-num { opacity: 1; }
}

.ledger-num { opacity: 0.5; transition: opacity 200ms ease; }

.ledger-mid h3 { margin-bottom: 0.35rem; }

.ledger-row .text-link { display: none; }

@media (min-width: 900px) {
  .ledger-row .text-link { display: inline-flex; }
}

.ledger-row-actions-mobile { display: block; margin-top: var(--s2); }

@media (min-width: 900px) {
  .ledger-row-actions-mobile { display: none; }
}

/* =========================================================
   WHY AHMED TAILORS
   ========================================================= */
.why-grid { display: grid; grid-template-columns: 1fr; gap: var(--s5); }

@media (min-width: 900px) {
  .why-grid { grid-template-columns: 5fr 6fr; gap: var(--s6); }
  .why-intro { grid-column: 1; }
  .why-items { grid-column: 2; margin-top: var(--s2); }
}

.why-intro .h2 { color: var(--bone); }
.why-intro p { color: rgba(251, 246, 238, 0.85); max-width: 40ch; }

.why-items { display: grid; grid-template-columns: 1fr; gap: var(--s4); }

@media (min-width: 600px) {
  .why-items { grid-template-columns: 1fr 1fr; gap: var(--s5) var(--s4); }
}

.why-item { padding-top: var(--s2); border-top: 1px solid var(--thread-light); }

.why-item h3 { color: var(--bone); font-size: 1.35rem; margin-block: var(--s2) var(--s1); }
.why-item p { color: rgba(251, 246, 238, 0.75); font-size: 0.95rem; }

/* =========================================================
   PROCESS
   ========================================================= */
.process-steps {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s5);
  margin-block: var(--s5);
}

@media (min-width: 900px) {
  .process-steps { grid-template-columns: repeat(4, 1fr); gap: var(--s4); }

  .process-steps::before {
    content: "";
    position: absolute;
    top: 18px;
    left: calc(12.5% - 18px);
    right: calc(12.5% - 18px);
    height: 1px;
    background-image: repeating-linear-gradient(
      to right,
      var(--gold-line) 0, var(--gold-line) 6px,
      transparent 6px, transparent 11px
    );
    z-index: 0;
  }
}

@media (max-width: 899px) {
  .process-steps { padding-left: var(--s4); position: relative; }
  .process-steps::before {
    content: "";
    position: absolute;
    left: 17px; top: 8px; bottom: 8px;
    width: 1px;
    background-image: repeating-linear-gradient(
      to bottom,
      var(--gold-line) 0, var(--gold-line) 6px,
      transparent 6px, transparent 11px
    );
  }
}

.process-step { position: relative; z-index: 1; }

.process-step-num {
  width: 38px; height: 38px;
  border: 1px solid var(--gold-line);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--pine);
  background: var(--bone);
  margin-bottom: var(--s2);
}

@media (max-width: 899px) {
  .process-step-num { position: absolute; left: -52px; top: 0; }
  .process-step { padding-left: var(--s2); }
}

.process-step h3 { font-size: 1.15rem; margin-bottom: 0.35rem; }
.process-step p { font-size: 0.9375rem; max-width: 32ch; }

.process-footer { text-align: center; margin-top: var(--s5); }

.process-footer p {
  max-width: 46ch;
  margin-inline: auto;
  margin-bottom: var(--s3);
  color: var(--ink-soft);
}

/* =========================================================
   CATALOGUE TEASER
   ========================================================= */
@media (min-width: 900px) {
  .teaser-grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: var(--s5);
    align-items: center;
  }
}

.teaser-text .body-copy { margin-block: var(--s3) var(--s4); }

.teaser-fan { position: relative; display: none; }

@media (min-width: 900px) {
  .teaser-fan { display: block; height: 480px; }

  .teaser-fan-item {
    position: absolute;
    width: 34%;
    top: 0;
    aspect-ratio: 3/4;
    box-shadow: var(--shadow-lift);
  }

  .teaser-fan-item img { width: 100%; height: 100%; object-fit: cover; }

  .teaser-fan-item.t1 { left: 3%; top: 2.5rem; transform: rotate(-3deg); z-index: 1; }
  .teaser-fan-item.t2 { left: 33%; top: 0; z-index: 2; width: 38%; }
  .teaser-fan-item.t3 { left: 63%; top: 2.5rem; transform: rotate(3deg); z-index: 1; }
}

.teaser-scroll {
  display: flex;
  gap: var(--s2);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin-top: var(--s4);
  padding-bottom: var(--s2);
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 900px) { .teaser-scroll { display: none; } }

.teaser-scroll .teaser-fan-item {
  flex: 0 0 68vw;
  scroll-snap-align: start;
  aspect-ratio: 3/4;
}

.teaser-scroll .teaser-fan-item img { width: 100%; height: 100%; object-fit: cover; }

/* =========================================================
   PULL QUOTE
   ========================================================= */
.pull-quote-section { text-align: center; padding-block: var(--s6); }

.pull-quote-section .stitch-rule { width: 120px; margin-inline: auto; }

.pull-quote {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  color: var(--ink);
  max-width: 24ch;
  margin: var(--s4) auto;
  line-height: 1.35;
}

.pull-quote-caption { color: var(--stone); margin-bottom: var(--s4); }

/* =========================================================
   VISIT
   ========================================================= */
@media (min-width: 900px) {
  .visit-grid { display: grid; grid-template-columns: 5fr 7fr; gap: var(--s5); align-items: stretch; }
}

.visit-details { margin-top: var(--s4); }

.visit-detail-group { padding-block: var(--s3); border-top: 1px solid var(--hairline); }
.visit-detail-group:first-child { border-top: none; padding-top: 0; }

.visit-detail-group .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--stone-onparchment);
  margin-bottom: 0.5rem;
  display: block;
}

.visit-phone-link {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--pine);
}

.visit-actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s4); }

.map-wrap {
  margin-top: var(--s4);
  position: relative;
  width: 100%;
  min-height: 320px;
  border: 1px solid var(--hairline);
  overflow: hidden;
}

@media (min-width: 900px) {
  .map-wrap { margin-top: 0; min-height: 460px; height: 100%; }
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  display: block;
  border: 0;
}

@media (min-width: 900px) {
  .map-wrap iframe { min-height: 460px; }
}

/* =========================================================
   CATALOGUE PAGE — header band (maroon)
   ========================================================= */
.page-hero-band {
  background: linear-gradient(158deg, #2A0C12 0%, #4A0D1A 55%, #5C1020 100%);
  color: var(--bone);
  padding-top: calc(var(--header-h) + var(--s5));
  padding-bottom: var(--s5);
  min-height: 38vh;
  display: flex;
  align-items: center;
}

.page-hero-band .eyebrow { color: var(--thread-light); }
.page-hero-band h1 { color: var(--bone); }

.breadcrumb {
  color: var(--thread-light);
  font-size: 0.8125rem;
  margin-bottom: var(--s3);
  letter-spacing: 0.04em;
}

.breadcrumb a { color: rgba(251, 246, 238, 0.75); }
.breadcrumb a:hover { text-decoration: underline; text-underline-offset: 3px; }

.page-hero-band .body-copy {
  margin-top: var(--s3);
  max-width: 56ch;
  color: rgba(251, 246, 238, 0.82);
}

/* Category sub-nav */
.cat-subnav {
  position: sticky;
  top: var(--header-h);
  z-index: 500;
  background: rgba(251, 246, 238, 0.96);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
}

.cat-subnav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  height: 56px;
}

.cat-tabs { display: flex; gap: var(--s4); }

.cat-tab {
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.875rem;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  color: var(--ink-soft);
  transition: color 200ms ease, border-color 200ms ease;
}

.cat-tab.is-active { color: var(--pine); border-bottom-color: var(--gold-line); }

.cat-subnav-meta { display: none; color: var(--stone); font-size: 0.8125rem; }

@media (min-width: 900px) { .cat-subnav-meta { display: block; } }

/* Category sections */
.cat-section { padding-block: var(--s6); }
.cat-section.parchment-alt { background: var(--parchment); }

.cat-divider {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: var(--s3);
  margin-bottom: var(--s6);
}

.cat-divider h2 { font-size: clamp(2.5rem, 6vw, 4rem); }

.cat-divider .count { color: var(--stone); font-size: 0.9375rem; white-space: nowrap; }

/* Garment blocks */
.garment-block { margin-bottom: var(--s6); }
.garment-block:last-child { margin-bottom: 0; }

.garment-block-divider { margin-top: var(--s6); margin-bottom: 0; }

@media (min-width: 900px) {
  .garment-block-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--s4);
    align-items: start;
  }

  .garment-rail { grid-column: 1 / 4; position: sticky; top: 150px; }

  .garment-gallery {
    grid-column: 4 / 13;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .garment-gallery .gal-item:nth-child(2) { margin-top: 2.5rem; }
}

.garment-rail .ledger-num { display: block; margin-bottom: var(--s2); }
.garment-rail h3 { margin-bottom: var(--s2); }
.garment-rail .desc { margin-bottom: var(--s3); }

.gal-item { overflow: hidden; }

.gal-item .frame { aspect-ratio: 3/4; overflow: hidden; box-shadow: var(--shadow-lift); }

.gal-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

@media (min-width: 900px) {
  .gal-item:hover img { transform: scale(1.04); }
}

@media (prefers-reduced-motion: reduce) {
  .gal-item img { transition: none; }
  .gal-item:hover img { transform: none; }
}

/* placeholder captions hidden — swatches are self-labelled */
.gal-caption { display: none; }

@media (max-width: 899px) {
  .garment-rail { margin-bottom: var(--s3); }
  .garment-gallery {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: var(--s2);
    padding-right: var(--side-pad);
    -webkit-overflow-scrolling: touch;
  }
  .garment-gallery .gal-item { flex: 0 0 70vw; scroll-snap-align: start; }
  .garment-rail .btn-whatsapp { width: 100%; margin-top: var(--s2); }
}

/* End CTA band */
.end-cta { text-align: center; padding-block: var(--s6); }

.end-cta h2 { color: var(--bone); margin-bottom: var(--s3); }
.end-cta p { color: rgba(251, 246, 238, 0.85); max-width: 48ch; margin-inline: auto; margin-bottom: var(--s4); }

/* =========================================================
   IMAGE LIGHTBOX / ZOOM
   ========================================================= */
/* content images are clickable to zoom */
.gal-item img,
.craft-img-frame img,
.teaser-fan-item img { cursor: zoom-in; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 5vmin;
  background: rgba(20, 6, 9, 0.94);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.lightbox.is-open { display: flex; animation: lb-fade 240ms ease; }

@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }

.lightbox-img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  transform: scale(1);
  transform-origin: center center;
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
  cursor: zoom-in;
  touch-action: none;
  user-select: none;
  -webkit-user-drag: none;
  border: 1px solid rgba(231, 196, 99, 0.35);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}

.lightbox-img.zoomed { transform: scale(2.4); cursor: zoom-out; }

.lightbox-close {
  position: fixed;
  top: clamp(0.75rem, 3vw, 1.5rem);
  right: clamp(0.75rem, 3vw, 1.5rem);
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(42, 12, 18, 0.72);
  color: var(--thread-light);
  border: 1px solid rgba(231, 196, 99, 0.5);
  z-index: 2001;
  transition: background-color 200ms ease, transform 200ms ease;
}

.lightbox-close:hover { background: var(--pine); transform: rotate(90deg); }
.lightbox-close svg { width: 20px; height: 20px; }

.lightbox-hint {
  position: fixed;
  bottom: clamp(0.75rem, 3vw, 1.5rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2001;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(231, 196, 99, 0.75);
  pointer-events: none;
}

body.lightbox-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .lightbox.is-open { animation: none; }
  .lightbox-img { transition: none; }
  .lightbox-close:hover { transform: none; }
}
