/* Theme 3 - red-accent trade-services aesthetic synthesized from a real
   competitor reference (allamericanmitigationtx.com). Class names use a t3-
   prefix throughout so this theme doesn't share a markup/CSS fingerprint
   with v1 (t-) or v2 (t2-) - only the underlying content schema is shared. */

* { 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: 16px;
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: var(--color-link-blue); text-decoration: none; }
.t3-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: 800; line-height: 1.15; }
h2 { font-size: var(--h2-size-mobile); font-weight: 800; line-height: 1.2; }
h3 { font-size: var(--h3-size-mobile); font-weight: 700; 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); }
}

.t3-section { padding: var(--section-padding-mobile) 0; }
@media (min-width: 768px) { .t3-section { padding: var(--section-padding-desktop) 0; } }
.t3-section--white { background: var(--color-white); }
.t3-section--surface { background: var(--color-surface); }
.t3-section--dark { background: var(--color-primary-navy); }
.t3-section--dark h2, .t3-section--dark h3 { color: var(--color-heading-on-dark); }
.t3-section--dark p { color: var(--color-text-soft); }
/* Same nested-card contrast gotcha v2 hit: a light card inside a dark
   section must not inherit the section's blanket white-heading rule. */
.t3-section--dark .t3-card-light h2, .t3-section--dark .t3-card-light h3 { color: var(--color-heading-on-light); }
.t3-section--dark .t3-card-light p { color: var(--color-text-mid); }
.t3-section--red-banner { background: var(--color-accent-amber); text-align: center; }
.t3-section--red-banner h2 { color: var(--color-white); margin-bottom: 18px; }

.t3-eyebrow {
  display: inline-block; font-family: var(--font-body); font-size: var(--h6-size-desktop);
  font-weight: 700; letter-spacing: var(--h6-letter-spacing);
  color: var(--color-accent-amber); margin-bottom: 12px;
}
.t3-section--dark .t3-eyebrow { color: var(--color-link-blue-on-dark); }
.t3-eyebrow-red {
  display: block; font-weight: 700; font-size: 14px; color: var(--color-accent-amber); margin-bottom: 10px;
}
.t3-head { max-width: 680px; margin: 0 auto 40px; text-align: center; }
.t3-head--left { max-width: none; margin: 0 0 24px; text-align: left; }
.t3-head p { color: var(--color-text-mid); margin-top: 12px; font-size: 17px; }
.t3-section--dark .t3-head p { color: var(--color-text-soft); }
.t3-body-text { color: var(--color-text-mid); margin-bottom: 18px; }

/* ── NAV ── */
@media (min-width: 900px) {
  .t3-header { position: sticky; top: 0; z-index: 120; background: var(--color-white); box-shadow: 0 1px 0 var(--color-border-grey); }
}
.t3-nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; max-width: var(--content-max-width-px); margin: 0 auto; }
.t3-nav-logo { font-family: var(--font-display); font-weight: 800; font-size: 19px; color: var(--color-heading-on-light); }
.t3-nav-links { display: none; gap: 26px; align-items: center; }
.t3-nav-links a { color: var(--color-text-mid); font-weight: 600; font-size: 15px; }
.t3-nav-links a:hover { color: var(--color-accent-amber); }
@media (min-width: 900px) { .t3-nav-links { display: flex; } }
/* CTA + hamburger are grouped in their own flex container with an explicit
   gap so they stay visually paired - a 3-item space-between row would
   distribute them apart from each other instead. */
.t3-nav-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.t3-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) { .t3-nav-cta { padding: 10px 14px; font-size: 13px; } }
.t3-nav-cta:hover { background: var(--button-hover-bg); }
.t3-nav-toggle { display: block; background: none; border: none; cursor: pointer; color: var(--color-heading-on-light); }
@media (min-width: 900px) { .t3-nav-toggle { display: none; } }
.t3-mobile-menu { display: none; flex-direction: column; padding: 0 24px 20px; }
.t3-mobile-menu.is-open { display: flex; }
.t3-mobile-menu a { color: var(--color-text-mid); font-weight: 500; }

