/* ==========================================================================
   Stitch Master Ltd — styles.css
   Vintage / artisan tailoring: cream, charcoal, soft tan.
   Mobile-first, no frameworks, no external images.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --cream:        #F5EBDC;
  --cream-warm:   #EFE3D0;   /* alternating section tone */
  --cream-deep:   #E7D8C1;
  --card:         #FCF7EF;
  --charcoal:     #2B2B2B;
  --ink:          #46403A;   /* body text — AA on cream */
  --ink-soft:     #5C554D;
  --tan:          #C89B6A;
  --tan-deep:     #8A5F2B;   /* accent for text — AA on cream */
  --line:         #E0CFB6;
  --line-warm:    #DCC7A9;
  --wa:           #128C7E;
  --wa-dark:      #0E6F64;

  --wrap: 1100px;
  --radius: 14px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(43, 43, 43, .05), 0 2px 8px rgba(43, 43, 43, .05);
  --shadow-md: 0 2px 4px rgba(43, 43, 43, .04), 0 10px 28px rgba(43, 43, 43, .08);
  --shadow-lg: 0 4px 8px rgba(43, 43, 43, .05), 0 18px 44px rgba(43, 43, 43, .11);

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --step: clamp(3rem, 7.5vw, 5rem);

  /* faint diagonal "stitch thread" watermark */
  --stitch-motif: repeating-linear-gradient(
    -45deg,
    rgba(200, 155, 106, .10) 0 2px,
    transparent 2px 14px
  );
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;   /* clears the sticky header on jump links */
}

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

body {
  margin: 0;
  background-color: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--charcoal);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 .6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 5.6vw, 3.35rem); }
h2 { font-size: clamp(1.75rem, 4.2vw, 2.5rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.0625rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--tan-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--charcoal); }

ul, ol { margin: 0; padding: 0; }
address { font-style: normal; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Shared SVG illustration styling ---------- */
.svg-i {
  fill: none;
  stroke: currentColor;
  stroke-width: var(--sw, 1.5);
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}

/* ---------- Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section {
  position: relative;
  padding-block: var(--step);
  background-image: var(--stitch-motif);
}

.section--warm { background-color: var(--cream-warm); }

.has-deco { overflow: hidden; }

.section-head {
  max-width: 48rem;
  margin-bottom: 2.75rem;
}

.section-lede { font-size: 1.0625rem; color: var(--ink-soft); }

.subhead {
  font-size: 1.5rem;
  margin: 3.5rem 0 1.5rem;
  padding-top: 2rem;
  border-top: 1px dashed var(--line-warm);
}

.eyebrow {
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--tan-deep);
  margin: 0 0 .75rem;
}

.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;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -100%;
  z-index: 100;
  background: var(--charcoal);
  color: var(--cream);
  padding: .7rem 1.1rem;
  border-radius: 0 0 var(--radius) var(--radius);
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { top: 0; color: var(--cream); }

:focus-visible {
  outline: 3px solid var(--tan-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Decorative background illustrations ---------- */
.deco {
  position: absolute;
  color: var(--tan);
  opacity: .16;
  pointer-events: none;
  z-index: 0;
}
.deco--lg { width: 260px; height: 260px; --sw: .2; }
.deco--md { width: 170px; height: 170px; --sw: .3; }

.deco-tr { top: -46px; right: -60px; transform: rotate(12deg); }
.deco-tl { top: -40px; left: -66px; transform: rotate(-14deg); }
.deco-br { bottom: -56px; right: -50px; transform: rotate(-8deg); }
.deco-bl { bottom: -46px; left: -58px; transform: rotate(10deg); }

.section > .wrap { position: relative; z-index: 1; }

@media (max-width: 767px) {
  .deco--lg { width: 160px; height: 160px; --sw: .32; }
  .deco--md { width: 120px; height: 120px; --sw: .42; }
}

/* ---------- Stitch divider ---------- */
.stitch-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.25rem;
  color: var(--tan-deep);
}
.stitch-line {
  flex: 1;
  height: 2px;
  background-image: repeating-linear-gradient(
    to right, var(--tan) 0 10px, transparent 10px 20px
  );
  opacity: .8;
}
.stitch-mark { flex: none; width: 30px; height: 30px; opacity: .95; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .8rem 1.35rem;
  border-radius: 999px;
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease, color .18s ease;
}
.btn .ico { width: 1.15em; height: 1.15em; flex: none; }

