/* ==========================================================================
   Your Home Assist – styles.css
   Colour tokens follow Bootstrap naming so they map onto a Bootstrap theme.
   ========================================================================== */

:root {
  /* Core brand colours */
  --bs-primary: #002051;   /* navy */
  --bs-info: #ef583d;      /* orange (logo) */
  --bs-success: #0cc657;
  --bs-warning: #e1963b;
  --bs-danger: #e00000;
  --bs-disabled: #777777;

  /* Supporting tones */
  --navy-deep: #001638;
  --info-text: #c43e25;    /* darker orange for small text on white (AA contrast) */
  --info-tint: #fde6e1;
  --text-muted: #3d4f6e;
  --text-subtle: #4a5a78;
  --on-navy-muted: #d5dcea;
  --surface: #ffffff;
  --surface-alt: #f4f6fa;
  --border: #e3e8f0;
  --input-border: #b9c3d4;

  /* Type */
  --font-display: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;

  /* Layout */
  --container: 1200px;
  --gutter: 40px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --header-h: 88px;
  --section-pad: 112px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--bs-primary);
  background: var(--surface);
}

img { max-width: 100%; height: auto; display: block; }
svg { flex-shrink: 0; }

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

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 1.15;
}

p { margin: 0; }

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--bs-info);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important;
  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: 16px; top: -100px;
  z-index: 100;
  background: var(--bs-primary);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
}
.skip-link:focus { top: 16px; color: #fff; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-pad); }
.section--alt { background: var(--surface-alt); }
.section--navy { background: var(--bs-primary); color: #fff; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--info-text);
}
.section--navy .eyebrow,
.hero .eyebrow { color: var(--bs-info); }

.section-title {
  font-weight: 800;
  font-size: clamp(32px, 4.5vw, 44px);
  letter-spacing: -1px;
}

.section-lead {
  font-size: 19px;
  color: var(--text-muted);
}
.section--navy .section-lead { color: var(--on-navy-muted); }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 680px;
  margin-bottom: 56px;
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
  max-width: 720px;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.btn-primary { background: var(--bs-primary); color: #fff; }
.btn-primary:hover { background: #0a3172; color: #fff; }

/* Navy text on orange keeps AA contrast (white on #ef583d does not) */
.btn-info { background: var(--bs-info); color: var(--bs-primary); }
.btn-info:hover { background: #f37a64; color: var(--bs-primary); }

.btn-outline-light { border-color: #fff; color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--bs-primary); }

.btn-lg { min-height: 54px; padding: 14px 28px; font-size: 17px; }
.btn-block { width: 100%; }

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand img { height: 64px; width: auto; }

.nav-toggle { display: none; }

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 32px;
  font-weight: 600;
  font-size: 16px;
}

.site-nav__cta { padding: 12px 22px; font-size: 15px; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  background: var(--bs-primary);
  color: #fff;
}

.hero__inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px;
  align-items: center;
  padding-block: 96px 104px;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero__title {
  font-weight: 800;
  font-size: clamp(40px, 5.5vw, 60px);
  line-height: 1.08;
  letter-spacing: -1.5px;
}
.hero__title span { display: block; }
.hero__title .accent { color: var(--bs-info); }

.hero__lead {
  font-size: 20px;
  line-height: 1.55;
  color: var(--on-navy-muted);
  max-width: 520px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Journey card */
.journey {
  position: relative;
  padding: 24px 0 24px 24px;
}

.journey__card {
  background: #fff;
  color: var(--bs-primary);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 24px 60px rgba(0, 10, 30, .35);
}

.journey__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

.journey__title { font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.journey__address { font-size: 15px; color: var(--text-subtle); }

.avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bs-primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}

.journey__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.journey__step {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 17px;
  font-weight: 600;
}
.journey__label { flex-grow: 1; }
.journey__meta { font-size: 14px; color: var(--text-subtle); font-weight: 400; }

.status {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.status--done { background: var(--bs-success); }
.status--active { border: 3px solid var(--bs-warning); }
.status--active::after {
  content: "";
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--bs-warning);
}
.status--todo { border: 2px solid var(--bs-disabled); }

.journey__step--active { font-weight: 700; }
.journey__step--todo { color: var(--bs-disabled); }

.pill {
  font-size: 13px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.pill--warning { background: var(--bs-warning); color: var(--bs-primary); }
.pill--muted { color: var(--bs-disabled); padding-inline: 0; }

.journey__toast {
  position: absolute;
  left: 0;
  bottom: -8px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: #fff;
  color: var(--bs-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 30px rgba(0, 10, 30, .3);
}
.journey__toast-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--info-tint);
  display: grid;
  place-items: center;
}
.journey__toast strong { display: block; font-size: 15px; }
.journey__toast span { font-size: 13px; color: var(--text-subtle); }

/* --------------------------------------------------------------------------
   Value strip
   -------------------------------------------------------------------------- */
.values {
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
}
.values__list {
  list-style: none;
  margin: 0 auto;
  padding-block: 36px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}
.values__item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.3;
}

/* --------------------------------------------------------------------------
   Steps (How it works)
   -------------------------------------------------------------------------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.step {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.step__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 40px;
  line-height: 1;
  color: var(--bs-info);
}
.step h3 { font-weight: 700; font-size: 21px; }
.step p { color: var(--text-muted); }

/* --------------------------------------------------------------------------
   Experts
   -------------------------------------------------------------------------- */
.experts__inner {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 48px;
  align-items: center;
}
.experts__copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.experts__copy p { color: var(--text-muted); }
.experts__copy .section-lead { font-size: 19px; }
.disclosure { font-size: 14px; font-style: italic; color: var(--text-subtle) !important; }

.experts__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.expert {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  box-shadow: 0 1px 3px rgba(0, 32, 81, .08);
}
.expert__icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  background: var(--bs-primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.expert h3 { font-weight: 700; font-size: 18px; margin-bottom: 6px; }
.expert p { font-size: 16px; line-height: 1.5; color: var(--text-muted); }

/* --------------------------------------------------------------------------
   Comparison (Why us)
   -------------------------------------------------------------------------- */
.compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.compare__col {
  border-radius: var(--radius-lg);
  padding: 40px;
}
.compare__col--alone { border: 1px solid var(--border); }
.compare__col--alone h3 { color: var(--text-muted); }
.compare__col--us { background: var(--bs-primary); color: #fff; }
.compare__col--us h3 .accent { color: var(--bs-info); }
.compare__col h3 { font-weight: 700; font-size: 22px; margin-bottom: 24px; }

.compare__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.compare__list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 18px;
  line-height: 1.5;
}
.compare__col--alone li { color: var(--text-muted); }
.compare__list svg { margin-top: 2px; }

/* --------------------------------------------------------------------------
   FAQ (native <details> accordion)
   -------------------------------------------------------------------------- */
.faq__inner { max-width: 880px; }

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq__item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.35;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:focus-visible { outline-offset: -3px; }

.faq__icon {
  position: relative;
  width: 22px; height: 22px;
  flex-shrink: 0;
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 16px; height: 2.5px;
  background: var(--info-text);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform .2s ease;
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }

.faq__answer {
  padding: 0 28px 26px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact__inner {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 56px;
  align-items: start;
}
.contact__copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact__details {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 18px;
  font-weight: 600;
}
.contact__details li { display: flex; align-items: center; gap: 14px; }
.contact__details a { color: #fff; }
.contact__details a:hover { color: var(--bs-info); }

.form {
  background: #fff;
  color: var(--bs-primary);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field label { font-size: 15px; font-weight: 700; }
.field .req { color: var(--bs-danger); }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 16px; /* 16px stops iOS zooming on focus */
  color: var(--bs-primary);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 3px rgba(239, 88, 61, .35);
}

.field--invalid input,
.field--invalid textarea { border-color: var(--bs-danger); }
.field__error {
  font-size: 14px;
  font-weight: 600;
  color: var(--bs-danger);
}
.field__error:empty { display: none; }

.form__note {
  font-size: 14px;
  color: var(--text-subtle);
  text-align: center;
}

.form__success {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: #e7f9ee;
  border: 1px solid var(--bs-success);
  font-weight: 600;
}
.form__success.is-visible { display: flex; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy-deep);
  color: #c9d2e3;
  padding-block: 56px 40px;
}
.site-footer__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid #1f3a66;
}
.site-footer__logo img { height: 80px; width: auto; }
.site-footer__nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  font-weight: 600;
}
.site-footer__nav a { color: #fff; }
.site-footer__nav a:hover { color: var(--bs-info); }
.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
  padding-top: 32px;
  font-size: 14px;
}
.site-footer__legal { display: flex; gap: 24px; }
.site-footer__legal a { color: #c9d2e3; }
.site-footer__legal a:hover { color: #fff; }

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Tablet landscape and below */
@media (max-width: 1080px) {
  :root { --section-pad: 88px; }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 56px;
    padding-block: 72px 88px;
  }
  .journey { max-width: 560px; }

  .values__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .experts__inner,
  .contact__inner { grid-template-columns: 1fr; gap: 48px; }
}

/* Mobile navigation kicks in */
@media (max-width: 860px) {
  :root { --header-h: 72px; }

  .brand img { height: 52px; }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px; height: 48px;
    margin-right: -8px;
    background: none;
    border: 0;
    border-radius: var(--radius-sm);
    color: var(--bs-primary);
    cursor: pointer;
  }
  .nav-toggle__bars,
  .nav-toggle__bars::before,
  .nav-toggle__bars::after {
    display: block;
    width: 24px; height: 2.5px;
    background: currentColor;
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
  }
  .nav-toggle__bars { position: relative; }
  .nav-toggle__bars::before,
  .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle__bars::before { top: -8px; }
  .nav-toggle__bars::after { top: 8px; }

  .nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-8px) rotate(-45deg); }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    bottom: 0;
    background: var(--surface);
    padding: 24px var(--gutter) 40px;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }
  .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity .2s ease, transform .2s ease;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    font-size: 20px;
  }
  .site-nav__list a:not(.btn) {
    display: block;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-display);
  }
  .site-nav__list li:last-child { margin-top: 28px; }
  .site-nav__cta { width: 100%; min-height: 54px; font-size: 17px; }

  body.nav-open { overflow: hidden; }

  .journey__toast { position: static; margin-top: -16px; margin-left: -8px; width: max-content; max-width: 100%; }
}

