/* ===================================
   DO GOOD MORTGAGE — MAIN STYLESHEET
   Warm Teal / White Theme — No Black
   =================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,400;0,700;1,400;1,700&display=swap');

/* ─── CSS CUSTOM PROPERTIES ─── */
:root {
  /* Core palette — deep teal replaces black */
  --color-dark:        #0d3d42;   /* deep teal-dark (was near-black) */
  --color-dark-2:      #0a3136;   /* slightly darker deep teal */
  --color-teal:        #93d6d7;
  --color-teal-dark:   #6dc4c5;
  --color-teal-mid:    #3aabb0;   /* mid teal for accents */
  --color-teal-light:  #d9f2f2;
  --color-teal-pale:   #f0fafa;
  --color-yellow:      #f5b52c;
  --color-pink:        #d66198;
  --color-red:         #b23745;

  /* White-dominant surface colors */
  --color-white:       #ffffff;
  --color-surface:     #f8fafa;
  --color-surface-2:   #f0f7f7;
  --color-border:      #e0eeee;
  --color-border-soft: #edf5f5;

  /* Text */
  --color-text-primary:   #0d3d42;
  --color-text-secondary: #4a6366;
  --color-text-muted:     #8aa4a6;

  /* Fonts */
  --font-sans:  'Inter', sans-serif;
  --font-serif: 'Playfair Display', serif;

  /* Spacing & shape */
  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --radius-xl:  32px;
  --radius-2xl: 48px;

  /* Shadows */
  --shadow-xs:   0 1px 4px rgba(13,61,66,.06);
  --shadow-sm:   0 2px 12px rgba(13,61,66,.08);
  --shadow-md:   0 8px 28px rgba(13,61,66,.10);
  --shadow-lg:   0 20px 60px rgba(13,61,66,.13);
  --shadow-teal: 0 8px 32px rgba(147,214,215,.30);

  --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-height: 72px;
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  overflow-x: hidden;
  background: var(--color-white);
  color: var(--color-text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ─── PAGE TRANSITION ─── */
.page-transition-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #f0fafa;
  pointer-events: all;
  opacity: 1;
  transition: opacity 0.38s ease;
}
body.page-loaded .page-transition-overlay {
  opacity: 0;
  pointer-events: none;
}
.page-transition-overlay.fading-out {
  opacity: 1 !important;
  pointer-events: all;
}

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4, h5 { line-height: 1.2; font-weight: 700; color: var(--color-text-primary); }
h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); }
h4 { font-size: 1.05rem; }
p  { color: var(--color-text-secondary); font-size: 1rem; line-height: 1.75; }

.serif { font-family: var(--font-serif); }

/* Color utilities */
.text-dark    { color: var(--color-dark); }
.text-teal    { color: var(--color-teal-dark); }
.text-yellow  { color: var(--color-yellow); }
.text-pink    { color: var(--color-pink); }
.text-red     { color: var(--color-red); }
.text-muted   { color: var(--color-text-muted); }
.text-white   { color: var(--color-white) !important; }

/* ─── LAYOUT ─── */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
  box-sizing: border-box;
  width: 100%;
}
/* Prevent any grid/flex child from blowing out the container */
.container > * { min-width: 0; }
.section    { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-xs { padding: 40px 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.text-center { text-align: center; }

/* ─── BADGES / LABELS ─── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.badge-teal   { background: var(--color-teal-light); color: var(--color-dark); border: 1px solid rgba(147,214,215,.4); }
.badge-yellow { background: #fff4da; color: #8a6200; border: 1px solid rgba(245,181,44,.3); }
.badge-pink   { background: #fce9f3; color: #8a2555; border: 1px solid rgba(214,97,152,.25); }
.badge-dark   { background: var(--color-dark); color: var(--color-teal); border: none; }

.section-label {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-teal-mid);
  display: block;
  margin-bottom: 10px;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  transition: var(--transition);
  white-space: nowrap;
  border: 2px solid transparent;
}
/* Primary: Yellow — the main call-to-action color */
.btn-primary {
  background: var(--color-yellow);
  color: var(--color-dark);
  border-color: var(--color-yellow);
}
.btn-primary:hover {
  background: #e8a620;
  border-color: #e8a620;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245,181,44,.35);
}
.btn-teal {
  background: var(--color-teal);
  color: var(--color-dark);
  border-color: var(--color-teal);
}
.btn-teal:hover {
  background: var(--color-teal-dark);
  border-color: var(--color-teal-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-teal);
}
.btn-yellow {
  background: var(--color-yellow);
  color: var(--color-dark);
  border-color: var(--color-yellow);
}
.btn-yellow:hover {
  background: #e8a620;
  border-color: #e8a620;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245,181,44,.35);
}
.btn-outline {
  background: transparent;
  color: var(--color-dark);
  border-color: var(--color-border);
}
.btn-outline:hover {
  border-color: var(--color-teal-dark);
  color: var(--color-teal-mid);
  background: var(--color-teal-pale);
  transform: translateY(-2px);
}
.btn-white {
  background: var(--color-white);
  color: var(--color-dark);
  border-color: var(--color-white);
}
.btn-white:hover {
  background: var(--color-teal-light);
  transform: translateY(-2px);
}
.btn-sm  { padding: 9px 20px; font-size: 0.82rem; }
.btn-lg  { padding: 15px 36px; font-size: 0.96rem; }

/* ─── NAV CTA (smaller pill — yellow) ─── */
.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  background: var(--color-yellow);
  color: var(--color-dark);
  border: 2px solid var(--color-yellow);
  transition: var(--transition);
}
.nav-cta-btn:hover {
  background: #e8a620;
  border-color: #e8a620;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245,181,44,.35);
}

/* ─── CARDS ─── */
.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: var(--transition);
  box-shadow: var(--shadow-xs);
}
.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-teal);
  transform: translateY(-4px);
}

