/* Blessings Home Improvements & HVAC Systems LLC — shared styles */

:root {
  --navy: #121f6c;
  --navy-700: #1a2a86;
  --navy-600: #2c3ba0;
  --navy-100: #e5e7f5;
  --navy-50: #f3f4fb;
  --gold: #eebe05;
  --gold-600: #d4a900;
  --gold-100: #fdf3cc;
  --ink: #0b0f2b;
  --paper: #ffffff;
  --gray-600: #565b73;
  --gray-200: #dfe1ec;

  --text-base: clamp(1rem, 0.94rem + 0.3vw, 1.125rem);
  --text-lg: clamp(1.15rem, 1.05rem + 0.5vw, 1.375rem);
  --text-xl: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --text-2xl: clamp(2rem, 1.6rem + 2vw, 3.25rem);
  --text-hero: clamp(2.5rem, 1.9rem + 3vw, 4.5rem);

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: clamp(2.5rem, 2rem + 2vw, 4rem);
  --space-section: clamp(4rem, 3rem + 5vw, 8rem);

  --radius: 14px;
  --radius-sm: 8px;
  --shadow-card: 0 12px 32px -12px rgba(18, 31, 108, 0.25);
  --shadow-pop: 0 18px 44px -14px rgba(18, 31, 108, 0.4);

  --duration-fast: 150ms;
  --duration-normal: 320ms;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);

  --header-h: 84px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: var(--text-base);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Poppins", "Inter", sans-serif;
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 var(--space-sm);
  font-weight: 700;
}
h1 { font-size: var(--text-hero); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
p { margin: 0 0 var(--space-sm); color: var(--gray-600); max-width: 62ch; }
a { color: inherit; }
img, video { max-width: 100%; display: block; }

.container { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.section { padding-block: var(--space-section); }
.section--alt { background: var(--navy-50); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: "Poppins", sans-serif; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; font-size: 0.8rem; color: var(--gold-600);
  margin-bottom: var(--space-xs);
}
.eyebrow::before { content: ""; width: 22px; height: 3px; background: var(--gold); border-radius: 2px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -80px; background: var(--navy); color: #fff;
  padding: 0.75rem 1.25rem; border-radius: var(--radius-sm); z-index: 200;
  transition: top var(--duration-fast) var(--ease-out-expo);
}
.skip-link:focus { top: 1rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  font-family: "Poppins", sans-serif; font-weight: 600; font-size: 0.98rem;
  padding: 0.85em 1.6em; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform var(--duration-fast) var(--ease-out-expo), box-shadow var(--duration-fast) var(--ease-out-expo), background var(--duration-fast);
}
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn--gold { background: var(--gold); color: var(--ink); box-shadow: var(--shadow-card); }
.btn--gold:hover { transform: translateY(-2px); box-shadow: var(--shadow-pop); background: var(--gold-600); }
.btn--outline { background: transparent; border-color: currentColor; color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }
.btn--ghost-light { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.5); backdrop-filter: blur(6px); }
.btn--ghost-light:hover { background: #fff; color: var(--navy); }
.btn--sm { padding: 0.6em 1.2em; font-size: 0.88rem; }
.btn--block { width: 100%; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--gray-200);
  transition: box-shadow var(--duration-normal) var(--ease-out-expo), padding var(--duration-normal) var(--ease-out-expo);
}
.site-header.is-scrolled { box-shadow: 0 8px 24px -16px rgba(18,31,108,0.35); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-md);
  min-height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand img { height: 44px; width: auto; }
nav.main-nav { display: none; }
.header-ctas { display: flex; align-items: center; gap: 0.5rem; }
.call-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  font-family: "Poppins", sans-serif; font-weight: 700; color: var(--navy); text-decoration: none;
  width: 40px; height: 40px; border-radius: 50%; background: var(--navy-50); flex: none;
}
.call-btn svg { width: 18px; height: 18px; flex: none; }
.call-btn span { display: none; }

