/* ==========================================================================
   E180 Pueblo — design system
   Colours and type scale mirror the original Builderall site.
   ========================================================================== */

:root {
  --teal: #81d8d0;
  --teal-bright: #8cf3e4;
  --teal-dark: #4fb3a9;
  --teal-wash: #eaf9f7;

  --ink: #575757;
  --ink-strong: #2b2b2b;
  --ink-muted: #7a7a7a;
  --white: #ffffff;
  --surface: #f7fbfb;
  --line: #e2eceb;

  --font-display: "Montserrat", system-ui, sans-serif;
  --font-accent: "Alegreya Sans", Georgia, serif;
  --font-body: "Pavanam", system-ui, sans-serif;

  --shell: 1180px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section-y: clamp(3.5rem, 8vw, 6.5rem);
  --radius: 18px;
  --shadow: 0 18px 40px rgba(40, 90, 88, 0.12);
  --shadow-soft: 0 8px 22px rgba(40, 90, 88, 0.08);
  --header-h: 76px;
}

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

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

html {
  scroll-behavior: smooth;
  /* Keep anchored sections clear of the sticky header. */
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--teal-dark); }

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  color: var(--ink);
  line-height: 1.12;
  text-wrap: balance;
}

h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.2rem, 6vw, 4.375rem); }
h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.7rem, 4.5vw, 2.8rem); }
h3 { font-family: var(--font-accent); font-style: italic; font-size: clamp(1.6rem, 4vw, 2.8rem); }
h4 { font-family: var(--font-accent); font-size: clamp(1.25rem, 3vw, 2rem); }

p { margin: 0 0 1.1em; }

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

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

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

.shell {
  width: min(var(--shell), 100%);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.shell--narrow { width: min(820px, 100%); }

.section { padding-block: var(--section-y); }
.section--tint { background: var(--surface); }
.section--wash { background: var(--teal-wash); }

.section__head {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto clamp(2rem, 5vw, 3.25rem);
}
.section__head p { color: var(--ink-muted); font-size: 1.15rem; }

.glow { text-shadow: 2px 2px 3px var(--teal); }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.9rem;
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--teal);
  color: var(--ink-strong);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover {
  background: var(--teal-bright);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}
.btn--ghost {
  background: transparent;
  border-color: var(--teal);
  color: var(--ink-strong);
}
.btn--ghost:hover { background: var(--teal-wash); }
.btn--lg { padding: 1.05rem 2.5rem; font-size: 1.1rem; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

/* The header carries more than the body shell can hold, so give it its own width. */
.site-header .shell { width: min(1440px, 100%); }

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
  padding-block: 0.5rem;
}

.brand { flex: none; margin-right: auto; }
.brand img { width: 108px; }

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

.nav__list {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav__list a {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.nav__list a:hover { color: var(--teal-dark); }

.nav__toggle {
  display: none;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
}
.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  margin-inline: auto;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav__toggle span { position: relative; }
.nav__toggle span::before,
.nav__toggle span::after { content: ""; position: absolute; left: 0; }
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 6px; }

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

/* ------------------------------------------------------- social icons --- */

.social {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.social a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--teal);
  color: var(--ink-strong);
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.social a:hover { background: var(--teal-bright); transform: translateY(-2px); }
.social svg { width: 19px; height: 19px; fill: currentColor; }

/* ---------------------------------------------------------- video bar --- */

.video-band { background: #000; }
.video-band__frame {
  position: relative;
  width: 100%;
  max-height: 650px;
  aspect-ratio: 16 / 9;
  margin-inline: auto;
}
.video-band__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.intro {
  padding-block: clamp(2rem, 5vw, 3.25rem);
  text-align: center;
}
.intro h3 { margin-bottom: 0.2em; }
.intro h2 { letter-spacing: 0.06em; }

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

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(78vh, 620px);
  padding-block: clamp(3rem, 9vw, 6rem);
  background: #1d2a2a url("../img/hero-background.webp") center / cover no-repeat;
  text-align: center;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.3));
}
.hero__inner { position: relative; z-index: 1; }
.hero__logo { width: min(280px, 60vw); margin: 0 auto 1.5rem; }
.hero h1 { color: #ecf0f1; text-shadow: 2px 2px 3px var(--teal); margin-bottom: 0.15em; }
.hero h1 + h1 { margin-bottom: 0.6em; }

/* ----------------------------------------------------------- services --- */

/* Five services; flex keeps a short final row centred instead of left-hanging. */
.service-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}
.service-grid > * { flex: 1 1 190px; max-width: 260px; }

.service {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  color: inherit;
  text-align: center;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service__icon { height: 68px; width: auto; object-fit: contain; }
.service__name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink-strong);
}
.service__desc { font-size: 0.95rem; line-height: 1.5; color: var(--ink-muted); }

