/* ===================================================================
   Comfort Daniel Island LLC — HVAC Contractor, Charleston SC
   Shared stylesheet. Mobile-first. Sky blue + navy with warm orange.
   Fonts: Poppins (headings) + Inter (body).
   =================================================================== */

:root {
  /* Brand palette (from build brief) */
  --blue:      #1A73E8;   /* primary — deep sky blue */
  --blue-dark: #1660c4;
  --navy:      #0D1B2A;   /* secondary */
  --orange:    #F4800B;   /* warm accent */
  --orange-dark:#d96e02;
  --bg:        #F8F9FA;   /* off-white background */
  --ink:       #212529;   /* dark charcoal text */
  --muted:     #5c6672;
  --sky:       #eaf1fd;   /* soft blue wash */
  --line:      #e2e6ea;
  --white:     #ffffff;
  --star:      #fbbc04;

  --radius: 12px;
  --shadow: 0 6px 24px rgba(13, 27, 42, 0.10);
  --shadow-sm: 0 2px 10px rgba(13, 27, 42, 0.07);
  --wrap: 1120px;
  --f-head: "Poppins", "Segoe UI", system-ui, sans-serif;
  --f-body: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--f-body);
  color: var(--ink);
  line-height: 1.6;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--f-head); line-height: 1.15; color: var(--navy); margin: 0 0 0.5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 6vw, 3.25rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 4vw, 2.35rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1rem; }
a  { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section--sky { background: var(--sky); }
.section--white { background: var(--white); }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px;
  font-family: var(--f-head); font-weight: 600; font-size: 1.02rem; cursor: pointer;
  border: 2px solid transparent; transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--orange { background: var(--orange); color: #fff; box-shadow: var(--shadow-sm); }
.btn--orange:hover { background: var(--orange-dark); }
.btn--blue  { background: var(--blue); color: #fff; box-shadow: var(--shadow-sm); }
.btn--blue:hover  { background: var(--blue-dark); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--outline { background:#fff; color: var(--blue); border-color: var(--blue); }
.btn--outline:hover { background: var(--sky); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.97); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--f-head); font-weight: 700; color: var(--navy); font-size: 1.12rem; }
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  color: #fff; display: grid; place-items: center; font-size: 20px; flex: none;
}
.brand small { display: block; font-size: .66rem; font-weight: 500; color: var(--muted); letter-spacing: .04em; }

.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); font-weight: 500; padding: 8px 13px; border-radius: 8px; font-size: .98rem; }
.nav-links a:hover { background: var(--sky); text-decoration: none; }
.nav-links a.active { color: var(--blue); font-weight: 600; }

