/* ==========================================================================
   HomieFixPro — Design System
   ========================================================================== */

:root {
  /* Brand colors */
  --navy-950: #071C33;
  --navy-900: #0A2540;
  --navy-800: #123A63;
  --navy-700: #1D5FA3;
  --blue-500: #2E7BD6;
  --orange-600: #E85A1B;
  --orange-500: #FF6A28;
  --orange-400: #FF8A56;
  --amber-400: #FFB020;

  /* Neutrals */
  --gray-950: #0D1520;
  --gray-800: #22303F;
  --gray-700: #3C4E60;
  --gray-600: #5B7288;
  --gray-400: #8FA1B3;
  --gray-200: #D7E0E8;
  --gray-100: #EEF3F7;
  --gray-50:  #F7FAFC;
  --white: #FFFFFF;

  /* Semantic */
  --success: #1E9E5A;
  --error: #D6402C;

  /* Type */
  --font-heading: 'Poppins', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Inter', 'Segoe UI', Arial, sans-serif;

  /* Layout */
  --container-max: 1200px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 3px rgba(10, 37, 64, 0.08);
  --shadow-md: 0 8px 24px rgba(10, 37, 64, 0.12);
  --shadow-lg: 0 20px 50px rgba(10, 37, 64, 0.18);
}