/* ─── SECTION HEADER ─── */
.section-header { margin-bottom: 52px; }
.section-header.center { text-align: center; }
.section-header h2 { margin: 8px 0 16px; }
.section-header p  { max-width: 580px; color: var(--color-text-secondary); }
.section-header.center p { margin: 0 auto; }

/* ─── ICON BOX ─── */
.icon-box {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}
.icon-box-teal   { background: var(--color-teal-light); }
.icon-box-yellow { background: #fff4da; }
.icon-box-pink   { background: #fce9f3; }
.icon-box-dark   { background: var(--color-dark); }

/* ─── NAVBAR ─── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--color-border-soft);
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(255,255,255,0.98);
  box-shadow: var(--shadow-sm);
}
.navbar .container { height: 100%; }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 16px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1rem;
  color: var(--color-text-primary);
  flex-shrink: 0;
  text-decoration: none;
}
.nav-logo .logo-img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: cover;
  flex-shrink: 0;
}
.nav-logo .logo-text { color: var(--color-dark); }
.nav-logo .logo-text span { color: var(--color-teal-mid); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}


.nav-links a {
  padding: 6px 13px;
  border-radius: var(--radius-sm);
  font-size: 0.87rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: var(--transition);
  white-space: nowrap;
  position: relative;
}
.nav-links a:hover {
  color: #7a5200;
  background: var(--color-teal-pale);
}
.nav-links a.active {
  color: #7a5200;
  font-weight: 700;
  background: var(--color-teal-light);
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--color-teal);
  border-radius: 2px;
}
/* Mobile menu active */
.mobile-menu a.active {
  color: var(--color-teal-dark);
  font-weight: 700;
  background: var(--color-teal-pale);
  border-left: 3px solid var(--color-teal);
  padding-left: 13px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-dark);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  z-index: 999;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(18px);
  padding: 20px 24px 28px;
  border-bottom: 1px solid var(--color-border);
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-md);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: var(--transition);
  border-bottom: 1px solid var(--color-border-soft);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--color-teal-mid); background: var(--color-teal-pale); }
.mobile-menu .nav-cta-btn { margin-top: 12px; width: 100%; justify-content: center; }

/* ─── PAGE HERO (inner pages) ─── */
.page-hero {
  padding: calc(var(--nav-height) + 64px) 0 64px;
  background:
    linear-gradient(160deg, rgba(147,214,215,0.88) 0%, rgba(255,255,255,0.93) 60%),
    url('../assets/hero-background.jpg') center/cover no-repeat;
  border-bottom: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 60px;
  background: var(--color-white);
  clip-path: ellipse(55% 100% at 50% 100%);
}

/* ─── CTA BAND ─── */
.cta-band {
  background: linear-gradient(135deg, var(--color-dark) 0%, #0a5056 100%);
  border-radius: var(--radius-xl);
  padding: 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 0%, rgba(147,214,215,.18) 0%, transparent 70%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: var(--color-white); margin: 14px 0; }
.cta-band p  { color: rgba(255,255,255,.65); max-width: 520px; margin: 0 auto 32px; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ─── FOOTER ─── */
footer {
  background: linear-gradient(160deg, var(--color-dark) 0%, #0a4a50 100%);
  color: var(--color-white);
  padding: 72px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--color-white);
  margin-bottom: 16px;
}
.footer-brand-logo .logo-mark {
  width: 38px;
  height: 38px;
  background: var(--color-teal);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.footer-brand p { font-size: 0.875rem; color: rgba(255,255,255,.5); max-width: 280px; line-height: 1.7; margin-top: 8px; }
.footer-col h5 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: 0.875rem; color: rgba(255,255,255,.5); transition: var(--transition); }
.footer-col ul a:hover { color: var(--color-teal-light); }
.footer-contact-list { display: flex; flex-direction: column; gap: 12px; }
.footer-contact-list .fc-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: rgba(255,255,255,.5);
  line-height: 1.6;
}
.footer-contact-list .fc-item span:first-child { flex-shrink: 0; margin-top: 1px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,.35); margin: 0; }
.footer-social { display: flex; gap: 10px; }
.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.5);
  font-size: 0.8rem;
  font-weight: 700;
  transition: var(--transition);
  text-decoration: none;
}
.social-btn:hover {
  background: var(--color-teal);
  color: var(--color-dark);
  border-color: var(--color-teal);
}

