/* ==========================================================================
   FloStar LLC — Brand Stylesheet
   Colors extracted from the FloStar logo: deep navy backdrop, brand blue,
   accent orange.
   ========================================================================== */

:root {
  --blue-900: #0a2650;
  --blue-800: #0b3872;
  --blue-700: #0c4996;
  --blue-600: #0d5cc0;
  --blue-500: #2478dd;
  --blue-100: #e5eefb;
  --blue-50:  #f3f8fd;

  --orange-600: #d97600;
  --orange-500: #f7941d;
  --orange-400: #ffab3d;
  --orange-100: #fef1de;

  --navy-950: #0e1420;
  --charcoal-900: #1c222b;
  --charcoal-800: #2b323c;

  --gray-900: #1b222c;
  --gray-700: #454e5a;
  --gray-600: #5c6773;
  --gray-400: #97a1ac;
  --gray-200: #dde3e9;
  --gray-100: #eef2f6;
  --gray-50:  #f7f9fb;
  --white: #ffffff;

  --font-heading: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 3px rgba(14, 20, 32, 0.08), 0 1px 2px rgba(14, 20, 32, 0.06);
  --shadow-md: 0 8px 24px rgba(14, 20, 32, 0.10);
  --shadow-lg: 0 20px 45px rgba(14, 20, 32, 0.16);

  --container-width: 1180px;
}

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

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--navy-950);
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); letter-spacing: -0.5px; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -0.3px; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; color: var(--gray-700); }
a { color: var(--blue-600); text-decoration: none; }
ul { padding-left: 1.2em; }
img { max-width: 100%; display: block; }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--orange-600);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--orange-500);
  display: inline-block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--orange-500);
  color: var(--navy-950);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--orange-400); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.55);
}
.btn-secondary:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

.btn-outline {
  background: transparent;
  color: var(--blue-600);
  border-color: var(--blue-600);
}
.btn-outline:hover { background: var(--blue-600); color: var(--white); }

.btn-block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(14, 20, 32, 0.98);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
/* keeps anchor-linked sections (e.g. services.html#water-heaters) from
   landing underneath the sticky header when scrolled/jumped to */
[id] { scroll-margin-top: 110px; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-logo-img { height: 40px; width: auto; display: block; }
.footer-logo-img { height: 46px; }
.brand-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.32rem;
  color: var(--white);
  letter-spacing: -0.3px;
}
.brand-text span { color: var(--orange-500); }
.brand-sub {
  font-size: 0.62rem;
  letter-spacing: 1.5px;
  color: var(--gray-400);
  font-weight: 600;
  display: block;
  margin-top: -2px;
}

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  color: rgba(255,255,255,0.82);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.94rem;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease, color 0.15s ease;
}
.main-nav a:hover { background: rgba(255,255,255,0.08); color: var(--white); }
.main-nav a.active { color: var(--white); background: rgba(27, 95, 196, 0.4); }

.header-cta { display: flex; align-items: center; gap: 14px; }
.header-phone {
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-phone .icon { color: var(--orange-500); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
}

@media (max-width: 960px) {
  .main-nav {
    position: fixed;
    inset: 68px 0 0 0;
    background: var(--navy-950);
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    gap: 4px;
    transform: translateY(-110%);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.2s ease;
    overflow-y: auto;
  }
  .main-nav.open { transform: translateY(0); opacity: 1; }
  .main-nav a { padding: 14px 16px; font-size: 1.05rem; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .nav-toggle { display: block; }
  .header-phone span.phone-text { display: none; }
  .header-cta { gap: 8px; }
}

@media (max-width: 640px) {
  .header-inner { padding: 12px 16px; }
  .brand-sub { display: none; }
  .header-cta .btn-primary { display: none; }
  .header-phone { padding: 6px; }
}

@media (max-width: 360px) {
  .brand-text { font-size: 1.1rem; }
}

/* ---------- Top bar ---------- */
.top-bar {
  background: var(--navy-950);
  color: var(--gray-400);
  font-size: 0.82rem;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; }
.top-bar a { color: var(--gray-400); }
.top-bar strong { color: var(--orange-400); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(120deg, var(--navy-950) 0%, var(--blue-900) 55%, var(--blue-700) 100%);
  color: var(--white);
  overflow: hidden;
  padding: 100px 0 120px;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -160px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(247,148,29,0.25), transparent 70%);
}
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero h1 { color: var(--white); }
.hero h1 .highlight { color: var(--orange-500); }
.hero-lead { font-size: 1.12rem; color: rgba(255,255,255,0.82); max-width: 540px; }
.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 22px; margin-top: 42px; flex-wrap: wrap; }
.hero-badge { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,0.88); font-size: 0.9rem; font-weight: 600; font-family: var(--font-heading); }
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange-500); }

