/* Four Wheels and a Hand — styles (mobile-first) */

:root {
  /* Brand palette (sampled from the logos) */
  --blue: #4682AB;        /* headings, buttons, links */
  --sky: #93C7E3;         /* accents, section bands */
  --slate: #769CC4;       /* secondary accents, hover */
  --deep: #2F5E80;        /* body text */
  --pale: #EEF6FB;        /* alternating section backgrounds */
  --white: #FFFFFF;

  --font-heading: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Nunito Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 6px 24px rgba(47, 94, 128, 0.10);
  --shadow-lift: 0 10px 32px rgba(47, 94, 128, 0.16);
  --wrap: 1120px;
  --gutter: 20px;
  --header-h: 72px;
  --callbar-h: 72px;
}

/* ---------- Base ---------- */

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

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

body {
  margin: 0;
  background: var(--white);
  color: var(--deep);
  font-family: var(--font-body);
  font-size: 1.125rem;     /* 18px */
  line-height: 1.65;
  /* leave room for the sticky mobile call bar */
  padding-bottom: calc(var(--callbar-h) + env(safe-area-inset-bottom, 0px));
}

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

h1,
h2,
h3 {
  font-family: var(--font-heading);
  color: var(--blue);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.25rem, 7vw, 3.5rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.875rem, 5vw, 2.5rem);
}

h3 {
  font-size: 1.5rem;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--blue);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--deep);
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.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: 12px;
  top: -100px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--deep);
  color: var(--white);
  font-weight: 700;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 12px;
  color: var(--white);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 0.7em 1.4em;
  border: 2px solid var(--blue);
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1.1875rem;   /* 19px bold: large text for contrast purposes */
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(70, 130, 171, 0.28);
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  background: var(--deep);
  border-color: var(--deep);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(47, 94, 128, 0.32);
}

.btn--large {
  font-size: clamp(1.1875rem, 4.5vw, 1.5rem);
  padding: 0.85em 1.6em;
}

.btn--outline {
  background: var(--white);
  color: var(--blue);
  box-shadow: none;
}

.btn--outline:hover {
  background: var(--blue);
  border-color: var(--blue);
}

.btn--small {
  min-height: 44px;
  padding: 0.5em 1em;
}

/* ---------- Flower motif ---------- */

.flower {
  display: inline-block;
  width: 1em;
  height: 1em;
  background: var(--sky);
  -webkit-mask: url("../img/flower.svg") center / contain no-repeat;
  mask: url("../img/flower.svg") center / contain no-repeat;
}

.flower-row {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin: 0 0 1.5rem;
  font-size: 1.375rem;
}

.flower-row .flower:nth-child(2) {
  background: var(--slate);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 0 rgba(47, 94, 128, 0.08), 0 4px 16px rgba(47, 94, 128, 0.06);
}

@supports (backdrop-filter: blur(8px)) {
  .site-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
  }
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  margin-right: auto;
  border-radius: var(--radius-sm);
}

.brand-mark {
  width: 52px;
}

.brand-wordmark {
  display: none;
  width: 120px;
}

.header-call {
  white-space: nowrap;
}

/* Nav: without JS the links simply show as a row under the header bar */
.site-nav {
  width: 100%;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-block;
  padding: 10px 2px;
  color: var(--deep);
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-color: var(--sky);
  text-decoration-thickness: 3px;
}

.nav-toggle {
  display: none;
}

/* With JS on small screens: collapsible menu */
.js .nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 2px solid var(--pale);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--deep);
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 22px;
  height: 2.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s, background-color 0.2s;
}

.nav-toggle-bars {
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -7px;
}

.nav-toggle-bars::after {
  top: 7px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  background: var(--deep);
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  background: var(--deep);
  transform: translateY(-7px) rotate(-45deg);
}

.js .site-nav {
  display: none;
  padding-bottom: 12px;
}

.js .site-nav.is-open {
  display: block;
}

.js .site-nav ul {
  flex-direction: column;
  gap: 0;
}

.js .site-nav a {
  display: block;
  padding: 12px 4px;
  border-top: 1px solid var(--pale);
}

/* ---------- Sections ---------- */

.section {
  padding: 64px 0;
}

.section--tint {
  background: var(--pale);
}

.section-head {
  max-width: 640px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-head p {
  font-size: 1.1875rem;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--deep);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- Hero ---------- */

.hero {
  padding: 40px 0 64px;
  background:
    radial-gradient(ellipse at 85% 10%, rgba(147, 199, 227, 0.35), transparent 55%),
    radial-gradient(ellipse at 0% 100%, var(--pale), transparent 60%),
    var(--white);
  text-align: center;
}

.hero-inner {
  display: grid;
  gap: 24px;
  justify-items: center;
}

.hero-badge {
  width: min(260px, 70vw);
}

.hero-sub {
  max-width: 34em;
  margin: 0 auto 1.75rem;
  font-size: 1.25rem;
}

.hero-note {
  margin: 1rem 0 0;
  font-size: 1rem;
}

/* ---------- Services ---------- */

.cards {
  display: grid;
  gap: 24px;
}

.card {
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}

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

.card-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--pale);
  color: var(--blue);
}

