/* ============================================
   DREAM Advisory Firm — Custom Theme
   Navy #0B1C3D + Sky Blue #4F9FD8
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #0B1C3D;
  --navy-light: #12264F;
  --sky: #4F9FD8;
  --sky-light: #7ABDE8;
  --sky-pale: #E8F5FC;
  --white: #FFFFFF;
  --off-white: #F4F7FB;
  --text-dark: #0B1C3D;
  --text-mid: #3A5278;
  --text-light: #6B82A0;
  --border: #C8D8EA;
  --radius: 8px;
  --shadow: 0 4px 24px rgba(11,28,61,0.10);
  --shadow-lg: 0 8px 48px rgba(11,28,61,0.16);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', 'Helvetica Neue', Arial, sans-serif;
  background: var(--off-white);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Navigation ─────────────────────────── */
.nav {
  background: var(--navy);
  color: var(--white);
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid var(--sky);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-wordmark {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--white);
}
.nav-logo-img { width: auto; height: 50px; }
.nav-tagline {
  font-size: 0.72rem;
  color: var(--sky-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--sky-light); }
.nav-cta {
  background: var(--sky) !important;
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: var(--radius);
  font-weight: 600 !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--sky-light) !important; }

/* Hamburger button */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 6px;
  cursor: pointer;
  padding: 8px;
  transition: border-color 0.2s, background 0.2s;
}
.nav-hamburger:hover { border-color: var(--sky); background: rgba(79,159,216,0.15); }
.hamburger-line {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.is-open .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.is-open .hamburger-line:nth-child(2) { opacity: 0; }
.nav-hamburger.is-open .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile dropdown menu */
.nav-mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--navy-light);
  border-top: 1px solid rgba(79,159,216,0.2);
  padding: 12px 0;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease;
}
.nav-mobile-menu.is-open { max-height: 300px; }
.nav-mobile-menu a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  padding: 12px 2rem;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}
.nav-mobile-menu a:hover { color: var(--sky-light); background: rgba(79,159,216,0.08); }
.nav-mobile-cta {
  color: var(--sky-light) !important;
  font-weight: 600 !important;
}

/* ── Hero ──────────────────────────────── */
.hero {
  background: var(--navy);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 80% 20%, rgba(79,159,216,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(79,159,216,0.08) 0%, transparent 50%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 2rem 100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-content { max-width: 520px; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(79,159,216,0.15);
  border: 1px solid rgba(79,159,216,0.35);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--sky-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-tagline {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--white);
}
.hero-tagline em {
  font-style: normal;
  color: var(--sky-light);
}
.hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.68);
  line-height: 1.65;
  margin: 20px 0 28px;
  max-width: 440px;
}
.hero-motto {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  border-left: 2px solid var(--sky);
  padding-left: 14px;
  margin-top: 20px;
  font-style: italic;
  max-width: 420px;
  line-height: 1.5;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary {
  background: var(--sky);
  color: var(--white);
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--sky-light); transform: translateY(-1px); }
.btn-secondary {
  background: transparent;
  color: var(--white);
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.3);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: border-color 0.2s, background 0.2s;
}
.btn-secondary:hover { border-color: var(--sky-light); background: rgba(79,159,216,0.08); }
.hero-image-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11,28,61,0.2) 0%, transparent 60%);
  pointer-events: none;
}
.hero-image-wrap img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  display: block;
}

/* ── Services ───────────────────────────── */
.services {
  background: var(--white);
  padding: 96px 2rem;
}
.section-container { max-width: 1100px; margin: 0 auto; }
.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--sky);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 14px;
}
.section-sub {
  font-size: 0.95rem;
  color: var(--text-mid);
  max-width: 560px;
  line-height: 1.65;
  margin-bottom: 52px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px 28px;
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--sky);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.service-icon {
  width: 48px;
  height: 48px;
  background: var(--navy);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.service-icon svg { width: 24px; height: 24px; stroke: var(--sky-light); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service-number {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--sky);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.service-card h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.3;
}
.service-card p {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.65;
}
.service-tagline {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--sky);
  font-weight: 600;
  font-style: italic;
}

