/* =============================================================================
   TACORITO — responsive.css
   -----------------------------------------------------------------------------
   Why this file exists
   The original export was a fixed 1440px Figma artboard (absolute positions,
   fixed pixel heights, one <p> per line). This file turns it into a fluid layout.

   How it works
   - It is NOT inside a cascade @layer, so it beats every Tailwind utility in
     style.css without !important. Do not wrap it in @layer.
   - It targets stable `tc-*` hook classes added to index.html. Original classes
     and data-name attributes are untouched.

   Breakpoints (max-width, so they stack top-down)
     >= 1100px   desktop : the original 12-column design, now fluid
     <= 1099px   tablet  : single-column sections, 2-up cards, collapsed nav
     <=  767px   phone   : 1-up cards, tighter spacing
     <=  479px   small   : checklist/footer reflow
   1099px is the breakpoint the original stylesheet already used.

   Load order: style.css -> responsive.css -> animations.css
   ========================================================================== */

/* ---- 0. Tokens ------------------------------------------------------------ */
:root {
  --tc-header-h: 5rem;                                              /* 80px  */
  --tc-gutter: clamp(1.25rem, calc(-0.143rem + 5.714vw), 5rem);     /* 20 -> 80px */
  --tc-section-y: clamp(4.5rem, calc(2.83rem + 6.857vw), 9rem);     /* 72 -> 144px */
  --tc-container-px: clamp(0rem, calc((100vw - 48rem) / 12), 1rem); /* 0 -> 32px */
  --tc-lime: #9ac93b;
  --tc-ink: #110f0d;
}

html { scroll-padding-top: var(--tc-header-h); }

/* ---- 1. Page frame: replaces the 1440px zoom hack --------------------------- */
.tc-page {
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;            /* fallback */
}
@supports (overflow: clip) {
  .tc-page { overflow: clip; } /* clip (unlike hidden) keeps position:sticky working */
}
.tc-main, .tc-footer { position: static; width: 100%; }
.tc-main:focus { outline: none; }
address { font-style: normal; }
.tc-section { padding-inline: var(--tc-gutter); }
.tc-section--menu, .tc-section--signature, .tc-section--story,
.tc-section--build, .tc-section--reviews, .tc-section--visit { padding-block: var(--tc-section-y); }
.tc-section--reviews { padding-inline: clamp(1.25rem, calc(-0.89rem + 8.76vw), 7rem); }
.tc-section--promo { padding-inline: 0; }
.tc-banner { padding-inline: var(--tc-gutter); padding-block: clamp(3.5rem, calc(2rem + 6.4vw), 7rem); }

.tc-container {
  width: 100%;
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: var(--tc-container-px);
}

/* ---- 2. Generic "un-Figma" resets ------------------------------------------- */
.tc-fixed-h { height: auto; min-height: 0; }   /* fixed pixel heights -> content height */
.tc-fixed-w { width: 100%; }                   /* fixed pixel widths  -> fluid (max-w-* classes still cap them) */
.tc-anchor {                                   /* Figma "centred" text: absolute + translate -> normal flow */
  position: static; inset: auto; transform: none; translate: none; width: auto; height: auto;
}
.tc-wrap { white-space: normal; }
.tc-photo { height: auto; aspect-ratio: var(--tc-ar, 1); }
.tc-grid {
  height: auto;
  grid-template-rows: none;
  align-items: start;
}