/* ------------------------------------------------------------- panels --- */

.panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(1.75rem, 5vw, 3.5rem);
  align-items: center;
}
.panel--reverse > :first-child { order: 2; }

.panel__media img {
  width: 100%;
  /* Source photos vary wildly in aspect ratio; cap the tall ones. */
  max-height: 520px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.prose h4 { color: var(--ink-strong); }
.prose ul { margin: 0 0 1.2em; padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }

.stack-notes > * + * { margin-top: 1.75rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }

/* ----------------------------------------------------------- benefits --- */

.benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  margin: 2.5rem 0;
  padding: 0;
  list-style: none;
}
.benefits li {
  padding: 1.25rem 1rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  font-family: var(--font-accent);
  font-size: 1.25rem;
  text-align: center;
}

/* ------------------------------------------------------- testimonials --- */

.testimonials {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(420px, 82vw);
  gap: 1.5rem;
  margin: 0;
  padding: 0.5rem 0 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.testimonial {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  border-radius: var(--radius);
  background: linear-gradient(150deg, var(--teal-wash), var(--white) 55%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  scroll-snap-align: center;
}
.testimonial__stars { color: #f0c020; font-size: 1.15rem; letter-spacing: 0.15em; margin-bottom: 0.9rem; }
.testimonial blockquote {
  margin: 0 0 1.25rem;
  font-style: italic;
  font-size: 0.98rem;
  line-height: 1.6;
}
.testimonial figcaption { margin-top: auto; font-family: var(--font-display); font-weight: 600; color: var(--ink-strong); }
.testimonial figcaption span { display: block; font-weight: 400; font-size: 0.9rem; color: var(--ink-muted); }

/* ------------------------------------------------------------ pricing --- */

.pricing {
  width: 100%;
  margin: 2.5rem 0 0;
  border-collapse: collapse;
  text-align: left;
}
.pricing caption {
  margin-bottom: 1rem;
  font-family: var(--font-accent);
  font-size: 1.3rem;
  color: var(--ink-strong);
}
.pricing th,
.pricing td { padding: 0.9rem 0.75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.pricing thead th { font-family: var(--font-display); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-muted); }
.pricing tbody th { font-family: var(--font-display); font-weight: 600; color: var(--ink-strong); }
.pricing tbody th small { display: block; font-weight: 400; font-size: 0.85rem; color: var(--ink-muted); }
.pricing td:last-child,
.pricing th:last-child { text-align: right; white-space: nowrap; }

/* -------------------------------------------------------------- visit --- */

.visit {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: 3rem;
  text-align: left;
}
.visit h4 { margin-bottom: 0.4em; font-family: var(--font-display); font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.1em; }
.visit dl { margin: 0; }
.visit dt { font-weight: 600; color: var(--ink-strong); }
.visit dd { margin: 0 0 0.4rem; }
.hours { margin: 0; padding: 0; list-style: none; }
.hours li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.3rem 0; border-bottom: 1px dashed var(--line); }
.hours span:first-child { font-weight: 600; color: var(--ink-strong); }

.notice {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  background: var(--teal-wash);
  border: 1px solid var(--teal);
  font-family: var(--font-accent);
  font-size: 1.15rem;
  color: var(--ink-strong);
}

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

.site-footer {
  padding-block: clamp(2.5rem, 6vw, 4rem);
  background: var(--ink-strong);
  color: rgba(255, 255, 255, 0.82);
  text-align: center;
}
.site-footer a { color: var(--white); }
.site-footer .social a { background: rgba(255, 255, 255, 0.14); color: var(--white); }
.site-footer .social a:hover { background: var(--teal); color: var(--ink-strong); }

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
  text-align: left;
}
.footer-phone { font-size: 1.15rem; }
.footer-phone a { font-weight: 600; text-decoration: none; }
.footer-phone a:hover { text-decoration: underline; }
.footer-brand img { width: 170px; opacity: 0.85; }
.footer-brand img:hover { opacity: 1; }
.copyright { margin: 2rem 0 0; font-size: 0.85rem; color: rgba(255, 255, 255, 0.55); text-align: center; }

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

/* The header CTA is long, so keep it compact next to the nav links. */
.site-header .nav > .btn { padding: 0.7rem 1.25rem; font-size: 0.85rem; }

@media (max-width: 1300px) {
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1.25rem var(--gutter) 1.75rem;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav[data-open="true"] { display: flex; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0.25rem; }
  .nav__list a { display: block; padding: 0.7rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav .social { justify-content: center; }
  .site-header .nav > .btn { width: 100%; font-size: 1rem; white-space: normal; }
  .nav__toggle { display: block; }
  .site-header__inner { position: relative; }
  .panel--reverse > :first-child { order: 0; }
  .site-footer__inner { flex-direction: column; text-align: center; }
}

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