/* =========================================================
   Year Round Pools & Spa — styles
   ========================================================= */

:root {
  --navy-900: #0A1A33;
  --navy-800: #0F2547;
  --navy-700: #16335F;
  --navy-500: #2A4F86;
  --white:    #FFFFFF;
  --mist:     #F4F6FA;
  --slate:    #5B6B82;
  --ink:      #0B1526;
  --line:     rgba(255,255,255,0.18);

  --border-light: #E3E8F0;
  --input-border: #CBD3DF;
  --error: #B42318;

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-head: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --header-h: 88px;
  --header-h-scrolled: 72px;
  --max-w: 1180px;
  --gap: 24px;
  --section-pad: 112px;
}

@media (max-width: 767px) {
  :root { --section-pad: 72px; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--header-h-scrolled);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--navy-500); }
h1, h2, h3, p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.label {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

:focus-visible {
  outline: 3px solid var(--navy-500);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--white);
  color: var(--navy-900);
  font-family: var(--font-head);
  font-weight: 600;
  text-decoration: none;
  border-radius: 2px;
}
.skip-link:focus { top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 28px;
  border-radius: 2px;
  border: 1.5px solid transparent;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}

/* Primary on dark */
.btn--light {
  background: var(--white);
  color: var(--navy-800);
  border-color: var(--white);
}
.btn--light:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

/* Secondary on dark */
.btn--outline-light {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn--outline-light:hover { background: rgba(255,255,255,0.1); }

/* Primary on light */
.btn--navy {
  background: var(--navy-800);
  color: var(--white);
  border-color: var(--navy-800);
}
.btn--navy:hover { background: var(--navy-700); border-color: var(--navy-700); }

/* Secondary on light */
.btn--outline-navy {
  background: transparent;
  color: var(--navy-800);
  border-color: var(--navy-800);
}
.btn--outline-navy:hover { background: var(--mist); }

/* Focus ring on dark backgrounds stays visible */
.site-header :focus-visible,
.hero :focus-visible { outline-color: var(--white); }

/* =========================================================
   3.1 Header
   ========================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  padding-top: env(safe-area-inset-top);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: height 250ms ease, background-color 250ms ease, border-color 250ms ease;
}
.site-header.is-scrolled {
  height: var(--header-h-scrolled);
  background: var(--navy-800);
  border-bottom-color: var(--line);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.1;
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark img { height: 40px; width: auto; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 8px;
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
}
.header-phone:hover span { text-decoration: underline; text-underline-offset: 4px; }

.header-phone-icon {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--white);
  border-radius: 50%;
  color: var(--white);
  transition: background-color 200ms ease;
}
.header-phone-icon:hover { background: rgba(255,255,255,0.12); }

/* Careers: quieter secondary button so it doesn't compete with the two CTAs */
.header-careers {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
  font-weight: 500;
}
.header-careers:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
}

/* Narrower desktops / tablets: tighten so all header items fit */
@media (max-width: 1279px) {
  .header-actions { gap: 12px; }
  .site-header .btn { padding: 0 18px; font-size: 13px; }
}
@media (max-width: 1199px) {
  .header-phone span { display: none; }
  .header-phone { margin-right: 0; }
}
@media (max-width: 1023px) {
  .header-inner { gap: 16px; }
  .wordmark { font-size: 20px; }
  .header-actions { gap: 8px; }
  .site-header .btn { padding: 0 14px; font-size: 12px; letter-spacing: 0.06em; }
}
@media (max-width: 767px) {
  :root { --header-h: 72px; --header-h-scrolled: 64px; }
  .header-phone,
  .header-cta { display: none; }
  .header-phone-icon { display: inline-flex; }
  .wordmark { font-size: 21px; }
  .header-actions { gap: 6px; }
  /* Careers becomes a small text link left of the phone icon */
  .site-header .header-careers {
    height: 44px;
    padding: 0 8px;
    border: 0;
    background: transparent;
    font-size: 12px;
    letter-spacing: 0.1em;
  }
  .site-header .header-careers:hover { text-decoration: underline; text-underline-offset: 4px; }
}
@media (max-width: 399px) {
  .header-inner { gap: 8px; }
  .wordmark { font-size: 18px; }
  .site-header .header-careers { padding: 0 6px; letter-spacing: 0.04em; }
}

/* =========================================================
   3.2 Hero
   ========================================================= */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--navy-900); /* shows only if a photo fails to load */
  color: var(--white);
  text-align: center;
}