.card-icon svg {
  width: 36px;
  height: 36px;
}

.card ul {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.card li {
  position: relative;
  padding-left: 1.6em;
  margin-bottom: 0.4em;
}

.card li::before,
.points li::before {
  content: "";
  position: absolute;
  left: 0;
  width: 1em;
  height: 1em;
  background: var(--sky);
  -webkit-mask: url("../img/flower.svg") center / contain no-repeat;
  mask: url("../img/flower.svg") center / contain no-repeat;
}

.card li::before {
  top: 0.35em;
}

.card .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* ---------- Personal touch ---------- */

.points {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.points li {
  position: relative;
  padding: 24px 24px 24px 64px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.points li::before {
  top: 26px;
  left: 24px;
  width: 26px;
  height: 26px;
  background: var(--slate);
}

.points h3 {
  font-size: 1.3rem;
  margin-bottom: 0.25em;
}

.points p {
  margin: 0;
}

/* ---------- How it works ---------- */

.steps {
  display: grid;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  text-align: center;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 600;
  box-shadow: 0 0 0 8px var(--pale);
}

.steps p {
  max-width: 22em;
  margin: 0 auto;
}

.steps-cta {
  margin-top: 48px;
  text-align: center;
}

/* ---------- About ---------- */

.about {
  display: grid;
  gap: 32px;
  align-items: center;
}

.about-photo {
  justify-self: center;
  display: grid;
  place-items: center;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow), 0 0 0 10px var(--pale);
}

.about-photo img {
  width: 62%;
}

.about-name {
  color: var(--blue);
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 600;
  margin-bottom: 0.75em;
}

/* ---------- Contact ---------- */

.contact-card {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  text-align: center;
}

.contact-phone {
  display: inline-block;
  margin: 0.25em 0 0.75em;
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 9vw, 3.5rem);
  font-weight: 600;
  line-height: 1.1;
  text-decoration: none;
}

.contact-phone:hover {
  text-decoration: underline;
  text-decoration-color: var(--sky);
}

.contact-details {
  display: grid;
  gap: 16px;
  margin: 32px 0 0;
}

.contact-details div {
  padding: 20px;
  border-radius: var(--radius-sm);
  background: var(--pale);
}

.contact-details dt {
  color: var(--blue);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
}

.contact-details dd {
  margin: 0.25em 0 0;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 48px 0 32px;
  border-top: 6px solid var(--sky);
  background: var(--white);
  text-align: center;
}

.footer-logo {
  width: 200px;
  margin: 0 auto 20px;
}

.footer-phone {
  font-size: 1.375rem;
  font-weight: 700;
}

.footer-small {
  margin-top: 1.5rem;
  font-size: 1rem;
}

/* ---------- Sticky mobile call bar ---------- */

.call-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -4px 20px rgba(47, 94, 128, 0.14);
}

.call-bar .btn {
  width: 100%;
}

/* ---------- Larger screens ---------- */

@media (min-width: 640px) {
  :root {
    --gutter: 32px;
  }

  .brand-mark {
    display: none;
  }

  .brand-wordmark {
    display: block;
  }

  .cards {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .points {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-details {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-card {
    padding: 56px 48px;
  }
}

@media (min-width: 900px) {
  :root {
    --header-h: 84px;
  }

  body {
    padding-bottom: 0;
  }

  .call-bar {
    display: none;
  }

  /* Full nav in the header bar */
  .header-inner {
    flex-wrap: nowrap;
    gap: 32px;
  }

  .brand {
    margin-right: 0;
  }

  .js .nav-toggle {
    display: none;
  }

  .site-nav,
  .js .site-nav {
    display: block;
    width: auto;
    margin-right: auto;
    padding: 0;
  }

  .site-nav ul,
  .js .site-nav ul {
    flex-direction: row;
    gap: 28px;
  }

  .js .site-nav a {
    display: inline-block;
    padding: 10px 2px;
    border: 0;
  }

  .section {
    padding: 96px 0;
  }

  .hero {
    padding: 72px 0 96px;
    text-align: left;
  }

  .hero-inner {
    grid-template-columns: 1.15fr 1fr;
    gap: 48px;
    align-items: center;
    justify-items: stretch;
  }

  .hero-badge {
    order: 2;
    width: 100%;
    max-width: 420px;
    justify-self: center;
  }

  .hero-sub {
    margin-left: 0;
  }

  .points {
    grid-template-columns: repeat(4, 1fr);
  }

  .points li {
    padding: 72px 24px 28px;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .about {
    grid-template-columns: 300px 1fr;
    gap: 64px;
  }

  .about-photo {
    width: 280px;
    height: 280px;
  }
}

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