.hero-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-lg);
  padding: 30px;
  backdrop-filter: blur(6px);
}
.hero-card h3 { color: var(--white); margin-bottom: 18px; }
.hero-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.hero-card li { display: flex; align-items: flex-start; gap: 10px; color: rgba(255,255,255,0.88); font-size: 0.95rem; }
.hero-card li .check { color: var(--orange-500); font-weight: 700; }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero { padding: 70px 0 90px; text-align: left; }
}

/* ---------- Page header (inner pages) ---------- */
.page-hero {
  background: linear-gradient(120deg, var(--navy-950) 0%, var(--blue-800) 100%);
  color: var(--white);
  padding: 70px 0 60px;
  text-align: center;
}
.page-hero h1 { color: var(--white); }
.page-hero p { color: rgba(255,255,255,0.78); max-width: 640px; margin: 0 auto; }
.breadcrumb { color: var(--gray-400); font-size: 0.85rem; margin-bottom: 14px; }
.breadcrumb a { color: var(--gray-400); }
.breadcrumb span { color: var(--orange-400); }

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.section-tight { padding: 60px 0; }
.section-alt { background: var(--gray-50); }
.section-dark { background: var(--navy-950); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,0.75); }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head.left { margin: 0 0 44px; text-align: left; }

/* ---------- Grids & Cards ---------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.card .icon-wrap {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: var(--blue-100);
  color: var(--blue-600);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  font-size: 1.5rem;
}
.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 0; font-size: 0.95rem; }
.card a.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 600; font-family: var(--font-heading); font-size: 0.9rem; }

.card.card-featured {
  border-color: var(--orange-500);
  position: relative;
}
.card.card-featured::before {
  content: "Coming Soon";
  position: absolute;
  top: -12px; right: 20px;
  background: var(--orange-500);
  color: var(--navy-950);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
}
.card.card-featured .icon-wrap { background: var(--orange-100); color: var(--orange-600); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat .num { font-family: var(--font-heading); font-weight: 700; font-size: 2.2rem; color: var(--orange-500); }
.stat .label { font-size: 0.85rem; color: rgba(255,255,255,0.75); font-weight: 500; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(110deg, var(--blue-700), var(--blue-600));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.cta-banner h2, .cta-banner p { color: var(--white); }
.cta-banner p { margin-bottom: 0; color: rgba(255,255,255,0.85); }

/* ---------- Process steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { position: relative; padding-left: 4px; }
.step .step-num {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--navy-950); color: var(--orange-500);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 700;
  margin-bottom: 16px;
}
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery-item {
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.85);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  text-align: center;
  padding: 18px;
}
.gallery-item span.tag {
  position: absolute; bottom: 14px; left: 14px;
  background: rgba(14,20,32,0.55);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  letter-spacing: 0.4px;
  z-index: 2;
}
.gallery-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-item.has-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,14,22,0.7) 0%, rgba(10,14,22,0) 48%);
  z-index: 1;
}
@media (max-width: 860px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: 1fr; } }

/* ---------- Filter chips ---------- */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; justify-content: center; }
.filter-chip {
  font-family: var(--font-heading); font-weight: 600; font-size: 0.85rem;
  padding: 9px 18px; border-radius: 30px;
  border: 1.5px solid var(--gray-200);
  background: var(--white); color: var(--gray-700);
  cursor: pointer; transition: all 0.15s ease;
}
.filter-chip.active, .filter-chip:hover { background: var(--blue-600); border-color: var(--blue-600); color: var(--white); }

