/* ==========================================================================
   Restored Roots Remediation — shared styles
   Palette matched to the existing brand (navy / cream / sky accent)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Urbanist:ital,wght@0,400;0,600;0,700;0,800;1,400;1,600;1,700;1,800&display=swap');

:root {
  --navy: #265682;
  --navy-deep: #17344f;
  --cream: #f5f5db;
  --sky: #7cc4d6;
  --sky-pale: #eaf6fa;
  --ink: #2b3a45;
  --body: #70705c;
  --white: #ffffff;
  --line: #efefc7;
  --radius-lg: 28px;
  --radius-md: 16px;
  --radius-pill: 999px;
  --max-width: 1280px;
  --focus-ring: 3px solid #ffb703;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Poppins', system-ui, sans-serif;
  color: var(--body);
  background: var(--white);
  line-height: 1.55;
}

h1, h2, h3, h4 {
  font-family: 'Urbanist', sans-serif;
  color: var(--navy);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; max-width: 62ch; font-weight: 300; }

a { color: inherit; }

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

:focus-visible { outline: var(--focus-ring); outline-offset: 2px; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.brand-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.1;
  font-size: 0.95rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--navy);
  border-bottom-color: var(--sky);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  border-radius: 2px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: #3D5749; box-shadow: 0 8px 20px rgba(30, 74, 114, 0.28); }

.btn-secondary { background: var(--white); color: var(--navy); border: 1px solid var(--line); }
.btn-secondary:hover { border-color: var(--navy); }

.btn-on-navy { background: var(--white); color: var(--navy); padding: 16px 40px; }
.btn-on-navy:hover { background: var(--sky); color: var(--white); }
.btn-ghost-on-navy {
  background: rgba(255,255,255,0.10);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 16px 40px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.hero .btn-on-navy:hover { transform: scale(1.05); }
.btn-ghost-on-navy:hover { background: rgba(255,255,255,0.20); }

.btn-sm { padding: 10px 22px; font-size: 0.9rem; }
.btn-lg { padding: 20px 48px; font-size: 1.125rem; }

/* ---------- Sections & layout ---------- */

section { padding: 88px 0; }
section.tight { padding: 56px 0; }

.section-cream { background: var(--cream); }
.section-navy { background: var(--navy); color: rgba(255,255,255,0.92); }
.section-navy h1, .section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy p { color: rgba(255,255,255,0.82); }

.eyebrow {
  color: var(--sky);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
  display: block;
}

.hero .eyebrow {
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 0.3em;
  font-size: 0.875rem;
}

.center { text-align: center; }
.center p { margin-left: auto; margin-right: auto; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px;
  border: 1px solid var(--line);
}

.icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--sky-pale);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.icon-badge svg { width: 22px; height: 22px; }

.photo-placeholder {
  background: linear-gradient(135deg, var(--sky-pale), var(--cream));
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-size: 0.85rem;
  text-align: center;
  padding: 24px;
}

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

.hero {
  background: var(--navy);
  color: var(--white);
  position: relative;
  overflow: hidden;
  height: 100vh;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85);
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.4), transparent);
  z-index: 1;
}

.hero-content { position: relative; z-index: 2; width: 100%; }
.hero-content-inner { max-width: 42rem; }

.hero .eyebrow { margin-bottom: 16px; }

.hero h1 { color: var(--white); font-size: 3.75rem; line-height: 1.1; font-weight: 400; margin-bottom: 32px; }
.hero p { color: #f3f4f6; font-size: 1.125rem; font-weight: 300; line-height: 1.625; max-width: 32rem; margin-bottom: 40px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Process steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.step-num {
  font-family: 'Poppins', sans-serif;
  color: var(--navy);
  font-size: 1.15rem;
  margin-bottom: 6px;
}

/* ---------- Team ---------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.team-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px;
  text-align: center;
}
.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 20px;
  background: var(--sky-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  overflow: hidden;
}
.team-role { color: var(--sky); font-weight: 600; font-size: 0.85rem; margin-bottom: 18px; }

/* ---------- FAQ (native details/summary accordion) ---------- */