.t3-nav-dropdown { position: relative; }
.t3-nav-dropdown-toggle {
  display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-body);
  font-size: 15px; font-weight: 600; color: var(--color-text-mid);
  background: transparent; border: none; cursor: pointer; padding: 0;
}
.t3-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;
}
.t3-nav-dropdown-toggle:hover { color: var(--color-accent-amber); }
.t3-nav-dropdown-menu {
  position: absolute; top: calc(100% + 14px); left: 0;
  background: var(--color-white); border: 1px solid var(--color-border-grey);
  border-radius: 8px; box-shadow: 0 14px 32px rgba(11,37,64,0.16);
  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;
}
.t3-nav-dropdown:hover .t3-nav-dropdown-menu,
.t3-nav-dropdown:focus-within .t3-nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.t3-nav-dropdown-menu a {
  padding: 8px 10px; border-radius: 6px; font-size: 13px; color: var(--color-text-mid);
  white-space: normal;
}
.t3-nav-dropdown-menu a:hover { background: var(--color-surface); color: var(--color-accent-amber); }

.t3-mm-link {
  display: block; padding: 16px 0; font-size: 16px; font-weight: 700;
  color: var(--color-heading-on-light); text-decoration: none;
  border-bottom: 1px solid var(--color-border-grey);
}
.t3-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: 700; color: var(--color-heading-on-light);
  border-bottom: 1px solid var(--color-border-grey);
}
.t3-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;
}
.t3-mm-accordion-toggle[aria-expanded="true"] .t3-mm-chevron { transform: rotate(-135deg); }
.t3-mm-accordion-panel { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.t3-mm-accordion-panel a {
  display: block; padding: 11px 0 11px 16px; font-size: 14px; font-weight: 600;
  color: var(--color-text-mid); text-decoration: none; border-bottom: 1px solid var(--color-border-grey);
}

/* ── HERO (split layout: text left, photo right - matches reference) ── */
.t3-hero { background: var(--color-primary-navy); padding: 56px 0; }
.t3-hero--blog { padding: 56px 0; }
.t3-hero-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .t3-hero-grid { grid-template-columns: 1.1fr 0.9fr; } }
.t3-hero h1 { color: var(--color-heading-on-dark); margin-bottom: 16px; }
.t3-hero-sub { color: var(--color-text-soft); font-size: 17px; margin-bottom: 24px; max-width: 540px; }
.t3-hero--blog .t3-hero-sub, .t3-hero--blog h1 { color: var(--color-heading-on-light); }
.t3-hero--blog { background: var(--color-white); }
.t3-byline { color: var(--color-text-soft); font-size: 14px; }
.t3-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
.t3-hero-microcopy { color: var(--color-text-soft); font-size: 14px; font-weight: 600; }
.t3-hero-image img { border-radius: 10px; width: 100%; }

.t3-btn-primary {
  display: inline-flex; align-items: center; gap: 8px; background: var(--color-accent-amber);
  color: var(--color-white); font-weight: 700; padding: 14px 26px; border-radius: var(--button-radius-px);
}
.t3-btn-primary:hover { background: var(--button-hover-bg); }
.t3-btn-secondary {
  display: inline-flex; align-items: center; gap: 8px; background: transparent; color: var(--color-white);
  font-weight: 700; padding: 14px 26px; border-radius: var(--button-radius-px); border: 1px solid rgba(255,255,255,0.3);
}
.t3-btn-on-red {
  display: inline-flex; align-items: center; gap: 8px; background: var(--color-white);
  color: var(--color-accent-amber); font-weight: 700; padding: 14px 26px; border-radius: var(--button-radius-px);
}
.t3-btn-on-red:hover { background: var(--color-surface); }

