/* ============================================================
   Harbor Ridge Advisory — Global Design System
   ============================================================ */

/* --- Tokens --- */
:root {
  --navy-950: #020b18;
  --navy-900: #050f1e;
  --navy-800: #0d2347;
  --navy-700: #132b5a;
  --navy-600: #1a3a6b;
  --blue-600: #0c5e9e;
  --blue-500: #0e6bb5;
  --blue-400: #3b9fe8;
  --blue-100: #e0f0fc;
  --text:     #0f172a;
  --text-2:   #334155;
  --text-3:   #64748b;
  --text-4:   #94a3b8;
  --border:   #e2e8f0;
  --border-2: #cbd5e1;
  --bg-0:     #ffffff;
  --bg-1:     #f8fafc;
  --bg-2:     #f1f5f9;
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --radius:   6px;
  --radius-lg: 10px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', -apple-system, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-0);
  -webkit-font-smoothing: antialiased;
  padding-top: 72px;
}
a { text-decoration: none; transition: color .2s, opacity .2s; }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* --- Layout --- */
.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
.wrap-sm {
  max-width: 840px;
  margin: 0 auto;
  padding: 0 32px;
}
section {
  padding: 96px 32px;
}
section.dense {
  padding: 72px 32px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--navy-900);
}
.display {
  font-size: clamp(44px, 5.5vw, 78px);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.06;
}
.heading-xl {
  font-size: clamp(36px, 4.5vw, 60px);
  font-weight: 400;
}
.heading-lg {
  font-size: clamp(30px, 3.5vw, 46px);
  font-weight: 400;
}
.heading-md {
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 500;
}
.heading-sm {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}
.eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue-500);
  display: block;
}
.lead {
  font-size: 18px;
  line-height: 1.75;
  color: var(--text-2);
}
.body {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-3);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  letter-spacing: 0.01em;
  transition: all .2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--navy-900);
  color: white;
}
.btn-primary:hover {
  background: var(--navy-800);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(5,15,30,.28);
}
.btn-blue {
  background: var(--blue-500);
  color: white;
}
.btn-blue:hover {
  background: var(--blue-600);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(14,107,181,.32);
}
.btn-outline {
  background: transparent;
  color: var(--navy-900);
  border: 1.5px solid var(--navy-900);
}
.btn-outline:hover {
  background: var(--navy-900);
  color: white;
}
.btn-ghost-light {
  background: rgba(255,255,255,.08);
  color: white;
  border: 1.5px solid rgba(255,255,255,.28);
}
.btn-ghost-light:hover {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.55);
}
.btn-white {
  background: white;
  color: var(--navy-900);
  box-shadow: var(--shadow-sm);
}
.btn-white:hover {
  background: var(--bg-1);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-lg {
  padding: 17px 36px;
  font-size: 15px;
}

/* --- Section header --- */
.section-head {
  margin-bottom: 64px;
}
.section-head.centered {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 64px;
}
.section-head .eyebrow {
  margin-bottom: 14px;
}
.section-head h2 {
  margin-bottom: 16px;
}
.section-head p {
  color: var(--text-3);
  font-size: 17px;
  line-height: 1.75;
}

/* --- Cards --- */
.card {
  background: var(--bg-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.card:hover {
  border-color: var(--blue-400);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-500);
  margin-bottom: 22px;
  flex-shrink: 0;
}

/* --- Grids --- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }

/* --- Divider accent --- */
.rule {
  width: 40px;
  height: 2px;
  background: var(--blue-500);
  border: none;
  margin: 22px 0;
}
.rule.centered {
  margin: 22px auto;
}

/* --- Testimonial --- */
.testimonial {
  background: var(--bg-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.testimonial blockquote {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 19px;
  font-weight: 400;
  font-style: italic;
  line-height: 1.55;
  color: var(--navy-900);
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.testimonial-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-3);
  flex-shrink: 0;
}
.testimonial-meta strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.testimonial-meta span {
  font-size: 13px;
  color: var(--text-3);
}

/* --- Forms --- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}
.input {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--text);
  background: var(--bg-0);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.input:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(14,107,181,.1);
}
textarea.input {
  resize: vertical;
  min-height: 140px;
}
.input::placeholder { color: var(--text-4); }

/* --- Logo placeholder --- */
.logo-placeholder {
  height: 44px;
  background: var(--bg-2);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  min-width: 120px;
}
.logo-placeholder span {
  font-size: 11px;
  font-weight: 600;
  color: var(--border-2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* --- Image placeholder --- */
.img-placeholder {
  background: repeating-linear-gradient(
    -45deg,
    var(--bg-2),
    var(--bg-2) 6px,
    var(--bg-1) 6px,
    var(--bg-1) 12px
  );
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-4);
  font-size: 12px;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.04em;
  text-align: center;
  border: 1px solid var(--border);
}

/* --- Stat block --- */
.stat-num {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 52px;
  font-weight: 500;
  line-height: 1;
  color: var(--navy-900);
}
.stat-label {
  font-size: 13px;
  color: var(--text-3);
  margin-top: 4px;
  font-weight: 400;
}

/* --- Tag / chip --- */
.tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--blue-100);
  color: var(--blue-600);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
}

/* --- CTA banner --- */
.cta-banner {
  background: var(--navy-900);
  padding: 88px 32px;
  text-align: center;
}
.cta-banner h2 {
  color: white;
  margin-bottom: 18px;
}
.cta-banner p {
  color: var(--text-4);
  font-size: 17px;
  max-width: 500px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.cta-banner .btn-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Process step --- */
.step {
  display: flex;
  gap: 24px;
}
.step-num {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 48px;
  font-weight: 300;
  color: var(--border-2);
  line-height: 1;
  width: 60px;
  flex-shrink: 0;
  padding-top: 2px;
}
.step-content h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.step-content p {
  font-size: 15px;
  color: var(--text-3);
  line-height: 1.75;
}

/* --- Fade-in animation --- */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .55s ease, transform .55s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
  section { padding: 80px 28px; }
}
@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  section { padding: 64px 20px; }
  section.dense { padding: 52px 20px; }
  .wrap, .wrap-sm { padding: 0 20px; }
  .section-head { margin-bottom: 48px; }
  .cta-banner { padding: 72px 20px; }
}
@media (max-width: 540px) {
  .grid-4 { grid-template-columns: 1fr; }
  .display { font-size: 38px; }
  .btn-lg { padding: 15px 28px; }
}
