/* Theme 2 - clean SaaS-card aesthetic. Class names deliberately distinct from
   hyperlocal-service-v1 (t2- prefix throughout) so the two themes don't share
   a fingerprint at the markup/CSS level, only the underlying content schema. */

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--color-body-text);
  background: var(--color-white);
  font-size: var(--h1-size-mobile, 16px);
  font-size: 16px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--color-link-blue); text-decoration: none; }
.t2-container { max-width: var(--content-max-width-px); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--font-display); color: var(--color-heading-on-light); }
h1 { font-size: var(--h1-size-mobile); font-weight: 700; line-height: 1.15; }
h2 { font-size: var(--h2-size-mobile); font-weight: 700; line-height: 1.2; }
h3 { font-size: var(--h3-size-mobile); font-weight: 600; line-height: 1.3; }
@media (min-width: 768px) {
  h1 { font-size: var(--h1-size-desktop); }
  h2 { font-size: var(--h2-size-desktop); }
  h3 { font-size: var(--h3-size-desktop); }
}

.t2-section { padding: var(--section-padding-mobile) 0; }
@media (min-width: 768px) { .t2-section { padding: var(--section-padding-desktop) 0; } }
.t2-section--white { background: var(--color-white); }
.t2-section--surface { background: var(--color-surface); }
.t2-section--dark { background: var(--color-primary-navy); }
.t2-section--dark h2, .t2-section--dark h3 { color: var(--color-heading-on-dark); }
.t2-section--dark p { color: var(--color-text-soft); }
/* A .t2-card defaults to a light/white background even when placed inside a
   dark section (e.g. service-page.html's "why us" cards), so the blanket
   .t2-section--dark h3 rule above would force white text onto a light card,
   making the heading blend into its own background. Higher-specificity
   override restores readable dark text for any card explicitly nested in a
   dark section, regardless of source order. */
.t2-section--dark .t2-card h2, .t2-section--dark .t2-card h3 { color: var(--color-heading-on-light); }
.t2-section--dark .t2-card p { color: var(--color-text-mid); }

.t2-eyebrow {
  display: inline-block; font-family: var(--font-mono); font-size: var(--h6-size-desktop);
  font-weight: 700; letter-spacing: var(--h6-letter-spacing); text-transform: uppercase;
  color: var(--color-accent-amber); margin-bottom: 12px;
}
.t2-section--dark .t2-eyebrow { color: var(--color-link-blue-on-dark); }
.t2-head { max-width: 680px; margin: 0 auto 40px; text-align: center; }
.t2-head p { color: var(--color-text-mid); margin-top: 12px; font-size: 17px; }
.t2-section--dark .t2-head p { color: var(--color-text-soft); }

/* ── NAV ── */
/* Sticky on desktop only, per explicit decision - mobile already has the
   sticky bottom call bar serving the "always reachable CTA" purpose, so a
   sticky top header too would mean two permanently-fixed bars competing for
   small-viewport space with no added benefit. */
@media (min-width: 900px) {
  .t2-header { position: sticky; top: 0; z-index: 120; background: var(--color-white); box-shadow: 0 1px 0 var(--color-border-grey); }
}
.t2-nav { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; max-width: var(--content-max-width-px); margin: 0 auto; }
.t2-nav-logo { font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--color-heading-on-light); }
.t2-nav-links { display: none; gap: 28px; align-items: center; }
.t2-nav-links a { color: var(--color-text-mid); font-weight: 500; font-size: 15px; }
.t2-nav-links a:hover { color: var(--color-accent-amber); }
@media (min-width: 900px) { .t2-nav-links { display: flex; } }
.t2-nav-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.t2-nav-cta {
  background: var(--color-accent-amber); color: var(--color-white); font-weight: 700;
  padding: 11px 20px; border-radius: var(--button-radius-px); font-size: 14px;
  white-space: nowrap; flex-shrink: 0;
}
@media (max-width: 480px) { .t2-nav-cta { padding: 10px 14px; font-size: 13px; } }
.t2-nav-cta:hover { background: var(--button-hover-bg); }
.t2-nav-toggle { display: block; background: none; border: none; cursor: pointer; }
@media (min-width: 900px) { .t2-nav-toggle { display: none; } }
.t2-mobile-menu { display: none; flex-direction: column; padding: 0 24px 20px; }
.t2-mobile-menu.is-open { display: flex; }
.t2-mobile-menu a { color: var(--color-text-mid); font-weight: 500; }