/* ─── STARS ─── */
.stars { color: #f5b52c; font-size: 0.9rem; letter-spacing: 2px; }

/* ─── FORM ─── */
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-primary);
}
.form-group input,
.form-group textarea,
.form-group select {
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: 0.92rem;
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  transition: var(--transition);
  outline: none;
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--color-text-muted); }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--color-teal-dark);
  box-shadow: 0 0 0 3px rgba(147,214,215,.2);
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
@keyframes pulse-ring {
  0%   { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.animate-fade-up { opacity: 0; animation: fadeUp 0.65s ease forwards; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ─── GRADIENT TEXT ─── */
.gradient-text {
  background: linear-gradient(135deg, #0d9b9d 0%, var(--color-teal-dark) 50%, #93d6d7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── DIVIDER ─── */
.divider { height: 1px; background: var(--color-border); }

/* ─── OPEN BADGE (pulsing dot) ─── */
.open-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: #e8faf0;
  border: 1px solid #a8ddb5;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #1a7c40;
}
.open-badge .pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #2db560;
  position: relative;
}
.open-badge .pulse-dot::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: #2db560;
  animation: pulse-ring 1.4s ease-out infinite;
}

/* ─── LINK ARROW ─── */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-teal-mid);
  transition: var(--transition);
}
.link-arrow::after { content: '→'; }
.link-arrow:hover  { gap: 10px; color: var(--color-teal-dark); }

/* ─── AWARD BADGE ─── */
.award-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #fffbeb;
  border: 1px solid #f5e08a;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  color: #7a5d00;
}

/* ─── AWARD IMAGE ─── */
.award-img {
  width: 160px;
  height: 160px;
  object-fit: contain;
  border-radius: 50%;
  flex-shrink: 0;
  filter: drop-shadow(0 6px 20px rgba(0,0,0,.18));
  transition: transform 0.3s ease;
}
.award-img:hover {
  transform: scale(1.06) rotate(-2deg);
}
.award-img-sm {
  width: 80px;
  height: 80px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.15));
}


