/* ============================================================
   TARAHUMARA CONSTRUCTION — Design tokens
   ============================================================ */
:root {
  /* Brand color system */
  --turquoise: #208387;
  --turquoise-light: #2FA6AB;
  --turquoise-dark: #144F52;
  --charcoal: #4B4B4D;
  --charcoal-dark: #2A2A2C;
  --ink: #1A1A1B;
  --cream: #F2EFE7;
  --white: #FFFFFF;

  /* Type */
  --font-display: 'Raleway', system-ui, sans-serif;
  --font-body: 'Raleway', system-ui, sans-serif;

  /* Rhythm */
  --gutter: clamp(1.5rem, 4vw, 4rem);
  --section-pad: clamp(4rem, 9vw, 8rem);
  --radius: 2px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; }
p { margin: 0 0 1.1em; }
button { font-family: inherit; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

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

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

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--turquoise-light);
  margin-bottom: 0.9em;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--white);
}

.section-title--dark { color: var(--ink); }

.lede {
  font-size: 1.05rem;
  color: rgba(242, 239, 231, 0.82);
  max-width: 62ch;
}

/* ============================================================
   JAGGED SEAM — signature motif, echoes the split in the T mark
   ============================================================ */
.seam {
  --seam-color: var(--ink);
  position: relative;
  height: 34px;
  width: 100%;
  background-color: var(--seam-color);
  clip-path: polygon(
    0% 100%, 4% 30%, 9% 90%, 14% 10%, 19% 70%, 24% 0%, 29% 60%, 34% 20%,
    39% 85%, 44% 15%, 49% 55%, 54% 5%, 59% 75%, 64% 25%, 69% 95%, 74% 35%,
    79% 65%, 84% 10%, 89% 80%, 94% 30%, 100% 100%
  );
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header { position: sticky; top: 0; z-index: 100; }

.header-bar {
  background: var(--ink);
  color: rgba(242, 239, 231, 0.7);
  font-size: 0.8rem;
  border-bottom: 1px solid rgba(242, 239, 231, 0.08);
}
.header-bar__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0.5rem var(--gutter);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1.75rem;
}
.header-bar__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--turquoise-light);
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color 0.2s var(--ease);
}
.header-bar__phone:hover { color: var(--white); }

.main-nav {
  background: rgba(26, 26, 27, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(242, 239, 231, 0.08);
}
.main-nav__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0.85rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand { display: flex; align-items: center; gap: 0.65rem; color: var(--white); }
.brand img{width: 250px;}
.brand__mark { width: 34px; height: 40px; color: var(--turquoise); flex-shrink: 0; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.brand__sub {
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--turquoise-light);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2vw, 2.25rem);
}
.nav-links a {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(242, 239, 231, 0.82);
  padding: 0.4rem 0;
  position: relative;
  transition: color 0.2s var(--ease);
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--turquoise);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--white); }
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }

.nav-links__cta {
  background: var(--turquoise);
  color: var(--white) !important;
  padding: 0.55rem 1.2rem !important;
  border-radius: var(--radius);
}
.nav-links__cta::after { display: none; }
.nav-links__cta:hover { background: var(--turquoise-light); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px; height: 32px;
  background: none; border: none; cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%;
  background: var(--cream);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.nav-scrim {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease);
}

@media (max-width: 860px) {
  .header-bar__inner { justify-content: center; font-size: 0.72rem; gap: 1rem; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--charcoal-dark);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 5.5rem 2rem 2rem;
    gap: 1.75rem;
    transform: translateX(100%);
    transition: transform 0.3s var(--ease);
    z-index: 95;
  }
  .nav-links.is-open { transform: translateX(0); }
  .nav-links a { font-size: 0.95rem; }
  body.nav-open .nav-scrim { opacity: 1; pointer-events: auto; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,20,21,0.55) 0%, rgba(20,20,21,0.35) 40%, rgba(20,20,21,0.92) 100%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 var(--gutter) clamp(3rem, 8vw, 5.5rem);
}
.hero__panel {
  max-width: 620px;
  background: rgba(32, 131, 135, 0.9);
  padding: clamp(1.75rem, 3vw, 2.75rem);
  border-left: 4px solid var(--ink);
}
.hero__eyebrow {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: 0.75em;
  display: block;
}
.hero__title {
  color: var(--white);
  font-size: clamp(1.9rem, 4.4vw, 3.2rem);
  letter-spacing: 0.02em;
  line-height: 1.12;
}
.hero__subtitle {
  margin-top: 1rem;
  color: rgba(255,255,255,0.92);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  border-top: 1px solid rgba(255,255,255,0.3);
  padding-top: 1rem;
}
.hero--compact { min-height: 62vh; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn--solid { background: var(--white); color: var(--turquoise-dark); }
.btn--solid:hover { background: var(--ink); color: var(--white); transform: translateY(-1px); }
.btn--outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn--outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn--primary { background: var(--turquoise); color: var(--white); }
.btn--primary:hover { background: var(--turquoise-light); transform: translateY(-1px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.6rem; }

/* ============================================================
   PANEL SECTIONS (intro / values blocks)
   ============================================================ */
.panel-section {
  background: var(--turquoise);
  padding: var(--section-pad) 0;
}
.panel-section--charcoal { background: var(--charcoal-dark); }
.panel-section--ink { background: var(--ink); }
.panel-section--cream { background: var(--cream); }

.panel {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.panel .lede { color: rgba(255,255,255,0.92); margin: 0 auto 1.1em; }
.panel-section--cream .lede,
.panel-section--charcoal .lede,
.panel-section--ink .lede { color: rgba(242,239,231,0.82); }

.value-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}
.value-chip {
  border: 1px solid rgba(255,255,255,0.4);
  padding: 0.75rem 1.35rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
}

/* ============================================================
   CTA BANNER (full-bleed image + call strip)
   ============================================================ */
.cta-banner {
  position: relative;
  min-height: 46vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}
.cta-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20,20,21,0.88) 0%, rgba(20,20,21,0.35) 65%, rgba(20,20,21,0.1) 100%);
}
.cta-banner__inner {
  position: relative; z-index: 2;
  padding: 0 var(--gutter);
  max-width: 640px;
}
.cta-banner__title {
  color: var(--white);
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  letter-spacing: 0.02em;
  margin-bottom: 1.3rem;
}

