/* Sewing Lessons Austin
   Single stylesheet, no framework. Tokens ported from the Google Stitch design
   spec in design/stitch/. Sharp corners, hairline borders, no soft shadows. */

/* ---------- tokens ---------- */

:root {
  --indigo: #1f3a5f;
  --indigo-90: rgba(31, 58, 95, 0.9);
  --indigo-80: rgba(31, 58, 95, 0.8);
  --indigo-60: rgba(31, 58, 95, 0.6);
  --indigo-20: rgba(31, 58, 95, 0.2);
  --indigo-10: rgba(31, 58, 95, 0.1);

  /* Darkened from the Stitch #C4623D so small text and the focus ring clear
     WCAG AA against the muslin background. The button face keeps the original. */
  --terracotta: #c4623d;
  --terracotta-ink: #a44a28;
  --terracotta-dark: #9c4525;

  --sage: #7a8b5a;
  --sage-ink: #5c6a41;

  --muslin: #faf7f2;
  --muslin-deep: #f2ece2;
  --white: #ffffff;

  --font-head: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --font-body: Inter, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1200px;
  --gutter: 2rem;
  --radius: 4px;
  --hairline: 1px solid var(--indigo-10);
}

/* ---------- reset ---------- */

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

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

body {
  margin: 0;
  background: var(--muslin);
  color: var(--indigo);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--terracotta-ink);
}

a:hover {
  color: var(--terracotta-dark);
}

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

/* ---------- type ---------- */

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

h4 {
  font-size: 1.125rem;
}

p {
  margin: 0 0 1rem;
}

.overline {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sage-ink);
  margin: 0 0 1rem;
}

.lede {
  font-size: 1.125rem;
  color: var(--indigo-80);
  max-width: 42rem;
}

/* ---------- layout ---------- */

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section {
  padding: 4rem 0;
}

.band-muslin {
  background: var(--muslin-deep);
}

.band-indigo {
  background: var(--indigo);
  color: var(--white);
}

.band-indigo h2,
.band-indigo h3 {
  color: var(--white);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--indigo);
  color: var(--white);
  padding: 0.75rem 1rem;
  z-index: 200;
}

.skip-link:focus {
  left: 0;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--muslin);
  border-bottom: var(--hairline);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.brand {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--indigo);
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}

.nav a {
  color: var(--indigo);
  text-decoration: none;
  font-weight: 500;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--terracotta-ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.tel-link {
  color: var(--indigo);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

.tel-link:hover {
  color: var(--terracotta-ink);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  border: 0;
  border-radius: var(--radius);
  padding: 0.9rem 1.6rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--terracotta);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--terracotta-dark);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--indigo);
  border: 1px solid var(--indigo-20);
}

.btn-ghost:hover {
  border-color: var(--indigo);
  color: var(--indigo);
}

.btn-block {
  display: block;
  width: 100%;
}

/* ---------- hero ---------- */

.hero {
  padding: 5rem 0;
  border-bottom: var(--hairline);
}

.hero .wrap {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 4rem;
  align-items: center;
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  margin-top: 2rem;
}

/* ---------- trust bar ---------- */

.trust-bar {
  background: var(--indigo);
  color: var(--white);
  padding: 0;
}

.trust-bar ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}

.trust-bar li {
  padding: 1.5rem 1rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.trust-bar li:first-child {
  border-left: 0;
}

/* ---------- cards ---------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  align-items: center;
}

.card {
  background: var(--white);
  border: var(--hairline);
  border-radius: var(--radius);
  padding: 2rem;
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--indigo-80);
  margin-bottom: 1rem;
}

.card-link {
  font-weight: 600;
  text-decoration: none;
}

.card-link::after {
  content: " \2192";
}

/* ---------- pillars ---------- */

.pillar-num {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 800;
  color: var(--indigo-20);
  line-height: 1;
  margin-bottom: 0.5rem;
}

/* ---------- forms ---------- */

.form-card {
  background: var(--white);
  border: var(--hairline);
  border-radius: var(--radius);
  padding: 2rem;
}

.form-card h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--indigo);
  background: var(--muslin);
  border: 1px solid var(--indigo-20);
  border-radius: var(--radius);
}

.field textarea {
  min-height: 6rem;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--terracotta-ink);
  outline: 2px solid var(--terracotta-ink);
  outline-offset: 0;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  font-size: 0.8125rem;
  color: var(--indigo-60);
  margin: 0.75rem 0 0;
}

.form-status {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius);
  font-weight: 600;
}

.form-status[data-state="error"] {
  background: #fdeeea;
  color: #8c3a1c;
  border: 1px solid #e0b3a3;
}

.form-done {
  background: var(--white);
  border: var(--hairline);
  border-radius: var(--radius);
  padding: 2rem;
}

/* inline band form */

.form-inline {
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  gap: 1rem;
  align-items: end;
}

/* ---------- reviews ---------- */

.stars {
  color: var(--terracotta-ink);
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.review-cite {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--indigo-60);
  font-style: normal;
}

/* ---------- lists ---------- */

.link-cols {
  columns: 3;
  column-gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.link-cols li {
  break-inside: avoid;
  margin-bottom: 0.75rem;
}

.tick {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.tick li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.6rem;
}

.tick li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--sage-ink);
  font-weight: 700;
}

/* ---------- faq ---------- */

.faq details {
  border-bottom: var(--hairline);
  padding: 1.25rem 0;
}

.faq summary {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-size: 1.5rem;
  line-height: 1;
  color: var(--terracotta-ink);
}

.faq details[open] summary::after {
  content: "\2013";
}

.faq details p {
  margin: 1rem 0 0;
  color: var(--indigo-80);
}

/* ---------- breadcrumbs ---------- */

.crumbs {
  font-size: 0.875rem;
  color: var(--indigo-60);
  padding: 1.25rem 0 0;
}

.crumbs a {
  color: var(--indigo-60);
}

.crumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}

.crumbs li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--indigo-20);
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--indigo);
  color: rgba(255, 255, 255, 0.82);
  padding: 4rem 0 2rem;
}

.site-footer h2 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.6rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  margin-top: 3rem;
  padding-top: 1.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
}

/* ---------- sticky mobile cta ---------- */

.sticky-cta {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 150;
  background: var(--indigo);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.6rem;
  gap: 0.6rem;
}

.sticky-cta .btn {
  flex: 1;
  padding: 0.85rem 1rem;
}

.sticky-cta .btn-call {
  background: var(--white);
  color: var(--indigo);
}

/* ---------- responsive ---------- */

@media (max-width: 1024px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-cols {
    grid-template-columns: 1fr 1fr;
  }

  .form-inline {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --gutter: 1.25rem;
  }

  section {
    padding: 3rem 0;
  }

  .hero {
    padding: 3rem 0;
  }

  .nav,
  .header-actions .btn {
    display: none;
  }

  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .trust-bar ul {
    grid-template-columns: 1fr 1fr;
  }

  .trust-bar li:nth-child(odd) {
    border-left: 0;
  }

  .trust-bar li:nth-child(n + 3) {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }

  .link-cols {
    columns: 2;
  }

  .form-inline {
    grid-template-columns: 1fr;
  }

  .sticky-cta {
    display: flex;
  }

  body {
    padding-bottom: 4.5rem;
  }
}

@media (max-width: 480px) {
  .link-cols {
    columns: 1;
  }

  .trust-bar ul {
    grid-template-columns: 1fr;
  }

  .trust-bar li {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }

  .trust-bar li:first-child {
    border-top: 0;
  }
}

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