/* ============================================================
   Ariel Plumbers and Gas Fitters — Site Stylesheet
   Mobile-first. 375px is the canonical view.
   ============================================================ */

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

:root {
  /* Brand blue from logo */
  --blue: #0094D4;
  --blue-dark: #006fa0;
  --blue-deeper: #004d70;
  --navy: #0a1f3a;
  --charcoal: #1e2d3d;
  --slate: #3a4f63;
  --warm-white: #f7f9fb;
  --offwhite: #edf1f5;
  --white: #ffffff;
  --text: #1e2d3d;
  --text-light: #5a6d7e;
  --accent-warm: #e8a838;
  --border: #d0d8e0;
  --shadow-sm: 0 1px 3px rgba(10,31,58,0.08);
  --shadow-md: 0 4px 12px rgba(10,31,58,0.10);
  --shadow-lg: 0 8px 30px rgba(10,31,58,0.14);
  --radius: 6px;
  --radius-lg: 12px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--blue-dark); }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

/* --- Utility --- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.text-center { text-align: center; }

/* ============================================================
   HEADER / NAV — mobile-first
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
.site-header.scrolled { box-shadow: var(--shadow-md); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.logo-link { display: flex; align-items: center; gap: 10px; }
.logo-link img { height: 40px; width: auto; }
.logo-text { display: none; }

/* Mobile nav toggle */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: all 0.3s;
  border-radius: 2px;
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Desktop nav links — hidden on mobile */
.nav-links {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 12px 0;
}
.nav-links.open { display: flex; }
.nav-links a {
  display: block;
  padding: 14px 24px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--blue); background: var(--offwhite); }

.header-cta {
  display: none !important; /* shown on desktop via media query */
}

/* Phone pill in header — always visible on mobile */
.header-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--blue);
  color: var(--white);
  padding: 8px 14px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}
.header-phone svg { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }

/* ============================================================
   HERO — image above text on mobile (pattern 1)
   ============================================================ */
.hero {
  margin-top: 64px; /* header height */
  position: relative;
  overflow: hidden;
  background: var(--navy);
}
.hero-image {
  width: 100%;
  height: 50vh;
  min-height: 280px;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hero-content {
  padding: 32px 20px 40px;
  color: var(--white);
}
.hero-badge {
  display: inline-block;
  background: rgba(0,148,212,0.2);
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 50px;
  margin-bottom: 16px;
  border: 1px solid rgba(0,148,212,0.3);
}
.hero h1 {
  color: var(--white);
  font-size: 1.75rem;
  line-height: 1.18;
  margin-bottom: 14px;
  font-weight: 800;
}
.hero h1 span { color: var(--blue); }
.hero-sub {
  font-size: 1.05rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.8);
  margin-bottom: 24px;
  max-width: 520px;
}
.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.25s;
  text-align: center;
  min-height: 48px;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }
.btn-primary {
  background: var(--blue);
  color: var(--white);
}
.btn-primary:hover { background: var(--blue-dark); color: var(--white); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.35);
}
.btn-outline:hover { border-color: var(--white); color: var(--white); }
.btn-outline-dark {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--border);
}
.btn-outline-dark:hover { border-color: var(--navy); }

/* ============================================================
   SECTIONS — general
   ============================================================ */
section { padding: 56px 0; }
.section-dark { background: var(--navy); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-light { background: var(--offwhite); }
.section-title {
  font-size: 1.5rem;
  margin-bottom: 12px;
}
.section-subtitle {
  font-size: 1rem;
  color: var(--text-light);
  max-width: 600px;
  line-height: 1.6;
}
.section-dark .section-subtitle { color: rgba(255,255,255,0.7); }
.section-header { margin-bottom: 36px; }

/* ============================================================
   SERVICES GRID — homepage
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s, transform 0.3s;
}
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.service-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.service-card-body { padding: 24px; }
.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.service-card p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.55;
  margin-bottom: 16px;
}
.service-card .card-link {
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.service-card .card-link::after { content: ' \2192'; }

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
  padding: 40px 0;
  background: var(--offwhite);
}
.trust-items {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  text-align: center;
}
.trust-item { padding: 16px; }
.trust-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 6px;
}
.trust-label {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 500;
}

/* ============================================================
   REVIEWS
   ============================================================ */
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.review-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.section-dark .review-card {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
}
.review-stars {
  color: var(--accent-warm);
  font-size: 1rem;
  margin-bottom: 14px;
  letter-spacing: 2px;
}
.review-text {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 16px;
  font-style: italic;
}
.section-dark .review-text { color: rgba(255,255,255,0.85); }
.review-author {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--navy);
}
.section-dark .review-author { color: rgba(255,255,255,0.6); }
.review-source {
  font-size: 0.8rem;
  color: var(--text-light);
}
.section-dark .review-source { color: rgba(255,255,255,0.4); }

/* ============================================================
   WHY SECTION — feature list
   ============================================================ */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.why-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.why-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: rgba(0,148,212,0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}
.why-icon svg { width: 24px; height: 24px; fill: var(--blue); }
.section-dark .why-icon { background: rgba(0,148,212,0.2); }
.why-item h3 { font-size: 1.05rem; margin-bottom: 4px; }
.why-item p { font-size: 0.92rem; color: var(--text-light); line-height: 1.55; }
.section-dark .why-item p { color: rgba(255,255,255,0.7); }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  background: var(--blue);
  padding: 48px 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); font-size: 1.5rem; margin-bottom: 10px; }