/* ---- Reset ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy-700); text-decoration: none; }
a:hover { color: var(--orange-600); }
ul, ol { padding-left: 1.25rem; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--navy-900);
  line-height: 1.2;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1em; }
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section { padding: 4.5rem 0; }
.section--tight { padding: 3rem 0; }
.section--alt { background: var(--gray-50); }
.section--navy { background: var(--navy-900); color: var(--gray-200); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.text-center { text-align: center; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--orange-600);
  margin-bottom: .75rem;
}
.section--navy .eyebrow { color: var(--orange-400); }
.lead { font-size: 1.15rem; color: var(--gray-600); }
.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: -999px; top: 0; background: var(--navy-900);
  color: #fff; padding: .75rem 1.25rem; z-index: 1000; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--orange-500); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--orange-600); color: var(--white); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy-900); }
.btn-navy { background: var(--navy-900); color: var(--white); }
.btn-navy:hover { background: var(--navy-800); color: var(--white); }
.btn-block { width: 100%; }
.btn-lg { padding: 1.05rem 2rem; font-size: 1.1rem; }
.btn svg { width: 1.1em; height: 1.1em; }

/* ---- Top utility bar ----------------------------------------------------- */
.topbar {
  background: var(--navy-950);
  color: var(--gray-200);
  font-size: .85rem;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: .5rem;
  padding-bottom: .5rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.topbar a { color: var(--gray-200); }
.topbar a:hover { color: var(--orange-400); }
.topbar__phone { font-weight: 700; color: var(--white); display: inline-flex; align-items: center; gap: .4rem; }

/* ---- Header / nav --------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: .85rem;
  padding-bottom: .85rem;
  gap: 1.5rem;
}
.brand { display: flex; align-items: center; gap: .6rem; }
.brand img { height: 42px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 1.75rem; }
.main-nav a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .95rem;
  color: var(--navy-900);
  position: relative;
  padding: .3rem 0;
}
.main-nav a:hover { color: var(--orange-600); }
.main-nav .has-dropdown { position: relative; }
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100vw - 2rem);
  background: var(--white);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  padding: .6rem;
  min-width: 240px;
  border: 1px solid var(--gray-100);
  box-sizing: border-box;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { display: block; }
.dropdown a {
  display: block;
  padding: .55rem .75rem;
  border-radius: 8px;
  font-weight: 500;
}
.dropdown a:hover { background: var(--gray-50); color: var(--orange-600); }
.dropdown--mega {
  width: max-content;
  min-width: 420px;
  max-width: calc(100vw - 2rem);
  grid-template-columns: repeat(2, 1fr);
  gap: 0 .5rem;
  padding: .85rem;
}
/* .dropdown--mega must not set its own `display` — it needs to stay
   `none` until hovered/focused, same as a plain .dropdown. Only switch it
   to `grid` (instead of the plain dropdown's `block`) once it's open. */
.has-dropdown:hover .dropdown--mega,
.has-dropdown:focus-within .dropdown--mega { display: grid; }
@media (max-width: 1160px) {
  .dropdown--mega { min-width: 340px; grid-template-columns: 1fr; }
}
.dropdown--mega a { font-size: .88rem; }
.dropdown--mega .dropdown__view-all {
  grid-column: 1 / -1;
  margin-top: .4rem;
  padding-top: .75rem;
  border-top: 1px solid var(--gray-100);
  color: var(--orange-600);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.header-cta { display: flex; align-items: center; gap: 1rem; }
.header-cta .phone {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy-900);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: .5rem; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 24px; height: 2px; background: var(--navy-900); position: relative; transition: .2s;
}
.nav-toggle span::before { content: ''; position: absolute; top: -8px; width: 24px; height: 2px; background: var(--navy-900); }
.nav-toggle span::after { content: ''; position: absolute; top: 8px; width: 24px; height: 2px; background: var(--navy-900); }

/* ---- Hero ------------------------------------------------------------------ */
.hero {
  background:
    linear-gradient(120deg, rgba(10,37,64,.92), rgba(10,37,64,.78)),
    linear-gradient(135deg, var(--navy-900), var(--navy-800));
  color: var(--white);
  padding: 4.5rem 0 5rem;
}
.hero .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.hero h1 { color: var(--white); }
.hero p.lead { color: var(--gray-200); }
.hero-badges { display: flex; flex-wrap: wrap; gap: .8rem 1.6rem; margin: 1.5rem 0 2rem; }
.hero-badge { display: flex; align-items: center; gap: .5rem; font-size: .92rem; color: var(--gray-200); }
.hero-badge svg { color: var(--amber-400); flex-shrink: 0; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.75rem;
  color: var(--gray-800);
}

/* ---- Trust strip ------------------------------------------------------------ */
.trust-strip { background: var(--gray-50); border-top: 1px solid var(--gray-100); border-bottom: 1px solid var(--gray-100); padding: 1.5rem 0; }
.trust-strip .container { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; align-items: center; justify-content: space-between; }
.trust-item { display: flex; align-items: center; gap: .6rem; font-family: var(--font-heading); font-weight: 600; color: var(--navy-800); font-size: .95rem; }
.trust-item svg { color: var(--orange-500); flex-shrink: 0; }

/* ---- Grids / cards ----------------------------------------------------------- */
.grid { display: grid; gap: 1.75rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.service-card { display: flex; flex-direction: column; height: 100%; }
.service-card__icon {
  width: 54px; height: 54px; border-radius: 14px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-900));
  color: var(--orange-400);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.service-card__icon svg { width: 28px; height: 28px; }
.service-card h3 { margin-bottom: .5rem; }
.service-card p { color: var(--gray-600); flex-grow: 1; }
.service-card .link-arrow { margin-top: .75rem; }

.link-arrow { font-family: var(--font-heading); font-weight: 600; display: inline-flex; align-items: center; gap: .35rem; }
.link-arrow svg { width: 1em; height: 1em; transition: transform .15s ease; }
.link-arrow:hover svg { transform: translateX(3px); }

.step { display: flex; gap: 1rem; align-items: flex-start; }
.step__num {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%;
  background: var(--orange-500); color: #fff; font-family: var(--font-heading);
  font-weight: 700; display: flex; align-items: center; justify-content: center;
}

.stat { text-align: center; }
.stat__num { font-family: var(--font-heading); font-weight: 700; font-size: 2.4rem; color: var(--orange-400); }
.stat__label { color: var(--gray-200); font-size: .9rem; }

/* Comparison table */
.compare-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.compare-table th, .compare-table td { padding: 1rem 1.25rem; text-align: left; border-bottom: 1px solid var(--gray-100); }
.compare-table th { font-family: var(--font-heading); background: var(--navy-900); color: #fff; }
.compare-table td.yes { color: var(--success); font-weight: 700; }
.compare-table td.no { color: var(--gray-400); }
.compare-table tr:last-child td { border-bottom: none; }

/* Testimonials */
.testimonial { background: var(--white); border-radius: var(--radius-md); padding: 1.75rem; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-100); }
.testimonial__stars { color: var(--amber-400); margin-bottom: .75rem; letter-spacing: .1em; }
.testimonial__author { font-family: var(--font-heading); font-weight: 600; color: var(--navy-900); margin-top: 1rem; }
.testimonial__role { color: var(--gray-600); font-size: .88rem; }
.sample-note { font-size: .75rem; color: var(--gray-400); font-style: italic; margin-top: .5rem; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--gray-100); padding: 1.25rem 0; }
.faq-item summary { font-family: var(--font-heading); font-weight: 600; cursor: pointer; color: var(--navy-900); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev { transition: transform .2s ease; flex-shrink: 0; color: var(--orange-500); }
.faq-item[open] summary .chev { transform: rotate(180deg); }
.faq-item p { margin-top: .85rem; color: var(--gray-600); }

/* ---- Forms -------------------------------------------------------------------- */
.lead-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
}
.lead-form h3 { margin-bottom: .25rem; }
.lead-form .sub { color: var(--gray-600); margin-bottom: 1.25rem; font-size: .92rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.form-group { margin-bottom: .9rem; }
.form-group label { display: block; font-size: .82rem; font-weight: 600; color: var(--gray-700); margin-bottom: .35rem; font-family: var(--font-heading); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .72rem .9rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-family: var(--font-body);
  color: var(--gray-800);
  background: var(--white);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy-700);
  box-shadow: 0 0 0 3px rgba(29, 95, 163, .15);
}
.form-group select:disabled {
  background: var(--gray-50);
  color: var(--gray-400);
  cursor: not-allowed;
}
.form-group .error-msg { display: none; color: var(--error); font-size: .8rem; margin-top: .3rem; }
.form-group.has-error input,
.form-group.has-error select { border-color: var(--error); }
.form-group.has-error .error-msg { display: block; }
.radio-row { display: flex; gap: .75rem; }
.radio-option {
  flex: 1;
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .72rem .9rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.radio-option input[type="radio"] { width: 18px; height: 18px; accent-color: var(--navy-700); flex-shrink: 0; }
.radio-option:has(input:checked) { border-color: var(--navy-700); background: var(--gray-50); }
.form-group.has-error .radio-option { border-color: var(--error); }
.form-disclaimer { font-size: .74rem; color: var(--gray-400); line-height: 1.5; margin-top: 1rem; }
.form-disclaimer a { color: var(--gray-600); text-decoration: underline; }
.honeypot-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-alert { padding: .9rem 1.1rem; border-radius: var(--radius-sm); font-size: .9rem; margin-bottom: 1rem; }
.form-alert--error { background: #FDEDEA; color: var(--error); border: 1px solid #F5C4BA; }
.form-alert--success { background: #E9F8EF; color: var(--success); border: 1px solid #B9E7CC; }

/* ---- Sticky mobile call bar ---------------------------------------------------- */
.mobile-call-bar {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 600;
  background: var(--orange-500); color: #fff;
}
.mobile-call-bar a { display: flex; align-items: center; justify-content: center; gap: .5rem; color: #fff; padding: .9rem; font-family: var(--font-heading); font-weight: 700; }

/* ---- Footer --------------------------------------------------------------------- */
.site-footer { background: var(--navy-950); color: var(--gray-400); padding: 3.5rem 0 1.5rem; }
.site-footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 1rem; }
.site-footer a { color: var(--gray-400); }
.site-footer a:hover { color: var(--orange-400); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .6rem; font-size: .92rem; }
.footer-brand img { height: 40px; margin-bottom: 1rem; }
.footer-brand p { font-size: .88rem; line-height: 1.6; }
.footer-social { display: flex; gap: .75rem; margin-top: 1rem; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; }
.footer-social a:hover { background: var(--orange-500); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding-top: 1.5rem; font-size: .82rem; }
.footer-legal-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-disclaimer { font-size: .78rem; color: var(--gray-600); max-width: 900px; margin-top: 1.25rem; line-height: 1.6; }

/* ---- Breadcrumbs ------------------------------------------------------------------ */
.breadcrumbs { font-size: .84rem; color: var(--gray-600); padding: 1rem 0; }
.breadcrumbs a { color: var(--gray-600); }
.breadcrumbs a:hover { color: var(--orange-600); }
.breadcrumbs .sep { margin: 0 .4rem; color: var(--gray-400); }

/* ---- Page hero (interior pages) ----------------------------------------------------- */
.page-hero { background: linear-gradient(135deg, var(--navy-900), var(--navy-800)); color: #fff; padding: 3rem 0; }
.page-hero h1 { color: #fff; margin-bottom: .5rem; }
.page-hero p { color: var(--gray-200); max-width: 640px; margin: 0; }
.page-hero--photo {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 4.5rem 0;
  overflow: hidden;
}
.page-hero--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(6, 22, 41, .92), rgba(6, 22, 41, .8));
}
.page-hero--photo .container { position: relative; z-index: 1; }
.page-hero--photo .breadcrumbs { color: var(--gray-200); }
.page-hero--photo .breadcrumbs a { color: var(--gray-200); }
.page-hero--photo .breadcrumbs .sep { color: var(--gray-400); margin: 0 .4rem; }
@media (max-width: 860px) {
  .page-hero--photo { padding: 3rem 0; }
}

/* ---- Blog ---------------------------------------------------------------------------- */
.post-card { display: flex; flex-direction: column; height: 100%; }
.post-card__meta { font-size: .8rem; color: var(--gray-600); margin-bottom: .5rem; }
.post-body { max-width: 780px; margin: 0 auto; }
.post-body h2 { margin-top: 2rem; }
.post-body img { border-radius: var(--radius-md); margin: 1.5rem 0; }
.post-body blockquote { border-left: 4px solid var(--orange-500); padding-left: 1.25rem; color: var(--gray-600); font-style: italic; margin: 1.5rem 0; }

/* ---- CTA banner ------------------------------------------------------------------------ */
.cta-banner {
  background: linear-gradient(120deg, var(--orange-600), var(--orange-500));
  border-radius: var(--radius-lg);
  padding: 3rem;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-banner h2 { color: #fff; margin-bottom: .35rem; }
.cta-banner p { color: rgba(255,255,255,.9); margin: 0; }

/* ---- Utility ------------------------------------------------------------------------------ */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.text-orange { color: var(--orange-500); }
.badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--gray-100); color: var(--navy-800);
  font-size: .78rem; font-weight: 600; font-family: var(--font-heading);
  padding: .35rem .75rem; border-radius: 999px;
}
.badge svg { width: 14px; height: 14px; flex-shrink: 0; }
.state-list {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  justify-content: center;
}
.state-list .badge { background: var(--white); border: 1px solid var(--gray-200); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .main-nav, .header-cta .phone-label { display: none; }
  .nav-toggle { display: block; }
  .mobile-call-bar { display: block; }
  body { padding-bottom: 54px; }
  .topbar .container { justify-content: center; text-align: center; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 3rem 0; }
  .cta-banner { flex-direction: column; text-align: center; padding: 2rem; }
  .compare-table { display: block; overflow-x: auto; white-space: nowrap; }
}

/* Mobile nav panel (JS toggled) */
@media (max-width: 860px) {
  .main-nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    padding: 1rem 1.5rem 1.5rem;
    box-shadow: var(--shadow-md);
    gap: .25rem;
  }
  .main-nav.is-open a { padding: .7rem 0; border-bottom: 1px solid var(--gray-100); }
  .main-nav .dropdown { display: block; position: static; left: auto; transform: none; max-width: none; box-shadow: none; border: none; padding: 0 0 0 1rem; }
  .dropdown--mega { min-width: 0; width: auto; max-width: none; grid-template-columns: 1fr; }
}

@media print {
  .site-header, .site-footer, .mobile-call-bar, .lead-form { display: none; }
}
