/* ============================================================
   Top 2 Bottom Home Solutions — main stylesheet
   Mobile-first, pure HTML5/CSS3. No external dependencies.
   ============================================================ */

:root {
  --navy: #013066; /* sampled from the client logo roofline/wordmark */
  --navy-deep: #011e3d;
  --navy-soft: #14507e;
  --accent: #378dca; /* sampled from the client logo "2" */
  --accent-dark: #1f6aab; /* darkened for WCAG AA contrast on white (5.6:1) */
  --accent-light: #7db9e8; /* lightened for contrast on navy */
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --text: #1d2c3d;
  --muted: #5c6f84;
  --line: #e2e9f2;
  --radius: 14px;
  --shadow-sm: 0 1px 3px rgba(1, 48, 102, 0.08);
  --shadow-md: 0 10px 30px rgba(1, 48, 102, 0.12);
  --header-h: 76px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 1rem;
  overflow-x: clip;
  /* Safe space for the fixed Mojo Labs demo banner at the viewport bottom */
  padding-bottom: 110px;
}

img, svg { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.6em; color: var(--navy); text-wrap: balance; }
h1 { font-size: clamp(2rem, 5.5vw, 3.25rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.25rem); letter-spacing: -0.015em; }
h3 { font-size: 1.125rem; }

p { margin: 0 0 1em; }
a { color: var(--navy-soft); }

.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

section[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

.section { padding: 3.5rem 0; }
.section--soft { background: var(--bg-soft); }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 0.75rem;
}

.lead { font-size: 1.125rem; color: var(--muted); max-width: 44rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  min-height: 48px;
}
.btn--primary {
  background: var(--accent);
  color: var(--navy-deep);
  box-shadow: 0 6px 18px rgba(55, 141, 202, 0.35);
}
.btn--primary { color: var(--navy-deep); }
.btn--primary:hover { background: var(--navy); color: #fff; transform: translateY(-1px); }
.btn--light {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.65);
}
.btn--light:hover { background: rgba(255, 255, 255, 0.22); }
.btn--outline {
  background: #fff;
  color: var(--navy);
  border-color: var(--navy);
}
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--navy);
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.15;
}
.brand img.brand-mark { height: 46px; width: auto; flex: none; object-fit: contain; }
.brand img.brand-logo { height: 60px; width: auto; flex: none; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; justify-content: center; line-height: 1.12; }
.brand-name { font-size: 1.31rem; font-weight: 800; color: var(--navy); letter-spacing: 0.01em; white-space: nowrap; }
.brand-two { color: var(--accent); }
.brand-sub { font-size: 0.72rem; font-weight: 700; color: var(--navy); letter-spacing: 3px; white-space: nowrap; margin-top: 3px; }
.brand small { display: block; font-weight: 600; font-size: 0.72rem; color: var(--muted); letter-spacing: 0.04em; }

.main-nav { display: flex; align-items: center; gap: 0.25rem; }
.main-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
}
.main-nav a:hover { background: var(--bg-soft); color: var(--navy); }
.main-nav .btn { margin-left: 0.5rem; padding: 0.6rem 1.25rem; min-height: 44px; font-size: 0.95rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 46px;
  height: 46px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span { display: block; width: 22px; height: 2.5px; border-radius: 2px; background: var(--navy); transition: transform 0.2s ease, opacity 0.2s ease; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 6.5rem 0;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
}
.hero-shade {
  position: absolute;
  inset: 0;
  /* Soft gradient behind the headline only — fades fully to transparent on the right */
  background:
    linear-gradient(100deg, rgba(1, 25, 48, 0.82) 0%, rgba(1, 25, 48, 0.56) 40%, rgba(1, 25, 48, 0.15) 65%, rgba(1, 25, 48, 0) 88%);
}
.hero .container { position: relative; z-index: 1; }
.hero-copy { max-width: 640px; }
.hero h1 { color: #fff; }
.hero .lead { color: rgba(255, 255, 255, 0.86); }
.hero .eyebrow { color: var(--accent); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin: 1.75rem 0 1.5rem; }

.trust-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; margin: 0; padding: 0; }
.trust-chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
}
.trust-chips svg { width: 16px; height: 16px; flex: none; }

/* ---------- Photos ---------- */
.area-photo {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
}
.quote-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-top: 2rem; align-items: start; }
.quote-photo { margin: 0; }
.quote-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