/* ── DESKTOP NAV DROPDOWNS (Services / Locations) ── */
.t2-nav-dropdown { position: relative; }
.t2-nav-dropdown-toggle {
  display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-body);
  font-size: 15px; font-weight: 500; color: var(--color-text-mid);
  background: transparent; border: none; cursor: pointer; padding: 0;
}
.t2-nav-dropdown-toggle::after {
  content: ""; width: 6px; height: 6px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); margin-top: -2px;
}
.t2-nav-dropdown-toggle:hover { color: var(--color-accent-amber); }
.t2-nav-dropdown-menu {
  position: absolute; top: calc(100% + 14px); left: 0;
  background: var(--color-white); border: 1px solid var(--color-border-grey);
  border-radius: 10px; box-shadow: 0 14px 32px rgba(10,31,51,0.14);
  padding: 8px; display: grid; gap: 2px; width: max-content; max-width: 320px;
  opacity: 0; visibility: hidden; transform: translateY(4px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
  z-index: 110;
}
.t2-nav-dropdown:hover .t2-nav-dropdown-menu,
.t2-nav-dropdown:focus-within .t2-nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.t2-nav-dropdown-menu a {
  padding: 8px 10px; border-radius: 6px; font-size: 13px; color: var(--color-text-mid);
  white-space: normal;
}
.t2-nav-dropdown-menu a:hover { background: var(--color-surface); color: var(--color-accent-amber); }

/* ── MOBILE ACCORDION (Services / Locations) ── */
.t2-mm-link {
  display: block; padding: 16px 0; font-size: 16px; font-weight: 600;
  color: var(--color-heading-on-light); text-decoration: none;
  border-bottom: 1px solid var(--color-border-grey);
}
.t2-mm-accordion-toggle {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  background: transparent; border: none; cursor: pointer; text-align: left;
  padding: 16px 0; font-size: 16px; font-weight: 600; color: var(--color-heading-on-light);
  border-bottom: 1px solid var(--color-border-grey);
}
.t2-mm-chevron {
  width: 8px; height: 8px; flex-shrink: 0;
  border-right: 2px solid var(--color-text-mid); border-bottom: 2px solid var(--color-text-mid);
  transform: rotate(45deg); transition: transform 0.2s;
}
.t2-mm-accordion-toggle[aria-expanded="true"] .t2-mm-chevron { transform: rotate(-135deg); }
.t2-mm-accordion-panel { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.t2-mm-accordion-panel a {
  display: block; padding: 11px 0 11px 16px; font-size: 14px; font-weight: 500;
  color: var(--color-text-mid); text-decoration: none; border-bottom: 1px solid var(--color-border-grey);
}

@media (min-width: 900px) {
  .t2-nav-dropdown-toggle { font-size: 15px; }
}

/* ── HERO ── */
.t2-hero { background: var(--color-primary-navy); padding: 64px 0; }
.t2-hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .t2-hero-grid { grid-template-columns: 1.1fr 0.9fr; } }
.t2-hero h1 { color: var(--color-heading-on-dark); margin-bottom: 18px; }
.t2-hero p.t2-hero-sub { color: var(--color-text-soft); font-size: 18px; margin-bottom: 28px; max-width: 520px; }
.t2-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.t2-btn-primary {
  display: inline-flex; align-items: center; gap: 8px; background: var(--color-accent-amber);
  color: var(--color-white); font-weight: 700; padding: 14px 24px; border-radius: var(--button-radius-px);
}
.t2-btn-primary:hover { background: var(--button-hover-bg); }
.t2-btn-secondary {
  display: inline-flex; align-items: center; gap: 8px; background: transparent; color: var(--color-white);
  font-weight: 700; padding: 14px 24px; border-radius: var(--button-radius-px); border: 1px solid rgba(255,255,255,0.25);
}
.t2-hero-badge-row { display: flex; align-items: center; gap: 12px; margin-top: 28px; }
.t2-hero-badge-row img { width: 38px; height: 38px; border-radius: 50%; }
.t2-hero-badge-row span { color: var(--color-text-soft); font-size: 14px; font-weight: 600; }

.t2-hero-card { background: var(--color-white); border-radius: 16px; padding: 28px; box-shadow: 0 20px 50px rgba(0,0,0,0.25); }
.t2-hero-card h3 { margin-bottom: 8px; }
.t2-hero-card p { color: var(--color-text-mid); margin-bottom: 18px; }

/* ── CARDS / GRIDS ── */
.t2-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
.t2-grid--2 { }
.t2-grid--3 { }
.t2-grid--4 { }
@media (min-width: 640px) { .t2-grid--2, .t2-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .t2-grid--3 { grid-template-columns: repeat(3, 1fr); } .t2-grid--4 { grid-template-columns: repeat(4, 1fr); } }

.t2-card {
  background: var(--color-white); border: 1px solid var(--color-border-grey); border-radius: 14px;
  padding: 26px; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.t2-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(10,31,51,0.08); }
.t2-card-icon {
  width: 44px; height: 44px; border-radius: 10px; background: rgba(15,157,140,0.1);
  display: flex; align-items: center; justify-content: center; color: var(--color-accent-amber);
  margin-bottom: 16px; font-size: 20px;
}
.t2-card h3 { margin-bottom: 8px; font-size: 17px; }
.t2-card p { color: var(--color-text-mid); font-size: 15px; line-height: 1.55; }
.t2-card a.t2-card-link { display: inline-block; margin-top: 12px; font-weight: 600; color: var(--color-accent-amber); font-size: 14px; }

a.t2-card { display: block; text-decoration: none; color: inherit; }

/* For card counts that don't reliably fill a fixed grid (e.g. location pages
   always have 2 sourced problems, not 3) - centers the row instead of
   leaving left-aligned trailing whitespace from an empty grid column. */
.t2-grid-center { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.t2-card--fixed-width { flex: 0 1 340px; }

/* ── STATS BAR ── */
.t2-stats-bar { background: var(--color-primary-navy); padding: 48px 0; }
.t2-stats-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; text-align: center; }
@media (min-width: 768px) { .t2-stats-row { grid-template-columns: repeat(4, 1fr); } }
.t2-stat-num { font-family: var(--font-display); font-size: 36px; font-weight: 800; color: var(--color-link-blue-on-dark); }
.t2-stat-label { color: var(--color-text-soft); font-size: 13px; margin-top: 6px; }

/* ── PROCESS (vertical numbered) ── */
.t2-process-list { display: flex; flex-direction: column; gap: 24px; max-width: 720px; margin: 0 auto; }
.t2-process-item { display: flex; gap: 20px; align-items: flex-start; }
.t2-process-num {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--color-accent-amber);
  color: var(--color-white); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 16px;
}
.t2-process-item h3 { margin-bottom: 6px; }
.t2-process-item p { color: var(--color-text-mid); }