/* ---------- Testimonials ---------- */
.testimonial {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 28px;
}
.testimonial .stars { color: var(--orange-500); letter-spacing: 2px; margin-bottom: 12px; }
.testimonial p.quote { font-style: italic; color: var(--gray-700); }
.testimonial .who { font-family: var(--font-heading); font-weight: 600; color: var(--navy-950); font-size: 0.92rem; }
.testimonial .who span { color: var(--gray-400); font-weight: 400; display: block; font-size: 0.8rem; }

/* ---------- Areas ---------- */
.area-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.area-pill {
  display: flex; align-items: center; gap: 10px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy-950);
}
.area-pill .icon { color: var(--orange-500); }
@media (max-width: 720px) { .area-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .area-list { grid-template-columns: 1fr; } }

.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--blue-100), var(--gray-100));
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-600);
  font-family: var(--font-heading);
  font-weight: 600;
  text-align: center;
  padding: 20px;
}

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 6px;
  color: var(--navy-950);
}
input, select, textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.96rem;
  color: var(--gray-900);
  background: var(--white);
  transition: border-color 0.15s ease;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue-600); }
textarea { resize: vertical; min-height: 120px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.form-note { font-size: 0.8rem; color: var(--gray-400); margin-top: 10px; }

.contact-panel {
  background: var(--navy-950);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.contact-panel h3 { color: var(--white); }
.contact-row { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.contact-row .icon { color: var(--orange-500); font-size: 1.2rem; margin-top: 2px; }
.contact-row strong { display: block; font-family: var(--font-heading); color: var(--white); font-size: 0.95rem; }
.contact-row span, .contact-row a { color: rgba(255,255,255,0.75); font-size: 0.92rem; }
.contact-row a { color: rgba(255,255,255,0.9); }
.social-row { display: flex; gap: 10px; margin-top: 24px; }
.social-row a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
  border: 1px solid rgba(255,255,255,0.15);
}
.social-row a:hover { background: var(--orange-500); color: var(--navy-950); border-color: var(--orange-500); }

/* ---------- Split layout ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.split img, .split .img-placeholder { border-radius: var(--radius-lg); }
.img-placeholder {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--blue-800), var(--blue-600));
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.85);
  font-family: var(--font-heading);
  font-weight: 600;
  text-align: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.img-placeholder::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(247,148,29,0.35), transparent 55%);
}

.check-list { list-style: none; padding: 0; margin: 20px 0; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; color: var(--gray-700); }
.check-list li::before {
  content: "✓";
  color: var(--white);
  background: var(--blue-600);
  width: 20px; height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  margin-top: 2px;
}

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--gray-200); padding: 20px 0; }
.faq-item summary {
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--navy-950);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--orange-500);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: 12px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal-900); color: rgba(255,255,255,0.7); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 46px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand .brand-text { font-size: 1.3rem; }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.9rem; margin-top: 14px; max-width: 300px; }
.site-footer h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer a { color: rgba(255,255,255,0.65); font-size: 0.9rem; }
.site-footer a:hover { color: var(--orange-400); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 0; font-size: 0.82rem; color: rgba(255,255,255,0.5); flex-wrap: wrap; gap: 10px;
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Sticky mobile call bar ---------- */
.mobile-call-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--orange-500);
  color: var(--navy-950);
  z-index: 600;
  padding: 14px;
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 700;
}
@media (max-width: 720px) { .mobile-call-bar { display: block; } body { padding-bottom: 54px; } }

/* ---------- Misc ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.badge-emergency {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(247,148,29,0.14);
  color: var(--orange-600);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 8px 16px;
  border-radius: 30px;
  margin-bottom: 18px;
}
.badge-emergency .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange-500); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
