/* ==========================================================================
   1. Client Design Controls
   Edit this section when adapting the template for a new lead or client.
   The HTML skeleton and JS composer can stay the same.
   ========================================================================== */

:root {
  /* Colors */
  --color-page: #050910;
  --color-surface: #0a111b;
  --color-surface-2: #0d1724;
  --color-ink: #f7fbff;
  --color-muted: #9aa8b7;
  --color-line: #1c2a3a;

  --color-brand: #ff3b30;
  --color-brand-dark: #03070d;
  --color-brand-hover: #ff5a50;
  --color-blue: #0878ff;
  --color-blue-soft: rgba(8, 120, 255, 0.14);
  --color-on-brand: #ffffff;

  /* Typography */
  --font-display: Impact, Haettenschweiler, "Arial Narrow Bold", "Arial Narrow", Arial, Helvetica, sans-serif;
  --font-body: Arial, Helvetica, sans-serif;

  /* Layout */
  --site-width: 1120px;
  --gutter: 24px;
  --section-space: 96px;
  --header-space: 12px;

  /* Shape */
  --radius: 8px;
  --button-radius: 4px;
}

/* ==========================================================================
   2. Base Defaults
   Browser-level defaults and document-wide behavior.
   ========================================================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-page);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
}

/* ==========================================================================
   3. Layout Primitives
   Reusable structure used by headers, footers, and sections.
   ========================================================================== */

.inner {
  width: min(var(--site-width), 100%);
  margin: 0 auto;
}

.site-header,
.site-footer,
.section,
.hero {
  padding-right: var(--gutter);
  padding-left: var(--gutter);
}

.section {
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
  background: var(--color-page);
}

.section + .section {
  border-top: 1px solid var(--color-line);
}

/* ==========================================================================
   4. Typography
   Shared heading and copy rules across page sections.
   ========================================================================== */

.hero h1,
.section h1,
.section h2 {
  max-width: 720px;
  margin: 0 0 12px;
  font-family: var(--font-display);
  line-height: 0.86;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 700px;
  font-size: clamp(4.25rem, 8vw, 7.25rem);
}

.section h1,
.section h2 {
  font-size: clamp(3.25rem, 7vw, 6rem);
}

.hero p,
.section p {
  max-width: 680px;
  margin: 0;
  color: var(--color-muted);
}

.text-blue {
  color: var(--color-blue);
}

