/* ==========================================================================
   CRESTLINE RESTORATION
   Light page, deep water blue buttons and an emergency orange accent. Photo
   hero under a navy scrim, service cards, before and after grid, one quote,
   crew, FAQ, contact.
   ========================================================================== */

:root {
  --background: #F3F6F8;
  --card: #FFFFFF;
  --foreground: #10202E;
  --primary-cta: #0B5E7E;
  --primary-cta-text: #FFFFFF;
  --secondary-cta: #FFFFFF;
  --secondary-cta-text: #10202E;
  --accent: #C2410C;
  --background-accent: #D5E3EC;
  --radius: 1.25rem;
  --font-body: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Familjen Grotesk', 'Satoshi', -apple-system, sans-serif;
  --content-width: 87.5vw;
  --section-head-size: var(--text-6xl);
  --nav-ink: #ffffff;
  --nav-ink-scrolled: var(--foreground);
}

@media (width >= 1536px) { :root { --section-head-size: var(--text-7xl); } }

/* --- Hero ---------------------------------------------------------------- */

.hero {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 42rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-bottom: 5rem;
}

.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(8, 24, 38, 0.9) 0%, rgba(8, 24, 38, 0.66) 48%, rgba(8, 24, 38, 0.3) 78%),
    linear-gradient(to top, rgba(8, 24, 38, 0.85) 0%, transparent 34%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.15rem;
  color: #fff;
}

.hero__inner .eyebrow { background: rgba(255,255,255,0.9); color: var(--foreground); border: 0; }

.hero__title {
  max-width: 13ch;
  font-size: var(--text-8xl);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero__lede { max-width: 46ch; font-size: var(--text-xl); line-height: 1.45; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; }
.hero .avatar-stack__row img { border-color: rgba(255,255,255,0.6); }
.hero .avatar-stack p { font-size: var(--text-base); font-weight: 600; }

.hero__trust {
  position: absolute;
  z-index: 2;
  bottom: 2.5rem;
  left: 0; right: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  padding-inline: 6vw;
}

.hero__trust .trust-pill {
  gap: 0.5rem;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.14);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
}

.hero__trust svg { width: 1rem; height: 1rem; flex: none; }

@media (width <= 768px) {
  .hero { margin-bottom: 3rem; }
  .hero__title { font-size: var(--text-7xl); max-width: 11ch; }
  /* The strip is absolutely positioned at the bottom of a fixed height hero.
     Once the pills wrap onto four or five rows it grows upward through the
     buttons and the avatar row, so on a phone it comes out of the flow entirely
     and the hero is allowed to grow instead of clipping. */
  .hero { height: auto; min-height: 100svh; justify-content: flex-start; padding-block: 7.5rem 3rem; }
  .hero__trust { position: static; margin-top: 1.75rem; padding-inline: 0; }
}

/* --- Treatments ------------------------------------------------------------- */

.treatment-card { padding: 0.75rem; border-radius: var(--radius); }

.treatment-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: calc(var(--radius) - 0.5rem);
  transition: transform 0.5s ease-out;
}

.treatment-card:hover img { transform: scale(1.04); }
.treatment-card__body { padding: 1.15rem 0.6rem 0.4rem; }
.treatment-card__body h3 { font-size: var(--text-3xl); margin-bottom: 0.25rem; }
.treatment-card__body p { font-size: var(--text-lg); opacity: 0.75; }

/* --- Results marquee --------------------------------------------------------- */

.results-marquee { --marquee-gap: 1rem; --marquee-duration: 60s; }
.results-marquee .ba-card { width: 22rem; flex: none; }

@media (width <= 768px) { .results-marquee .ba-card { width: 17rem; } }

/* --- Single quote ------------------------------------------------------------- */

.quote-band {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 3.5rem 2rem;
  border-radius: var(--radius);
  text-align: center;
}

.quote-band blockquote {
  max-width: 34ch;
  margin: 0;
  font-size: var(--text-4xl);
  line-height: 1.3;
  font-weight: 500;
  text-wrap: balance;
}

.quote-band cite { font-size: var(--text-lg); font-style: normal; opacity: 0.7; }
.quote-band .avatar-stack { justify-content: center; }