.btn-primary { background: var(--charcoal); color: var(--cream); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: #171717; color: var(--cream); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-outline { background: transparent; color: var(--charcoal); border-color: var(--charcoal); }
.btn-outline:hover { background: var(--charcoal); color: var(--cream); transform: translateY(-2px); }

.btn-whatsapp { background: var(--wa); color: #fff; box-shadow: var(--shadow-sm); }
.btn-whatsapp:hover { background: var(--wa-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 235, 220, .93);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 68px;
  padding-block: .6rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  margin-right: auto;
  text-decoration: none;
}
.brand-logo { width: auto; height: 38px; transition: transform .2s ease; }
.brand:hover .brand-logo { transform: translateY(-2px); }

.brand-name {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1;
  color: var(--charcoal);
  white-space: nowrap;
}
.brand-suffix { font-size: .8em; color: var(--ink-soft); }

.nav { display: none; }

.nav-list { list-style: none; display: flex; align-items: center; gap: 1.5rem; }

.nav-list a {
  color: var(--charcoal);
  text-decoration: none;
  font-weight: 500;
  font-size: .9375rem;
  padding: .35rem 0;
  border-bottom: 1.5px solid transparent;
}
.nav-list a:hover { border-bottom-color: var(--tan); }

.header-cta { display: none; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: transparent;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  color: var(--charcoal);
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  display: block;
  width: 20px; height: 1.5px;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after  { position: absolute; top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after  { transform: translateY(-6px) rotate(-45deg); }

.nav.is-open {
  display: block;
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  padding: .5rem 1.25rem 1.25rem;
}
.nav.is-open .nav-list {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  max-width: var(--wrap);
  margin-inline: auto;
}
.nav.is-open .nav-list a {
  display: block;
  padding: .85rem 0;
  border-bottom: 1px solid var(--line);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.75rem, 7vw, 4.5rem);
  background-color: var(--cream);
  background-image:
    var(--stitch-motif),
    linear-gradient(180deg, rgba(245,235,220,.965) 0%, rgba(245,235,220,.955) 45%, rgba(245,235,220,.99) 100%),
    url("assets/hero-texture.jpg");
  background-repeat: repeat, no-repeat, no-repeat;
  background-position: 0 0, center, center 6%;
  background-size: auto, cover, cover;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero h1 { margin-bottom: .5em; }

.lede {
  font-size: clamp(1.0625rem, 2.1vw, 1.1875rem);
  color: var(--ink);
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2rem;
}

.hero-art-wrap { display: flex; justify-content: center; }
.hero-art {
  width: 100%;
  max-width: 330px;
  height: auto;
  color: var(--charcoal);
}

.trust-strip {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1rem;
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--tan);
  font-size: .9375rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.trust-strip li { display: flex; align-items: center; }
.trust-strip li:not(:last-child)::after {
  content: "·";
  margin-left: 1rem;
  color: var(--tan);
  font-weight: 700;
}

/* ---------- Service cards ---------- */
.cards {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.card {
  position: relative;
  display: flex;
  gap: 1.15rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--tan);
}
.card h3 { margin-bottom: .45em; }
.card p { color: var(--ink-soft); font-size: .9375rem; margin: 0; }

.card-ico {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid var(--line);
  color: var(--charcoal);
  transition: background-color .22s ease, border-color .22s ease, color .22s ease;
}
.card-ico .svg-i { width: 32px; height: 32px; }
.card:hover .card-ico { background: var(--charcoal); border-color: var(--charcoal); color: var(--cream); }

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

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

.about-note {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.9rem 1.6rem;
  box-shadow: var(--shadow-md);
}
.about-note h3 { margin-bottom: .5em; }
.about-note p { color: var(--ink-soft); font-size: .9375rem; }
.about-note .btn { margin-top: 1.25rem; }

.note-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--cream-warm);
  color: var(--charcoal);
}
.note-ico .svg-i { width: 30px; height: 30px; }

.reasons {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.reason {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.reason:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--tan); }
.reason h4 { margin-bottom: .4em; }
.reason p { font-size: .9375rem; color: var(--ink-soft); margin: 0; }

.reason-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  margin-bottom: .9rem;
  border-radius: 12px;
  background: var(--cream-warm);
  color: var(--charcoal);
}
.reason-ico .svg-i { width: 27px; height: 27px; }

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

/* ---------- How it works ---------- */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.step {
  position: relative;
  padding: 1.9rem 1.6rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease;
}
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.step h3 { margin-bottom: .45em; }
.step p { color: var(--ink-soft); font-size: .9375rem; margin: 0; }

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  margin-bottom: 1.1rem;
  border-radius: 50%;
  background: var(--charcoal);
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1;
}

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

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .9rem; max-width: 52rem; }

.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq-item:hover { border-color: var(--tan); box-shadow: var(--shadow-md); }
.faq-item[open] { border-color: var(--tan); }