/* ============================================================
   TWO-COLUMN CONTENT (What We Do / list layouts)
   ============================================================ */
.content-section { padding: var(--section-pad) 0; }
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }

.checklist { margin: 1.5rem 0; }
.checklist li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: 0.7rem;
  color: rgba(242,239,231,0.9);
}
.checklist li::before {
  content: '';
  position: absolute; left: 0; top: 0.45em;
  width: 10px; height: 10px;
  background: var(--turquoise);
  transform: rotate(45deg);
}

.service-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: 2.5rem;
}
@media (max-width: 640px) { .service-columns { grid-template-columns: 1fr; } }
.service-col {
  border-top: 2px solid var(--turquoise);
  padding-top: 1.25rem;
}
.service-col h3 {
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--turquoise-light);
  margin-bottom: 1.1rem;
}
.service-col ul li {
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(242,239,231,0.1);
  color: rgba(242,239,231,0.88);
}

/* ============================================================
   FIGURE / IMAGE BLOCKS
   ============================================================ */
.figure {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid rgba(242,239,231,0.12);
}
.figure img { width: 100%; height: 100%; object-fit: cover; }
.figure__tag {
  position: absolute; left: 0; bottom: 0;
  background: var(--turquoise);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.6rem 1rem;
}

/* ============================================================
   CONTACT / FORM
   ============================================================ */
.contact-section { padding: var(--section-pad) 0; background: var(--charcoal-dark); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

.info-list { margin-top: 2rem; display: grid; gap: 1.4rem; }
.info-list dt {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--turquoise-light);
  margin-bottom: 0.3rem;
}
.info-list dd { margin: 0; color: rgba(242,239,231,0.9); }

.form-card {
  background: var(--turquoise);
  padding: clamp(1.75rem, 3vw, 2.5rem);
}
.form-card h3 {
  color: var(--white);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 1rem; display: flex; flex-direction: column; gap: 0.4rem; }
.field label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}
.field input, .field textarea {
  border: none;
  background: rgba(255,255,255,0.94);
  padding: 0.75rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--ink);
  border-radius: var(--radius);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.form-note { font-size: 0.78rem; color: rgba(255,255,255,0.75); margin-top: 0.75rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--ink); }
.site-footer__seam { height: 22px; background: var(--charcoal-dark);
  clip-path: polygon(0% 0%, 5% 100%, 10% 10%, 15% 90%, 20% 20%, 25% 100%, 30% 0%, 35% 80%, 40% 10%,
    45% 100%, 50% 20%, 55% 90%, 60% 0%, 65% 70%, 70% 15%, 75% 95%, 80% 10%, 85% 80%, 90% 0%, 95% 90%, 100% 0%);
}
.site-footer__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: var(--section-pad) var(--gutter) 3rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
}
@media (max-width: 760px) { .site-footer__inner { grid-template-columns: 1fr; gap: 2rem; } }
.site-footer__brand { display: flex; flex-direction: column; gap: 1rem; }
.site-footer .brand__mark { width: 30px; height: 36px; color: var(--turquoise); }
.site-footer__tagline { color: rgba(242,239,231,0.65); font-size: 0.92rem; max-width: 32ch; }
.site-footer__nav { display: flex; flex-direction: column; gap: 0.75rem; }
.site-footer__nav a {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(242,239,231,0.75);
  transition: color 0.2s var(--ease);
}
.site-footer__nav a:hover { color: var(--turquoise-light); }
.site-footer__contact { color: rgba(242,239,231,0.75); font-size: 0.92rem; }
.site-footer__contact a { color: rgba(242,239,231,0.9); }
.site-footer__contact a:hover { color: var(--turquoise-light); }
.site-footer__social {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border: 1px solid rgba(242,239,231,0.25);
  margin-top: 1rem;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.site-footer__social:hover { border-color: var(--turquoise-light); color: var(--turquoise-light); }
.site-footer__bottom {
  border-top: 1px solid rgba(242,239,231,0.08);
  text-align: center;
  padding: 1.25rem var(--gutter);
  font-size: 0.78rem;
  color: rgba(242,239,231,0.5);
}

/* ============================================================
   SCROLL REVEAL UTILITY (paired with GSAP in main.js)
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); }

/* ============================================================
   SKIP LINK
   ============================================================ */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--turquoise);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  z-index: 200;
}
.skip-link:focus { left: 1rem; top: 1rem; }