@media (min-width: 560px) {
  .call-btn { width: auto; height: auto; border-radius: 999px; background: none; padding: 0; }
  .call-btn span { display: inline; }
}

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--radius-sm); border: 1px solid var(--gray-200);
  background: #fff; cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (min-width: 1220px) {
  .brand img { height: 52px; }
  nav.main-nav { display: flex; gap: 1.15rem; font-family: "Poppins", sans-serif; font-weight: 600; font-size: 0.92rem; }
  nav.main-nav a { text-decoration: none; color: var(--ink); position: relative; padding: 0.3em 0; white-space: nowrap; }
  nav.main-nav a::after {
    content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
    background: var(--gold); transition: right var(--duration-normal) var(--ease-out-expo);
  }
  nav.main-nav a:hover::after, nav.main-nav a[aria-current="page"]::after { right: 0; }
  .nav-toggle { display: none; }
}

.mobile-nav {
  display: none; position: fixed; inset: var(--header-h) 0 0 0; background: var(--navy);
  z-index: 90; padding: var(--space-lg) var(--space-md); overflow-y: auto;
}
.mobile-nav.is-open { display: block; }
.mobile-nav a { display: block; color: #fff; text-decoration: none; font-family: "Poppins", sans-serif; font-size: 1.4rem; font-weight: 600; padding: 0.7em 0; border-bottom: 1px solid rgba(255,255,255,0.15); }
.mobile-nav .btn { margin-top: var(--space-md); }
@media (min-width: 1220px) { .mobile-nav { display: none !important; } }

/* Hero */
.hero {
  position: relative; min-height: min(92vh, 820px); display: flex; align-items: flex-end;
  overflow: hidden; background: var(--navy);
}
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,15,43,0.55) 0%, rgba(11,15,43,0.35) 40%, rgba(11,15,43,0.92) 100%);
}
.hero-content { position: relative; z-index: 2; color: #fff; padding-block: var(--space-lg) calc(var(--space-lg) * 1.4); width: 100%; }
.hero-content h1 { color: #fff; max-width: 16ch; }
.hero-content .lede { color: rgba(255,255,255,0.88); font-size: var(--text-lg); max-width: 46ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-md); }
.trust-strip {
  display: flex; flex-wrap: wrap; gap: var(--space-md); margin-top: var(--space-lg);
  padding-top: var(--space-md); border-top: 1px solid rgba(255,255,255,0.25);
  font-family: "Poppins", sans-serif; font-weight: 600; font-size: 0.9rem; color: rgba(255,255,255,0.9);
}
.trust-strip span { display: inline-flex; align-items: center; gap: 0.5em; }
.trust-strip svg { width: 18px; height: 18px; color: var(--gold); }

/* Section headers */
.section-head { max-width: 62ch; margin-bottom: var(--space-lg); }
.section-head.center { margin-inline: auto; text-align: center; }

/* Service cards */
.grid { display: grid; gap: var(--space-md); }
.grid--services { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: #fff; border-radius: var(--radius); padding: var(--space-md);
  box-shadow: var(--shadow-card); border: 1px solid var(--gray-200);
  transition: transform var(--duration-normal) var(--ease-out-expo), box-shadow var(--duration-normal) var(--ease-out-expo);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-pop); }
.card-icon {
  width: 52px; height: 52px; border-radius: var(--radius-sm); background: var(--navy-50);
  display: flex; align-items: center; justify-content: center; margin-bottom: var(--space-sm);
}
.card-icon svg { width: 26px; height: 26px; color: var(--navy); }
.card h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.card p { font-size: 0.95rem; margin-bottom: var(--space-sm); }

/* Diagonal divider (motif from the flyer) */
.diagonal-top { clip-path: polygon(0 4vw, 100% 0, 100% 100%, 0 100%); }
.diagonal-bottom { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 4vw)); }