/* ── TESTIMONIALS ── */
.t2-testimonial-card { background: var(--color-surface); border-radius: 14px; padding: 26px; }
.t2-stars { color: #F5A623; margin-bottom: 12px; font-size: 14px; }
.t2-testimonial-card p.t2-quote { font-size: 16px; color: var(--color-text-near-black); margin-bottom: 14px; }
.t2-testimonial-name { font-weight: 700; font-size: 14px; }

/* ── BLOG BODY (the missing spacing rules v1 has and v2 never got) ── */
.t2-blog-body h2 { margin-top: 40px; margin-bottom: 12px; }
.t2-blog-body h3 { margin-top: 28px; margin-bottom: 10px; }
.t2-blog-body p { margin-bottom: 16px; color: var(--color-text-mid); }
.t2-blog-body ul, .t2-blog-body ol { margin: 0 0 16px 20px; color: var(--color-text-mid); }
.t2-blog-body li { margin-bottom: 8px; }
.t2-blog-body a { font-weight: 600; }

/* ── FAQ (native <details>/<summary>, no JS needed) ── */
.t2-faq-item { border-bottom: 1px solid var(--color-border-grey); padding: 18px 0; }
.t2-faq-item summary { cursor: pointer; font-weight: 600; font-size: 16px; list-style: none; color: var(--color-heading-on-light); }
.t2-faq-item summary::-webkit-details-marker { display: none; }
.t2-faq-item summary::after { content: "+"; float: right; font-size: 20px; color: var(--color-accent-amber); }
.t2-faq-item[open] summary::after { content: "\2212"; }
.t2-faq-item p { color: var(--color-text-mid); margin-top: 10px; font-size: 15px; }

/* ── CTA BANNER ── */
.t2-cta-banner { text-align: center; }
.t2-cta-banner h2 { margin-bottom: 12px; }
.t2-cta-banner p { color: var(--color-text-soft); margin-bottom: 24px; max-width: 560px; margin-left: auto; margin-right: auto; }

/* ── LEAD FORM ── */
.t2-lead-form-wrap { display: grid; gap: 40px; }
@media (min-width: 900px) { .t2-lead-form-wrap { grid-template-columns: 0.8fr 1.2fr; align-items: start; } }
.t2-lead-form { background: var(--color-surface); border: 1px solid var(--color-border-grey); border-radius: 14px; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.t2-lf-row { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .t2-lf-row { grid-template-columns: 1fr 1fr; } }
.t2-lf-field { display: flex; flex-direction: column; gap: 6px; }
.t2-lf-field label { font-size: 13px; font-weight: 600; color: var(--color-text-mid); }
.t2-lf-field input, .t2-lf-field select {
  padding: 11px 14px; border: 1px solid var(--color-border-grey); border-radius: 8px;
  font-family: var(--font-body); font-size: 15px; color: var(--color-heading-on-light); background: var(--color-white);
}
.t2-lf-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.t2-lf-pill { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border: 1px solid var(--color-border-grey); border-radius: 999px; font-size: 14px; cursor: pointer; background: var(--color-white); }
.t2-lf-pill input { accent-color: var(--color-accent-amber); }
.t2-lf-consent { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--color-text-mid); cursor: pointer; }
.t2-lf-consent input { margin-top: 3px; accent-color: var(--color-accent-amber); }
.t2-lf-submit { width: 100%; justify-content: center; border: none; cursor: pointer; font-size: 16px; }

/* ── FOOTER ── */
.t2-footer { background: var(--color-section-alt-dark); padding: 56px 0 28px; border-top: 1px solid rgba(255,255,255,0.08); }
.t2-footer-cols { display: grid; gap: 32px; grid-template-columns: 1fr; margin-bottom: 32px; align-items: stretch; }
.t2-footer-cols > div { display: flex; flex-direction: column; }
@media (min-width: 768px) { .t2-footer-cols { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.t2-footer h4 { color: var(--color-heading-on-dark); font-size: 14px; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.05em; }
.t2-footer p { color: #CBD5E1; font-size: 14px; line-height: 1.7; }
.t2-footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.t2-footer a { color: #CBD5E1; font-size: 14px; }
.t2-footer a:hover { color: var(--color-link-blue-on-dark); }
.t2-footer-base { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 22px; color: #CBD5E1; font-size: 13px; text-align: center; }
.t2-footer-map { flex: 1 1 auto; min-height: 180px; margin-top: 16px; }

/* ── BREADCRUMBS ── */
.breadcrumbs { padding: 16px 24px; font-size: 13px; color: var(--color-text-soft); max-width: var(--content-max-width-px); margin: 0 auto; }
.breadcrumbs a { color: var(--color-text-soft); }

/* ── MOBILE CALL BAR (shared structure with v1, restyled) ── */
.mobile-call-bar { display: none; }
@media (max-width: 767px) {
  .mobile-call-bar {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
    background: var(--color-accent-amber); padding: 14px; justify-content: center;
  }
  .mobile-call-bar a { color: var(--color-white); font-weight: 700; }
}
.t2-scroll-top-btn {
  display: none; position: fixed; bottom: 24px; right: 24px; width: 44px; height: 44px;
  border-radius: 50%; background: var(--color-accent-amber); color: var(--color-white);
  border: none; align-items: center; justify-content: center; cursor: pointer; z-index: 40;
}
@media (max-width: 767px) {
  /* The sticky mobile call bar (z-index 50, fixed to bottom: 0) occupies the
     same bottom ~24-68px zone this button sits in, and sits above it in
     stacking order - the button was rendering mostly hidden behind the bar. */
  .t2-scroll-top-btn { bottom: 80px; z-index: 60; }
}
.t2-scroll-top-btn.visible { display: flex; }
