/* ==========================================================================
   Haviram — Repair & Service Co. — Site stylesheet
   ========================================================================== */

:root {
  --navy: #162238;
  --navy-dark: #0E1A2E;
  --navy-light: #1E2F4D;
  --amber: #F5A623;
  --amber-dark: #D98D0E;
  --slate: #5B6B82;
  --ink: #1F2937;
  --bg: #F7F8FA;
  --white: #FFFFFF;
  --border: #E3E7ED;
  --success: #2E9E63;
  --danger: #D64545;

  --font-head: 'Poppins', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Inter', 'Segoe UI', Arial, sans-serif;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 8px rgba(14, 26, 46, 0.06);
  --shadow-md: 0 8px 24px rgba(14, 26, 46, 0.10);
  --shadow-lg: 0 20px 48px rgba(14, 26, 46, 0.16);
  --container-w: 1180px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.2;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { color: var(--slate); }

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--amber);
  color: var(--navy);
  padding: 10px 16px;
  z-index: 999;
  font-weight: 600;
}
.skip-link:focus { left: 10px; top: 10px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.97rem;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--amber); color: var(--navy-dark); }
.btn-primary:hover { background: var(--amber-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.5); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--navy-light); transform: translateY(-2px); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: #EDEFF3; transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 18px; font-size: 0.88rem; }

/* ---------- Topbar ---------- */
.topbar { background: var(--navy-dark); color: #C9D2E0; font-size: 0.85rem; }
.topbar-inner { display: flex; align-items: center; gap: 24px; height: 40px; }
.topbar-item { display: flex; align-items: center; gap: 6px; }
.topbar-item a:hover { color: var(--amber); }
.topbar-cta { margin-left: auto; }
.topbar-link { color: var(--amber); font-weight: 600; }
.i-sm { width: 15px; height: 15px; flex-shrink: 0; }

/* ---------- Header / Nav ---------- */
.site-header { background: var(--white); position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow-sm); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 16px; }
.brand img { height: 50px; width: auto; }

.primary-nav { display: flex; align-items: center; gap: 28px; }
.primary-nav > ul { display: flex; align-items: center; gap: 26px; }
.primary-nav a {
  font-weight: 600; color: var(--navy); font-size: 0.97rem;
  padding: 8px 2px; display: flex; align-items: center; gap: 4px;
  border-bottom: 2px solid transparent;
}
.primary-nav a:hover, .primary-nav a.active { color: var(--amber-dark); border-bottom-color: var(--amber); }
.caret { width: 16px; height: 16px; }

