/* ===================================================
   MAILBOXLAB — ENHANCED DESIGN SYSTEM
   Aesthetic: Luxury Real Estate / Editorial Refined
   Font: Playfair Display + DM Sans
=================================================== */

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

:root {
  --navy:       #0d1f4a;
  --navy-mid:   #1a3370;
  --navy-light: #2346a0;
  --gold:       #c8a855;
  --gold-light: #e5c97a;
  --cream:      #f9f6f0;
  --white:      #ffffff;
  --text:       #1c2340;
  --text-muted: #5a6385;
  --border:     #e2ddd5;
  --shadow:     0 4px 30px rgba(13,31,74,0.10);
  --radius:     12px;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.75;
  overflow-x: hidden;
}

/* ===================================================
   TYPOGRAPHY
=================================================== */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.25;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); font-weight: 600; margin-bottom: 1rem; }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 600; margin-bottom: 0.75rem; }
p  { margin-bottom: 1.1rem; color: var(--text-muted); font-size: 1.02rem; }
ul { margin: 0.75rem 0 1.1rem 1.25rem; }
li { margin-bottom: 0.4rem; color: var(--text-muted); }
a  { color: inherit; text-decoration: none; }

/* ===================================================
   LAYOUT HELPERS
=================================================== */
.container { max-width: 1140px; margin: 0 auto; padding: 0 28px; }
.section    { padding: 90px 20px; }
.section-alt { background: var(--white); }
.section-dark { background: var(--navy); color: var(--white); }
.section-dark p, .section-dark li { color: rgba(255,255,255,0.75); }
.section-dark h2, .section-dark h3 { color: var(--white); }

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

/* ===================================================
   HEADER / NAV
=================================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
}

header.top {
  background: transparent;
  padding: 24px 0;
}

header.scrolled {
  background: var(--navy);
  padding: 14px 0;
  box-shadow: 0 2px 30px rgba(0,0,0,0.25);
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 44px;
  width: auto;
  max-width: 180px;
  display: block;
  object-fit: contain;
}

.menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.menu a {
  color: rgba(255,255,255,0.88);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: color var(--transition);
}

.menu a:hover { color: var(--gold-light); }
.menu a.active { color: var(--gold-light); }

.menu-cta {
  background: var(--gold) !important;
  color: var(--navy) !important;
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 600 !important;
  transition: background var(--transition), transform var(--transition) !important;
}

.menu-cta:hover {
  background: var(--gold-light) !important;
  transform: translateY(-1px);
}

/* Mobile Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  width: 26px; height: 2px;
  background: white; border-radius: 2px;
  transition: var(--transition);
}

/* ===================================================
   HERO SLIDER
=================================================== */
.hero {
  position: relative;
  height: 88vh;
  max-height: 700px;
  min-height: 520px;
  overflow: hidden;
}

.slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.slide.active { opacity: 1; }

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(13,31,74,0.78) 0%, rgba(13,31,74,0.40) 100%);
  z-index: 1;
}

.hero-content {
  position: absolute; inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

.hero-inner {
  max-width: 820px;
}

.hero-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 24px;
}

.hero-content h1 {
  color: white;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-content p {
  color: rgba(255,255,255,0.88);
  font-size: 1.18rem;
  margin-bottom: 36px;
  font-weight: 300;
}

.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn-primary {
  display: inline-block;
  padding: 15px 36px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 50px;
  transition: all var(--transition);
  border: 2px solid var(--gold);
}

.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(200,168,85,0.4);
}

.btn-outline {
  display: inline-block;
  padding: 15px 36px;
  background: transparent;
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 50px;
  border: 2px solid rgba(255,255,255,0.6);
  transition: all var(--transition);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: white;
  transform: translateY(-2px);
}

/* Slider Dots */
.slider-dots {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
}

.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.dot.active { background: var(--gold); transform: scale(1.3); }

/* ===================================================
   STAT BAR
=================================================== */
.stat-bar {
  background: var(--navy);
  padding: 28px 20px;
}

.stat-bar .container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.stat-item {
  text-align: center;
  color: white;
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
}

.stat-label {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
}

/* ===================================================
   CARDS
=================================================== */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(13,31,74,0.15);
}

.card-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--navy-light), var(--navy));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

/* ===================================================
   STEP CARDS (How It Works)
=================================================== */
.step-card {
  text-align: center;
  padding: 36px 28px;
  position: relative;
}

.step-number {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.step-card h3 { color: var(--navy); }

/* Step connector line */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 0;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 12%;
  width: 76%;
  height: 2px;
  background: linear-gradient(to right, var(--navy-light), var(--gold));
  z-index: 0;
}

.step-card { z-index: 1; }

/* ===================================================
   IMAGE SECTION
=================================================== */
.img-section img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ===================================================
   LEAD FORM
=================================================== */
.lead-form-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 90px 20px;
  position: relative;
  overflow: hidden;
}

.lead-form-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: rgba(200,168,85,0.07);
  pointer-events: none;
}

.lead-form-box {
  background: white;
  border-radius: 20px;
  padding: 50px;
  max-width: 680px;
  margin: 0 auto;
  box-shadow: 0 30px 80px rgba(0,0,0,0.25);
}

.lead-form-box h2 { color: var(--navy); text-align: center; margin-bottom: 8px; }
.lead-form-box > p { text-align: center; margin-bottom: 32px; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full { grid-column: span 2; }

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--cream);
  transition: border-color var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--navy-light);
  background: white;
}