/* Service area chips */
.area-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-sm); }
.area-card {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-sm);
  padding: 1rem 1.25rem; text-decoration: none; color: var(--ink); font-family: "Poppins", sans-serif; font-weight: 600;
  transition: border-color var(--duration-fast), background var(--duration-fast), transform var(--duration-fast);
}
.area-card:hover { border-color: var(--gold); background: var(--gold-100); transform: translateX(4px); }
.area-card svg { width: 18px; height: 18px; color: var(--navy); flex: none; }

/* CTA band */
.cta-band {
  background: var(--navy); color: #fff; border-radius: var(--radius); padding: var(--space-lg);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-md);
}
.cta-band h2, .cta-band p { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.85); margin: 0; }

/* Booking block */
.booking-block { border: 2px dashed var(--gold-600); border-radius: var(--radius); padding: var(--space-md); background: var(--gold-100); }
.booking-block .booking-note { font-size: 0.85rem; color: var(--gray-600); }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.8); padding-block: var(--space-lg) var(--space-md); }
.footer-grid { display: grid; gap: var(--space-lg); grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-bottom: var(--space-lg); }
.footer-grid h4 { color: #fff; font-size: 1rem; margin-bottom: 0.8rem; }
.footer-grid a { color: rgba(255,255,255,0.72); text-decoration: none; display: block; padding: 0.25rem 0; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--gold); }
.footer-brand img { height: 34px; margin-bottom: 0.8rem; }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  border-top: 1px solid rgba(255,255,255,0.12); padding-top: var(--space-md); font-size: 0.85rem;
}
.ach-credit { display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; color: rgba(255,255,255,0.7); }
.ach-credit img { height: 20px; border-radius: 4px; }
.ach-credit:hover { color: var(--gold); }

/* Chat nudge widget */
.call-nudge { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 150; font-family: "Poppins", sans-serif; }
.call-nudge-panel {
  display: none; width: min(280px, 78vw); background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-pop); padding: var(--space-md); margin-bottom: 0.75rem; border: 1px solid var(--gray-200);
  position: relative;
}
.call-nudge.is-open .call-nudge-panel { display: block; }
.call-nudge-panel h4 { margin-bottom: 0.4rem; font-size: 1.05rem; }
.call-nudge-panel p { font-size: 0.88rem; margin-bottom: 0.9rem; }
.call-nudge-close { position: absolute; top: 0.6rem; right: 0.6rem; background: none; border: none; cursor: pointer; color: var(--gray-600); }
.call-nudge-toggle {
  width: 60px; height: 60px; border-radius: 50%; background: var(--gold); border: none;
  box-shadow: var(--shadow-pop); cursor: pointer; display: flex; align-items: center; justify-content: center;
  animation: pulse 2.4s ease-in-out infinite;
}
.call-nudge-toggle svg { width: 26px; height: 26px; color: var(--ink); }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(238,190,5,0.5), var(--shadow-pop); } 50% { box-shadow: 0 0 0 10px rgba(238,190,5,0), var(--shadow-pop); } }
@media (prefers-reduced-motion: reduce) { .call-nudge-toggle { animation: none; } }

/* Reveal-on-scroll */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo); }
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; } }

/* Page hero (interior pages, no video) */
.page-hero { background: var(--navy); color: #fff; padding-block: calc(var(--space-lg) * 1.4) var(--space-lg); }
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255,255,255,0.85); max-width: 60ch; }
.breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.65); margin-bottom: var(--space-sm); }
.breadcrumb a { color: rgba(255,255,255,0.85); text-decoration: none; }

/* Utility */
.mt-lg { margin-top: var(--space-lg); }
.text-center { text-align: center; }
.two-col { display: grid; gap: var(--space-lg); grid-template-columns: 1fr; }
@media (min-width: 860px) { .two-col { grid-template-columns: 1.1fr 0.9fr; align-items: center; } }
