/* ============================================================
   SAFE HARBOR TECH SUPPORT — Styles
   Retro Design System
   Blue #4BAEE8 · Orange #E8854B · Cream #F5F0E8 · Text #5A5040
============================================================ */

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'DM Sans', sans-serif;
  color: #5A5040;
  background: #F5F0E8;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  --blue:       #4BAEE8;
  --orange:     #E8854B;
  --cream:      #F5F0E8;
  --body-text:  #5A5040;
  --white:      #FFFFFF;
  --shadow-sm:  0 2px 8px rgba(75, 174, 232, 0.1);
  --shadow-md:  0 4px 20px rgba(75, 174, 232, 0.18);
  --transition: 0.25s ease;
}

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3 {
  font-family: 'Bebas Neue', sans-serif;
  color: var(--blue);
  line-height: 1.1;
  font-weight: 400;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.2rem; }

p { color: var(--body-text); }

/* ── Layout Helpers ────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section {
  padding-block: 5rem;
  background: var(--cream);
}

.section--alt {
  background: var(--cream);
}

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  color: var(--blue);
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 0.4rem;
}

.section-sub {
  text-align: center;
  font-size: 1.05rem;
  font-family: 'DM Sans', sans-serif;
  color: var(--body-text);
  margin-bottom: 3rem;
  max-width: 560px;
  margin-inline: auto;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 3px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  min-height: 48px;
  text-align: center;
}

.btn-primary {
  background: var(--orange);
  color: var(--cream);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #d4763d;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: rgba(75, 174, 232, 0.08);
  transform: translateY(-2px);
}

/* ── Topbar ────────────────────────────────────────────────── */
.topbar {
  width: 100%;
  background: var(--blue);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 2rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.85);
}

/* ── Header / Nav ──────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 3px solid var(--blue);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
}

.logo-img {
  height: 60px;
  width: auto;
}

.logo-img--icon {
  height: 60px;
}

.logo-img--text {
  height: 22px;
}

.logo-img--footer {
  height: 48px;
}

/* Mobile nav toggle */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 3px;
  transition: background var(--transition);
}

.nav-toggle:hover {
  background: rgba(75, 174, 232, 0.1);
}

.hamburger-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
  transform-origin: center;
}

/* Open state */
.nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Nav menu */
.nav-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  position: absolute;
  top: 84px;
  left: 0;
  right: 0;
  background: var(--cream);
  border-bottom: 2px solid var(--blue);
  box-shadow: var(--shadow-md);
  padding: 1rem 1.25rem 1.5rem;
}

.nav-menu.is-open {
  display: flex;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 0.75rem 0.5rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
  border-radius: 3px;
  transition: color var(--transition), background var(--transition);
  min-height: 48px;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--orange);
  background: rgba(75, 174, 232, 0.07);
}

.nav-link--cta {
  margin-top: 0.5rem;
  background: var(--orange);
  color: var(--cream);
  padding: 0.75rem 1.25rem;
  justify-content: center;
  font-weight: 700;
  border-radius: 3px;
}

.nav-link--cta:hover,
.nav-link--cta:focus-visible {
  background: #d4763d;
  color: var(--cream);
}

/* ── Desktop Nav ───────────────────────────────────────────── */
@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .nav-menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
    position: static;
    border: none;
    box-shadow: none;
    padding: 0;
    background: transparent;
  }

  .nav-link {
    padding: 0.5rem 0.875rem;
    min-height: unset;
  }

  .nav-link--cta {
    margin-top: 0;
    padding: 0.5rem 1.25rem;
    border-radius: 3px;
  }
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  background: var(--cream);
  border-bottom: 5px solid var(--orange);
  padding-block: 6rem 7rem;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin-inline: auto;
  text-align: center;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--orange);
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--orange);
  flex-shrink: 0;
}

.hero-logo {
  max-width: 720px;
  width: 100%;
  display: block;
  margin-inline: auto;
  margin-bottom: 1.25rem;
}

.hero-sub {
  color: var(--body-text);
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-bottom: 2.25rem;
  max-width: 560px;
  margin-inline: auto;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

/* ── Section Divider ───────────────────────────────────────── */
.section-divider {
  border: none;
  border-top: 3px solid var(--blue);
  margin: 0;
}

/* ── Services ──────────────────────────────────────────────── */
.services-heading-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.4rem;
}

.services-title-line {
  width: 60px;
  height: 2px;
  background: var(--blue);
  margin: 0 auto 2rem;
}

.services-tag {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--orange);
  border: 1px solid var(--orange);
  padding: 3px 10px;
  white-space: nowrap;
  align-self: center;
}

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.card {
  background: var(--cream);
  border: 2px solid var(--blue);
  border-radius: 4px;
  padding: 2rem 1.75rem;
  transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.25rem;
}

.card-icon svg {
  width: 100%;
  height: 100%;
}

.card:nth-child(odd) .card-icon  { color: var(--blue); }
.card:nth-child(even) .card-icon { color: var(--orange); }

.card-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.card:nth-child(odd) .card-title  { color: var(--blue); }
.card:nth-child(even) .card-title { color: var(--orange); }