/* ---- 3. Fluid type scale (Figma px -> clamp, 390px phone to 1440px design) --- */
.tc-fs-316_8 { font-size: clamp(9.375rem, calc(5.503rem + 15.886vw), 19.8rem); }
.tc-fs-316_8 > p { line-height: 1; }
.tc-fs-145_6 { font-size: clamp(4.875rem, calc(3.306rem + 6.438vw), 9.1rem); }
.tc-fs-145_6 > p { line-height: .92; }
.tc-fs-124 { font-size: clamp(4rem, calc(2.607rem + 5.714vw), 7.75rem); }
.tc-fs-124 > p { line-height: .92; }
.tc-fs-96 { font-size: clamp(3.5rem, calc(2.571rem + 3.81vw), 6rem); }
.tc-fs-96 > p { line-height: 1; }
.tc-fs-88 { font-size: clamp(3rem, calc(2.071rem + 3.81vw), 5.5rem); }
.tc-fs-88 > p { line-height: .9; }
.tc-fs-48 { font-size: clamp(2.25rem, calc(1.971rem + 1.143vw), 3rem); }
.tc-fs-48 > p { line-height: .95; }
.tc-fs-36 { font-size: clamp(1.625rem, calc(1.393rem + .952vw), 2.25rem); }
.tc-fs-36 > p { line-height: 1.25; }
.tc-fs-30 { font-size: clamp(1.5rem, calc(1.361rem + .571vw), 1.875rem); }
.tc-fs-30 > p { line-height: 1.25; }
.tc-fs-24 { font-size: clamp(1.25rem, calc(1.157rem + .381vw), 1.5rem); }
.tc-fs-24 > p { line-height: 1.35; }
.tc-h1, .tc-h2, .tc-h3 { overflow-wrap: break-word; }

/* ---- 4. Skip link + header + navigation ------------------------------------- */
.tc-skip {
  position: absolute; z-index: 100; left: 1rem; top: 1rem;
  padding: .75rem 1rem; background: var(--tc-lime); color: var(--tc-ink);
  font: 700 .875rem/1 "Instrument Sans:Bold", Arial, sans-serif;
  transform: translateY(-200%);
}
.tc-skip:focus { transform: none; }

.tc-header {
  position: sticky; top: 0; z-index: 50;
  width: 100%;
  padding-inline: var(--tc-gutter);
  align-items: stretch;
}
.tc-header__inner {
  height: auto; min-height: var(--tc-header-h);
  margin-inline: auto;
  padding-inline: var(--tc-container-px);
  gap: 1.5rem;
  justify-content: space-between;
  position: relative;
}
.tc-header .tc-logo { width: clamp(9rem, 22vw, 13.5rem); height: auto; aspect-ratio: 216 / 105; flex: none; }
.tc-nav { margin-inline: auto; }
.tc-nav__list { gap: clamp(1rem, 2.2vw, 2rem); }
.tc-nav__item { width: auto; height: auto; }
.tc-nav__link { position: static; padding-block: .375rem; }
.tc-header__cta { margin-left: 0; }
.tc-nav-toggle[hidden] { display: none; }
.tc-nav-toggle { display: none; }

/* click target = whole button, not just the label text */
.tc-btn:not(a) > a { position: static; }
.tc-btn:not(a) > a::after { content: ""; position: absolute; inset: 0; }

/* ---- 5. Hero ---------------------------------------------------------------- */
.tc-grid--hero {
  padding-top: clamp(2.5rem, 6vw, 5rem);
  padding-bottom: clamp(3.5rem, 8vw, 7rem);
  column-gap: clamp(1rem, 2vw, 1.5rem);
}
.tc-hero__text { padding-top: clamp(1rem, 2.8vw, 2.5rem); min-width: 0; }
.tc-hero__photo-col { height: auto; align-self: start; padding-top: clamp(0rem, 6vw, 5.4rem); }
.tc-hero__photo {
  position: relative; inset: auto;
  /* overlap grows from ~0 at 1100px to the design's 108px at 1440px, so it never covers the title */
  margin-left: clamp(-6.8rem, calc(-8px - (100vw - 1100px) * .294), -.5rem);
  width: auto;
}
.tc-hero__photo > div:first-child { width: 100%; height: auto; }
.tc-hero__photo > div:first-child > div,
.tc-sig__photo-col > div:first-child > div { width: 100%; }   /* rotate wrappers are flex-none: give them the column width */
.tc-hero__photo .tc-photo { --tc-ar: 588.66 / 735.83; }
.tc-ul { position: relative; width: fit-content; max-width: 100%; height: auto; }
.tc-lead { max-width: 28rem; }
.tc-lead > .tc-tag { position: static; margin-top: .5rem; width: fit-content; }
.tc-actions { row-gap: 1rem; }