/* ---- Slideshow: stacked slides, only the active one is opaque ---- */
.hero-slides {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}
.hero-slide.is-active  { opacity: 1; z-index: 2; }
.hero-slide.is-leaving { z-index: 1; }

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-slide img {
  object-fit: cover;
  object-position: center;
  transform: scale(1);
  will-change: transform;
}

/* Ken Burns: zoom origin alternates between slides */
.hero-slide:nth-child(odd)  img { transform-origin: 25% 50%; }  /* center-left  */
.hero-slide:nth-child(even) img { transform-origin: 75% 50%; }  /* center-right */

.hero-slide.is-active img,
.hero-slide.is-leaving img {
  animation: hero-zoom 6s cubic-bezier(0.25, 0.1, 0.45, 1) forwards;
}
@keyframes hero-zoom {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}
.hero.is-paused .hero-slide img { animation-play-state: paused; }

/* Reduced motion / static mode: first photo only, no zoom or fade */
.hero.is-static .hero-slide { transition: none; }
.hero.is-static .hero-slide img { animation: none; transform: none; }
.hero.is-static .hero-indicators,
.hero.is-static .slideshow-toggle { display: none; }

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(180deg,
    rgba(10,26,51,0.60) 0%,
    rgba(10,26,51,0.40) 45%,
    rgba(10,26,51,0.80) 100%);
}

.hero-content {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: var(--header-h);
}

.hero .label { margin-bottom: 20px; opacity: 0.9; }

.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(48px, 8vw, 104px);
  line-height: 1.02;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 24px rgba(10,26,51,0.45), 0 1px 3px rgba(10,26,51,0.35);
}

/* Extra legibility on bright daytime photos */
.hero .label,
.hero-sub,
.hero-phone { text-shadow: 0 1px 12px rgba(10,26,51,0.55); }

.hero-rule {
  display: block;
  width: 64px;
  height: 1px;
  margin: 28px auto;
  background: var(--white);
}

.hero-sub {
  font-size: 19px;
  max-width: 34em;
  opacity: 0.85;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}

.hero-phone {
  margin-top: 24px;
  font-size: 16px;
  opacity: 0.9;
}
.hero-phone a {
  color: var(--white);
  font-weight: 500;
  text-underline-offset: 4px;
}

@media (max-width: 767px) {
  .hero-sub { font-size: 17px; }
  .hero-buttons { flex-direction: column; width: 100%; max-width: 340px; }
  .hero-buttons .btn { width: 100%; }
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 64px;
  z-index: 4;
  display: flex;
  width: 44px;
  height: 44px;
  margin-left: -22px;
  align-items: center;
  justify-content: center;
  color: var(--white);
  opacity: 0.8;
  animation: cue-bounce 2.4s ease-in-out infinite;
}
.scroll-cue .icon { width: 28px; height: 28px; stroke-width: 1.5; }

@keyframes cue-bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(8px); }
}

/* Slide indicators: 5 thin lines, bottom center */
.hero-indicators {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 4;
  display: flex;
  gap: 4px;
  transform: translateX(-50%);
}
.hero-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;          /* 24px line + padding = larger tap target */
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.hero-dot span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  opacity: 0.4;
  transition: opacity 200ms ease;
}
.hero-dot:hover span { opacity: 0.7; }
.hero-dot[aria-current="true"] span { opacity: 1; }

/* Slideshow pause / play toggle */
.slideshow-toggle {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 4;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1.5px solid rgba(255,255,255,0.7);
  border-radius: 50%;
  background: rgba(10,26,51,0.35);
  color: var(--white);
  cursor: pointer;
  transition: background-color 200ms ease;
}
.slideshow-toggle:hover { background: rgba(10,26,51,0.6); }
.slideshow-toggle .icon { width: 16px; height: 16px; }
.slideshow-toggle .icon-play { display: none; }
.slideshow-toggle.is-paused .icon-pause { display: none; }
.slideshow-toggle.is-paused .icon-play { display: block; }

/* =========================================================
   Shared section + card styles
   ========================================================= */
.section { padding: var(--section-pad) 0; }
.section--white { background: var(--white); }
.section--mist  { background: var(--mist); }
.section--navy  { background: var(--navy-800); color: var(--white); }

.section h2 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.2;
  letter-spacing: -0.005em;
}
h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.3;
}

.section .label { color: var(--navy-500); margin-bottom: 14px; }
.section--navy .label { color: rgba(255,255,255,0.8); }
.section--navy :focus-visible { outline-color: var(--white); }