/* ── TRUST BADGE ROW ── */
.t3-trust-row { background: var(--color-white); border-bottom: 1px solid var(--color-border-grey); }
.t3-trust-row-inner {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 28px;
  padding: var(--trust-row-padding-mobile, 20px) 0;
}
.t3-trust-badge { font-weight: 700; font-size: 13px; color: var(--color-text-mid); white-space: nowrap; }

/* ── 4-STEP PROCESS (horizontal circle icons, distinct from v2's vertical numbered list) ── */
.t3-step-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 32px; text-align: center; }
.t3-step-grid--4 > * { flex: 1 1 220px; max-width: 260px; }
.t3-step-item { flex: 1 1 220px; max-width: 260px; }
.t3-step-circle {
  width: 64px; height: 64px; border-radius: 50%; background: var(--color-primary-navy);
  color: var(--color-white); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 22px; margin: 0 auto 16px;
}
.t3-step-item h3 { margin-bottom: 8px; }
.t3-step-item p { color: var(--color-text-mid); font-size: 14px; }

/* ── SERVICES / IMAGE-CARD GRID ── */
.t3-services-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .t3-services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .t3-services-grid { grid-template-columns: repeat(4, 1fr); } }
.t3-services-grid--2 { grid-template-columns: 1fr; }
@media (min-width: 768px) { .t3-services-grid--2 { grid-template-columns: repeat(2, 1fr); } }
/* For card counts that don't reliably fill a fixed-column grid (location
   page "problems" - always 2, not 4) - centers the row instead of leaving
   left-aligned trailing whitespace from an empty grid column. */
.t3-services-grid--center { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.t3-services-grid--center .t3-service-card--static { flex: 0 1 340px; }

.t3-service-card {
  background: var(--color-white); border: 1px solid var(--color-border-grey); border-radius: 10px;
  padding: 24px; transition: transform 0.2s ease, box-shadow 0.2s ease; display: block; text-decoration: none; color: inherit;
}
.t3-service-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(11,37,64,0.1); }
.t3-service-card-icon {
  width: 42px; height: 42px; border-radius: 8px; background: rgba(211,47,47,0.1);
  display: flex; align-items: center; justify-content: center; color: var(--color-accent-amber);
  margin-bottom: 14px; font-weight: 800; font-size: 18px;
}
.t3-service-card h3 { margin-bottom: 8px; font-size: 17px; }
.t3-service-card p { color: var(--color-text-mid); font-size: 15px; }
.t3-service-card--static { cursor: default; }
.t3-service-card--static:hover { transform: none; box-shadow: none; }

/* ── BANNER SPLIT (photo + text, dark background) ── */
.t3-banner-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .t3-banner-grid { grid-template-columns: 1fr 1fr; } }
.t3-banner-grid p { color: var(--color-text-soft); margin: 14px 0 18px; }
.t3-banner-image img { border-radius: 10px; width: 100%; }
.t3-banner-grid .t3-eyebrow-red { color: var(--color-link-blue-on-dark); }

.t3-checklist { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; color: var(--color-text-mid); }
.t3-checklist li::before { content: "\2713"; color: var(--color-accent-amber); font-weight: 700; margin-right: 8px; }
.t3-checklist--dark { color: var(--color-text-soft); }
.t3-checklist--dark li::before { color: var(--color-link-blue-on-dark); }
.t3-checklist--warning li { color: var(--color-warning-red); }
.t3-checklist--warning li::before { content: "\26A0"; color: var(--color-warning-red); }

.t3-card-on-dark { background: var(--color-section-alt-dark); border-radius: 10px; padding: 22px; }
.t3-card-on-dark h3 { color: var(--color-heading-on-dark); margin-bottom: 8px; }
.t3-card-on-dark p { color: var(--color-text-soft); font-size: 14px; }
.t3-card-light { background: var(--color-white); border: 1px solid var(--color-border-grey); border-radius: 10px; padding: 20px; }
.t3-card-light p { color: var(--color-text-mid); font-size: 15px; font-weight: 600; }