/* ---------- Services grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  margin-top: 2rem;
}
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.service-photo {
  display: block;
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
}
.service-card h3 { margin-bottom: 0.4rem; }
.service-card p { margin: 0; color: var(--muted); font-size: 0.96rem; }
.fine-print { margin-top: 1.5rem; font-size: 0.95rem; color: #3d4f61; max-width: 60rem; }

/* ---------- Split / why us ---------- */
.split { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: start; }
.check-list { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: 0.8rem; }
.check-list li { display: flex; gap: 0.7rem; align-items: flex-start; font-weight: 600; }
.check-list svg { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.panel {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
}
.panel h3 { color: #fff; margin-bottom: 0.5rem; }
.panel p { color: rgba(255, 255, 255, 0.82); font-size: 0.96rem; }
.panel .btn { margin-top: 0.75rem; }

/* ---------- Areas (borderless, distinct from service cards) ---------- */
.areas-grid { display: grid; grid-template-columns: 1fr; gap: 1.75rem; margin-top: 2rem; }
.area-card {
  border: none;
  border-radius: 0;
  padding: 0;
  background: transparent;
}
.area-card .area-photo { height: 200px; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.area-card h3 { display: flex; align-items: center; gap: 0.55rem; margin-bottom: 0.35rem; }
.area-card h3 svg { width: 20px; height: 20px; stroke: var(--accent-dark); }
.area-card p { margin: 0; color: var(--muted); font-size: 0.96rem; }

/* ---------- How it works ---------- */
.how-it-works { margin-top: 3rem; }
.how-it-works h3 { margin-bottom: 1.25rem; }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 1rem; }
.step {
  counter-increment: step;
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.step::before {
  content: "0" counter(step);
  display: block;
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--accent);
  opacity: 0.35;
  margin-bottom: 0.6rem;
}
.step strong { display: block; color: var(--navy); font-size: 1.05rem; margin-bottom: 0.25rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---------- Owner ---------- */
.owner-grid { display: grid; grid-template-columns: 1fr; gap: 1.75rem; align-items: center; margin-top: 1.5rem; }
.owner-photo {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1;
  border-radius: var(--radius);
  background: var(--bg-soft);
  border: 1.5px dashed var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--muted);
}
.owner-photo .initials { font-size: 2.75rem; font-weight: 800; color: var(--navy); letter-spacing: 0.02em; }
.owner-photo-note { font-size: 0.9rem; }

/* ---------- Booking / form ---------- */
.booking-wrap { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: start; }
.call-card {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 1.75rem;
  color: #fff;
  text-align: center;
}
.call-card h3 { color: #fff; }
.call-card p { color: rgba(255, 255, 255, 0.8); }
.call-card .phone {
  display: inline-block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent-light);
  text-decoration: none;
  margin: 0.5rem 0 1rem;
  letter-spacing: 0.01em;
}
.call-card .phone:hover { text-decoration: underline; }

.quote-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 1rem;
}
.form-row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.field label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 0.35rem; color: var(--navy); }
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent-dark);
  box-shadow: 0 0 0 3px rgba(55, 141, 202, 0.28);
}
.field .hint { font-size: 0.82rem; color: var(--muted); margin-top: 0.3rem; }
.field .error { display: none; font-size: 0.82rem; color: #b42318; margin-top: 0.3rem; font-weight: 600; }
.field.invalid input,
.field.invalid textarea { border-color: #b42318; }
.field.invalid .error { display: block; }
.form-note { font-size: 0.88rem; color: var(--muted); margin: 0; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0.8rem; margin-top: 2rem; max-width: 46rem; }
.faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 0;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 1.25rem;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.5rem;
  line-height: 1;
  color: var(--accent-dark);
  flex: none;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 1.25rem 1.25rem; color: var(--muted); }
.faq .answer p { margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(140deg, var(--navy-deep), var(--navy-soft));
  border-radius: calc(var(--radius) + 6px);
  color: #fff;
  text-align: center;
  padding: 3rem 1.5rem;
  margin-top: 1rem;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.82); max-width: 36rem; margin-inline: auto; }
.cta-band .hero-actions { justify-content: center; margin-bottom: 0; }