.section-head {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-intro {
  margin-top: 16px;
  color: rgba(255,255,255,0.8);
}

.card {
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(10,26,51,0.08);
}
.card--dark {
  background: var(--navy-700);
  border-color: var(--line);
  box-shadow: none;
  color: var(--white);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 10px 24px;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.check-list .icon {
  width: 18px;
  height: 18px;
  margin-top: 5px;
  color: var(--navy-500);
}
.card--dark .check-list .icon { color: var(--white); }
@media (min-width: 560px) {
  .check-list--2col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin-top: auto;
  padding-top: 32px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy-500);
  text-decoration: none;
}
.text-link .icon { width: 18px; height: 18px; transition: transform 200ms ease; }
.text-link:hover { color: var(--navy-800); }
.text-link:hover .icon { transform: translateX(4px); }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Fade-up on enter (only added by JS when motion is allowed) */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms ease, transform 500ms ease;
}
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   3.3 Services
   ========================================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}
.service-card {
  display: flex;
  flex-direction: column;
  padding: 48px 44px;
}
.service-card .icon--lg {
  width: 36px;
  height: 36px;
  margin-bottom: 24px;
  color: var(--navy-500);
}
.service-desc { margin-top: 12px; color: var(--slate); }

/* =========================================================
   3.4 Cleaning packages
   ========================================================= */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
  max-width: 960px;
  margin: 0 auto;
}
.package-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 44px 40px;
}
.package-card.is-featured { border-color: rgba(255,255,255,0.6); }
.package-badge {
  position: absolute;
  top: 0;
  left: 40px;
  transform: translateY(-50%);
  padding: 5px 12px;
  background: var(--white);
  color: var(--navy-800);
  border-radius: 2px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.package-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 18px;
  line-height: 1;
}
.package-amount {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 52px;
  letter-spacing: -0.01em;
}
.package-note {
  font-size: 16px;
  color: rgba(255,255,255,0.8);
}
.package-freq {
  margin-top: 10px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.8);
}
.package-list { gap: 12px; }
.package-list li { line-height: 1.5; }

/* Items only this package includes */
.package-list li.is-extra {
  margin: 0 -12px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.07);
  border-left: 2px solid var(--white);
  border-radius: 2px;
}
.package-list li.is-extra .icon { margin-top: 3px; }
.extra-tag {
  display: inline-block;
  margin-left: 4px;
  padding: 2px 8px;
  vertical-align: 2px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 11px;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--navy-800);
  background: var(--white);
  border-radius: 2px;
}
.package-card .label {
  margin: 28px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: rgba(255,255,255,0.8);
}
.package-card .check-list { margin-top: 16px; }
.package-action { margin-top: auto; padding-top: 36px; }
.package-action .btn { width: 100%; }

/* =========================================================
   3.5 / 3.6 Forms
   ========================================================= */
.signup { margin-top: 72px; }
.signup-card {
  max-width: 960px;
  margin: 0 auto;
  padding: 56px;
}
.signup-card h3:focus { outline: none; }

.form-note {
  margin: 8px 0 28px;
  font-size: 15px;
  color: var(--slate);
}
.card--dark .form-note { color: rgba(255,255,255,0.75); }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 24px;
}
.field { min-width: 0; }
.field--full { grid-column: 1 / -1; }

fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }

.field > label,
.field > legend {
  display: block;
  margin-bottom: 8px;
  padding: 0;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.4;
}
.req { opacity: 0.75; }
.optional { font-weight: 400; color: var(--slate); }
.card--dark .optional { color: rgba(255,255,255,0.7); }

.form input[type="text"],
.form input[type="tel"],
.form input[type="email"],
.form input[type="date"],
.form select,
.form textarea {
  display: block;
  width: 100%;
  height: 52px;
  padding: 0 16px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background-color: var(--white);
  border: 1px solid var(--input-border);
  border-radius: 2px;
  transition: border-color 200ms ease, box-shadow 200ms ease;
  -webkit-appearance: none;
  appearance: none;
}
.form textarea {
  height: auto;
  min-height: 132px;
  padding: 14px 16px;
  line-height: 1.5;
  resize: vertical;
}
.form select {
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F2547' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}
.form input::placeholder,
.form textarea::placeholder { color: #8391A5; }

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--navy-800);
  box-shadow: 0 0 0 1px var(--navy-800);
}
.card--dark .form input:focus,
.card--dark .form select:focus,
.card--dark .form textarea:focus {
  box-shadow: 0 0 0 1px var(--navy-800), 0 0 0 4px rgba(255,255,255,0.45);
}
.form [aria-invalid="true"] {
  border-color: var(--error);
  box-shadow: 0 0 0 1px var(--error);
}

