/* =========================================================
   Recap Building Care: one-page site
   Colours sampled from assets/logo-full.png
   ========================================================= */

:root {
  --navy: #064680;        /* roof mark / BUILDING banner */
  --navy-deep: #033464;   /* RECAP wordmark */
  --ink: #0d2240;         /* body text */
  --muted: #4a5b72;
  --green: #55af0c;       /* CARE banner */
  --green-hover: #4a9c09;
  --green-text: #2f6e03;  /* green that passes contrast on white */
  --tint: #eef3f9;
  --tint-2: #e2eaf4;
  --line: #d8e1ec;
  --white: #fff;

  --font-head: "Montserrat", "Segoe UI", Arial, sans-serif;
  --font-body: "Nunito Sans", "Segoe UI", Arial, sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(13, 34, 64, .06), 0 8px 24px rgba(13, 34, 64, .07);
  --shadow-hover: 0 2px 4px rgba(13, 34, 64, .08), 0 14px 32px rgba(13, 34, 64, .12);
  --header-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;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--font-head); color: var(--navy-deep); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.5rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; letter-spacing: -.01em; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--navy-deep);
  color: var(--white);
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.icon {
  width: 1.15em; height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 .75rem;
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green-text);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-height: 44px;
  padding: .7em 1.3em;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--sm { padding: .55em 1.1em; font-size: .92rem; }
.btn--lg { padding: .9em 1.6em; font-size: 1.05rem; }

.btn--primary { background: var(--navy); color: var(--white); box-shadow: 0 6px 16px rgba(6, 70, 128, .25); }
.btn--primary:hover { background: var(--navy-deep); }

.btn--outline { background: var(--white); color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }

.btn--green { background: var(--green); color: var(--navy-deep); }
.btn--green:hover { background: #6ac420; }

/* ---------- 1. Top bar ---------- */
.topbar {
  background: var(--navy-deep);
  color: #dbe6f3;
  font-size: .85rem;
}
.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 20px;
  padding-top: 8px;
  padding-bottom: 8px;
  text-align: center;
}
.topbar p { margin: 0; }
.topbar a { color: var(--white); font-weight: 600; text-decoration: none; }
/* 24px minimum tap height without changing the text size */
.topbar a,
.footer__list a,
.footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}
.topbar a:hover { text-decoration: underline; }
.topbar__sep { margin: 0 8px; opacity: .5; }
.topbar__tag { display: none; }

/* ---------- 2. Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid transparent;
  transition: box-shadow .2s, border-color .2s;
}
@supports (backdrop-filter: blur(8px)) {
  .header { background: rgba(255, 255, 255, .88); backdrop-filter: blur(10px); }
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 18px rgba(13, 34, 64, .06); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}
.header__logo { display: block; flex: none; }
.header__logo img { height: 44px; width: auto; }

/* Hamburger */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--tint);
  cursor: pointer;
}
.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  display: block;
  width: 22px; height: 2.5px;
  border-radius: 2px;
  background: var(--navy-deep);
  transition: transform .25s, opacity .2s;
}
.nav-toggle__bar { position: relative; }
.nav-toggle__bar::before,
.nav-toggle__bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bar::before { top: -7px; }
.nav-toggle__bar::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav panel */
.nav {
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  display: none;
  padding: 8px 20px 20px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 16px 24px rgba(13, 34, 64, .08);
}
.nav.is-open { display: block; }
.nav__list a {
  display: block;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy-deep);
  text-decoration: none;
}
.nav__list a:hover { color: var(--navy); }
.nav__cta { width: 100%; margin-top: 16px; }

/* ---------- 3. Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 30%, rgba(85, 175, 12, .14), transparent 45%),
    linear-gradient(180deg, var(--tint) 0%, var(--white) 100%);
}
.hero__inner {
  display: grid;
  gap: 24px;
  padding-top: 40px;
}
.hero__lead {
  max-width: 34em;
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  color: var(--muted);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 28px;
}
.hero__actions .btn { flex: 1 1 220px; }

.checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  font-weight: 600;
  font-size: .95rem;
  color: var(--navy-deep);
}
.checks li { display: flex; align-items: center; gap: 8px; }
.checks li::before {
  content: "";
  flex: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23033464' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.hero__art {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 40px;
}
/* Full logo (3:2 landscape): scaled proportionally, never cropped */
.hero__art picture {
  display: block;
  width: 100%;
  max-width: 520px;
}
.hero__art img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section--tint { background: var(--tint); }
.section__head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.section__intro { color: var(--muted); font-size: 1.08rem; margin: 0; }

.grid { display: grid; gap: 20px; }