.card-body {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--body-text);
}

@media (min-width: 560px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .cards-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ── Pricing ───────────────────────────────────────────────── */
.pricing-disclaimer {
  background: var(--cream);
  border: 1px solid var(--blue);
  border-left: 4px solid var(--orange);
  border-radius: 3px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.75rem;
  max-width: 720px;
  margin-inline: auto;
  font-size: 0.97rem;
  line-height: 1.7;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.pricing-table {
  background: var(--cream);
  border: 2px solid var(--blue);
  border-radius: 4px;
  padding: 1.75rem;
}

.pricing-table-title {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--blue);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--blue);
}

.pricing-table-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--orange);
}

.pricing-table-icon svg {
  width: 100%;
  height: 100%;
}

.pricing-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pricing-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.625rem 0;
  border-bottom: 1px solid rgba(75, 174, 232, 0.3);
  font-size: 0.93rem;
  flex-wrap: wrap;
}

.pricing-item:last-child {
  border-bottom: none;
}

.pricing-service {
  color: var(--body-text);
  flex: 1;
  min-width: 0;
}

.pricing-cost {
  font-weight: 600;
  color: var(--blue);
  white-space: nowrap;
  text-align: right;
}

.parts-note {
  font-style: normal;
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--body-text);
  opacity: 0.65;
  margin-left: 2px;
}

.waived-note {
  font-style: normal;
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--orange);
  display: block;
  text-align: right;
}

.mobile-fee {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--cream);
  border: 1px solid var(--blue);
  border-radius: 3px;
  padding: 1.1rem 1.4rem;
  margin-top: 2rem;
  font-size: 0.95rem;
  max-width: 600px;
  margin-inline: auto;
}

.mobile-fee svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--orange);
  margin-top: 2px;
}

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Why Safe Harbor ───────────────────────────────────────── */
.why.section {
  background: var(--blue);
  border-top: 4px solid var(--orange);
}

.why .section-title {
  color: var(--white);
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-top: 1rem;
}

.trust-item {
  text-align: left;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--orange);
}

.trust-icon {
  width: 48px;
  height: 48px;
  color: var(--cream);
  margin-bottom: 1rem;
}

.trust-icon svg {
  width: 100%;
  height: 100%;
}

.trust-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 0.6rem;
}

.trust-body {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.97rem;
  line-height: 1.7;
  color: rgba(245, 240, 232, 0.8);
  max-width: 340px;
}

@media (min-width: 768px) {
  .trust-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── Contact ───────────────────────────────────────────────── */
.contact-inner {
  max-width: 700px;
}

.contact-header {
  margin-bottom: 2.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--blue);
}

input,
select,
textarea {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  color: var(--body-text);
  background: var(--white);
  border: 1.5px solid var(--blue);
  border-radius: 3px;
  padding: 0.75rem 1rem;
  width: 100%;
  min-height: 48px;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  appearance: none;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%234BAEE8' stroke-width='1.5'%3E%3Cpath d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 18px;
  padding-right: 2.5rem;
  cursor: pointer;
}

textarea {
  resize: vertical;
  min-height: 130px;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(232, 133, 75, 0.15);
}

input::placeholder,
textarea::placeholder {
  color: #A0926E;
}

.btn-submit {
  align-self: flex-start;
  min-width: 180px;
}

.form-status {
  font-size: 0.95rem;
  font-weight: 500;
  min-height: 1.5rem;
}

.form-status.success { color: #2F855A; }
.form-status.error   { color: #C53030; }

@media (min-width: 560px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }

  .btn-submit {
    min-width: 200px;
  }
}

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
  background: var(--orange);
  color: rgba(245, 240, 232, 0.75);
  padding-block: 3rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.footer-logo {
  opacity: 0.9;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.75);
}

.footer-link {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cream);
  transition: opacity var(--transition);
}

.footer-link:hover {
  opacity: 0.8;
}

.footer-copy {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.6);
  margin-top: 0.5rem;
}

/* ── Scroll Animations ─────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay for grid children */
.cards-grid .fade-in:nth-child(1) { transition-delay: 0.05s; }
.cards-grid .fade-in:nth-child(2) { transition-delay: 0.12s; }
.cards-grid .fade-in:nth-child(3) { transition-delay: 0.19s; }
.cards-grid .fade-in:nth-child(4) { transition-delay: 0.26s; }

.trust-grid .fade-in:nth-child(1) { transition-delay: 0.05s; }
.trust-grid .fade-in:nth-child(2) { transition-delay: 0.15s; }
.trust-grid .fade-in:nth-child(3) { transition-delay: 0.25s; }

.pricing-grid .fade-in:nth-child(1) { transition-delay: 0.05s; }
.pricing-grid .fade-in:nth-child(2) { transition-delay: 0.12s; }
.pricing-grid .fade-in:nth-child(3) { transition-delay: 0.19s; }
.pricing-grid .fade-in:nth-child(4) { transition-delay: 0.26s; }

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── Focus Styles ──────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #3a9cd6; }