/* Error messages: red text on a pale chip so they meet contrast on navy and white */
.field-error,
.form-alert {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 8px;
  padding: 7px 10px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--error);
  background: #FEF3F2;
  border-radius: 2px;
}
.field-error[hidden],
.form-alert[hidden] { display: none; }
.field-error .icon,
.form-alert .icon { width: 16px; height: 16px; margin-top: 2px; }
.form-alert { margin-top: 24px; padding: 12px 14px; font-size: 15px; }
.form-alert a { color: var(--error); font-weight: 600; }

/* Radio choice tiles */
.choice-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.choice-group--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choice {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  margin: 0;
  padding: 12px 16px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--input-border);
  border-radius: 2px;
  cursor: pointer;
  transition: border-color 200ms ease, background-color 200ms ease;
}
.choice input {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--navy-800);
}
.choice:hover { border-color: var(--navy-500); }
.choice:has(input:checked) {
  border-color: var(--navy-800);
  box-shadow: inset 0 0 0 1px var(--navy-800);
}
.choice:has(input:focus-visible) {
  outline: 3px solid var(--navy-500);
  outline-offset: 3px;
}
.choice input:focus-visible { outline: none; }
.choice-text { display: flex; flex-direction: column; line-height: 1.35; }
.choice-title { font-weight: 500; }
.choice-sub { font-size: 14px; color: var(--slate); }

.card--dark .choice {
  color: var(--white);
  background: transparent;
  border-color: var(--line);
}
.card--dark .choice input { accent-color: var(--white); }
.card--dark .choice:hover { border-color: rgba(255,255,255,0.5); }
.card--dark .choice:has(input:checked) {
  border-color: var(--white);
  background: rgba(255,255,255,0.06);
  box-shadow: inset 0 0 0 1px var(--white);
}
.card--dark .choice:has(input:focus-visible) { outline-color: var(--white); }
.card--dark .choice-sub { color: rgba(255,255,255,0.75); }
fieldset[aria-invalid="true"] .choice { border-color: var(--error); }

.btn--submit { margin-top: 32px; min-width: 260px; }
.btn--submit[disabled] { opacity: 0.75; cursor: progress; }

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

.form-success {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px 0 8px;
  font-size: 19px;
  line-height: 1.5;
}
.form-success:focus { outline: none; }
.form-success .icon { width: 28px; height: 28px; margin-top: 1px; color: var(--navy-500); }
.card--dark .form-success .icon { color: var(--white); }

/* =========================================================
   3.6 Repair quote layout (also used by Careers)
   ========================================================= */
.split-layout,
.repair-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 64px;
  align-items: start;
}
.repair-lead { margin-top: 20px; color: var(--slate); }
.repair-copy .check-list { margin-top: 28px; }
.help-call {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border-light);
}
.help-call p { color: var(--slate); }
.big-phone {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(22px, 2.4vw, 28px);
  color: var(--navy-800);
  text-decoration: none;
}
.big-phone .icon { width: 26px; height: 26px; color: var(--navy-500); }
.big-phone:hover span { text-decoration: underline; text-underline-offset: 5px; }
.repair-card { padding: 48px 44px; }

/* =========================================================
   3.7 Why Year Round
   ========================================================= */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
}
.why-item {
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.why-item .icon { width: 30px; height: 30px; margin-bottom: 20px; }
.why-item h3 { font-size: 20px; }
.why-item p { margin-top: 8px; color: rgba(255,255,255,0.8); }
.why-join {
  margin-top: 64px;
  text-align: center;
  color: rgba(255,255,255,0.8);
}
.text-link--light {
  margin-left: 8px;
  padding-top: 0;
  color: var(--white);
  vertical-align: baseline;
}
.text-link--light:hover { color: var(--white); text-decoration: underline; text-underline-offset: 5px; }

/* =========================================================
   3.8 Service area
   ========================================================= */
.area-inner { text-align: center; }
.area-pills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 860px;
  margin: 40px auto 0;
  padding: 0;
}
.area-pills li {
  padding: 9px 20px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 15px;
  color: var(--navy-800);
  border: 1.5px solid var(--navy-800);
  border-radius: 999px;
}
.area-note { margin-top: 36px; color: var(--slate); }
.area-note a { color: var(--navy-800); font-weight: 600; text-underline-offset: 4px; }

/* =========================================================
   Careers
   ========================================================= */