/* Phones */
@media (max-width: 640px) {
  :root {
    --gutter: 20px;
    --section-pad: 72px;
  }
  body { font-size: 16px; }

  .hero__inner { padding-block: 56px 72px; gap: 48px; }
  .hero__title { letter-spacing: -1px; }
  .hero__lead { font-size: 18px; }
  .hero__actions .btn { width: 100%; }

  .journey { padding: 0; }
  .journey__card { padding: 24px 20px; }
  .journey__step { font-size: 16px; gap: 12px; }
  .journey__meta { display: none; }
  .journey__toast { margin: 16px 0 0; }

  .values__list { grid-template-columns: 1fr; gap: 18px; padding-block: 28px; }

  .section-head { margin-bottom: 40px; }
  .section-lead { font-size: 17px; }

  .steps,
  .experts__grid,
  .compare { grid-template-columns: 1fr; }
  .step { padding: 24px; }
  .expert { padding: 22px; }
  .compare__col { padding: 28px 24px; }
  .compare__list li { font-size: 17px; }

  .faq__item summary { padding: 20px; font-size: 17px; }
  .faq__answer { padding: 0 20px 22px; }

  .form { padding: 28px 20px; }
  .form__row { grid-template-columns: 1fr; }

  .site-footer__top,
  .site-footer__bottom { flex-direction: column; align-items: flex-start; }
  .site-footer__logo img { height: 68px; }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