.section-eyebrow {
  margin-bottom: 10px;
  color: var(--color-blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero p + p,
.section p + p {
  margin-top: 12px;
}

.section-list {
  max-width: 680px;
  margin: 16px 0 0;
  padding-left: 22px;
  color: var(--color-muted);
}

.section-list li::marker,
.service-bullets li::marker {
  color: var(--color-blue);
}

.section-list + p {
  margin-top: 16px;
}

/* ==========================================================================
   5. Site Header
   Top navigation and brand treatment.
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: var(--header-space);
  padding-bottom: var(--header-space);
  background: rgba(3, 7, 13, 0.94);
  border-bottom: 1px solid var(--color-line);
  backdrop-filter: blur(16px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-ink);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.brand-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex: 0 0 auto;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
}

.nav-links a {
  color: var(--color-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-links a:hover {
  color: var(--color-brand);
}

.nav-action .button {
  margin-top: 0;
  padding: 9px 12px;
  font-size: 0.72rem;
}

/* ==========================================================================
   6. Hero
   First major page section.
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
  background: var(--color-brand-dark);
}

.hero-image-ready {
  --hero-image: none;
  --hero-image-position: center;
  --hero-overlay:
    radial-gradient(circle at 16% 50%, rgba(8, 120, 255, 0.18), transparent 30%),
    linear-gradient(90deg, rgba(3, 7, 13, 0.88), rgba(3, 7, 13, 0.54) 48%, rgba(3, 7, 13, 0.72));
}

.hero-image-ready.hero-with-image {
  min-height: clamp(620px, 88vh, 860px);
  display: flex;
  align-items: center;
  background-color: var(--color-brand-dark);
  color: var(--color-on-brand);
}

.hero-image-ready.hero-with-image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--hero-overlay);
  pointer-events: none;
}

.hero-background-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--hero-image-position);
}

.hero-image-ready.hero-with-image .inner {
  position: relative;
  z-index: 2;
}

.hero-image-ready.hero-with-image h1 {
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.46);
}

.hero-image-ready.hero-with-image p {
  color: rgba(255, 255, 255, 0.82);
}

.home-hero .inner {
  padding-top: 52px;
  padding-bottom: 74px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.text-link {
  margin-top: 24px;
  color: var(--color-ink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.text-link:hover {
  color: var(--color-blue);
}

.hero-logo-badge {
  position: absolute;
  right: clamp(16px, 6vw, 96px);
  bottom: 92px;
  z-index: 2;
  width: clamp(76px, 11vw, 132px);
  height: clamp(76px, 11vw, 132px);
  border: 6px solid var(--color-blue);
  border-radius: 50%;
  background: #000;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}

.hero-proof-row {
  position: absolute;
  right: var(--gutter);
  bottom: 0;
  left: var(--gutter);
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--color-muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-proof-row span::before {
  content: "";
  width: 6px;
  height: 6px;
  display: inline-block;
  margin-right: 8px;
  background: var(--color-blue);
  border-radius: 50%;
}

/* ==========================================================================
   7. Buttons
   Reusable call-to-action styling.
   ========================================================================== */

.button {
  display: inline-block;
  margin-top: 24px;
  padding: 13px 18px;
  background: var(--color-brand);
  border: 0;
  border-radius: 4px;
  color: var(--color-on-brand);
  cursor: pointer;
  font: 800 0.78rem/1 var(--font-body);
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 14px 32px rgba(255, 59, 48, 0.18);
}

.button:hover {
  background: var(--color-brand-hover);
}

.button-secondary {
  background: transparent;
  border: 1px solid var(--color-brand);
  color: var(--color-on-brand);
  box-shadow: none;
}

.button-secondary:hover {
  background: var(--color-brand-dark);
  border-color: var(--color-brand-dark);
  color: var(--color-on-brand);
}

/* ==========================================================================
   8. Service Cards
   Default service-grid component.
   ========================================================================== */

.service-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 36px;
}

.service-item {
  display: block;
  overflow: hidden;
  padding: 0 0 22px;
  background: linear-gradient(180deg, rgba(13, 23, 36, 0.96), rgba(8, 15, 24, 0.96));
  border: 1px solid var(--color-line);
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.2);
}

.service-card-image {
  width: 100%;
  height: clamp(210px, 23vw, 280px);
  display: block;
  margin-bottom: 18px;
  object-fit: cover;
}

.service-item:hover {
  border-color: var(--color-blue);
  transform: translateY(-2px);
}

.service-item h3 {
  margin: 0 18px 8px;
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 0.95;
}

.service-item p {
  margin-right: 18px;
  margin-left: 18px;
}

.service-bullets {
  display: grid;
  gap: 6px;
  margin: 16px 18px 0;
  padding-left: 18px;
  color: var(--color-muted);
}

.card-link {
  display: inline-block;
  margin: 18px 18px 0;
  color: var(--color-brand);
  font-weight: 700;
}

.service-item:hover .card-link {
  color: var(--color-brand-hover);
}

.section-media {
  max-width: 820px;
  margin: 28px 0 0;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  align-items: center;
  gap: clamp(36px, 7vw, 96px);
}

.split-copy {
  min-width: 0;
}

.media-collage {
  position: relative;
  min-height: 0;
}

.media-collage img {
  display: block;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.42);
}

.media-collage-main {
  width: 100%;
  aspect-ratio: 4 / 3;
}

.program-note-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 32px;
}

.program-note-grid article,
.faq-list details {
  padding: 24px;
  background: rgba(10, 17, 27, 0.78);
  border: 1px solid var(--color-line);
  border-radius: 8px;
}

.program-note-grid h3 {
  margin: 0 0 12px;
  color: var(--color-blue);
  font-family: var(--font-body);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section-media img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
}

/* ==========================================================================
   9. Business Showcase
   Slogan section with a simple CSS-only carousel.
   ========================================================================== */

.home-business-showcase {
  overflow: hidden;
  background: #04080e;
}

.home-business-showcase .inner {
  margin-bottom: 32px;
}

.showcase-carousel {
  width: 100%;
  overflow: hidden;
}