.faq-item summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--charcoal);
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "";
  flex: none;
  margin-left: auto;
  width: 11px; height: 11px;
  border-right: 1.6px solid var(--tan-deep);
  border-bottom: 1.6px solid var(--tan-deep);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .22s ease;
}
.faq-item[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }

.faq-answer {
  margin: 0 1.35rem;
  padding: 1.1rem 0 1.35rem;
  border-top: 1px dashed var(--line-warm);
  color: var(--ink-soft);
  font-size: .9375rem;
}

@media (prefers-reduced-motion: reduce) {
  .faq-item summary::after { transition: none; }
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

.detail-list { margin: 0; display: grid; gap: 1.5rem; }

.detail dt {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 600;
  font-size: .8125rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--tan-deep);
  margin-bottom: .5rem;
}
.detail dd { margin: 0; color: var(--ink); }

.detail-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 9px;
  background: var(--cream);
  border: 1px solid var(--line);
  color: var(--charcoal);
  flex: none;
}
.detail-ico svg { width: 18px; height: 18px; }

.hours { border-collapse: collapse; font-size: 1rem; }
.hours th, .hours td {
  text-align: left;
  padding: 0 1.25rem .25rem 0;
  font-weight: 400;
  white-space: nowrap;
}
.hours th { color: var(--ink); }

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2rem;
}

.map {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--cream-deep);
}
.map iframe { display: block; width: 100%; height: 340px; border: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--charcoal);
  color: #DCD4C8;
  padding-block: var(--step) 1.5rem;
}
.site-footer a { color: #EFE4D4; }
.site-footer a:hover { color: #fff; }

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
}

.footer-logo {
  width: auto;
  height: 68px;
  /* charcoal artwork on a charcoal footer → flip to cream */
  filter: invert(1) brightness(1.06) sepia(.14) saturate(.75);
}
.footer-blurb {
  margin-top: 1rem;
  font-size: .875rem;
  color: #B8B0A5;
  max-width: 24rem;
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  color: #FBF3E7;
  margin: 0 0 .7em;
}

.footer-col p, .footer-col address { font-size: .9375rem; line-height: 1.75; }
.footer-links { margin-top: 1rem; color: #8E877D; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .35rem 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(245, 235, 220, .18);
  font-size: .8125rem;
  color: #B8B0A5;
}
.footer-bottom p { margin: 0; }
.footer-bottom a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(200, 155, 106, .55);
  text-underline-offset: 3px;
  transition: color .18s ease, text-decoration-color .18s ease;
}
.footer-bottom a:hover,
.footer-bottom a:focus-visible {
  color: #FBF3E7;
  text-decoration-color: var(--tan);
}

/* ---------- Floating WhatsApp (mobile) ---------- */
.wa-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  box-shadow: 0 6px 20px rgba(43, 43, 43, .28);
  transition: transform .2s ease, background-color .2s ease;
}
.wa-float svg { width: 28px; height: 28px; }
.wa-float:hover { background: var(--wa-dark); color: #fff; transform: translateY(-2px); }

@media (prefers-reduced-motion: reduce) { .wa-float:hover { transform: none; } }

/* ---------- Reveal on scroll ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

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

/* ==========================================================================
   Breakpoints
   ========================================================================== */

@media (max-width: 559px) {
  .hero {
    background-image:
      var(--stitch-motif),
      linear-gradient(180deg, rgba(245,235,220,.96) 0%, rgba(245,235,220,.95) 45%, rgba(245,235,220,.98) 100%),
      url("assets/hero-texture.jpg");
  }
  .hero-actions .btn { width: 100%; }
  .card { flex-direction: column; gap: .9rem; }
}

@media (max-width: 400px) {
  /* keep clear space between the brand lockup and the menu button */
  .brand-logo { height: 32px; }
  .brand-name { font-size: 1.0625rem; }
}

@media (min-width: 620px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .reasons { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .map iframe { height: 400px; }
  .hero-art { max-width: 400px; }
}

@media (min-width: 900px) {
  .nav { display: block; }
  .nav-toggle { display: none; }
  .header-cta { display: inline-flex; }
  .nav-list { margin-right: 1.5rem; }
  .brand-logo { height: 44px; }
  .brand-name { font-size: 1.375rem; }

  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 3rem; }
  .hero-art { max-width: 100%; }

  .about-grid { grid-template-columns: 1.55fr 1fr; gap: 3rem; }
  .reasons { grid-template-columns: repeat(4, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1.15fr; gap: 3rem; }
  .detail-list { grid-template-columns: repeat(2, 1fr); gap: 2rem; }

  .footer-inner { grid-template-columns: 1.2fr 1fr 1fr; gap: 3rem; align-items: start; }

  .wa-float { display: none; }   /* header CTA is visible on desktop */
}
