/* ===========================================================
   RedDoor Community Services — professional stylesheet
   =========================================================== */

:root {
  --red:        #C0392B;
  --red-dark:   #8f271c;
  --red-deep:   #5e1a13;
  --red-soft:   #fbeceb;
  --ink:        #1c1a18;
  --ink-soft:   #423e3a;
  --muted:      #76706a;
  --paper:      #ffffff;
  --sand:       #f8f5f1;
  --sand-2:     #f0e9e1;
  --line:       #e7e0d7;
  --gold:       #cf9b54;
  --ok:         #2f7d52;

  --maxw: 1180px;
  --radius: 16px;
  --radius-lg: 26px;
  --shadow-sm: 0 6px 20px -12px rgba(35,25,20,.40);
  --shadow:    0 24px 50px -30px rgba(35,25,20,.55);
  --shadow-lg: 0 40px 80px -40px rgba(35,25,20,.6);

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  /* "serif" kept as the variable name for headings, now a clean readable sans */
  --serif: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--red-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1.1em; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.section { padding: clamp(60px, 8vw, 112px) 0; }
.section--sand { background: var(--sand); }
.section--tight { padding-block: clamp(40px,5vw,64px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--sans); font-weight: 700;
  font-size: .76rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--red); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--red); display: inline-block; }
.eyebrow.center-line { justify-content: center; }

.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 62ch; }
.center { text-align: center; }
.measure { max-width: 66ch; margin-inline: auto; }
.section-head { max-width: 720px; margin: 0 auto clamp(2.4rem, 4vw, 3.4rem); }
.section-head.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-weight: 600; font-size: 1rem; line-height: 1;
  padding: .95em 1.6em; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, border-color .2s;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--red); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--red-dark); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--red); color: var(--red-dark); }