/* ---- 6. Menu ---------------------------------------------------------------- */
.tc-menu-head { align-items: end; }
.tc-cards {
  position: static; height: auto; width: 100%;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem; align-items: start;
}
.tc-cards__item { position: static; inset: auto; width: auto; }
.tc-cards__item:nth-child(even) { margin-top: 3rem; }     /* the zig-zag from the design */
.tc-card .tc-photo { --tc-ar: 1; }
.tc-card { height: auto; }

/* 4-up cards in the narrow desktop range: scale card titles so long words never split */
@media (min-width: 1100px) and (max-width: 1359.98px) {
  .tc-card .tc-fs-48 { font-size: calc(5.4vw - 1.65rem); }
}

/* ---- 7. Signature ----------------------------------------------------------- */
.tc-sig__text { min-width: 0; }
.tc-sig__photo-col .tc-photo { --tc-ar: 588 / 735; }
.tc-sig__photo-col > div:first-child { width: 100%; height: auto; }
.tc-watermark { max-width: none; }
.tc-checklist {
  height: auto; grid-template-rows: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem 1.5rem;
}
.tc-checklist__item { grid-column: auto; grid-row: auto; height: auto; display: flex; align-items: flex-start; gap: .75rem; }
.tc-checklist__item > * { position: static; inset: auto; transform: none; translate: none; flex: none; }
.tc-checklist__item > .tc-anchor { flex: 1 1 auto; min-width: 0; padding-top: 2px; }
.tc-stats { flex-wrap: wrap; justify-content: flex-start; }
.tc-stats > div { flex: 1 1 6rem; }

/* ---- 8. Story --------------------------------------------------------------- */
.tc-story__text { min-width: 0; }
.tc-indent { padding-left: clamp(0rem, calc(-1rem + 5vw), 3.43rem); }
.tc-ul--story { --ind: clamp(0rem, calc(-2rem + 10vw), 6.86rem); padding-left: var(--ind); }
.tc-ul--story > [data-name^="variant"] { left: calc(var(--ind) * .51); }
.tc-story__cols { height: auto; flex-wrap: wrap; align-items: flex-start; gap: 1.5rem 2rem; }
@media (min-width: 1100px) { .tc-story__cols { padding-right: 2.5rem; } }
.tc-story__cols > * { flex: 1 1 15rem; padding-bottom: 0; }
.tc-story__photo-col { height: auto; }
.tc-story__photo-col > div { position: relative; inset: auto; height: auto; }
.tc-story__photo { position: relative; inset: auto; width: 100%; height: auto; }
.tc-story__photo .tc-photo { --tc-ar: 474 / 592.5; }
.tc-quote { position: relative; inset: auto; margin: -6rem 2.5rem 0 -6rem; width: auto; }

/* ---- 9. Build your own ------------------------------------------------------ */
.tc-build__summary { padding-bottom: 0; }
.tc-step__head { align-items: flex-end; flex-wrap: wrap; gap: .5rem 1rem; }
.tc-step__title { display: flex; align-items: baseline; gap: .75rem; width: auto; height: auto; }
.tc-step__title > * { position: static; inset: auto; transform: none; translate: none; width: auto; }
.tc-chips { height: auto; display: flex; flex-wrap: wrap; gap: .75rem; }
.tc-chips > * { position: static; inset: auto; }
.tc-build__summary [data-name="p.mt-8"] { height: auto; }

/* ---- 10. Promo marquee + banner -------------------------------------------- */
.tc-marquee { overflow: hidden; padding-inline: 0; }
.tc-marquee__track { width: max-content; flex-wrap: nowrap; }
.tc-marquee__group { display: flex; flex: none; }
.tc-marquee__item { padding-inline: 1.5rem; }
.tc-banner__grid { align-items: center; }