/* Header phone button — visible on ALL screen sizes */
.header-phone {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--orange); color: #fff; font-family: var(--f-head); font-weight: 600;
  padding: 10px 18px; border-radius: 999px; font-size: .98rem; box-shadow: var(--shadow-sm);
  white-space: nowrap;
}
.header-phone:hover { background: var(--orange-dark); text-decoration: none; }
.header-phone .full { display: inline; }
.header-phone .short { display: none; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; color: var(--navy); }
.nav-toggle svg { width: 28px; height: 28px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff;
  background:
    linear-gradient(120deg, rgba(13,27,42,.93), rgba(26,115,232,.80)),
    radial-gradient(circle at 82% 18%, rgba(244,128,11,.28), transparent 55%),
    var(--navy);
  padding: 84px 0 92px;
  overflow: hidden;
}
.hero h1 { color: #fff; }
.hero p { color: rgba(255,255,255,.92); font-size: 1.2rem; max-width: 580px; }
.hero .eyebrow {
  display: inline-block; font-family: var(--f-head); font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; font-size: .8rem; color: var(--orange); margin-bottom: 14px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

/* Two-column hero */
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero-copy { min-width: 0; }
.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; }
.hero-svg { width: 100%; max-width: 430px; height: auto; filter: drop-shadow(0 22px 40px rgba(0,0,0,.28)); }
.hero-photo { width: 100%; max-width: 520px; height: 400px; object-fit: cover; border-radius: 20px; box-shadow: 0 24px 48px rgba(13,27,42,.25); }
.about-photo { width: 100%; height: 340px; object-fit: cover; border-radius: 16px; margin: 32px 0 0; box-shadow: 0 12px 32px rgba(13,27,42,.15); }
.about-intro { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.about-intro .about-photo { margin: 0; height: 400px; }
.hero-badge {
  position: absolute; left: -6px; bottom: 8px;
  background: #fff; color: var(--ink); border-radius: 14px; box-shadow: var(--shadow);
  padding: 12px 15px; display: flex; align-items: center; gap: 11px; max-width: 235px;
}
.hero-badge .stars { font-size: 1rem; }
.hero-badge strong { font-family: var(--f-head); color: var(--navy); }
.hero-badge small { color: var(--muted); font-style: italic; }

/* Inline icons (buttons, lists, header) */
.i { width: 1.05em; height: 1.05em; fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -0.16em; }
.card .ico svg { width: 26px; height: 26px; }
.svc .ico svg { width: 27px; height: 27px; }
.info-list .ic svg { width: 20px; height: 20px; }
.brand .mark svg, .footer-brand .mark svg { width: 22px; height: 22px; }

/* Trust bar */
.trust-bar {
  display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; margin-top: 30px;
  color: rgba(255,255,255,.92); font-weight: 500; font-size: .98rem;
}
.trust-bar span { display: inline-flex; align-items: center; gap: 8px; }
.trust-bar .stars { color: var(--star); letter-spacing: 1px; }
.trust-bar .sep { color: rgba(255,255,255,.35); }

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

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
}
.card .ico {
  width: 54px; height: 54px; border-radius: 12px; background: var(--sky);
  color: var(--blue); display: grid; place-items: center; font-size: 26px; margin-bottom: 16px;
}
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); margin: 0; }
.card--link:hover { border-color: var(--blue); box-shadow: var(--shadow); }

/* Service detail rows (services page) */
.svc { display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: start;
  padding: 26px; background:#fff; border:1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.svc .ico { width: 56px; height: 56px; border-radius: 12px; background: var(--sky); color: var(--blue);
  display: grid; place-items: center; font-size: 27px; }
.svc h3 { margin: 2px 0 .35em; }
.svc p { margin: 0; color: var(--muted); }

/* ---------- Review ---------- */
.review {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 36px; max-width: 720px; margin: 0 auto; border-top: 4px solid var(--orange);
}
.review blockquote { margin: 0 0 18px; font-size: 1.3rem; color: var(--ink); line-height: 1.5; font-weight: 500; }
.review .who { display: flex; align-items: center; gap: 14px; }
.review .avatar {
  width: 46px; height: 46px; border-radius: 50%; background: var(--blue); color: #fff;
  display: grid; place-items: center; font-family: var(--f-head); font-weight: 600; font-size: 1.05rem; flex: none;
}
.review .name { font-family: var(--f-head); font-weight: 600; color: var(--navy); }
.review .role { font-size: .88rem; color: var(--muted); }
.stars { color: var(--star); letter-spacing: 2px; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--navy), var(--blue-dark)); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.big-phone {
  display: inline-flex; align-items: center; gap: 12px; font-family: var(--f-head); font-weight: 700;
  font-size: clamp(1.6rem, 5vw, 2.2rem); color: var(--blue); margin: 0 0 6px;
}
.big-phone:hover { text-decoration: none; color: var(--blue-dark); }