.btn--light { background: #fff; color: var(--red-dark); }
.btn--light:hover { background: #fff5f4; }
.btn--outline-light { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.5); }
.btn--outline-light:hover { border-color: #fff; background: rgba(255,255,255,.14); }
.btn--lg { padding: 1.05em 1.9em; font-size: 1.05rem; }

/* ---------- Utilities ---------- */
.skip-link { position: absolute; left: -9999px; z-index: 100; }
.skip-link:focus { left: 16px; top: 16px; background: #fff; color: var(--red-dark); padding: .7em 1.2em; border-radius: 8px; box-shadow: var(--shadow); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-family: var(--serif); font-weight: 600; font-size: 1.28rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand__logo { height: 42px; width: auto; display: block; }

.nav__links { display: flex; align-items: center; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.nav__links > li > a {
  color: var(--ink-soft); font-weight: 500; font-size: .96rem;
  padding: .55rem .8rem; border-radius: 9px; display: inline-block;
}
.nav__links > li > a:hover { color: var(--red-dark); background: var(--red-soft); text-decoration: none; }
.nav__links a.active { color: var(--red-dark); font-weight: 600; }
.nav__cta { margin-left: .5rem; }

/* dropdown */
.has-sub { position: relative; }
.has-sub > a::after { content: "▾"; content: "▾" / ""; font-size: .7em; margin-left: .35em; color: var(--muted); }
.subnav {
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 230px; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow); padding: .5rem;
  list-style: none; margin: 0;
  opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .18s ease .12s, transform .18s ease .12s;
}
.has-sub:hover .subnav, .has-sub:focus-within .subnav { opacity: 1; transform: none; pointer-events: auto; transition-delay: 0s; }
@media (min-width: 941px) { .has-sub::before { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px; } }
.subnav a { display: block; padding: .6rem .8rem; border-radius: 9px; color: var(--ink-soft); font-size: .95rem; font-weight: 500; }
.subnav a:hover { background: var(--red-soft); color: var(--red-dark); text-decoration: none; }
.subnav small { display: block; color: var(--muted); font-weight: 400; font-size: .8rem; }

.nav__toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 46px; height: 44px; cursor: pointer; }
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--ink); margin: 0 auto; position: relative; transition: .2s;
}
.nav__toggle span::before { position: absolute; top: -6px; }
.nav__toggle span::after { position: absolute; top: 6px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; isolation: isolate;
  min-height: min(86vh, 760px);
  display: flex; align-items: center;
  padding: clamp(70px, 10vw, 120px) 0;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; object-fit: cover; width: 100%; height: 100%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(105deg, rgba(60,16,11,.92) 0%, rgba(94,26,19,.78) 42%, rgba(40,12,8,.45) 100%),
    linear-gradient(0deg, rgba(20,8,6,.55), rgba(20,8,6,0) 45%);
}
.hero__inner { max-width: 760px; }
.hero .eyebrow { color: #f6c9a6; }
.hero .eyebrow::before { background: var(--gold); }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero h1 .accent { color: #ffb59f; }
.hero p.lead { color: rgba(255,255,255,.92); font-size: 1.25rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.8rem; }
.hero__chips { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 1.8rem; color: rgba(255,255,255,.85); font-size: .92rem; }
.hero__chips span { display: inline-flex; align-items: center; gap: .45rem; }
.hero__chips svg { width: 17px; height: 17px; color: var(--gold); }

/* ---------- Trust band ---------- */
.trust { background: var(--ink); color: #e8e2da; }
.trust__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; align-items: stretch; }
.trust__item { display: flex; gap: .9rem; align-items: center; padding: 1.4rem 0; }
.trust__item svg { width: 30px; height: 30px; color: var(--gold); flex: none; }
.trust__item b { display: block; font-family: var(--serif); font-size: 1.05rem; color: #fff; }
.trust__item small { color: #aaa39b; font-size: .85rem; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stats .num { font-family: var(--serif); font-size: clamp(2.1rem, 4vw, 3rem); color: var(--red); font-weight: 600; line-height: 1; }
.stats .lbl { color: var(--muted); font-size: .95rem; margin-top: .5rem; }

/* ---------- Grid + cards ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.9rem; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #e0d6c8; }
.icon {
  width: 52px; height: 52px; border-radius: 14px; flex: none;
  background: var(--red-soft); color: var(--red); display: grid; place-items: center; margin-bottom: 1.1rem;
}
.icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: .35em; }
.card p { color: var(--ink-soft); margin-bottom: .6em; }
.card ul { margin: .5rem 0 0; padding-left: 1.1em; color: var(--ink-soft); }
.card ul li { margin-bottom: .3em; }
.card__more { font-weight: 600; font-size: .95rem; display: inline-flex; align-items: center; gap: .35em; }
.card__more svg { width: 15px; height: 15px; }

/* media card (with photo) */
.mcard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
}
.mcard:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #e0d6c8; }
.mcard__img { aspect-ratio: 16/10; overflow: hidden; }
.mcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.mcard:hover .mcard__img img { transform: scale(1.05); }
.mcard__body { padding: 1.6rem 1.7rem 1.8rem; flex: 1; display: flex; flex-direction: column; }
.mcard__body h3 { margin-bottom: .4em; }
.mcard__body p { color: var(--ink-soft); }
.mcard__body .card__more { margin-top: auto; padding-top: .6rem; }

/* checks */
.checks { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: .75rem; }
.checks li { display: flex; gap: .7rem; align-items: flex-start; color: var(--ink-soft); }
.checks li svg { width: 22px; height: 22px; flex: none; color: var(--ok); margin-top: 1px; }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split--media .split__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.split__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.panel { background: var(--sand-2); border-radius: var(--radius-lg); padding: clamp(1.8rem, 4vw, 2.8rem); border: 1px solid var(--line); }
.panel--red { background: linear-gradient(155deg, var(--red), var(--red-deep)); color: #fff; border: none; }
.panel--red h2, .panel--red h3 { color: #fff; }

/* ---------- Quote / testimonial ---------- */
.quote { max-width: 880px; margin-inline: auto; text-align: center; }
.quote__mark { font-family: var(--serif); font-size: 4rem; line-height: .6; color: var(--red); opacity: .35; }
.quote blockquote { font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.35; color: var(--ink); margin: .4em 0 1.1em; }
.quote cite { font-style: normal; color: var(--muted); font-weight: 600; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(155deg, var(--red), var(--red-deep));
  color: #fff; border-radius: var(--radius-lg);
  padding: clamp(2.4rem, 5vw, 3.8rem); text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.92); max-width: 58ch; margin-inline: auto; }
.cta-band .hero__actions { justify-content: center; margin-top: 1.5rem; }

/* ---------- Page header ---------- */
.page-head {
  position: relative; color: #fff; isolation: isolate;
  padding: clamp(64px, 9vw, 120px) 0 clamp(52px, 7vw, 84px);
}
.page-head__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.page-head::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, rgba(60,16,11,.93), rgba(94,26,19,.7) 70%, rgba(40,12,8,.5)); }
.page-head .crumb { color: rgba(255,255,255,.75); font-size: .9rem; margin-bottom: 1rem; }
.page-head .crumb a { color: rgba(255,255,255,.75); }
.page-head .crumb a:hover { color: #fff; }
.page-head h1 { color: #fff; }
.page-head .eyebrow { color: #f6c9a6; }
.page-head .eyebrow::before { background: var(--gold); }
.page-head .lead { color: rgba(255,255,255,.92); }

/* ---------- Locations ---------- */
.loc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.loc {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff;
}
.loc__map { height: 150px; background: linear-gradient(135deg, #efe7db, #e3d6c4); position: relative; }
.loc__map::after { content: ""; position: absolute; inset: 0; opacity:.5;
  background-image: radial-gradient(circle, rgba(192,57,43,.25) 1px, transparent 1px); background-size: 18px 18px; }
.loc__pin { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-60%); width: 34px; height: 34px; color: var(--red); }
.loc__body { padding: 1.4rem 1.5rem; }
.loc__body h3 { margin-bottom: .25em; }
.loc__body p { margin: 0 0 .2em; color: var(--ink-soft); }
.loc__body .country { color: var(--muted); font-size: .9rem; font-style: italic; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.info-block { display: grid; gap: 1.2rem; }
.info-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; background: #fff; }
.info-card h2, .info-card h3 { font-size: 1.08rem; margin-bottom: .3em; display: flex; align-items: center; gap: .5rem; }
.info-card h2 svg, .info-card h3 svg { width: 20px; height: 20px; color: var(--red); }
.info-card p { margin: 0; color: var(--ink-soft); }

.form-note { font-size: .85rem; color: var(--muted); }

/* faq */
.faq { max-width: 820px; margin-inline: auto; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: .3rem 1.3rem; margin-bottom: .8rem; }
.faq summary { cursor: pointer; font-weight: 600; font-family: var(--serif); font-size: 1.12rem; padding: 1rem 0; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--red); font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-soft); margin: 0 0 1rem; }

/* ---------- Acknowledgement ---------- */
.acknowledge { background: var(--ink); color: #d8d2ca; text-align: center; padding: 2.4rem 0; font-size: .96rem; }
.acknowledge .container { max-width: 82ch; }
.acknowledge svg { width: 26px; height: 26px; color: var(--gold); margin-bottom: .6rem; }

/* ---------- Footer ---------- */
.site-footer { background: #161412; color: #c9c3bb; padding: clamp(52px, 6vw, 76px) 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.3fr; gap: 2rem; }
.site-footer h3 { color: #fff; font-family: var(--sans); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer a { color: #c9c3bb; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-brand .brand { color: #fff; margin-bottom: 1rem; }
.footer-brand p { color: #9a948c; font-size: .95rem; max-width: 36ch; }
.footer-brand .brand__logo { height: 46px; background: #fff; padding: 9px 14px; border-radius: 12px; }
.footer-badges { margin-top: 1.4rem; display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; }
.footer-badges img { height: 74px; width: auto; background: #fff; padding: 8px 10px; border-radius: 12px; }

/* ---------- Team ---------- */
.member { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.6rem; text-align: center; transition: transform .18s ease, box-shadow .18s ease, border-color .18s; }
.member:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #e0d6c8; }
.member__img { width: 132px; height: 132px; border-radius: 50%; object-fit: cover; object-position: center top; margin: 0 auto 1.2rem; border: 4px solid var(--red-soft); box-shadow: var(--shadow-sm); }
.member h3 { margin-bottom: .15em; }
.member .role { color: var(--red); font-weight: 600; font-size: .92rem; margin-bottom: .7em; }
.member p { color: var(--ink-soft); font-size: .96rem; margin: 0; }
.footer-bottom { border-top: 1px solid #2c2925; margin-top: 2.8rem; padding-top: 1.6rem; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; justify-content: space-between; align-items: center; color: #8c867e; font-size: .86rem; }

/* ---------- Enterprise logos ---------- */
.ent-logo { height: 56px; width: auto; max-width: 100%; margin-bottom: 1.1rem; display: block; }
.ent-logo--wide { height: 36px; }

/* ---------- Reveal (only hides when JS is active, so no-JS stays visible) ---------- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1 !important; transform: none !important; transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .trust__row { grid-template-columns: 1fr 1fr; }
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .split, .contact-grid, .loc-grid { grid-template-columns: 1fr; }
  .split--media .split__media { order: -1; }
  .stats { grid-template-columns: 1fr 1fr; gap: 2rem 1rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: .15rem;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 1rem 24px 1.5rem; box-shadow: var(--shadow);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .2s;
  }
  .nav__links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__links > li > a { padding: .85rem .6rem; }
  .nav__cta { margin: .5rem 0 0; }
  .nav__cta .btn { width: 100%; justify-content: center; }
  .has-sub > a::after { display: none; }
  .subnav { position: static; opacity: 1; transform: none; pointer-events: auto; box-shadow: none; border: none; padding: 0 0 0 1rem; min-width: 0; }
  .subnav a { padding: .55rem .6rem; }
  .subnav small { display: none; }
}
@media (max-width: 580px) {
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .footer-grid, .trust__row { grid-template-columns: 1fr; }
  form .row { grid-template-columns: 1fr; }
  body { font-size: 16px; }
  .hero { min-height: 0; }
}