.faq-category { margin-bottom: 40px; }
.faq-category h3 { margin-bottom: 4px; }

.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: 'Poppins', sans-serif;
  font-size: 1.3rem;
  color: var(--navy);
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-answer {
  padding: 0 0 20px;
  color: var(--body);
}
.faq-answer .placeholder-note {
  display: inline-block;
  background: #fff4e0;
  border: 1px dashed #e8b95b;
  color: #8a5a00;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.88rem;
}

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

.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.85);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
}
.site-footer h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 16px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { text-decoration: none; color: rgba(255,255,255,0.75); }
.site-footer a:hover { color: var(--white); }
.footer-brand-name {
  font-family: 'Poppins', sans-serif;
  color: var(--white);
  font-weight: 600;
  margin-bottom: 14px;
}
.social-row { display: flex; gap: 14px; margin-top: 20px; }
.social-row a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
}
.social-row a:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.5); }
.newsletter-form { display: flex; gap: 8px; margin-top: 12px; }
.newsletter-form input {
  flex: 1;
  padding: 12px 14px;
  border-radius: var(--radius-pill);
  border: none;
  font-family: 'Poppins', sans-serif;
}
.newsletter-form button {
  background: var(--sky);
  color: var(--navy-deep);
  border: none;
  border-radius: var(--radius-pill);
  padding: 0 20px;
  font-weight: 600;
  cursor: pointer;
}
.cert-badges { display: flex; gap: 12px; margin-top: 22px; }
.cert-badge {
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.75);
}

/* ---------- Page header (interior pages) ---------- */

.page-header { padding: 64px 0 40px; }
.page-header p { margin-left: auto; margin-right: auto; }

.quote-block { text-align: center; }
.quote-block .quote-text {
  font-family: 'Urbanist', sans-serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--navy);
  max-width: 44ch;
  margin: 0 auto 20px;
  line-height: 1.4;
}
.quote-block .attribution {
  color: var(--sky);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  margin: 0 auto;
}

.icon-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--sky);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  margin-bottom: 20px;
}
.icon-label svg { width: 16px; height: 16px; }

.guarantee-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 24px;
}
.guarantee-box h4 { font-size: 1rem; margin-bottom: 8px; }

.warranty-callout {
  background: var(--cream);
  border-left: 4px solid var(--sky);
  border-radius: 16px;
  padding: 20px 24px;
  font-family: 'Urbanist', sans-serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--navy);
}

.checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  margin: 24px 0;
  list-style: none;
  padding: 0;
}
.checklist.single-col { grid-template-columns: 1fr; }
.checklist li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.92rem; color: var(--body); }
.checklist li svg { width: 16px; height: 16px; color: var(--sky); flex-shrink: 0; margin-top: 3px; }

.process-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 48px;
  padding: 64px 40px;
  box-shadow: 0 20px 50px rgba(30,74,114,0.08);
}

.cta-navy-panel {
  background: var(--navy);
  color: var(--white);
  border-radius: 48px;
  padding: 64px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-navy-panel h2 { color: var(--white); font-style: italic; }
.cta-navy-panel p { color: rgba(255,255,255,0.75); max-width: 44ch; margin-left: auto; margin-right: auto; }

/* ---------- Contact page specifics ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  align-items: start;
}
.contact-fact {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
}
.contact-fact .icon-badge { margin-bottom: 0; flex-shrink: 0; }
.calendly-frame-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 700px;
}
.calendly-frame-wrap iframe { width: 100%; height: 700px; border: none; display: block; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .grid-3, .team-grid, .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-2, .contact-grid { grid-template-columns: 1fr; }
}

@media (min-width: 768px) {
  .hero h1 { font-size: 6rem; }
  .hero p { font-size: 1.25rem; }
}

@media (max-width: 640px) {
  .grid-3, .team-grid, .steps, .footer-grid { grid-template-columns: 1fr; }
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  section { padding: 56px 0; }
  .wrap { padding: 0 20px; }
}