.form-submit {
  width: 100%;
  padding: 16px;
  background: var(--navy);
  color: white;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  margin-top: 10px;
  transition: all var(--transition);
  letter-spacing: 0.04em;
}

.form-submit:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(13,31,74,0.3);
}

.form-disclaimer {
  font-size: 0.76rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 16px;
  line-height: 1.5;
}

/* ===================================================
   FAQ ACCORDION
=================================================== */
.accordion-item {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: var(--transition);
}

.accordion-item:hover { border-color: var(--navy-light); }

.accordion-header {
  width: 100%;
  background: var(--white);
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  border: none;
  text-align: left;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  transition: background var(--transition);
}

.accordion-header:hover { background: var(--cream); }

.accordion-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  color: var(--navy-light);
  flex-shrink: 0;
  margin-left: 12px;
  transition: transform var(--transition), background var(--transition);
}

.accordion-item.open .accordion-icon {
  transform: rotate(45deg);
  background: var(--navy);
  color: white;
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  background: var(--white);
  padding: 0 24px;
}

.accordion-item.open .accordion-body {
  max-height: 400px;
  padding: 0 24px 20px;
}

.accordion-body p { margin: 0; }

/* ===================================================
   SECTION HEADER (centered)
=================================================== */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header .tag {
  display: inline-block;
  background: rgba(200,168,85,0.15);
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 12px;
}

.section-header h2 { color: var(--navy); }
.section-header p   { max-width: 600px; margin: 8px auto 0; }

/* ===================================================
   TESTIMONIALS
=================================================== */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  border: 1.5px solid var(--border);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  color: var(--gold);
  opacity: 0.3;
  position: absolute;
  top: -10px;
  left: 24px;
  line-height: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
}

.author-name { font-weight: 600; font-size: 0.9rem; color: var(--navy); }
.author-loc  { font-size: 0.78rem; color: var(--text-muted); }

.stars { color: var(--gold); font-size: 0.9rem; margin-bottom: 12px; }

/* ===================================================
   PAGE HERO (inner pages)
=================================================== */
.page-hero {
  position: relative;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  margin-top: 0;
}

.page-hero .bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
}

.page-hero .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(13,31,74,0.82) 0%, rgba(13,31,74,0.55) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  color: white;
  padding: 20px;
  padding-top: 80px;
}

.page-hero-content h1 { margin-bottom: 10px; }
.page-hero-content p  { color: rgba(255,255,255,0.82); font-size: 1.1rem; }

/* Breadcrumb */
.breadcrumb {
  display: flex; gap: 8px;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
}
.breadcrumb a { color: var(--gold-light); }
.breadcrumb span { opacity: 0.5; }

/* ===================================================
   FOOTER
=================================================== */
footer {
  background: var(--navy);
  color: white;
  padding: 72px 20px 0;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand img {
  height: 40px;
  width: auto;
  object-fit: contain;
  margin-bottom: 20px;
}

.footer-brand p { color: rgba(255,255,255,0.80); font-size: 0.9rem; }

.footer-contact { margin-top: 20px; }
.footer-contact p { margin-bottom: 6px; font-size: 0.88rem; color: rgba(255,255,255,0.88); }
.footer-contact a { color: var(--gold-light); }

.footer-col h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  color: rgba(255,255,255,0.82);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--gold-light); }

.footer-map iframe {
  width: 100%; height: 200px;
  border: 0; border-radius: 10px;
  filter: grayscale(30%);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
}

.footer-bottom a { color: rgba(255,255,255,0.75); transition: color var(--transition); }
.footer-bottom a:hover { color: var(--gold-light); }

.footer-legal {
  background: rgba(0,0,0,0.2);
  padding: 16px 20px;
  text-align: center;
}

.footer-legal a {
  color: rgba(255,255,255,0.78);
  margin: 0 14px;
  font-size: 0.8rem;
  transition: color var(--transition);
}

.footer-legal a:hover { color: var(--gold-light); }

/* ===================================================
   HIGHLIGHT BOX
=================================================== */
.highlight-box {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: var(--radius);
  padding: 40px;
  color: white;
}

.highlight-box h3 { color: var(--gold-light); margin-bottom: 12px; }
.highlight-box p  { color: rgba(255,255,255,0.8); }

/* Gold divider */
.divider {
  width: 64px; height: 3px;
  background: var(--gold);
  margin: 12px 0 20px;
  border-radius: 2px;
}

.divider.center { margin: 12px auto 20px; }

/* ===================================================
   TRUST BADGES
=================================================== */
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}

.badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(200,168,85,0.12);
  border: 1px solid rgba(200,168,85,0.3);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
}

.badge span { font-size: 1rem; }

/* ===================================================
   RESPONSIVE
=================================================== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .steps-grid { grid-template-columns: repeat(2,1fr); }
  .steps-grid::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: span 1; }
  .lead-form-box { padding: 32px 20px; }

  .menu { display: none; }
  .menu.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    background: var(--navy);
    z-index: 999;
    justify-content: center;
    align-items: center;
    gap: 28px;
  }
  .menu.open a { font-size: 1.2rem; }
  .hamburger { display: flex; z-index: 1001; position: relative; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .page-hero { height: 260px; }
  .stat-bar .container { justify-content: center; }
  .steps-grid { grid-template-columns: 1fr; }
}