.showcase-track {
  display: grid;
  grid-template-columns: repeat(6, minmax(170px, 1fr));
  gap: 12px;
  width: min(1280px, calc(100% - 24px));
  margin: 0 auto;
}

.showcase-slide {
  width: 100%;
  height: clamp(118px, 13vw, 180px);
  display: block;
  object-fit: cover;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
}

/* ==========================================================================
   10. Why Us
   Reason cards for trust-building points.
   ========================================================================== */

.benefit-list,
.reason-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.home-benefits .section-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: none;
  padding: 0;
  list-style: none;
}

.home-benefits .section-list li {
  min-height: 112px;
  padding: 22px;
  background: rgba(10, 17, 27, 0.78);
  border: 1px solid var(--color-line);
  border-radius: 8px;
  color: var(--color-ink);
  font-weight: 800;
}

.home-benefits .section-list li::before {
  content: "+";
  display: block;
  margin-bottom: 14px;
  color: var(--color-blue);
  font-size: 1.2rem;
}

.benefit-card,
.reason-card {
  padding: 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
}

.benefit-card h3,
.reason-card h3 {
  margin: 0 0 8px;
}

/* ==========================================================================
   11. Reviews
   Placeholder area for a review integration embed.
   ========================================================================== */

.reviews-placeholder {
  min-height: 220px;
  display: grid;
  place-items: center;
  margin-top: 24px;
  padding: 24px;
  background: rgba(10, 17, 27, 0.9);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
}

.reviews blockquote {
  max-width: 520px;
  margin: 28px 0 0;
  padding-left: 18px;
  border-left: 4px solid var(--color-brand);
  color: var(--color-ink);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.25;
}

.reviews-placeholder p {
  margin: 0;
  color: var(--color-muted);
}

/* ==========================================================================
   12. Availability
   Placeholder area for an interactive calendar embed.
   ========================================================================== */

.calendar-placeholder {
  min-height: 360px;
  display: grid;
  place-items: center;
  margin-top: 24px;
  padding: 24px;
  background: rgba(10, 17, 27, 0.9);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
}

.calendar-placeholder p {
  margin: 0;
  color: var(--color-muted);
}

.map-placeholder {
  min-height: 260px;
  display: grid;
  place-items: center;
  margin-top: 24px;
  padding: 24px;
  background: rgba(10, 17, 27, 0.9);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
}

.map-placeholder iframe {
  width: 100%;
  min-height: 320px;
  border: 0;
  border-radius: calc(var(--radius) - 2px);
}

.integration-placeholder {
  min-height: inherit;
  display: grid;
  place-items: center;
  width: 100%;
  padding: 24px;
  color: var(--color-muted);
}

.integration-placeholder p {
  margin: 0;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.contact-actions .button {
  margin-top: 24px;
}

.contact-details {
  display: grid;
  gap: 6px;
  margin-top: 24px;
  color: var(--color-muted);
  font-style: normal;
}

.contact-details a {
  color: var(--color-blue);
}

.faq-list {
  display: grid;
  gap: 0;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  overflow: hidden;
}

.faq-list details {
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid var(--color-line);
}

.faq-list details:last-child {
  border-bottom: 0;
}

.faq-list summary {
  cursor: pointer;
  color: var(--color-ink);
  font-weight: 800;
}

.faq-list p {
  margin-top: 12px;
}

.final-cta {
  position: relative;
  overflow: hidden;
  min-height: clamp(440px, 60vh, 660px);
  display: flex;
  align-items: center;
  text-align: center;
}

.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(rgba(3, 7, 13, 0.8), rgba(3, 7, 13, 0.84)),
    radial-gradient(circle at 50% 50%, rgba(8, 120, 255, 0.2), transparent 36%);
}

.final-cta .inner {
  position: relative;
  z-index: 2;
}

.final-cta h2,
.final-cta p {
  margin-right: auto;
  margin-left: auto;
}

/* ==========================================================================
   13. Legal Pages
   Long-form legal documents that live directly inside page files.
   ========================================================================== */

.legal-page {
  padding: var(--section-space) var(--gutter);
  background: var(--color-page);
}

.legal-document {
  width: min(820px, 100%);
  margin: 0 auto;
  padding: clamp(24px, 5vw, 56px);
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
}

.legal-document h1 {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.1;
}