/* ---- 11. Reviews ------------------------------------------------------------ */
.tc-reviews__viewport { height: auto; overflow: visible; }
.tc-reviews__track {
  position: static; inset: auto; height: auto;
  display: flex; gap: 1rem; align-items: stretch;
  padding: 1rem .75rem 1.5rem; margin-inline: -.75rem;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: .75rem;
  scrollbar-width: thin;
}
.tc-review { flex: 1 0 17rem; height: auto; padding-left: 0; scroll-snap-align: start; min-width: 0; }
.tc-review__card { flex: 1 1 auto; height: auto; }
.tc-review__card > *, .tc-review__card blockquote { flex-basis: auto; min-height: 0; }  /* Figma used flex-basis:0, which collapses in an auto-height column */
.tc-review__card > :nth-child(2) { flex-grow: 1; }
.tc-reviews__head > :first-child { flex-shrink: 1; min-width: 0; max-width: 100%; }
.tc-reviews__nav { display: none; }
.tc-js .tc-reviews__nav { display: flex; }
.tc-js .tc-reviews__nav[hidden] { display: none; }
.tc-reviews__btn { cursor: pointer; }
.tc-reviews__btn[disabled] { opacity: .5; cursor: default; }

/* ---- 12. Visit -------------------------------------------------------------- */
.tc-visit__text { min-width: 0; }
.tc-ul--visit { height: auto; }
.tc-ul--visit > [data-name^="variant"] { bottom: -.75rem; }
.tc-visit__info { flex-wrap: wrap; justify-content: flex-start; gap: 2rem 2.5rem; }
.tc-visit__info > * { flex: 1 1 13rem; padding-bottom: 0; }
.tc-visit__cta-col { min-width: 0; }

/* ---- 13. Footer ------------------------------------------------------------- */
.tc-footer .tc-grid { padding-block: clamp(3rem, 6vw, 5rem); }
.tc-footer__col { padding-bottom: 0; min-width: 0; }
.tc-logo--footer { width: clamp(14rem, 60vw, 21rem); height: auto; aspect-ratio: 337 / 164; }
.tc-footer [data-name="div.border-t"] { padding-inline: var(--tc-gutter); }

/* ---- 14. Focus visibility on light + lime surfaces -------------------------- */
.tc-section--menu :focus-visible, .tc-section--story :focus-visible,
.tc-section--build :focus-visible, .tc-section--reviews :focus-visible,
.tc-cta-card :focus-visible { outline-color: var(--tc-ink); }

/* ============================== TABLET <= 1099px ============================ */
@media (max-width: 1099.98px) {
  .tc-grid { grid-template-columns: minmax(0, 1fr); row-gap: clamp(2.5rem, 6vw, 4rem); }
  .tc-col { grid-column: 1 / -1; grid-row: auto; }
  .tc-hero__photo-col { padding-top: 0; }
  .tc-hero__photo { max-width: 34rem; margin: 0 auto; width: calc(100% - 2rem); position: relative; left: 1rem; }
  .tc-menu-head { align-items: start; row-gap: 1.5rem; }
  .tc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tc-sig__photo-col { padding-bottom: 0; padding-left: 1.5rem; max-width: 36rem; width: 100%; margin-inline: auto; }
  .tc-sig__text { padding-left: 0; padding-top: 0; }
  .tc-story__photo-col { max-width: 34rem; width: 100%; margin-inline: auto; }
  .tc-build__summary { max-width: 32rem; }
  .tc-visit__cta-col { padding-top: 0; }
  .tc-banner__grid > :last-child { justify-content: flex-start; }
  .tc-footer__brand, .tc-footer__col:last-child { grid-column: 1 / -1; }
  .tc-grid--footer { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* collapsed navigation (only when JS has enabled the toggle; without JS the links simply wrap under the logo) */
  .tc-header__inner { flex-wrap: wrap; }
  .tc-nav { order: 3; width: 100%; margin-inline: 0; }
  .tc-nav__list { flex-wrap: wrap; row-gap: 0; }
  .tc-js .tc-nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
    width: 2.75rem; height: 2.75rem; flex: none;
    border: 1px solid rgba(247, 242, 232, .35); background: transparent; cursor: pointer;
    margin-left: auto;
  }
  .tc-js .tc-header__inner { flex-wrap: nowrap; gap: 1rem; }
  .tc-js .tc-header__cta { margin-left: 0; }
  .tc-js .tc-nav {
    position: absolute; top: 100%; left: calc(-1 * var(--tc-gutter)); right: calc(-1 * var(--tc-gutter));
    width: auto; order: 0;
    padding: .5rem var(--tc-gutter) 1.25rem;
    background: var(--tc-ink);
    border-top: 1px solid rgba(247, 242, 232, .14);
    border-bottom: 1px solid rgba(247, 242, 232, .14);
    visibility: hidden; opacity: 0; transform: translateY(-.5rem);
    transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
  }
  .tc-js .tc-nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .tc-js .tc-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .tc-js .tc-nav__item { border-bottom: 1px solid rgba(247, 242, 232, .1); }
  .tc-js .tc-nav__link { display: flex; align-items: center; min-height: 3.25rem; width: 100%; }
  .tc-hero__text .tc-lead { max-width: 36rem; }
}

