/* =============================================
   Churchill's Pools — Demo Site
   Design: Contractor Confidence (Approach A)
   Palette: Navy #0B2D5B / Red #B01E3A / Pool-blue #1FA3D9
   Type: Barlow Condensed (headings) + Source Sans 3 (body)
   ============================================= */

/* ----- Reset & Base ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #0B2D5B;
  --navy-dark:  #071E3D;
  --red:        #B01E3A;
  --red-hover:  #8F1830;
  --pool:       #1FA3D9;
  --pool-light: #5CC6E8;
  --off-white:  #F4F6F9;
  --mid-gray:   #D1D8E2;
  --text:       #1A2535;
  --text-light: #4A5568;
  --white:      #FFFFFF;

  --font-head: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  --font-body: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;

  --max-w: 1160px;
  --section-pad: clamp(56px, 8vw, 96px);
  --radius: 6px;
  --shadow: 0 4px 24px rgba(11, 45, 91, 0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ----- Utility ----- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.12s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn-primary:hover { background: var(--red-hover); border-color: var(--red-hover); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.65);
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }

.btn-lg { padding: 17px 36px; font-size: 1.05rem; }

.section-label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pool);
  margin-bottom: 12px;
}
.section-label--light { color: var(--pool-light); }

.section-heading {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--navy);
  margin-bottom: 16px;
}
.section-heading--light { color: var(--white); }

.section-sub {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 600px;
  margin-bottom: 48px;
}
.section-sub--light { color: rgba(255,255,255,0.75); }

/* =============================================
   NAV
   ============================================= */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(7, 30, 61, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background 0.25s;
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
  height: 68px;
}

.nav-logo img {
  height: 42px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.82);
  letter-spacing: 0.02em;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--white); }

.nav-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--pool-light);
  white-space: nowrap;
  transition: color 0.15s;
}
.nav-phone:hover { color: var(--white); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.mobile-menu[hidden] { display: none; }
.mobile-menu {
  display: flex;
  flex-direction: column;
  background: var(--navy-dark);
  padding: 12px 0 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.mobile-menu a {
  padding: 12px clamp(16px, 4vw, 40px);
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  transition: color 0.15s, background 0.15s;
}
.mobile-menu a:hover { color: var(--white); background: rgba(255,255,255,0.05); }
.mobile-phone {
  color: var(--pool-light) !important;
  margin-top: 4px;
}

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 68px;
  padding-bottom: clamp(72px, 12vh, 150px);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    105deg,
    rgba(7, 20, 45, 0.82) 0%,
    rgba(7, 20, 45, 0.60) 55%,
    rgba(7, 20, 45, 0.30) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 80px) clamp(16px, 4vw, 40px);
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pool-light);
  margin-bottom: 28px;
}

.hero-headline {
  font-family: var(--font-head);
  font-size: clamp(3.2rem, 8vw, 6.5rem);
  font-weight: 800;
  line-height: 0.95;
  color: var(--white);
  margin-bottom: 28px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.35);
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-bottom: 36px;
}
.trust-strip span {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.88);
  text-transform: uppercase;
}
.trust-strip .sep {
  color: var(--pool-light);
  font-size: 1rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* =============================================
   REPOSITIONING STRIP
   ============================================= */
.reposition-strip {
  background: var(--navy);
  padding: 20px 0;
  border-top: 3px solid var(--red);
}
.strip-text {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.75);
  text-align: center;
  line-height: 1.5;
}
.strip-text strong { color: var(--white); }

/* =============================================
   SERVICES
   ============================================= */
.services {
  padding: var(--section-pad) 0;
  background: var(--off-white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(11, 45, 91, 0.18);
}

.service-img {
  overflow: hidden;
  height: 220px;
  flex-shrink: 0;
}
.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.service-card:hover .service-img img { transform: scale(1.04); }

.service-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.service-body h3 {
  font-family: var(--font-head);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.2;
}
.service-body p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
}
.service-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.02em;
  transition: color 0.15s;
  margin-top: auto;
}
.service-link:hover { color: var(--red-hover); }

.service-card--text {
  border-top: 3px solid var(--navy);
}
.service-card--text .service-body {
  padding: 28px;
}

/* =============================================
   ABOUT
   ============================================= */
.about {
  padding: var(--section-pad) 0;
  background: var(--white);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.about-img img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.about-text .section-heading {
  margin-bottom: 20px;
}

.about-text p {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 16px;
}

.about-proofs {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.about-proofs li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 16px;
  border-left: 3px solid var(--red);
}
.about-proofs li strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
}
.about-proofs li span {
  font-size: 0.88rem;
  color: var(--text-light);
}

/* =============================================
   QUOTE FORM
   ============================================= */
.quote-section {
  padding: var(--section-pad) 0;
  background: var(--navy);
  background-image: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
}

.quote-form {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-row--full { grid-template-columns: 1fr; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.03em;
}
.form-group label span { color: var(--pool-light); }

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.97rem;
  color: var(--text);
  background: var(--white);
  border: 2px solid transparent;
  border-radius: var(--radius);
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234A5568' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--pool);
  box-shadow: 0 0 0 3px rgba(31, 163, 217, 0.2);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #9AA5B4; }
.form-group textarea { resize: vertical; min-height: 110px; }

.form-submit {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 8px;
}
.form-note {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

/* =============================================
   SERVICE AREA
   ============================================= */
.service-area {
  background: var(--off-white);
  padding: 28px 0;
  border-top: 1px solid var(--mid-gray);
}
.area-text {
  text-align: center;
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.6;
}
.area-text strong { color: var(--navy); font-weight: 600; }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--navy-dark);
  padding: 56px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  padding-bottom: 48px;
}

.footer-col img { margin-bottom: 16px; }

.footer-tagline {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 24px;
}
.footer-contact a {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  transition: color 0.15s;
}
.footer-contact a:hover { color: var(--white); }

.footer-social {
  display: flex;
  gap: 14px;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.65);
  transition: background 0.15s, color 0.15s;
}
.footer-social a:hover {
  background: var(--pool);
  color: var(--white);
}

.footer-col-heading {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.65);
  transition: color 0.15s;
  line-height: 1.4;
}
.footer-links a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 18px 0;
}
.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  text-align: center;
}

/* =============================================
   RESPONSIVE
   ============================================= */

/* Tablet: 2-col services, stacked about */
@media (max-width: 960px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
  .about-inner {
    grid-template-columns: 1fr;
  }
  .about-img {
    max-width: 480px;
    margin: 0 auto;
  }
}

/* Mobile: single column */
@media (max-width: 640px) {
  /* Nav */
  .nav-links,
  .nav-phone { display: none; }
  .nav-toggle { display: flex; }

  /* Hero */
  .hero-headline { font-size: clamp(2.8rem, 13vw, 4rem); }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }

  /* Services */
  .services-grid { grid-template-columns: 1fr; }

  /* Form */
  .form-row { grid-template-columns: 1fr; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; }
}

/* Tall phones: ensure hero doesn't feel cramped */
@media (max-height: 600px) and (max-width: 640px) {
  .hero { min-height: 100vh; }
  .hero-headline { font-size: 2.6rem; }
}
