:root {
  --primary: #0f6fff;
  --primary-dark: #0c59cc;
  --accent: #0ec5a9;
  --bg: #f6f8fb;
  --text: #111827;
  --muted: #4b5563;
  --border: #e5e7eb;
  --card: #ffffff;
  --shadow: 0 14px 50px rgba(16, 24, 40, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-dark);
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.topbar {
  background: #0b1224;
  color: #e5e7eb;
  padding: 12px 0;
}

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

.brand {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.topbar__actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 14px;
}

.cta-link {
  color: #e5e7eb;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.hero {
  background: radial-gradient(circle at 20% 20%, rgba(14, 197, 169, 0.18), transparent 35%),
    radial-gradient(circle at 80% 0%, rgba(15, 111, 255, 0.18), transparent 30%),
    #0b1224;
  color: #ffffff;
  padding: 72px 0 64px;
}

.hero__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  align-items: center;
}

.hero__content h1 {
  font-size: clamp(32px, 4vw, 44px);
  margin: 12px 0 16px;
  line-height: 1.15;
}

.hero__content .lead {
  color: rgba(255, 255, 255, 0.9);
}

.eyebrow {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 12px;
}

.value-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 12px;
  display: grid;
  gap: 8px;
}

.value-list li {
  position: relative;
  padding-left: 24px;
}

.value-list li::before {
  content: '•';
  color: var(--accent);
  position: absolute;
  left: 0;
  top: 0;
}