/* ================================ PHONE <= 767px ============================ */
@media (max-width: 767.98px) {
  .tc-cards { grid-template-columns: minmax(0, 1fr); }
  .tc-cards__item:nth-child(even) { margin-top: 0; }
  .tc-quote { margin: -3rem .75rem 0 -.5rem; }
  .tc-header__cta { height: 2.75rem; padding-inline: 1rem; }
  .tc-header__cta a { font-size: .875rem; }
  .tc-cta-card { padding: 1.5rem; }
  .tc-step { padding: 1.25rem; }
  .tc-tag > div { font-size: .6875rem; }
  .tc-watermark { opacity: .06; }
  .tc-review { flex-basis: min(84%, 20rem); }
  .tc-banner .tc-fixed-h { justify-content: flex-start; }
}

/* ============================= SMALL <= 479px =============================== */
@media (max-width: 479.98px) {
  .tc-checklist { grid-template-columns: minmax(0, 1fr); }
  .tc-actions > * { flex: 1 1 100%; }
  .tc-actions > .tc-btn, .tc-actions > a { justify-content: center; }
  .tc-header .tc-logo { width: 8rem; }
}

/* =========================== TOUCH TARGET SIZES ============================= */
@media (pointer: coarse) {
  .tc-footer a, .tc-hours a, .tc-visit__info a { min-height: 2.75rem; align-items: center; }
  .tc-footer__list > li { min-height: 2.5rem; }
}

@media print {
  .tc-header { position: static; }
  .tc-nav-toggle { display: none !important; }
}
@media(max-width:900px){.tc-menu-grid{grid-template-columns:repeat(2,1fr)}.tc-hero,.tc-split{gap:38px}.tc-build-steps{grid-template-columns:repeat(2,1fr)}.tc-footer__inner{grid-template-columns:repeat(2,1fr)}.tc-nav .tc-menu{gap:14px}}
@media(max-width:680px){.tc-container{width:calc(100% - 36px)}.tc-header__inner{min-height:72px}.tc-menu-toggle{display:block;order:3}.tc-header__cta{display:none}.tc-nav{display:none;position:absolute;top:72px;left:0;right:0;background:var(--tc-ink);padding:20px 24px 26px;border-top:1px solid #ffffff25}.tc-nav.is-open{display:block}.tc-nav .tc-menu{display:flex;align-items:flex-start;flex-direction:column;gap:20px}.tc-section{padding:72px 0}.tc-hero,.tc-split{grid-template-columns:1fr;gap:32px}.tc-hero{padding-block:65px}.tc-hero h1{font-size:52px}.tc-hero__image{height:330px}.tc-menu-grid,.tc-reviews{grid-template-columns:1fr}.tc-menu-card img{aspect-ratio:1.25}.tc-build-steps{grid-template-columns:1fr 1fr;gap:18px}.tc-check-list{columns:1}.tc-footer__inner{grid-template-columns:1fr 1fr;gap:25px}.tc-footer__bottom{gap:12px;flex-direction:column}.tc-logo__text{font-size:25px}}
