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

:root {
  --navy: #0f2a4a;
  --navy-mid: #1a3d6b;
  --green: #1e9958;
  --green-light: #25bb6e;
  --cream: #f4f7f5;
  --muted: #5a6e7f;
  --divider: #d4dfe8;
  --white: #ffffff;
  --ink: #0d1f2e;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--cream); color: var(--navy); overflow-x: hidden; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 5%;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--divider);
}
.logo-wrap { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.logo-text { font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 900; letter-spacing: -0.02em; color: var(--navy); line-height: 1; }
.logo-text span { color: var(--green); }
nav ul { list-style: none; display: flex; gap: 2rem; align-items: center; }
nav ul a { text-decoration: none; color: var(--muted); font-size: 0.82rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; transition: color 0.2s; }
nav ul a:hover, nav ul a.active { color: var(--navy); }
.nav-cta { background: var(--navy) !important; color: var(--white) !important; padding: 0.55rem 1.3rem !important; border-radius: 2px; }
.nav-cta:hover { background: var(--green) !important; }
.nav-cta-green { background: var(--green) !important; color: var(--white) !important; padding: 0.55rem 1.3rem !important; border-radius: 2px; }
.nav-cta-green:hover { background: var(--green-light) !important; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: all 0.3s; }

/* ── NAV DROPDOWN ── */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0;
  background: var(--white); border: 1px solid var(--divider);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  min-width: 220px; z-index: 200; padding: 0.5rem 0;
  list-style: none; flex-direction: column; gap: 0;
}
.nav-dropdown-menu li a {
  display: block; padding: 0.6rem 1.2rem;
  font-size: 0.82rem; color: var(--navy) !important;
  text-transform: none !important; letter-spacing: 0 !important;
  white-space: nowrap;
}
.nav-dropdown-menu li a:hover { background: var(--cream); color: var(--green) !important; }
.nav-dropdown:hover .nav-dropdown-menu { display: flex; }
.nav-dropdown-toggle { cursor: pointer; }


.page-header {
  background: var(--navy); color: var(--white);
  padding: 7rem 5% 4rem; margin-top: 0;
  position: relative; overflow: hidden;
}
.page-header::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(-55deg, transparent, transparent 60px, rgba(255,255,255,0.012) 60px, rgba(255,255,255,0.012) 61px);
  pointer-events: none;
}
.page-header-inner { max-width: 900px; margin: 0 auto; position: relative; z-index: 1; }
.page-eyebrow { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green-light); display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.page-eyebrow::before { content: ''; width: 2rem; height: 1px; background: var(--green-light); display: block; }
.page-header h1 { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; line-height: 1.15; }
.page-header h1 em { font-style: italic; color: var(--green-light); }
.page-header p { color: rgba(255,255,255,0.6); font-size: 1rem; margin-top: 1rem; max-width: 560px; line-height: 1.7; font-weight: 300; }

/* ── SECTION UTILITIES ── */
.section-tag { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green); display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.section-tag::before { content: ''; width: 2rem; height: 1px; background: var(--green); display: block; }
.section-h2 { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 900; line-height: 1.2; margin-bottom: 1rem; }
.section-h2 em { font-style: italic; color: var(--green); }
.section-sub { color: var(--muted); font-size: 0.95rem; line-height: 1.75; font-weight: 300; }

/* ── BUTTONS ── */
.btn-primary { background: var(--green); color: var(--white); border: none; padding: 0.85rem 2rem; font-family: 'DM Sans', sans-serif; font-size: 0.9rem; font-weight: 500; letter-spacing: 0.04em; cursor: pointer; text-decoration: none; display: inline-block; transition: background 0.2s, transform 0.15s; border-radius: 2px; }
.btn-primary:hover { background: var(--green-light); transform: translateY(-1px); }
.btn-navy { background: var(--navy); color: var(--white); border: none; padding: 0.85rem 2rem; font-family: 'DM Sans', sans-serif; font-size: 0.9rem; font-weight: 500; cursor: pointer; text-decoration: none; display: inline-block; transition: background 0.2s; border-radius: 2px; }
.btn-navy:hover { background: var(--navy-mid); }
.btn-ghost { color: var(--navy); font-size: 0.85rem; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--navy); padding-bottom: 1px; transition: color 0.2s; }
.btn-ghost:hover { color: var(--green); border-color: var(--green); }

/* ── FORMS ── */
.form-section { padding: 5rem 5%; }
.form-wrap { max-width: 680px; margin: 0 auto; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 0.78rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.8rem 1rem; border: 1px solid var(--divider);
  background: var(--white); font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem; color: var(--navy); outline: none;
  transition: border-color 0.2s; border-radius: 2px;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--green); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-submit { margin-top: 1.5rem; }
.form-note { font-size: 0.75rem; color: var(--muted); margin-top: 0.8rem; }
.success-msg { display: none; background: #f0faf5; border: 1px solid #b8e8ce; padding: 1rem 1.2rem; border-radius: 2px; color: var(--green); font-size: 0.9rem; margin-top: 1rem; }

/* ── CARDS ── */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card { background: var(--white); border: 1px solid var(--divider); padding: 1.8rem; transition: box-shadow 0.3s, transform 0.3s; }
.card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.07); transform: translateY(-2px); }
.card-icon { font-size: 1.6rem; margin-bottom: 1rem; }
.card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }
.card p { font-size: 0.85rem; color: var(--muted); line-height: 1.65; }

/* ── FOOTER ── */
footer { background: #080e16; color: rgba(255,255,255,0.4); padding: 3rem 5% 2rem; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 2.5rem; }
.footer-brand .logo-text { font-size: 1.2rem; color: rgba(255,255,255,0.85); }
.footer-brand .logo-text span { color: var(--green-light); }
.footer-brand p { font-size: 0.8rem; color: rgba(255,255,255,0.35); line-height: 1.7; margin-top: 0.8rem; max-width: 260px; }
.footer-col h4 { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul a { color: rgba(255,255,255,0.35); text-decoration: none; font-size: 0.82rem; transition: color 0.2s; }
.footer-col ul a:hover { color: var(--green-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.07); padding-top: 1.5rem; display: flex; justify-content: space-between; font-size: 0.75rem; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  nav ul { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--divider); padding: 1rem 5%; gap: 1rem; }
  nav ul.open { display: flex; }
  .hamburger { display: flex; }
  .card-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; }
  .agent-types-grid { grid-template-columns: 1fr !important; }
}

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp 0.7s ease both; }
.fade-up-2 { animation: fadeUp 0.7s ease 0.15s both; }
.fade-up-3 { animation: fadeUp 0.7s ease 0.3s both; }