/* --- Contact ------------------------------------------------------------------- */

.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: stretch; }

.contact-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2.5rem;
  border-radius: var(--radius);
  text-align: center;
}

.contact-panel h2 { font-size: var(--text-6xl); line-height: 1.1; }
.contact-panel > p { max-width: 36ch; font-size: var(--text-lg); line-height: 1.45; margin-bottom: 0.75rem; }

.contact-grid__media { border-radius: var(--radius); overflow: hidden; }
.contact-grid__media img { width: 100%; height: 100%; min-height: 22rem; object-fit: cover; }

@media (width <= 900px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-panel { padding: 1.5rem; }
  .contact-grid__media img { min-height: 16rem; }
}

/* --- Footer --------------------------------------------------------------------- */

/* The template footer inverted to the foreground colour, which on a dark
   palette leaves white on near-white. It gets its own dark surface instead. */
.site-footer { border-radius: var(--radius) var(--radius) 0 0; background: #0E2233; color: #EAF1F6; padding-block: 4rem; border-top: 1px solid color-mix(in srgb, var(--foreground) 12%, transparent); }
.footer-top { display: grid; grid-template-columns: 1fr auto; gap: 3rem; align-items: start; }
.footer-brand { font-size: var(--text-5xl); font-weight: 700; letter-spacing: -0.02em; }
.footer-nav { display: grid; grid-template-columns: repeat(3, minmax(9rem, auto)); gap: 2.5rem; }
.footer-nav h3 { font-size: var(--text-base); font-weight: 500; opacity: 0.55; margin-bottom: 1rem; }
.footer-nav ul { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-nav a { font-size: var(--text-lg); transition: color 0.2s; }
.footer-nav a:hover { color: var(--accent); }

.footer-legal-bar {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-top: 3rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.2);
  font-size: var(--text-base); opacity: 0.65;
}
.footer-legal-bar div { display: flex; gap: 1.25rem; }

@media (width <= 768px) {
  .footer-top { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
}


/* --- Results grid ------------------------------------------------------------
   The template scrolled these before and after cards. Nothing here moves on
   its own, so they sit in a grid the reader scans at their own pace. --- */

.results-grid { overflow: visible; }

.results-grid__inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  width: var(--content-width);
  margin-inline: auto;
}

.results-grid__inner .ba-card { width: auto; flex: initial; }

@media (width <= 1100px) { .results-grid__inner { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (width <= 680px) { .results-grid__inner { grid-template-columns: minmax(0,1fr); } }

/* Light page: white cards with a hairline, headings one solid ink, and the
   footer's labels at full strength on its navy band. */
.card { background: var(--card); border: 1px solid #DCE4EA; }
.shadow-xl { box-shadow: 0 1px 2px rgba(16, 32, 46, 0.04), 0 14px 32px -18px rgba(16, 32, 46, 0.22); }
.section-head h2,
.grad-head { background: none; color: var(--foreground); }
.site-footer .footer-nav h3,
.site-footer .footer-legal-bar { opacity: 1; color: #A9BBC9; }
.site-footer .footer-nav a:hover { color: #FDBA74; }
.quote-band { background: var(--primary-cta); color: #FFFFFF; border: 0; }
.quote-band cite { opacity: 0.85; }
@media (width <= 768px) {
  .hero::after { background: linear-gradient(to bottom, rgba(8, 24, 38, 0.86) 0%, rgba(8, 24, 38, 0.8) 60%, rgba(8, 24, 38, 0.9) 100%); }
}

/* Seven result cards and five crew cards: rows are centred so the last one
   reads as deliberate rather than a gap on the right. */
#results .results-grid__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
#results .ba-card { flex: 0 1 calc((100% - 3rem) / 4); }
@media (width <= 1100px) { #results .ba-card { flex-basis: calc((100% - 1rem) / 2); } }
@media (width <= 680px) { #results .ba-card { flex-basis: 100%; } }

#team .grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
#team .person-card { flex: 0 1 calc((100% - 2rem) / 3); }
@media (width <= 900px) { #team .person-card { flex-basis: calc((100% - 1rem) / 2); } }
@media (width <= 560px) { #team .person-card { flex-basis: 100%; } }