/* ---------- Contact cards ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 1.1rem; margin-top: 2rem; }
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: #fff;
  text-align: center;
}
.contact-card .icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(55, 141, 202, 0.14);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 0.9rem;
}
.contact-card .icon svg { width: 26px; height: 26px; stroke: var(--accent-dark); }
.contact-card h3 { margin-bottom: 0.3rem; }
.contact-card p { color: var(--muted); font-size: 0.96rem; margin-bottom: 0.75rem; }
.contact-card a.big { font-size: 1.15rem; font-weight: 800; color: var(--navy); text-decoration: none; }
.contact-card a.big:hover { color: var(--accent-dark); text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.78);
  padding: 3rem 0 2rem;
  font-size: 0.95rem;
}
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.footer-brand { display: flex; align-items: center; gap: 0.65rem; color: #fff; font-weight: 800; margin-bottom: 0.75rem; }
.footer-logo-plate { display: inline-flex; background: #fff; border-radius: 10px; padding: 6px 10px; }
.footer-logo-plate img { height: 84px; width: auto; }
.site-footer h4 { color: #fff; font-size: 0.95rem; margin: 0 0 0.8rem; letter-spacing: 0.04em; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.footer-links a { color: rgba(255, 255, 255, 0.78); text-decoration: none; }
.footer-links a:hover { color: var(--accent-light); text-decoration: underline; }
.footer-bottom {
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .areas-grid { grid-template-columns: repeat(3, 1fr); }
  .form-row { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (min-width: 900px) {
  .section { padding: 5rem 0; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .owner-grid { grid-template-columns: 280px 1fr; gap: 2.5rem; }
  .split { grid-template-columns: 1.1fr 0.9fr; gap: 3rem; }
  .booking-wrap { grid-template-columns: 0.85fr 1.15fr; gap: 2.5rem; }
  .contact-grid { grid-template-columns: repeat(4, 1fr); }
  .hero { padding: 8rem 0; }
  .quote-grid { grid-template-columns: 1fr 300px; gap: 2.5rem; }
}

/* Mobile nav: collapse under 860px */
@media (max-width: 859px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.25rem 1.25rem;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 0.85rem 0.5rem; border-bottom: 1px solid var(--bg-soft); font-size: 1.02rem; }
  .main-nav .btn { margin: 0.9rem 0 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .site-header { position: sticky; }
}

/* Mojo Labs demo banner safe space — phones get a slightly smaller reserve */
@media (max-width: 720px) {
  body { padding-bottom: 84px; }
  .section { padding: 2.75rem 0; }
  .hero { padding: 4.25rem 0 3rem; }
  .hero-actions .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* ---------- Chat assistant ---------- */
.chat-widget { position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 90; display: flex; flex-direction: column; align-items: flex-end; gap: 0.75rem; }
.chat-launcher {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--navy); color: #fff; border: none; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 0.98rem;
  padding: 0.85rem 1.3rem; border-radius: 999px;
  box-shadow: var(--shadow-md);
  transition: transform 0.12s ease, background 0.12s ease;
}
.chat-launcher:hover { background: var(--accent-dark); transform: translateY(-1px); }
.chat-launcher svg { width: 22px; height: 22px; }
.chat-panel {
  width: min(360px, calc(100vw - 2.2rem));
  max-height: min(560px, calc(100vh - 8rem));
  overflow-y: auto;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-md);
}
.chat-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  background: var(--navy); color: #fff; padding: 1rem 1.1rem;
  border-radius: 16px 16px 0 0;
}
.chat-head strong { display: block; font-size: 1rem; line-height: 1.25; }
.chat-head span { display: block; font-size: 0.82rem; color: var(--accent-light); font-weight: 600; }
.chat-close { background: none; border: none; color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 0.1rem 0.3rem; }
.chat-body { padding: 1.1rem; display: grid; gap: 1rem; }
.chat-msg {
  margin: 0; background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 12px; border-bottom-left-radius: 4px; padding: 0.85rem 1rem; font-size: 0.95rem;
}
.chat-form { display: grid; gap: 0.85rem; }
.chat-form textarea { min-height: 76px; }
.chat-success { margin: 0; font-size: 0.9rem; font-weight: 600; color: var(--accent-dark); }
@media (max-width: 720px) {
  :root { --header-h: 64px; }
  .brand img.brand-mark { height: 34px; max-width: 36vw; object-fit: contain; }
  .brand img.brand-logo { height: 44px; max-width: 44vw; object-fit: contain; }
  .brand-name { font-size: 1.05rem; }
  .brand-sub { font-size: 0.62rem; letter-spacing: 2.4px; margin-top: 2px; }
  .chat-widget { right: 0.9rem; bottom: 0.9rem; }
}