.t3-cta-text-block { text-align: center; }
.t3-cta-text-block h2 { margin-bottom: 12px; }
.t3-cta-text-block p { margin-bottom: 24px; max-width: 560px; margin-left: auto; margin-right: auto; }
.t3-section--white .t3-cta-text-block p, .t3-section--surface .t3-cta-text-block p { color: var(--color-text-mid); }
.t3-section--red-banner .t3-cta-text-block p { color: rgba(255,255,255,0.85); }

/* ── TESTIMONIAL CAROUSEL ── */
.t3-testimonial-carousel { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.t3-testimonial-card {
  background: var(--color-surface); border-radius: 10px; padding: 26px; flex: 0 0 280px; scroll-snap-align: start;
}
.t3-stars { color: #F5A623; margin-bottom: 12px; font-size: 14px; }
.t3-quote { font-size: 15px; color: var(--color-text-near-black); margin-bottom: 14px; }
.t3-testimonial-name { font-weight: 700; font-size: 14px; }
.t3-carousel-controls { display: flex; justify-content: center; gap: 12px; margin-top: 20px; }
.t3-carousel-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--color-border-grey);
  background: var(--color-white); cursor: pointer; font-size: 16px;
}
.t3-carousel-btn:hover { background: var(--color-surface); }

/* ── CONTACT / LEAD FORM SECTION ── */
.t3-contact-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .t3-contact-grid { grid-template-columns: 0.8fr 1.2fr; align-items: start; } }
.t3-contact-intro h2 { margin-bottom: 14px; }
.t3-contact-intro p { color: var(--color-text-mid); margin-bottom: 8px; }
.t3-techs-standing-by { font-weight: 700; color: var(--color-accent-amber); margin-top: 16px; }
.t3-contact-phone { display: block; font-size: 24px; font-weight: 800; color: var(--color-heading-on-light); margin: 6px 0 18px; }
.t3-offer-label { font-weight: 700; margin-bottom: 10px; }

.t3-lead-form { background: var(--color-white); border: 1px solid var(--color-border-grey); border-radius: 10px; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.t3-lf-row { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .t3-lf-row { grid-template-columns: 1fr 1fr; } }
.t3-lf-field { display: flex; flex-direction: column; gap: 6px; }
.t3-lf-field label { font-size: 13px; font-weight: 700; color: var(--color-text-mid); }
.t3-lf-field input {
  padding: 11px 14px; border: 1px solid var(--color-border-grey); border-radius: 6px;
  font-family: var(--font-body); font-size: 15px; color: var(--color-heading-on-light); background: var(--color-white);
}
.t3-lf-consent { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--color-text-mid); cursor: pointer; }
.t3-lf-consent input { margin-top: 3px; accent-color: var(--color-accent-amber); }
.t3-lf-submit { width: 100%; justify-content: center; border: none; cursor: pointer; font-size: 16px; }

/* ── BLOG BODY ── */
.t3-blog-body h2 { margin-top: 40px; margin-bottom: 12px; }
.t3-blog-body h3 { margin-top: 28px; margin-bottom: 10px; }
.t3-blog-body p { margin-bottom: 16px; color: var(--color-text-mid); }
.t3-blog-body ul, .t3-blog-body ol { margin: 0 0 16px 20px; color: var(--color-text-mid); }
.t3-blog-body li { margin-bottom: 8px; }
.t3-blog-body a { font-weight: 700; }

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

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

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

/* ── 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 + SCROLL-TOP (same fixed-element collision fix v2 needed) ── */
.t3-mobile-call-bar { display: none; }
@media (max-width: 767px) {
  .t3-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;
  }
  .t3-mobile-call-bar a { color: var(--color-white); font-weight: 700; }
}
.t3-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 mobile call bar (z-index 50, fixed to bottom:0) occupies the same
     bottom ~24-68px zone this button sits in - push it above the bar so the
     two fixed elements don't visually overlap regardless of z-index. */
  .t3-scroll-top-btn { bottom: 80px; z-index: 60; }
}
.t3-scroll-top-btn.visible { display: flex; }