.hero__ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.btn-primary {
  background: linear-gradient(120deg, var(--primary), var(--primary-dark));
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(15, 111, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(15, 111, 255, 0.35);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
}

.btn-block {
  width: 100%;
}

.trust-note {
  color: rgba(255, 255, 255, 0.85);
  margin-top: 6px;
}

.form-card {
  background: #ffffff;
  color: #0f172a;
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.form-card__header h2 {
  margin: 0 0 4px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.form-group label {
  font-weight: 600;
  font-size: 14px;
}

.form-group input,
.form-group select {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 12px;
  font-size: 15px;
  background: #f8fafc;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 111, 255, 0.15);
}

.form-group input.invalid,
.form-group select.invalid {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.cf-turnstile {
  margin: 10px 0 6px;
}

.form-card .cf-turnstile {
  display: flex;
  justify-content: flex-start;
}

.hidden {
  display: none;
}

.form-message {
  min-height: 18px;
  font-size: 14px;
  color: #dc2626;
  margin: 8px 0;
}

.form-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}

.section {
  padding: 68px 0;
}

.section--light {
  background: var(--bg);
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  align-items: start;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04);
}

.card__lead {
  color: var(--muted);
  margin-top: 6px;
}

.checklist {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
}

.checklist li {
  position: relative;
  padding-left: 24px;
}

.checklist li::before {
  content: '\2713';
  color: var(--accent);
  position: absolute;
  left: 0;
  top: 0;
}

.steps {
  padding-left: 18px;
  margin: 10px 0 0;
  display: grid;
  gap: 10px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.badge {
  background: rgba(15, 111, 255, 0.12);
  color: var(--primary);
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13px;
}

.faq__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

details {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  background: #ffffff;
}

details[open] {
  border-color: var(--primary);
  box-shadow: 0 8px 20px rgba(15, 111, 255, 0.08);
}

summary {
  cursor: pointer;
  font-weight: 600;
}

summary::-webkit-details-marker {
  display: none;
}

.cta-block {
  background: linear-gradient(120deg, rgba(15, 111, 255, 0.08), rgba(14, 197, 169, 0.12));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-block__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-block__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer {
  background: #0b1224;
  color: #e5e7eb;
  padding: 32px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer a {
  color: #e5e7eb;
}

.footer__actions {
  display: flex;
  gap: 14px;
}

.mobile-cta {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 480px;
  z-index: 99;
  box-shadow: 0 16px 32px rgba(15, 111, 255, 0.35);
  display: none;
}

@media (max-width: 768px) {
  .topbar__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding: 56px 0 48px;
  }

  .hero__ctas {
    width: 100%;
  }

  .hero__ctas .btn,
  .cta-block__actions .btn {
    flex: 1;
  }

  .form-card {
    order: -1;
  }

  .form-card .cf-turnstile {
    justify-content: center;
  }

  .mobile-cta {
    display: inline-flex;
  }

  body {
    padding-bottom: 90px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== Header polish ===== */
header .brand{
  letter-spacing: -0.2px;
  font-weight: 800;
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0;
}

/* Make the words feel like one lockup */
header .brand{
  font-size: 16px; /* keep subtle; do not blow up layout */
}
@media (min-width: 768px){
  header .brand{ font-size: 18px; }
}

/* Right-side actions container */
header .header-actions{
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Clean text-button style (no border boxes) */
header .header-link{
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 999px;
  text-decoration: none;
  border: none !important;
  outline: none;
  opacity: 1 !important;
  background: transparent;
  color: rgba(255,255,255,0.88); /* assumes dark header */
  font-weight: 600;
  line-height: 1;
  transition: transform 140ms ease, background 140ms ease, color 140ms ease;
}

/* Remove any existing “outlined pill” look */
header .header-link,
header .header-link:focus,
header .header-link:hover{
  box-shadow: none !important;
}

/* Hover highlight: whole pill lights up */
header .header-link:hover{
  background: rgba(255,255,255,0.10);
  color: #fff;
  transform: translateY(-1px) scale(1.02);
}

/* Keyboard accessibility */
header .header-link:focus-visible{
  background: rgba(255,255,255,0.14);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.35) !important;
}

/* If header is light on any page/section, ensure readability */
header.is-light .header-link{
  color: rgba(17,24,39,0.82);
}
header.is-light .header-link:hover{
  background: rgba(17,24,39,0.06);
  color: rgba(17,24,39,0.95);
}

/* Mobile: allow wrap if needed */
@media (max-width: 520px){
  header .header-actions{ gap: 8px; }
  header .header-link{ padding: 7px 9px; font-size: 13px; }
}

/* ============================
   Visibility Fix: tel/mail links
   Prevent hover-only visibility
   ============================ */

a[href^="mailto:"],
a[href^="tel:"]{
  opacity: 1 !important;
  visibility: visible !important;
}

/* Make email readable + consistent */
a[href^="mailto:"]{
  color: #1D4ED8 !important;
  font-weight: 600;
  text-decoration: none;
}
a[href^="mailto:"]:hover{
  text-decoration: underline;
}

/* Prevent visited link weirdness in Safari */
a[href^="mailto:"]:visited,
a[href^="tel:"]:visited{
  color: inherit !important;
}

/* If any “ghost/secondary” call button becomes white on light backgrounds,
   force a readable style (safe, minimal). */
a[href^="tel:"].btn-secondary,
a[href^="tel:"].btn-ghost,
a[href^="tel:"].secondary,
a[href^="tel:"].ghost{
  color: #1D4ED8 !important;
  background: rgba(29, 78, 216, 0.08) !important;
  border: 1px solid rgba(29, 78, 216, 0.25) !important;
}

/* Global form visibility fixes */
.form-card input,
.form-card select,
.form-card textarea,
input,
select,
textarea {
  color: #0b1220;
  -webkit-text-fill-color: #0b1220;
  caret-color: #0b1220;
}

input::placeholder,
textarea::placeholder {
  color: rgba(11, 18, 32, 0.45);
}

select:invalid {
  color: rgba(11, 18, 32, 0.45);
}
/* Lead form visibility fixes */
.lead-card input,
.lead-card select,
.lead-card textarea {
  color: #0b1220 !important;
  -webkit-text-fill-color: #0b1220 !important;
  caret-color: #0b1220 !important;
  background: #ffffff !important;
}

.lead-card input::placeholder,
.lead-card textarea::placeholder {
  color: rgba(11, 18, 32, 0.55) !important;
}

.lead-card select:invalid {
  color: rgba(11, 18, 32, 0.55) !important;
}

.lead-card select option {
  color: #0b1220;
}

/* ===== Brand lockup: MyFreeWindshield ===== */
header .brand{
  letter-spacing: -0.4px;
  font-weight: 900;
}
header .brand::after{ content: ""; }

/* ============================
   Bottom phone hover animation
   ============================ */

/* Target any tel link in footer/CTA areas without breaking layout */
footer a[href^="tel:"],
.cta a[href^="tel:"],
.section-cta a[href^="tel:"],
a.phone-link[href^="tel:"]{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  opacity: 1 !important;
  border: none !important;
  box-shadow: none;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

/* If it's on a dark footer, keep it readable */
footer a[href^="tel:"]{
  color: rgba(255,255,255,0.92);
  background: rgba(255,255,255,0.06);
}

/* If it's on a light section, keep it readable */
.cta a[href^="tel:"],
.section-cta a[href^="tel:"],
a.phone-link[href^="tel:"]{
  color: #1D4ED8;
  background: rgba(29,78,216,0.08);
}

/* Hover + focus-visible: animate + highlight */
footer a[href^="tel:"]:hover,
.cta a[href^="tel:"]:hover,
.section-cta a[href^="tel:"]:hover,
a.phone-link[href^="tel:"]:hover{
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 26px rgba(0,0,0,0.12);
}

/* Make footer hover highlight brighter */
footer a[href^="tel:"]:hover{
  background: rgba(255,255,255,0.12);
}

/* Accessible focus ring */
footer a[href^="tel:"]:focus-visible,
.cta a[href^="tel:"]:focus-visible,
.section-cta a[href^="tel:"]:focus-visible,
a.phone-link[href^="tel:"]:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.35), 0 10px 26px rgba(0,0,0,0.12);
}

/* ============================
   Fix: Safari “stuck hover” + better CTA animation
   ============================ */

.cta-phone,
.footer-phone{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  opacity: 1 !important;

  /* Ensure the element has a real “resting” state */
  transform: translateY(0) scale(1);
  box-shadow: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
  will-change: transform;
}

/* Hover = animate nicely */
.cta-phone:hover,
.footer-phone:hover{
  background: rgba(29,78,216,0.10);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

/* Click feedback */
.cta-phone:active,
.footer-phone:active{
  transform: translateY(0) scale(0.99);
  box-shadow: 0 8px 18px rgba(0,0,0,0.10);
}

/* Keyboard focus (accessibility) */
.cta-phone:focus-visible,
.footer-phone:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.35), 0 12px 28px rgba(0,0,0,0.12);
}

/* IMPORTANT: prevent “stuck” look after mouse click in Safari
   (mouse click gives :focus but not :focus-visible) */
.cta-phone:focus:not(:focus-visible),
.footer-phone:focus:not(:focus-visible){
  box-shadow: none !important;
  transform: translateY(0) scale(1) !important;
  background: transparent;
}

/* Footer version on dark background */
footer .footer-phone{
  color: rgba(255,255,255,0.92);
  background: rgba(255,255,255,0.06);
}
footer .footer-phone:hover{
  background: rgba(255,255,255,0.12);
  color: #fff;
}

/* ============================
   Testimonials + Professional Footer
   ============================ */

.testimonials{
  padding: 64px 0;
  background: #F8FAFC;
}
.testimonials h2{
  margin: 0 0 10px;
  font-size: 28px;
  letter-spacing: -0.4px;
}
.testimonials .sub{
  margin: 0 0 22px;
  color: rgba(15,23,42,0.72);
}
.testimonials-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.t-card{
  background: #fff;
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.04);
}
.t-quote{
  margin: 0 0 10px;
  color: rgba(15,23,42,0.86);
}
.t-meta{
  margin: 0;
  font-weight: 700;
  color: rgba(15,23,42,0.60);
}
@media (max-width: 900px){
  .testimonials-grid{ grid-template-columns: 1fr; }
}

/* Footer layout */
.site-footer{
  background: #070D18;
  color: rgba(255,255,255,0.84);
  padding: 44px 0 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 26px;
  align-items: start;
}
.footer-logo{
  font-weight: 900;
  letter-spacing: -0.4px;
  font-size: 18px;
  color: rgba(255,255,255,0.94);
  margin-bottom: 10px;
}
.footer-desc{
  margin: 0;
  max-width: 42ch;
  color: rgba(255,255,255,0.74);
}
.footer-title{
  font-weight: 800;
  color: rgba(255,255,255,0.92);
  margin-bottom: 10px;
}
.footer-links{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.site-footer a{
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  font-weight: 650;
  opacity: 1 !important;
}
.site-footer a:visited{
  color: rgba(255,255,255,0.78) !important; /* prevent purple/visited look */
}
.site-footer a:hover{
  color: rgba(255,255,255,0.96);
  text-decoration: underline;
}
.footer-note{
  margin-top: 12px;
  color: rgba(255,255,255,0.62);
  font-size: 13px;
}
.footer-bottom{
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: rgba(255,255,255,0.58);
  font-size: 13px;
}
.linklike{
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.70);
  cursor: pointer;
  padding: 0;
  font: inherit;
  text-decoration: underline;
}
.linklike:hover{
  color: rgba(255,255,255,0.92);
}
@media (max-width: 900px){
  .footer-grid{ grid-template-columns: 1fr; }
  .footer-bottom{ flex-direction: column; align-items: flex-start; }
}

/* MFW_DESKTOP_HEADER_V1 */
@media (min-width: 769px) {
  /* Make header contact links look like real pills + animate on hover */
  .topbar a.mfw-topbar__phone,
  .topbar a.mfw-topbar__email,
  .topbar a[href^="tel:"],
  .topbar a[href^="mailto:"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.14);
    color: rgba(255,255,255,0.92);
    text-decoration: none;
    line-height: 1;
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
    cursor: pointer;
  }

  /* Email was blue and hard to read—keep it branded but readable */
  .topbar a.mfw-topbar__email,
  .topbar a[href^="mailto:"] {
    color: rgba(160,196,255,0.98);
    border-color: rgba(160,196,255,0.28);
    background: rgba(160,196,255,0.10);
  }

  .topbar a.mfw-topbar__phone:hover,
  .topbar a.mfw-topbar__email:hover,
  .topbar a[href^="tel:"]:hover,
  .topbar a[href^="mailto:"]:hover {
    transform: translateY(-1px) scale(1.04);
    background: rgba(255,255,255,0.14);
    border-color: rgba(255,255,255,0.22);
  }

  .topbar a.mfw-topbar__phone:active,
  .topbar a.mfw-topbar__email:active,
  .topbar a[href^="tel:"]:active,
  .topbar a[href^="mailto:"]:active {
    transform: scale(0.98);
  }
}