.legal-document h2 {
  margin: 40px 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  line-height: 1.2;
}

.legal-document p,
.legal-document li {
  color: var(--color-muted);
}

.legal-document p {
  margin: 0 0 12px;
}

.legal-document ul {
  margin: 0 0 16px;
  padding-left: 22px;
}

.legal-meta {
  display: grid;
  gap: 12px;
  margin: 0 0 40px;
  padding: 20px;
  background: var(--color-surface-2);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
}

.legal-meta div {
  display: grid;
  grid-template-columns: minmax(140px, 0.35fr) 1fr;
  gap: 12px;
}

.legal-meta dt {
  color: var(--color-ink);
  font-weight: 700;
}

.legal-meta dd {
  margin: 0;
  color: var(--color-muted);
}

/* ==========================================================================
   14. Site Footer
   Bottom site area.
   ========================================================================== */

.site-footer {
  padding-top: 32px;
  padding-bottom: 32px;
  background: #050910;
  border-top: 1px solid var(--color-line);
  color: var(--color-on-brand);
}

.site-footer p {
  max-width: 520px;
  margin: 0;
}

.footer-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.footer-summary {
  display: grid;
  gap: 8px;
}

.footer-summary strong {
  color: var(--color-on-brand);
}

.footer-contact {
  display: grid;
  gap: 4px;
  color: rgba(255, 255, 255, 0.74);
}

.footer-contact a {
  color: inherit;
}

.footer-nav-group {
  display: grid;
  justify-items: end;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  color: inherit;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-links a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
}

.social-links a:hover {
  background: rgba(255, 255, 255, 0.12);
}

.social-links img {
  width: 18px;
  height: 18px;
  filter: invert(1);
}

/* ==========================================================================
   15. Lead Capture Modal
   Shared popup for lead capture providers.
   ========================================================================== */

.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}

.lead-modal[hidden] {
  display: none;
}

.lead-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(29, 37, 36, 0.72);
}

.lead-modal-panel {
  position: relative;
  width: min(640px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 32px;
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(29, 37, 36, 0.28);
}

.lead-modal-panel h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  line-height: 1.1;
}

.lead-modal-panel p {
  margin: 0;
  color: var(--color-muted);
}

.lead-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-ink);
  cursor: pointer;
}

.lead-capture-placeholder {
  min-height: 420px;
  display: grid;
  place-items: center;
  margin-top: 24px;
  padding: 24px;
  background: var(--color-page);
  border: 1px dashed var(--color-line);
  border-radius: var(--radius);
}

.lead-capture-form {
  width: 100%;
  display: grid;
  gap: 16px;
}

.form-field {
  display: grid;
  gap: 8px;
  color: var(--color-ink);
  font-size: 0.95rem;
  font-weight: 700;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-ink);
  font: inherit;
}

.form-field textarea {
  resize: vertical;
}

/* ==========================================================================
   16. Optional Utilities
   Small reusable modifiers that components can opt into.
   ========================================================================== */

.section-dark {
  background: var(--color-brand-dark);
  color: var(--color-on-brand);
}

.section-dark p {
  color: rgba(255, 255, 255, 0.78);
}

.error {
  padding: 24px;
}

/* ==========================================================================
   17. Responsive Rules
   Small-screen layout adjustments.
   ========================================================================== */

@media (max-width: 720px) {
  .nav,
  .footer-content {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    gap: 14px;
  }

  .nav-action {
    width: 100%;
  }

  .nav-links {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    white-space: nowrap;
  }

  .nav-action .button {
    width: 100%;
    text-align: center;
  }

  .hero h1 {
    font-size: clamp(3.1rem, 14vw, 3.65rem);
  }

  .hero-logo-badge {
    display: none;
  }

  .hero-proof-row {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    grid-template-columns: 1fr;
    margin-top: 34px;
  }

  .split-section,
  .program-note-grid,
  .home-benefits .section-list {
    grid-template-columns: 1fr;
  }

  .media-collage {
    min-height: 320px;
  }

  .showcase-track {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-nav-group {
    justify-items: start;
  }

  .legal-meta div {
    grid-template-columns: 1fr;
  }

  .benefit-list,
  .service-list {
    grid-template-columns: 1fr;
  }

  .reason-list {
    grid-template-columns: 1fr;
  }
}