.card {
  height: 100%;
  padding: 28px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: #c6d3e3; }
.card p { margin: 0; color: var(--muted); }

.card__icon {
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--tint);
  color: var(--navy);
}
.card__icon svg {
  width: 28px; height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card__icon--green { background: rgba(85, 175, 12, .16); color: var(--green-text); }

/* ---------- 6. Steps ---------- */
.steps {
  display: grid;
  gap: 20px;
  counter-reset: none;
}
.step {
  position: relative;
  padding: 28px 24px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.step p { margin: 0; color: var(--muted); }
.step__num {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 0 0 6px rgba(85, 175, 12, .25);
}

/* ---------- 7. Areas ---------- */
.area h3 {
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 3px solid var(--green);
  display: inline-block;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--navy-deep);
  font-size: .9rem;
  font-weight: 500;
}
.chips .chip--hq { background: var(--navy); color: var(--white); font-weight: 600; }
.chips .chip--hq span { opacity: .85; font-weight: 500; }

/* ---------- 8. Recap Group band ---------- */
.band {
  background:
    radial-gradient(circle at 100% 0%, rgba(85, 175, 12, .25), transparent 40%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #dbe6f3;
  padding: 52px 0;
}
.band__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.band h2 { color: var(--white); margin-bottom: .35em; }
.band p { margin: 0; font-size: 1.1rem; max-width: 40em; }

/* ---------- 9. Contact ---------- */
.contact__box {
  max-width: 860px;
  margin: 0 auto;
  padding: 44px 22px;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  background-image: linear-gradient(180deg, var(--tint) 0%, var(--white) 70%);
}
.contact__actions {
  display: grid;
  gap: 14px;
  margin: 28px 0 22px;
}
.contact-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--white);
  text-align: left;
  text-decoration: none;
  transition: background-color .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 8px 20px rgba(6, 70, 128, .22);
  min-width: 0;
}
.contact-btn:hover { background: var(--navy-deep); transform: translateY(-2px); }
.contact-btn + .contact-btn { background: var(--white); color: var(--navy-deep); border: 2px solid var(--navy); box-shadow: none; }
.contact-btn + .contact-btn:hover { background: var(--tint); }
.contact-btn + .contact-btn .contact-btn__icon { background: var(--navy); color: var(--white); }
.contact-btn__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--green);
  color: var(--navy-deep);
}
.contact-btn__icon svg {
  width: 24px; height: 24px;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.contact-btn__text { display: flex; flex-direction: column; min-width: 0; }
.contact-btn__label { font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.contact-btn__value {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1rem, 4.2vw, 1.3rem);
  overflow-wrap: break-word;
}
.contact-btn__value--email {
  font-size: clamp(.95rem, 3.9vw, 1.15rem);
  /* never split inside a word; the only break point is the <wbr> after "@" */
  overflow-wrap: normal;
  word-break: normal;
}
.contact__hours {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-weight: 500;
}

/* ---------- 10. Footer ---------- */
.footer {
  background: #0a1d36;
  color: #b8c7da;
  font-size: .95rem;
  padding-top: 52px;
}
.footer a { color: var(--white); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer__inner { display: grid; gap: 32px; padding-bottom: 36px; }
.footer__logo {
  display: inline-block;
  padding: 10px 14px;
  margin-bottom: 16px;
  background: var(--white);
  border-radius: 12px;
}
.footer__logo img { width: 180px; height: auto; aspect-ratio: 3 / 2; object-fit: contain; }
.footer__brand p { max-width: 30em; margin: 0 0 .5em; }
.footer__group { color: var(--green); font-weight: 600; }
.footer__list li { padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.footer__k {
  display: inline-block;
  min-width: 64px;
  margin-right: 8px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8ea3bd;
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding-top: 20px;
  padding-bottom: 24px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .85rem;
}
.footer__bottom p { margin: 0; }
.footer__links span { margin: 0 6px; opacity: .5; }

/* ---------- Privacy page ---------- */
.page-hero {
  padding: 56px 0 40px;
  background: linear-gradient(180deg, var(--tint) 0%, var(--white) 100%);
}
.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: .3em; }
.page-hero p { margin: 0; color: var(--muted); }
.page-hero .container,
.prose { max-width: 760px; }
.prose { padding-bottom: 72px; }
.prose h2 { font-size: clamp(1.25rem, 3vw, 1.5rem); margin-top: 2em; }
.prose p, .prose li { color: var(--ink); font-size: 1.05rem; }
.prose ul { list-style: disc; padding-left: 1.4em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.prose a { font-weight: 600; overflow-wrap: anywhere; }

/* ---------- Reveal on scroll ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   Breakpoints (mobile first)
   ========================================================= */
@media (min-width: 560px) {
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .checks { grid-template-columns: repeat(4, auto); justify-content: start; }
  .contact__actions { max-width: 520px; margin-left: auto; margin-right: auto; }
  .hero__actions .btn { flex: 0 1 auto; }
}

@media (min-width: 768px) {
  .topbar__inner { justify-content: space-between; }
  .topbar__tag { display: block; }
  .header__logo img { height: 52px; }
  .section { padding: 88px 0; }
  .band__inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .band__inner .btn { flex: none; }
  .contact__box { max-width: 960px; padding: 56px 48px; }
  .footer__inner { grid-template-columns: 1.2fr 1fr; }
}

@media (min-width: 960px) {
  :root { --header-h: 84px; }
  .header__logo img { height: 58px; }

  .nav-toggle { display: none; }
  .nav {
    position: static;
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .nav__list { display: flex; gap: 26px; }
  .nav__list a {
    position: relative;
    padding: 8px 0;
    border: 0;
    font-size: .95rem;
  }
  .nav__list a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 2px;
    height: 2px;
    background: var(--green);
    transform: scaleX(0);
    transition: transform .2s;
  }
  .nav__list a:hover::after { transform: scaleX(1); }
  .nav__cta { width: auto; margin: 0; }

  .hero__inner {
    grid-template-columns: 1.15fr .85fr;
    align-items: end;
    gap: 40px;
    padding-top: 64px;
  }
  .hero__copy { padding-bottom: 72px; }
  .hero__art { align-self: center; padding-bottom: 72px; }

  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .contact__actions { max-width: none; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50px;
    right: -21px;
    width: 22px;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--green) 0 4px, transparent 4px 8px);
  }
}

@media (max-width: 419px) {
  .contact__box { padding: 36px 14px; }
  .contact-btn { gap: 12px; padding: 16px 14px; }
  .contact-btn__icon { width: 42px; height: 42px; }
}

@media (max-width: 399px) {
  .contact-btn__value--email { font-size: clamp(.8rem, 4.1vw, .95rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .btn:hover, .card:hover, .contact-btn:hover { transform: none; }
}