.careers-lead { margin-top: 20px; color: rgba(255,255,255,0.85); }
.careers-subhead {
  margin-top: 40px;
  font-size: 20px;
}
.positions {
  list-style: none;
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
}
.position {
  padding: 20px 22px;
  background: var(--navy-700);
  border: 1px solid var(--line);
  border-radius: 4px;
}
.position-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
.position h4 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 18px;
}
.position-type {
  padding: 2px 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 11px;
  line-height: 1.6;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--navy-800);
  background: var(--white);
  border-radius: 2px;
}
.position p { margin-top: 6px; color: rgba(255,255,255,0.8); }
.careers-copy .check-list { margin-top: 16px; }
.section--navy .check-list .icon { color: var(--white); }
.careers-call {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  color: rgba(255,255,255,0.85);
}
.careers-call a { color: var(--white); font-weight: 600; text-underline-offset: 4px; }

.careers-card { padding: 48px 44px; }
.careers-card h3 { font-size: 22px; }
.careers-card .form-note { margin-top: 6px; }
.eoe-note {
  margin-top: 16px;
  font-size: 13px;
  opacity: 0.7;
}
/* White card inside a navy section: keep focus rings navy so they're visible */
.section--navy .card:not(.card--dark) :focus-visible { outline-color: var(--navy-500); }
.section--navy .card:not(.card--dark) .choice:has(input:focus-visible) { outline-color: var(--navy-500); }

/* =========================================================
   3.9 Footer
   ========================================================= */
.site-footer {
  background: var(--navy-900);
  color: var(--white);
}
.site-footer :focus-visible { outline-color: var(--white); }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  padding-top: 80px;
  padding-bottom: 64px;
}
.footer-brand .wordmark { font-size: 26px; }
.footer-brand p { margin-top: 14px; max-width: 30em; color: rgba(255,255,255,0.75); }
.footer-heading {
  margin: 0 0 18px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.7);
}
.footer-list {
  list-style: none;
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
}
.footer-list li { display: flex; align-items: center; gap: 12px; }
.footer-list li[hidden] { display: none; }
.footer-list .icon { width: 18px; height: 18px; opacity: 0.8; }
.footer-list a {
  color: var(--white);
  text-decoration: none;
  word-break: break-word;
}
.footer-list a:hover { text-decoration: underline; text-underline-offset: 4px; }
.social {
  list-style: none;
  display: flex;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
}
.social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--white);
  border: 1px solid var(--line);
  border-radius: 50%;
}
.social a:hover { background: var(--navy-700); }
.social .icon { width: 18px; height: 18px; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 22px 0;
  font-size: 14px;
  color: rgba(255,255,255,0.65);
}

/* =========================================================
   Mobile sticky action bar (<768px)
   ========================================================= */
.sticky-bar { display: none; }

@media (max-width: 767px) {
  .sticky-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    height: calc(64px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--navy-900);
    border-top: 1px solid var(--line);
    transform: translateY(100%);
    visibility: hidden;
    transition: transform 250ms ease, visibility 0s linear 250ms;
  }
  .sticky-bar.is-visible {
    transform: none;
    visibility: visible;
    transition: transform 250ms ease, visibility 0s;
  }
  .sticky-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--white);
    text-decoration: none;
  }
  .sticky-btn + .sticky-btn { border-left: 1px solid var(--line); }
  .sticky-btn:active { background: var(--navy-700); }
  .sticky-btn .icon { width: 18px; height: 18px; }
  .sticky-btn:focus-visible { outline: 3px solid var(--white); outline-offset: -5px; }
  body.has-sticky-bar { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1023px) {
  .split-layout,
  .repair-layout { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px var(--gap); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .signup-card { padding: 44px 36px; }
}
@media (max-width: 767px) {
  .services-grid,
  .packages-grid,
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .section-head { margin-bottom: 40px; }
  .service-card,
  .package-card { padding: 36px 24px; }
  .package-badge { left: 24px; }
  .packages-grid { row-gap: 40px; }
  .signup { margin-top: 48px; }
  .signup-card,
  .repair-card,
  .careers-card { padding: 32px 20px; }
  .why-grid,
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { gap: 36px; padding-top: 56px; padding-bottom: 48px; }
  .why-join { margin-top: 48px; }
  .choice-group,
  .choice-group--3 { grid-template-columns: minmax(0, 1fr); }
  .btn--submit { width: 100%; min-width: 0; }
}

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .scroll-cue { display: none; }
  .hero-slide img { animation: none !important; transform: none !important; }
}