.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: 100%; left: -14px; background: var(--white);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); padding: 10px;
  min-width: 220px; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: all .18s ease; border: 1px solid var(--border);
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown li a { border-bottom: none; padding: 10px 12px; border-radius: 6px; display: block; }
.dropdown li a:hover { background: var(--bg); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; }
.nav-toggle span { width: 24px; height: 2.5px; background: var(--navy); border-radius: 2px; transition: all .2s ease; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: var(--white); overflow: hidden;
  background: linear-gradient(120deg, rgba(14,26,46,.92), rgba(22,34,56,.82)), var(--navy);
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.38; }
.hero-inner { position: relative; z-index: 1; padding: 90px 0 100px; display: grid; gap: 28px; max-width: 720px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content;
  background: rgba(245,166,35,0.16); color: var(--amber); font-weight: 700;
  font-size: 0.8rem; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(245,166,35,0.4);
}
.hero h1 { color: var(--white); }
.hero p.lead { color: #CBD4E3; font-size: 1.1rem; max-width: 580px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 6px; }
.hero-trust-item { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 0.92rem; color: #DCE3EE; }
.hero-trust-item svg { width: 20px; height: 20px; color: var(--amber); flex-shrink: 0; }

.page-hero {
  position: relative; color: var(--white); padding: 64px 0;
  background: linear-gradient(120deg, rgba(14,26,46,.92), rgba(22,34,56,.85)), var(--navy);
}
.page-hero.has-media { background-size: cover; background-position: center; }
.page-hero-inner { position: relative; z-index: 1; max-width: 760px; }
.page-hero .breadcrumb { color: #AEB9CC; font-size: 0.88rem; margin-bottom: 14px; }
.page-hero .breadcrumb a { color: #AEB9CC; }
.page-hero .breadcrumb a:hover { color: var(--amber); }
.page-hero h1 { color: var(--white); margin-bottom: 10px; }
.page-hero p { color: #CBD4E3; font-size: 1.05rem; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.section-head.left { margin: 0 0 40px; text-align: left; }
.section-tag {
  display: inline-block; color: var(--amber-dark); font-weight: 700; font-size: 0.8rem;
  letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 10px;
}
.section-alt { background: var(--white); }
.section-navy { background: var(--navy); color: #fff; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy p { color: #B9C3D4; }

/* ---------- Grids & Cards ---------- */
.grid { display: grid; gap: 28px; }
.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(--border); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.service-card { display: flex; flex-direction: column; height: 100%; }
.service-icon {
  width: 56px; height: 56px; border-radius: 14px; background: #FDF1DD;
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.service-icon svg { width: 28px; height: 28px; color: var(--amber-dark); }
.service-card h3 { margin-bottom: 10px; }
.service-card p { flex: 1; margin-bottom: 18px; }
.service-card .link-arrow { font-weight: 700; color: var(--navy); display: inline-flex; align-items: center; gap: 6px; }
.service-card .link-arrow svg { width: 18px; height: 18px; transition: transform .15s ease; }
.service-card:hover .link-arrow svg { transform: translateX(4px); }

.service-card-media {
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--white);
  box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease;
}
.service-card-media:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-card-media img { height: 190px; object-fit: cover; width: 100%; }
.service-card-media .service-card-body { padding: 24px; }

.icon-card { text-align: center; }
.icon-card .service-icon { margin: 0 auto 16px; }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding-top: 10px; }
.step-num {
  width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: var(--amber);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-head);
  font-weight: 700; font-size: 1.1rem; margin-bottom: 16px;
}
.step h3 { margin-bottom: 8px; font-size: 1.1rem; }

/* ---------- Split / about media blocks ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; height: 420px; object-fit: cover; }
.split-reverse .split-media { order: 2; }
.check-list li { display: flex; gap: 12px; margin-bottom: 14px; align-items: flex-start; }
.check-list svg { width: 22px; height: 22px; color: var(--success); flex-shrink: 0; margin-top: 2px; }
.check-list strong { color: var(--navy); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; }
.stat .num { font-family: var(--font-head); font-size: 2.3rem; font-weight: 800; color: var(--amber); }
.stat .label { color: #B9C3D4; font-weight: 600; font-size: 0.92rem; }

/* ---------- CTA strip ---------- */
.cta-strip { background: var(--amber); padding: 46px 0; }
.cta-strip-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-strip h2 { color: var(--navy-dark); margin-bottom: 6px; font-size: 1.6rem; }
.cta-strip p { color: #4A3A14; }
.cta-strip-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-strip .btn-primary { background: var(--navy); color: #fff; }
.cta-strip .btn-primary:hover { background: var(--navy-light); }
.cta-strip .btn-light:hover { background: #fff; }

/* ---------- FAQ accordion ---------- */
.accordion-item { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 14px; background: var(--white); overflow: hidden; }
.accordion-q {
  width: 100%; text-align: left; background: none; border: 0; padding: 18px 22px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-family: var(--font-head); font-weight: 600; color: var(--navy); font-size: 1rem;
}
.accordion-q svg { width: 20px; height: 20px; flex-shrink: 0; transition: transform .2s ease; color: var(--amber-dark); }
.accordion-item.open .accordion-q svg { transform: rotate(180deg); }
.accordion-a { max-height: 0; overflow: hidden; transition: max-height .22s ease; padding: 0 22px; }
.accordion-item.open .accordion-a { max-height: 400px; padding: 0 22px 20px; }
.accordion-a p { margin: 0; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.form-field.full { grid-column: 1 / -1; }
label { font-weight: 600; color: var(--navy); font-size: 0.92rem; }
input, select, textarea {
  font: inherit; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: var(--white); color: var(--ink); width: 100%;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(245,166,35,0.18); }
textarea { resize: vertical; min-height: 130px; }
.hp-field { position: absolute; left: -9999px; top: -9999px; }

.form-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow-sm); }
.form-note { font-size: 0.85rem; color: var(--slate); margin-top: 10px; }

.alert { padding: 16px 18px; border-radius: var(--radius-sm); margin-bottom: 24px; font-weight: 600; }
.alert-success { background: #E8F7EF; color: #1E7C4C; border: 1px solid #BEE6D0; }
.alert-error { background: #FBEAEA; color: #B23434; border: 1px solid #F3C6C6; }

/* ---------- Contact info cards ---------- */
.contact-info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 48px; }
.contact-info-card { text-align: center; padding: 28px 20px; }
.contact-info-card .service-icon { margin: 0 auto 16px; }

/* ---------- Legal content ---------- */
.legal-content { max-width: 820px; margin: 0 auto; }
.legal-content h2 { margin-top: 42px; margin-bottom: 14px; font-size: 1.35rem; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { margin-top: 26px; margin-bottom: 10px; font-size: 1.1rem; }
.legal-content p { margin-bottom: 14px; }
.legal-content ul, .legal-content ol { margin: 0 0 16px; padding-left: 22px; list-style: disc; }
.legal-content ol { list-style: decimal; }
.legal-content li { color: var(--slate); margin-bottom: 8px; }
.legal-content a { color: var(--amber-dark); font-weight: 600; text-decoration: underline; }
.legal-updated { color: var(--slate); font-size: 0.9rem; margin-bottom: 8px; }
.legal-toc { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 26px; margin-bottom: 36px; }
.legal-toc h2 { margin: 0 0 12px; font-size: 1.05rem; }
.legal-toc ol { margin: 0; padding-left: 20px; }
.legal-toc a { text-decoration: none; color: var(--navy); font-weight: 600; }
.legal-toc a:hover { color: var(--amber-dark); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #AEB9CC; padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 48px; }
.footer-col h3 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 11px; }
.footer-col a:hover { color: var(--amber); }
.footer-brand p { color: #93A1B8; margin: 16px 0 18px; font-size: 0.93rem; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 11px; color: #93A1B8; font-size: 0.93rem; }
.footer-contact svg { color: var(--amber); margin-top: 3px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 0.85rem; color: #7E8CA3; }

/* ---------- Misc / 404 ---------- */
.error-page { text-align: center; padding: 110px 0; }
.error-page .code { font-family: var(--font-head); font-size: 6rem; font-weight: 800; color: var(--amber); line-height: 1; }

.badge-row { display: flex; gap: 14px; flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; background: var(--white); border: 1px solid var(--border);
  border-radius: 999px; padding: 9px 16px; font-weight: 600; font-size: 0.85rem; color: var(--navy);
}
.badge svg { width: 17px; height: 17px; color: var(--amber-dark); }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.center-col { max-width: 760px; margin: 0 auto; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split-reverse .split-media { order: 0; }
  .split img { height: 320px; }
  .contact-info-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .topbar-hide-sm { display: none; }
  .nav-toggle { display: flex; }
  .primary-nav {
    position: fixed; inset: 84px 0 0 0; background: var(--white); flex-direction: column;
    align-items: flex-start; padding: 24px 20px; gap: 18px; transform: translateX(100%);
    transition: transform .25s ease; overflow-y: auto; z-index: 90;
  }
  .primary-nav.open { transform: translateX(0); }
  .primary-nav > ul { flex-direction: column; align-items: flex-start; width: 100%; gap: 4px; }
  .primary-nav > ul > li { width: 100%; }
  .primary-nav a { padding: 12px 4px; width: 100%; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; display: none; padding-left: 10px; }
  .has-dropdown.open .dropdown { display: block; }
  .nav-call { width: 100%; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .cta-strip-inner { text-align: center; justify-content: center; }
  .hero-inner { padding: 60px 0 70px; }
  section { padding: 52px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom-inner { flex-direction: column; gap: 4px; }
  .contact-info-grid { grid-template-columns: 1fr; }
}
