/*
Theme Name: Soundside Plumbing
Theme URI: https://soundsideplumbing.com
Author: Soundside Plumbing
Description: Custom theme for Soundside Plumbing, serving Pensacola and the surrounding Escambia and Santa Rosa County area.
Version: 1.0
Text Domain: soundside
*/

/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
  --navy: #0B3142;
  --navy-deep: #072330;
  --teal: #1C7C8C;
  --teal-light: #2FA3B5;
  --sand: #F3ECDC;
  --sand-light: #FAF6EC;
  --coral: #E8683D;
  --coral-dark: #CC5230;
  --ink: #14262E;
  --white: #FFFFFF;
  --line: rgba(11, 49, 66, 0.12);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  --radius: 6px;
  --container: 1180px;
}

/* ==========================================================================
   Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sand-light);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-deep);
  line-height: 1.12;
  margin: 0 0 0.5em;
  font-weight: 600;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 500; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 2px;
}
.screen-reader-text {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  background: var(--navy);
  color: var(--white);
  padding: 10px 16px;
  z-index: 999;
  border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

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

/* ==========================================================================
   Utility
   ========================================================================== */
.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--teal);
  font-weight: 600;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--coral); color: var(--white); }
.btn-primary:hover { background: var(--coral-dark); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.5); color: var(--white); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-outline-navy { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }

/* Wave contour divider — the signature element */
.wave-divider { display: block; width: 100%; line-height: 0; }
.wave-divider svg { width: 100%; height: 60px; display: block; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  background: var(--navy-deep);
  color: var(--white);
}
.top-bar {
  background: var(--navy);
  font-family: var(--font-mono);
  font-size: 0.82rem;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}
.top-bar a { color: var(--sand); }
.top-bar .top-phone { color: var(--white); font-weight: 600; }
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-emblem,
.footer-emblem {
  height: 52px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.brand-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--white);
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.custom-logo {
  height: 64px;
  width: auto;
  display: block;
}
.brand .brand-sub {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-light);
  font-weight: 500;
  margin-top: 2px;
}
.nav-menu {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-menu a {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  transition: color 0.15s ease;
}
.nav-menu a:hover { color: var(--white); }
.nav-cta { display: flex; align-items: center; gap: 16px; }
.menu-toggle { display: none; background: none; border: none; color: var(--white); font-size: 1.6rem; cursor: pointer; }

@media (max-width: 880px) {
  .nav-menu { display: none; }
  .menu-toggle { display: block; }
  .top-bar .container { justify-content: center; text-align: center; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: var(--white);
  padding: 72px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { color: var(--white); }
.hero h1 em {
  font-style: normal;
  color: var(--teal-light);
}
.hero-lead {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.82);
  max-width: 46ch;
}
.hero-actions { display: flex; gap: 16px; margin-top: 28px; flex-wrap: wrap; }
.hero-badges {
  display: flex;
  gap: 24px;
  margin-top: 40px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.7);
}
.hero-badges span { display: flex; align-items: center; gap: 8px; }
.hero-badges .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal-light); }

.hero-panel {
  background: var(--sand-light);
  border-radius: 10px;
  padding: 32px;
  color: var(--ink);
  box-shadow: 0 30px 60px rgba(0,0,0,0.25);
}
.hero-panel h2 { font-size: 1.3rem; margin-bottom: 4px; }
.hero-panel-logo { height: 90px; width: auto; margin-bottom: 16px; }
.hero-panel p.panel-sub { color: #5A6E76; font-size: 0.9rem; margin-bottom: 20px; }
.hero-form input, .hero-form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white);
}
.hero-form .btn { width: 100%; justify-content: center; }

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 72px; }
}

/* ==========================================================================
   Trust bar
   ========================================================================== */
.trust-bar {
  background: var(--sand);
  border-bottom: 1px solid var(--line);
}
.trust-bar .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding: 22px 24px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy-deep);
}
.trust-item svg { flex-shrink: 0; color: var(--teal); }

/* ==========================================================================
   Section shell
   ========================================================================== */
section { padding: 88px 0; }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head .eyebrow { display: block; margin-bottom: 10px; }
.section-head p { color: #4F6169; }
.bg-sand { background: var(--sand); }
.bg-navy { background: var(--navy-deep); color: var(--white); }
.bg-navy h2 { color: var(--white); }
.bg-navy .section-head p { color: rgba(255,255,255,0.72); }

/* ==========================================================================
   Services grid
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 32px 28px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(11,49,66,0.1);
}
.service-icon {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  margin-bottom: 18px;
}
.service-card h3 { margin-bottom: 8px; }
.service-card p { color: #4F6169; font-size: 0.92rem; margin-bottom: 0; }

@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Service area
   ========================================================================== */
.area-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.county-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 28px 30px;
  margin-bottom: 20px;
}
.county-card h3 {
  color: var(--white);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.county-card h3::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--coral);
  border-radius: 50%;
}
.town-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 20px;
}
.town-list li {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.85);
  padding-left: 14px;
  position: relative;
}
.town-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--teal-light);
}
.area-note {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  margin-top: 8px;
}
.area-map-side p { color: rgba(255,255,255,0.75); }
.area-map-side .btn { margin-top: 12px; }

@media (max-width: 900px) {
  .area-wrap { grid-template-columns: 1fr; }
  .town-list { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   Why us / process
   ========================================================================== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.why-item { text-align: left; }
.why-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--teal);
  margin-bottom: 10px;
  display: block;
}
.why-item h3 { font-size: 1.05rem; margin-bottom: 6px; }
.why-item p { font-size: 0.9rem; color: #4F6169; }

@media (max-width: 900px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .why-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testi-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px;
}
.testi-stars { color: var(--coral); font-size: 0.85rem; margin-bottom: 12px; letter-spacing: 2px; }
.testi-card p.quote { font-size: 0.95rem; color: var(--ink); }
.testi-name { font-family: var(--font-mono); font-size: 0.78rem; color: #4F6169; text-transform: uppercase; letter-spacing: 0.05em; }

@media (max-width: 900px) {
  .testi-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Final CTA
   ========================================================================== */
.final-cta {
  background: var(--coral);
  color: var(--white);
  text-align: center;
  padding: 72px 0;
}
.final-cta h2 { color: var(--white); }
.final-cta p { color: rgba(255,255,255,0.9); max-width: 50ch; margin: 0 auto 28px; }
.final-cta .btn-primary { background: var(--navy-deep); }
.final-cta .btn-primary:hover { background: var(--navy); }

/* ==========================================================================
   FAQ accordion
   ========================================================================== */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 4px 24px;
}
.faq-item summary {
  padding: 18px 0;
  font-weight: 600;
  color: var(--navy-deep);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 28px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 18px;
  color: var(--teal);
  font-size: 1.2rem;
  font-weight: 400;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p { color: #4F6169; font-size: 0.94rem; padding-bottom: 18px; margin: 0; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 28px;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}
.footer-grid h4 {
  color: var(--white);
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid a:hover { color: var(--white); }
.footer-brand .footer-emblem { margin-bottom: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}