.cta-band p { color: rgba(255,255,255,0.85); margin-bottom: 24px; font-size: 1rem; }
.cta-band .btn-primary { background: var(--white); color: var(--blue); }
.cta-band .btn-primary:hover { background: var(--offwhite); }

/* ============================================================
   SERVICE PAGE — hero banner
   ============================================================ */
.page-hero {
  margin-top: 64px;
  position: relative;
  overflow: hidden;
}
.page-hero-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,31,58,0.35), rgba(10,31,58,0.75));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px 20px;
}
.page-hero h1 { color: var(--white); font-size: 1.75rem; margin-bottom: 8px; }
.page-hero p { color: rgba(255,255,255,0.85); font-size: 1rem; max-width: 560px; }

/* ============================================================
   CONTENT SECTIONS — service pages
   ============================================================ */
.content-section { padding: 48px 0; }
.content-section h2 { font-size: 1.35rem; margin-bottom: 16px; }
.content-section p { margin-bottom: 16px; font-size: 0.95rem; color: var(--text-light); line-height: 1.65; }
.content-section ul { margin-bottom: 16px; }
.content-section li {
  padding: 8px 0 8px 28px;
  position: relative;
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.55;
}
.content-section li::before {
  content: '';
  position: absolute;
  left: 0; top: 16px;
  width: 8px; height: 8px;
  background: var(--blue);
  border-radius: 50%;
}

.work-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 28px 0;
}
.work-gallery img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius);
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
.about-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.about-text h2 { font-size: 1.4rem; margin-bottom: 14px; }
.about-text p { margin-bottom: 14px; font-size: 0.95rem; color: var(--text-light); line-height: 1.65; }

.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 32px;
}
.value-card {
  padding: 28px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.value-card h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--navy); }
.value-card p { font-size: 0.92rem; color: var(--text-light); line-height: 1.55; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}
.contact-info-card {
  background: var(--offwhite);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.contact-info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.contact-info-item:last-child { margin-bottom: 0; }
.contact-info-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  background: var(--blue);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-info-icon svg { width: 20px; height: 20px; fill: var(--white); }
.contact-info-text h3 { font-size: 0.95rem; margin-bottom: 2px; }
.contact-info-text p { font-size: 0.92rem; color: var(--text-light); }
.contact-info-text a { color: var(--blue); font-weight: 600; }

.contact-form { margin-top: 8px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--navy);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,148,212,0.15);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 16px;
  font-weight: 600;
}
.footer-col p { font-size: 0.9rem; line-height: 1.6; margin-bottom: 10px; }
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  padding: 5px 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--blue); }
.footer-logo { height: 36px; margin-bottom: 14px; filter: brightness(10); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}
.footer-bottom a { color: rgba(255,255,255,0.55); }

/* ============================================================
   MAP
   ============================================================ */
.map-container {
  width: 100%;
  height: 300px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 28px;
}
.map-container iframe { width: 100%; height: 100%; border: 0; }

/* ============================================================
   FORM SUCCESS MESSAGE
   ============================================================ */
.form-success {
  display: none;
  padding: 24px;
  background: #e8f5e9;
  border-radius: var(--radius);
  text-align: center;
  color: #2e7d32;
  font-weight: 500;
}
.form-success.show { display: block; }

/* ============================================================
   RESPONSIVE — Tablet (768px+)
   ============================================================ */
@media (min-width: 768px) {
  .container { padding: 0 32px; }
  section { padding: 72px 0; }

  .hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 540px; }
  .hero-image { height: 100%; min-height: 540px; order: 2; }
  .hero-content { display: flex; flex-direction: column; justify-content: center; padding: 48px 40px; order: 1; }
  .hero h1 { font-size: 2.25rem; }
  .hero-sub { font-size: 1.1rem; }
  .hero-ctas { flex-direction: row; }

  .nav-toggle { display: none; }
  .nav-links {
    display: flex !important;
    flex-direction: row;
    position: static;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    gap: 4px;
  }
  .nav-links a { padding: 8px 14px; font-size: 0.9rem; border-radius: var(--radius); }
  .nav-links a:hover { background: var(--offwhite); }
  .header-cta { display: inline-flex !important; }
  .header-phone { display: none; }

  .services-grid { grid-template-columns: 1fr 1fr; }
  .trust-items { grid-template-columns: repeat(4, 1fr); }
  .reviews-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }

  .page-hero-img { height: 360px; }
  .page-hero h1 { font-size: 2.2rem; }
  .work-gallery { grid-template-columns: 1fr 1fr; }

  .about-intro { grid-template-columns: 1fr 1fr; }
  .about-img { height: 400px; }
  .values-grid { grid-template-columns: 1fr 1fr; }

  .contact-layout { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr 1fr; }

  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }

  .section-title { font-size: 1.85rem; }
}

/* ============================================================
   RESPONSIVE — Desktop (1024px+)
   ============================================================ */
@media (min-width: 1024px) {
  .hero-content { padding: 56px 56px; }
  .hero h1 { font-size: 2.6rem; }
  .hero-sub { font-size: 1.15rem; }

  section { padding: 88px 0; }
  .section-title { font-size: 2rem; }

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

  .page-hero-img { height: 420px; }
  .page-hero-overlay { padding: 40px 48px; }
  .page-hero h1 { font-size: 2.5rem; }

  .about-img { height: 480px; }

  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

/* ============================================================
   RESPONSIVE — Large desktop (1440px+)
   ============================================================ */
@media (min-width: 1440px) {
  .container { max-width: 1320px; }
  .hero h1 { font-size: 2.8rem; }
}

/* ============================================================
   SCHEMA / SEO hidden
   ============================================================ */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