/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-height: 64px; }

  /* Sections */
  .section     { padding: 64px 0; }
  .section-sm  { padding: 48px 0; }
  .section-xs  { padding: 32px 0; }
  .container   { padding: 0 20px; }

  /* Typography — center all section headers on mobile */
  h1 { font-size: clamp(2rem, 7vw, 3rem); }
  h2 { font-size: clamp(1.5rem, 5vw, 2.2rem); }
  .section-header { text-align: center; }
  .section-label  { display: block; text-align: center; }

  /* Grids */
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }

  /* Nav */
  .nav-links, .nav-right { display: none; }
  .nav-hamburger { display: flex; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand { text-align: center; align-items: center; display: flex; flex-direction: column; }
  .footer-brand > div[style*="display:flex"] { justify-content: center; }
  .footer-bottom { flex-direction: column; align-items: center; gap: 8px; text-align: center; }
  .footer-col { text-align: center; }
  .footer-col ul { padding-left: 0; list-style: none; }
  .contact-info { align-items: center !important; }

  /* CTA Band */
  .cta-band { padding: 48px 24px; text-align: center; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .cta-buttons .btn { width: 100%; max-width: 320px; justify-content: center; }

  /* Page Hero — always center on mobile */
  .page-hero { padding: calc(var(--nav-height) + 40px) 0 48px; }
  .page-hero .container > div { text-align: center !important; }
  .page-hero h1 { font-size: clamp(1.8rem, 6vw, 2.8rem); }
  .page-hero p  { margin-left: auto; margin-right: auto; }

  /* Rating banner — center the score column */
  .rating-banner { grid-template-columns: 1fr; gap: 28px; padding: 32px 24px; }
  .rating-score  { text-align: center; }
  .rating-score .platform-row { align-items: center; justify-content: center; }
  .platform-badge { justify-content: center; }
  .rating-bars .rating-bar-row { justify-content: center; }

  /* Live reviews header */
  .live-reviews-header { flex-direction: column; align-items: center; text-align: center; gap: 16px; }
  .live-reviews-header > div:first-child { text-align: center; }

  /* Report rows */
  .report-row { grid-template-columns: auto 1fr; padding: 16px 20px; }
  .report-row .org-category, .report-row .org-amount { display: none; }
  .report-header { padding: 24px 20px; flex-direction: column; gap: 16px; align-items: flex-start; }
  .total-bar { padding: 20px; flex-direction: column; text-align: center; gap: 8px; }

  /* Contact layout */
  .contact-layout { grid-template-columns: 1fr; gap: 32px; }
  .contact-form-card { padding: 28px 20px; }
  .form-full-grid { grid-template-columns: 1fr; }
  .quick-ctas { grid-template-columns: 1fr; gap: 12px; }
  .quick-cta  { text-align: center; }
  .quick-cta .qc-icon { margin: 0 auto 12px; }

  /* People page profile */
  .spoc-profile { flex-direction: column; align-items: center; text-align: center; }
  .sp-details { align-items: center; }
  .clint-mini { flex-direction: column; align-items: center; text-align: center; }

  /* Info cards on contact */
  .info-card { flex-direction: column; align-items: flex-start; }

  /* Impact grid */
  .impact-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .impact-card { text-align: center; }

  /* Values */
  .values-three { grid-template-columns: 1fr; }

  /* Per loan banner */
  .per-loan-banner { padding: 40px 24px; text-align: center; }

  /* Calendly */
  .calendly-inline-widget { height: 600px !important; }
  .calendly-header { padding: 24px 20px; text-align: center; }

  /* Do Good Recklessly section */
  #do-good-recklessly .reveal[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  #do-good-recklessly div:first-child { text-align: center; }
  #do-good-recklessly .badge { display: inline-block; }
}


  /* ── Hero section mobile centering ── */
  .hero-inner { text-align: center; }
  .hero-eyebrow { justify-content: center; }
  .hero-sub { margin-left: auto; margin-right: auto; text-align: center; }
  .hero-proof { justify-content: center; }
  .award-strip { text-align: center; align-items: center; }
  .award-strip .award-badges { justify-content: center; }

  /* ── Preview cards ── */
  .preview-cards { text-align: center; }
  .pc-label { text-align: center; }

  /* ── Process row ── */
  .process-step { text-align: center; }
  .process-step .step-icon { margin: 0 auto 16px; }

  /* ── Mission / About split ── */
  .mission-split { grid-template-columns: 1fr; }
  .mission-split > div { text-align: center; }

  /* ── Info cards ── */
  .info-card { justify-content: flex-start; }
  .info-card .ic-icon { flex-shrink: 0; }

  /* ── Contact info sidebar ── */
  .contact-info-sidebar { grid-template-columns: 1fr; }
  .clint-mini { flex-direction: column; align-items: center; text-align: center; }

  /* ── People page sidebar ── */
  .profile-layout { grid-template-columns: 1fr; }
  .profile-sidebar { position: static; }

  /* ── Values grid ── */
  .values-grid { grid-template-columns: 1fr; }
  .val-card { text-align: center; }
  .val-card .vc-icon { margin: 0 auto 12px; }

  /* ── Stats row ── */
  .stats-row { grid-template-columns: 1fr 1fr; }

  /* ── Services ── */
  .services-hero-grid { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; }

  /* ── Donations ── */
  .org-list { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .grid-4 { grid-template-columns: 1fr; }
  .cta-band { border-radius: var(--radius-lg); padding: 36px 20px; }
  .section { padding: 48px 0; }
  .impact-grid { grid-template-columns: 1fr 1fr; }
  .rating-banner { padding: 24px 16px; }
  .report-row { padding: 14px 16px; gap: 12px; }
  .report-header { padding: 20px 16px; }
  .report-year-select { flex-wrap: wrap; justify-content: center; }
  .total-bar { padding: 16px; }
  .contact-form-card { padding: 24px 16px; }
  .quick-ctas { grid-template-columns: 1fr; }
  .quick-cta { padding: 24px 16px; }
  .platform-row { flex-direction: column; align-items: stretch; }
  .platform-badge { justify-content: space-between; }
  .calendly-inline-widget { height: 550px !important; min-width: 100% !important; }
  .per-loan-banner { padding: 32px 16px; }
  .per-loan-banner h2 { font-size: 1.5rem; }
  /* Award strip */
  .award-strip { flex-direction: column; align-items: center; text-align: center; padding: 36px 20px; }
  .award-img { width: 120px; height: 120px; }
  .award-img-sm { width: 64px; height: 64px; }
  /* Hero proof stats */
  .hero-proof { justify-content: center; }
  /* Buttons */
  .hero-btns { flex-direction: column; align-items: center; }
  .hero-btns .btn { width: 100%; max-width: 300px; justify-content: center; }
  /* Map placeholder */
  .map-placeholder { text-align: center; }
  /* Footer contact items center */
  .contact-info span, .contact-info a { justify-content: center !important; }
}