.hours-table { width: 100%; border-collapse: collapse; margin: 6px 0 4px; }
.hours-table th, .hours-table td { text-align: left; padding: 11px 8px; border-bottom: 1px solid var(--line); }
.hours-table th { font-family: var(--f-head); color: var(--navy); font-weight: 600; }
.hours-table td { color: var(--muted); }
.hours-table .closed { color: #b23b3b; font-weight: 600; }

.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.info-list .ic { width: 42px; height: 42px; border-radius: 10px; background: var(--sky); color: var(--blue);
  display: grid; place-items: center; font-size: 20px; flex: none; }
.info-list b { font-family: var(--f-head); color: var(--navy); display: block; }
.info-list a { font-weight: 600; }

form label { display: block; font-family: var(--f-head); font-weight: 600; color: var(--navy); margin: 14px 0 6px; }
form input, form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 1rem; background: #fff; color: var(--ink);
}
form input:focus, form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26,115,232,.15); }
form textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 12px; }
.form-status { margin-top: 14px; font-weight: 600; }
.form-status.ok { color: #1a7a3d; }
.form-status.err { color: #b23b3b; }

.map-embed { border: 0; width: 100%; height: 340px; border-radius: var(--radius); box-shadow: var(--shadow-sm); }

/* ---------- Page hero (interior) ---------- */
.page-hero { background: linear-gradient(120deg, var(--navy), var(--blue-dark)); color: #fff; padding: 58px 0; text-align: center; }
.page-hero h1 { color: #fff; margin-bottom: .3em; }
.page-hero p { color: rgba(255,255,255,.9); max-width: 640px; margin: 0 auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.82); padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; }
.site-footer h4 { font-family: var(--f-head); color: #fff; margin: 0 0 14px; font-size: 1rem; }
.site-footer a { color: rgba(255,255,255,.82); }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-brand strong { font-family: var(--f-head); }
.footer-brand .mark {
  width: 42px; height: 42px; border-radius: 10px; background: linear-gradient(135deg, var(--blue), var(--orange));
  display: grid; place-items: center; font-size: 22px; color:#fff; margin-bottom: 12px;
}
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 32px; padding-top: 18px;
  font-size: .85rem; color: rgba(255,255,255,.6); text-align: center; }

/* ---------- Floating mobile call button ---------- */
.call-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  background: var(--orange); color: #fff; font-family: var(--f-head); font-weight: 600;
  padding: 14px 22px; border-radius: 999px; box-shadow: 0 8px 24px rgba(0,0,0,.28);
  display: none; align-items: center; gap: 9px;
}
.call-fab:hover { text-decoration: none; background: var(--orange-dark); }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .about-intro { grid-template-columns: 1fr; gap: 24px; }
  .about-intro .about-photo { height: 300px; }

  .nav-toggle { display: block; }
  .header-phone { padding: 9px 14px; }
  .header-phone .full { display: none; }
  .header-phone .short { display: inline; }

  .nav-links {
    position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 12px 16px; box-shadow: var(--shadow); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 10px; border-radius: 8px; }

  .call-fab { display: inline-flex; }

  /* Clearance so the floating call button never covers footer links */
  .site-footer { padding-bottom: 104px; }

  /* Keep the call CTA above the fold on phones */
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-visual { display: none; }
}

/* Phone-sized header + trust bar */
@media (max-width: 600px) {
  .nav { gap: 8px; }
  .brand { font-size: .96rem; line-height: 1.15; }
  .brand small { display: none; }
  .brand .mark { width: 34px; height: 34px; }
  .brand .mark svg { width: 19px; height: 19px; }
  .header-phone { padding: 9px 12px; gap: 6px; }

  .trust-bar { flex-direction: column; align-items: flex-start; gap: 9px; margin-top: 26px; }
  .trust-bar .sep { display: none; }
}

@media (max-width: 480px) {
  .section { padding: 48px 0; }
  .hero { padding: 60px 0 72px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .brand { font-size: .92rem; }
  /* Icon-only call button so the company name fits on one line */
  .header-phone .short { display: none; }
  .header-phone { padding: 10px 12px; gap: 0; }
}