/* ── Leadership ─────────────────────────── */
.leadership {
  background: var(--navy);
  color: var(--white);
  padding: 96px 2rem;
}
.leadership .section-eyebrow { color: var(--sky-light); }
.leadership .section-title { color: var(--white); }
.leadership .section-sub { color: rgba(255,255,255,0.6); }
.leaders-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.leader-card {
  background: var(--navy-light);
  border: 1px solid rgba(79,159,216,0.2);
  border-radius: 12px;
  padding: 36px;
  position: relative;
}
.leader-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--sky), transparent);
}
.leader-avatar {
  width: 68px;
  height: 68px;
  background: linear-gradient(135deg, var(--sky) 0%, #2A6FA8 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.leader-name {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}
.leader-role {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--sky-light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.leader-bio {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
}
.leader-credentials {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(79,159,216,0.15);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.leader-cred {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.48);
  display: flex;
  align-items: center;
  gap: 6px;
}
.leader-cred::before { content: '—'; color: var(--sky); }

/* ── Why DREAM ─────────────────────────── */
.why-dream {
  background: var(--sky-pale);
  padding: 96px 2rem;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.feature-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: var(--navy);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-icon svg { width: 20px; height: 20px; stroke: var(--sky-light); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature-content h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.feature-content p {
  font-size: 0.85rem;
  color: var(--text-mid);
  line-height: 1.6;
}

/* ── Contact ─────────────────────────────── */
.contact {
  background: var(--white);
  padding: 96px 2rem;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-info h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}
.contact-info > p {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.65;
  margin-bottom: 28px;
}
.contact-links { display: flex; flex-direction: column; gap: 12px; }
.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-dark);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.contact-link:hover { color: var(--sky); }
.contact-link-icon {
  width: 36px;
  height: 36px;
  background: var(--navy);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-link-icon svg { width: 18px; height: 18px; stroke: var(--sky-light); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-form-wrap { background: var(--off-white); border: 1px solid var(--border); border-radius: 12px; padding: 36px; }
.contact-form-wrap h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 24px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: inherit;
  background: var(--white);
  color: var(--text-dark);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(79,159,216,0.15);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-submit {
  width: 100%;
  padding: 14px;
  background: var(--sky);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.form-submit:hover { background: var(--sky-light); transform: translateY(-1px); }
.form-success {
  display: none;
  background: rgba(79,159,216,0.12);
  border: 1px solid var(--sky);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  color: var(--navy);
  font-weight: 600;
}

/* ── Footer ─────────────────────────────── */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.5);
  padding: 40px 2rem;
  text-align: center;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-logo {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-logo img { width: auto; height: 50px; }
.footer p { font-size: 0.78rem; line-height: 1.5; }
.footer a { color: var(--sky-light); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* ── Responsive ─────────────────────────── */

/* Tablet: 768px–1023px */
@media (max-width: 1023px) {
  .nav-hamburger { display: flex; }
  .nav-tagline { display: none; }
  .nav-links { display: none; }
  .nav-mobile-menu { display: flex; }
  .nav-wordmark { font-size: 1.05rem; }
}

/* Mobile: 320px–767px */
@media (max-width: 767px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; padding: 48px 1.5rem 64px; }
  .hero-image-wrap { order: -1; }
  .hero-image-wrap img { height: 240px; }
  .hero-content { max-width: 100%; }
  .hero-tagline { font-size: 1.95rem; }
  .hero-eyebrow { font-size: 0.7rem; padding: 5px 12px; }
  .hero-sub { font-size: 0.95rem; }
  .btn-primary, .btn-secondary { padding: 13px 22px; font-size: 0.9rem; width: 100%; justify-content: center; }
  .hero-actions { flex-direction: column; gap: 10px; }
  .hero-motto { font-size: 0.78rem; }

  .section-title { font-size: 1.7rem; }
  .section-sub { font-size: 0.9rem; }
  .section-eyebrow { font-size: 0.7rem; }

  .services, .leadership, .why-dream, .contact { padding: 64px 1.5rem; }
  .service-card { padding: 28px 22px; }
  .service-card h3 { font-size: 1.05rem; }
  .service-card p { font-size: 0.87rem; }

  .leader-card { padding: 28px 24px; }
  .leader-name { font-size: 1.2rem; }
  .leader-bio { font-size: 0.87rem; }

  .feature-card { padding: 22px 18px; }
  .feature-content h3 { font-size: 0.95rem; }
  .feature-content p { font-size: 0.85rem; }

  .contact-grid { gap: 40px; }
  .contact-form-wrap { padding: 28px 22px; }
  .contact-info h3 { font-size: 1.2rem; }
  .form-group input,
  .form-group textarea,
  .form-group select { font-size: 1rem; min-height: 44px; }
  .form-submit { font-size: 0.95rem; padding: 14px; }

  .footer { padding: 32px 1.5rem; }
  .footer-logo { font-size: 1rem; }
}

/* Very small screens: 320px–374px */
@media (max-width: 374px) {
  .hero-tagline { font-size: 1.65rem; }
  .section-title { font-size: 1.5rem; }
  .services, .leadership, .why-dream, .contact { padding: 48px 1rem; }
}

/* Ensure body text never smaller than 16px on mobile */
@media (max-width: 767px) {
  body { font-size: 16px; }
  p, .section-sub, .hero-sub, .leader-bio, .service-card p, .feature-content p { font-size: max(0.875rem, 16px); }
}