/* ============================================================
   Fam's Stitch House — styles.css
   Bold, modern, streetwear-adjacent. Responsive desktop + phone.
   ============================================================ */

:root {
  --ink: #111111;
  --gold: #C8922A;
  --off-white: #F5F4F0;
  --warm-gray: #E0DAD0;
  --text-gray: #444444;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  --pad-x: 48px;         /* horizontal padding on desktop sections */
  --border: 2px solid var(--ink);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--off-white);
  color: var(--ink);
  overflow-x: hidden;               /* never scroll horizontally */
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* offset anchored sections so they don't hide under the sticky nav */
[id] { scroll-margin-top: 76px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: none;
  cursor: pointer;
  border-radius: 0;
  transition: opacity .2s, background .2s, color .2s;
}
.btn-dark { background: var(--ink); color: var(--off-white); padding: 12px 26px; font-size: 11px; }
.btn-gold { background: var(--gold); color: #fff; padding: 16px 36px; font-size: 11px; letter-spacing: 3px; }
.btn-dark:hover, .btn-gold:hover { opacity: .88; }

/* ============================================================
   NAV (sticky, hamburger on mobile)
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px var(--pad-x);
  background: var(--off-white);
  border-bottom: var(--border);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 700;
  letter-spacing: 4px; text-transform: uppercase;
}
.nav-logo span { background: var(--ink); color: var(--off-white); padding: 0 6px; }

.nav-links { display: flex; gap: 32px; align-items: center; list-style: none; }

/* honeypot spam trap — hidden from real users */
.hp { display: none !important; }
.nav-links a {
  font-family: var(--font-display);
  color: var(--text-gray);
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase; font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: var(--ink); }

.nav-right { display: flex; align-items: center; gap: 20px; }

/* Hamburger — hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column; justify-content: space-between;
  width: 26px; height: 18px;
  background: none; border: none; cursor: pointer; padding: 0;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%;
  background: var(--ink); transition: transform .25s, opacity .25s;
}

/* ============================================================
   HERO (full-width dark landing statement)
   ============================================================ */
.hero {
  background: var(--ink);
  border-bottom: var(--border);
  min-height: 90vh;
  display: flex; align-items: center; justify-content: center;
  padding: 96px var(--pad-x);
  position: relative; overflow: hidden;
}
/* subtle stitch-line texture on the dark hero */
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0 1px, transparent 1px 64px);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: 880px; width: 100%;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px;
}
.hero-tags { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.tag {
  border: 1px solid #333; color: #888;
  padding: 5px 14px; font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  font-family: var(--font-display);
}
.tag.active { background: var(--gold); border-color: var(--gold); color: #fff; }

.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(46px, 9vw, 108px);
  font-weight: 700; line-height: .95;
  color: var(--off-white); text-transform: uppercase; letter-spacing: -2px;
}
.hero-h1 span { color: var(--gold); display: block; }

.hero-p { color: #999; font-size: 15px; line-height: 1.7; max-width: 520px; }

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }

/* outline button variant (used on dark hero) */
.btn-outline {
  background: transparent; color: var(--off-white);
  border: 1px solid #555; padding: 15px 34px; font-size: 11px; letter-spacing: 3px;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); opacity: 1; }

/* ============================================================
   MARQUEE (gold scrolling ticker)
   ============================================================ */
.marquee {
  background: var(--gold);
  border-top: var(--border); border-bottom: var(--border);
  padding: 14px 0; overflow: hidden; white-space: nowrap;
}
.marquee-inner {
  display: inline-flex; gap: 48px;
  animation: marquee 18s linear infinite;
}
.marquee-item {
  font-family: var(--font-display);
  font-size: 13px; font-weight: 700; letter-spacing: 3px;
  color: #fff; text-transform: uppercase; flex-shrink: 0;
}
.marquee-dot { color: rgba(255,255,255,.5); flex-shrink: 0; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-inner { animation: none; } }

/* ============================================================
   WORK GRID (4-col portfolio)
   ============================================================ */
.section { padding: 80px var(--pad-x); }
.work-header {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 40px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 48px); font-weight: 700;
  text-transform: uppercase; letter-spacing: -1px;
}
.section-title span { color: var(--gold); }
.link-arrow {
  font-family: var(--font-display);
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: #888; border-bottom: 1px solid #ccc; padding-bottom: 2px;
}

.work-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; }
.work-item {
  background: var(--warm-gray); aspect-ratio: 3/4;
  display: flex; align-items: flex-end; padding: 16px;
  position: relative; overflow: hidden; border: 1px solid #D0CAC0;
  cursor: pointer; transition: transform .2s;
}
.work-item:hover { transform: scale(1.01); }
.work-item .placeholder {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.work-item:nth-child(2) { background: var(--ink); }
.work-item:nth-child(3) { background: var(--gold); }
.work-meta { position: relative; z-index: 2; }
.work-tag { font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,.6); }
.work-name { font-family: var(--font-display); font-size: 14px; font-weight: 600; color: #fff; margin-top: 4px; }
/* tan cards need dark text */
.work-item:nth-child(1) .work-tag,
.work-item:nth-child(4) .work-tag { color: #888; }
.work-item:nth-child(1) .work-name,
.work-item:nth-child(4) .work-name { color: #333; }

/* ============================================================
   SERVICES LIST
   ============================================================ */
.services {
  padding: 0 var(--pad-x) 80px;
  display: grid; grid-template-columns: 1fr 2fr; gap: 60px; align-items: start;
}
.services-left h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 42px); font-weight: 700;
  text-transform: uppercase; letter-spacing: -1px; line-height: 1.1;
}
.services-left p { color: var(--text-gray); font-size: 14px; line-height: 1.7; margin-top: 20px; }
.services-left .btn { margin-top: 32px; }

.service-row {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 24px 0; border-bottom: 1px solid #ddd; cursor: pointer;
}
.service-row:first-child { border-top: 1px solid #ddd; }
.service-row-left { display: flex; align-items: center; gap: 20px; }
.service-num { font-family: var(--font-display); font-size: 11px; color: var(--gold); font-weight: 700; }
.service-name { font-family: var(--font-display); font-size: clamp(16px, 2vw, 18px); font-weight: 600; }
.service-right { display: flex; align-items: center; gap: 16px; }
.service-price { font-family: var(--font-display); font-size: 13px; color: #888; }
.service-arrow { font-size: 20px; color: #ccc; transition: color .2s; }
.service-row:hover .service-arrow { color: var(--gold); }

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  padding: 80px var(--pad-x);
  display: grid; grid-template-columns: 1fr 2fr; gap: 60px; align-items: start;
  border-top: var(--border);
}
.about-lead {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 26px); font-weight: 500;
  color: var(--ink); line-height: 1.35; margin-bottom: 20px;
}
.about-right p { color: var(--text-gray); font-size: 15px; line-height: 1.8; margin-bottom: 16px; max-width: 620px; }
.about-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px;
  margin-top: 32px; border: var(--border); background: var(--ink);
}
.stat { background: var(--off-white); padding: 20px 18px; }
.stat strong {
  display: block; font-family: var(--font-display); font-size: 22px; font-weight: 700;
  color: var(--ink); letter-spacing: -1px;
}
.stat span { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: #888; }

/* ============================================================
   QUOTE FORM (dark section)
   ============================================================ */
.quote {
  background: var(--ink);
  padding: 80px var(--pad-x);
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start;
}
.quote-left h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 48px); font-weight: 700;
  color: var(--off-white); text-transform: uppercase; letter-spacing: -1px; line-height: 1.1;
}
.quote-left p { color: #888; font-size: 14px; margin-top: 16px; line-height: 1.7; }

/* contact details under the heading */
.quote-contact { margin-top: 36px; display: flex; flex-direction: column; gap: 20px; }
.quote-contact-item { display: block; }
.quote-contact-label {
  display: block; font-family: var(--font-display);
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 4px;
}
.quote-contact-value {
  display: block; font-family: var(--font-display); font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 600; color: var(--off-white); letter-spacing: -.5px; transition: color .2s;
  word-break: break-word;
}
.quote-contact-item:hover .quote-contact-value { color: var(--gold); }

.quote-form { display: flex; flex-direction: column; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.input, .field-file {
  background: #1a1a1a; border: 1px solid #333; color: var(--off-white);
  padding: 14px 16px; font-size: 14px; font-family: var(--font-body);
  outline: none; border-radius: 0; width: 100%;
}
.input::placeholder { color: #555; }
.input:focus, .field-file:focus { border-color: var(--gold); }
textarea.input { resize: vertical; min-height: 96px; }
.field-file { color: #777; font-family: var(--font-body); cursor: pointer; }
.field-file::-webkit-file-upload-button {
  background: #2a2a2a; color: #ccc; border: none; padding: 8px 14px; margin-right: 12px;
  font-family: var(--font-display); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; cursor: pointer;
}
.form-note { font-size: 11px; color: #555; }
.quote-form .btn { margin-top: 4px; width: 100%; }

/* ============================================================
   THANK-YOU PAGE (thanks.html)
   ============================================================ */
.thanks {
  min-height: 100vh; background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 96px var(--pad-x);
  position: relative; overflow: hidden;
}
.thanks::before {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0 1px, transparent 1px 64px);
  pointer-events: none;
}
.thanks-logo {
  position: absolute; top: 28px; left: var(--pad-x); z-index: 2;
  font-family: var(--font-display); font-size: 16px; font-weight: 700;
  letter-spacing: 4px; text-transform: uppercase; color: var(--off-white);
}
.thanks-logo span { background: var(--off-white); color: var(--ink); padding: 0 6px; }
.thanks-inner {
  position: relative; z-index: 1; max-width: 640px;
  display: flex; flex-direction: column; align-items: center; gap: 24px;
}
.thanks-eyebrow {
  font-family: var(--font-display); font-size: 11px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--gold);
}
.thanks h1 {
  font-family: var(--font-display); font-size: clamp(48px, 9vw, 96px);
  font-weight: 700; line-height: .95; color: var(--off-white);
  text-transform: uppercase; letter-spacing: -2px;
}
.thanks h1 span { color: var(--gold); display: block; }
.thanks p { color: #999; font-size: 15px; line-height: 1.7; max-width: 460px; }
.thanks-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.thanks-contact {
  display: flex; gap: 12px 40px; flex-wrap: wrap; justify-content: center;
  margin-top: 24px; padding-top: 24px; border-top: 1px solid #2a2a2a; width: 100%;
}
.thanks-contact a {
  font-family: var(--font-display); font-size: 14px; font-weight: 600;
  color: var(--off-white); letter-spacing: -.3px; transition: color .2s;
}
.thanks-contact a:hover { color: var(--gold); }
.thanks-contact small {
  display: block; font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 4px; font-weight: 400;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #0A0A0A; color: var(--off-white);
  padding: 48px var(--pad-x);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 24px; border-top: 2px solid #1a1a1a;
}
.footer-logo { font-family: var(--font-display); font-size: 16px; font-weight: 700; letter-spacing: 4px; text-transform: uppercase; }
.footer-logo span { background: var(--off-white); color: var(--ink); padding: 0 6px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: #666; transition: color .2s; }
.footer-links a:hover { color: var(--off-white); }
.footer-copy { font-size: 11px; color: #444; }

/* ============================================================
   PAYMENTS ("Ways to Pay")
   ============================================================ */
.pay { padding: 80px var(--pad-x); border-top: var(--border); }
.pay-inner { max-width: 860px; margin: 0 auto; text-align: center; }
.pay-sub { color: var(--text-gray); font-size: 15px; line-height: 1.7; margin: 16px auto 40px; max-width: 520px; }
.pay-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pay-card {
  display: flex; align-items: center; gap: 16px; text-align: left;
  padding: 22px 24px; border: var(--border); background: #fff;
  transition: transform .2s, box-shadow .2s;
}
.pay-card:hover { transform: translateY(-2px); box-shadow: 6px 6px 0 var(--gold); }
.pay-icon { width: 48px; height: 48px; flex-shrink: 0; }
.pay-icon svg { width: 100%; height: 100%; display: block; }
.pay-meta { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.pay-name { font-family: var(--font-display); font-weight: 700; font-size: 16px; text-transform: uppercase; letter-spacing: 1px; }
.pay-handle { font-family: var(--font-body); font-size: 14px; color: var(--text-gray); margin-top: 2px; word-break: break-word; }
.pay-arrow { font-size: 22px; color: #ccc; transition: color .2s; flex-shrink: 0; }
.pay-card:hover .pay-arrow { color: var(--gold); }

/* ============================================================
   FLOATING "TEXT US" BUTTON
   ============================================================ */
.text-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 45;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--gold); color: #fff;
  padding: 14px 20px; border: 2px solid var(--ink);
  font-family: var(--font-display); font-size: 12px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  transition: transform .2s, box-shadow .2s;
}
.text-fab:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,.32); }
.text-fab svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ============================================================
   SCROLL REVEAL (only active when JS + motion allowed)
   ============================================================ */
.js-reveal .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE — TABLET (<= 900px)
   ============================================================ */
@media (max-width: 900px) {
  :root { --pad-x: 28px; }

  /* Nav collapses to hamburger */
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; inset: 0 0 0 auto;
    width: min(78vw, 320px); height: 100vh;
    background: var(--ink);
    flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 28px; padding: 48px;
    transform: translateX(100%); transition: transform .3s ease;
    z-index: 60;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { color: var(--off-white); font-size: 16px; }
  .nav-links a:hover { color: var(--gold); }
  .nav-backdrop {
    position: fixed; inset: 0; background: rgba(0,0,0,.5);
    opacity: 0; visibility: hidden; transition: opacity .3s; z-index: 55;
  }
  .nav-backdrop.show { opacity: 1; visibility: visible; }
  /* hamburger -> X when open */
  .nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  /* Hero */
  .hero { padding: 72px 28px; min-height: 82vh; }

  /* Work grid: 4 -> 2 cols */
  .work-grid { grid-template-columns: repeat(2, 1fr); }

  /* Services stack */
  .services { grid-template-columns: 1fr; gap: 32px; }

  /* About stacks */
  .about { grid-template-columns: 1fr; gap: 24px; }

  /* Quote stacks */
  .quote { grid-template-columns: 1fr; gap: 40px; }

  .section { padding: 56px var(--pad-x); }
}

/* ============================================================
   RESPONSIVE — PHONE (<= 600px)
   ============================================================ */
@media (max-width: 600px) {
  .work-grid { grid-template-columns: 1fr; }   /* 1 col */
  .field-row { grid-template-columns: 1fr; }    /* stack name/business, service/qty */
  .hero-cta { flex-direction: column; align-self: stretch; }
  .hero-cta .btn { width: 100%; text-align: center; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .pay-methods { grid-template-columns: 1fr; }
  .footer { flex-direction: column; align-items: flex-start; }
  .nav-logo { font-size: 15px; letter-spacing: 2px; }
  /* compact icon-only FAB on phones */
  .text-fab { right: 16px; bottom: 16px; padding: 14px; }
  .text-fab span { display: none; }
  .text-fab svg { width: 22px; height: 22px; }
}
