/* ============================================================
   Miami Real Estate Academy — shared stylesheet
   Warm, aspirational theme for career-changers
   ============================================================ */

:root {
  --teal: #0e6b70;
  --teal-dark: #0a4e52;
  --teal-deep: #073a3d;
  --coral: #f0705a;
  --coral-dark: #d95a44;
  --gold: #e9b44c;
  --sand: #faf5ee;
  --sand-dark: #f1e8da;
  --ink: #21343a;
  --ink-soft: #4d6167;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(33, 52, 58, 0.10);
  --shadow-lift: 0 12px 32px rgba(33, 52, 58, 0.16);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito Sans', 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--sand);
}

h1, h2, h3, h4 {
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  line-height: 1.25;
  color: var(--teal-deep);
}

h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }

p + p { margin-top: 1em; }

a { color: var(--teal); }
a:hover { color: var(--coral-dark); }

img { max-width: 100%; height: auto; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / nav ---------- */

.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(33, 52, 58, 0.08);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--teal-deep);
  line-height: 1.2;
}

.brand-name small {
  display: block;
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 400;
  font-size: 0.72rem;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 8px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--ink);
}

.nav-links a:hover { background: var(--sand); color: var(--teal); }
.nav-links a.active { color: var(--teal); }
.nav-links a.nav-cta {
  background: var(--coral);
  color: var(--white);
  margin-left: 8px;
}
.nav-links a.nav-cta:hover { background: var(--coral-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--teal-deep);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: linear-gradient(120deg, var(--teal-deep) 0%, var(--teal) 70%, #128a8f 100%);
  color: var(--white);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 72px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-inner.hero-center {
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
  padding: 88px 24px 150px;
  position: relative;
  z-index: 1;
}

.hero-center .lead { margin-left: auto; margin-right: auto; }
.hero-center .btn-row { justify-content: center; }
.hero-center .hero-badges { justify-content: center; }

.hero-skyline {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 180px;
  pointer-events: none;
}

.hero h1 { color: var(--white); }

.hero .kicker {
  display: inline-block;
  background: rgba(233, 180, 76, 0.18);
  color: var(--gold);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero p.lead {
  font-size: 1.15rem;
  margin: 18px 0 30px;
  color: rgba(255, 255, 255, 0.92);
  max-width: 34em;
}

.hero-img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  width: 100%;
  object-fit: cover;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 34px;
  font-size: 0.9rem;
}

.hero-badges span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.9);
}

.hero-badges svg { color: var(--gold); flex-shrink: 0; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 12px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.btn-coral { background: var(--coral); color: var(--white); }
.btn-coral:hover { background: var(--coral-dark); color: var(--white); }

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.65);
}
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.12); color: var(--white); }

.btn-teal { background: var(--teal); color: var(--white); }
.btn-teal:hover { background: var(--teal-dark); color: var(--white); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Sections ---------- */

.section { padding: 68px 0; }
.section.alt { background: var(--white); }

.section-head {
  max-width: 640px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-head p { color: var(--ink-soft); margin-top: 10px; }

.eyebrow {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--coral);
  display: block;
  margin-bottom: 8px;
}

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }

.card-body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: 8px; }
.card-body p { color: var(--ink-soft); font-size: 0.95rem; flex: 1; }

.card-img { width: 100%; height: 190px; object-fit: cover; }

.card .btn { margin-top: 20px; align-self: flex-start; }

.price-tag {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--teal);
}

.price-tag small { font-size: 0.78rem; font-weight: 400; color: var(--ink-soft); }

.price-free { color: var(--coral); }

.badge {
  display: inline-block;
  background: var(--sand-dark);
  color: var(--teal-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.03em;
  margin-bottom: 12px;
  align-self: flex-start;
}

.badge.hot { background: #fde3dd; color: var(--coral-dark); }

.card-browse-all { background: linear-gradient(135deg, var(--teal-deep), var(--teal)); }
.card-browse-all h3 { color: var(--white); }
.card-browse-all .card-body p { color: rgba(255, 255, 255, 0.85); }
.card-browse-all .badge { background: rgba(233, 180, 76, 0.2); color: var(--gold); }

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 26px;
  counter-reset: step;
}

.step {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  position: relative;
}

.step-num {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--coral) 0%, var(--coral-dark) 100%);
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Feature list ---------- */

.feature-list { list-style: none; display: grid; gap: 14px; }

.feature-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.feature-list svg { color: var(--coral); flex-shrink: 0; margin-top: 4px; }

/* ---------- Split layout ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.split img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- CTA band ---------- */

.cta-band {
  background: linear-gradient(120deg, var(--teal-deep), var(--teal));
  color: var(--white);
  text-align: center;
  padding: 64px 24px;
}

.cta-band h2 { color: var(--white); margin-bottom: 12px; }
.cta-band p { color: rgba(255, 255, 255, 0.88); max-width: 36em; margin: 0 auto 28px; }

/* ---------- FAQ accordion ---------- */

.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  overflow: hidden;
}

.faq-item summary {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--teal-deep);
  padding: 20px 26px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--coral);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item .faq-answer { padding: 0 26px 22px; color: var(--ink-soft); }

/* ---------- Forms ---------- */

.form-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px;
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }

label {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--teal-deep);
}

input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--sand-dark);
  border-radius: 10px;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 1rem;
  color: var(--ink);
  background: var(--sand);
}

input:focus, textarea:focus { outline: 2px solid var(--teal); border-color: var(--teal); background: var(--white); }

textarea { min-height: 140px; resize: vertical; }

.checkbox-row { display: flex; align-items: center; gap: 10px; }
.checkbox-row label { margin: 0; font-weight: 400; font-family: 'Nunito Sans', sans-serif; }

.hp-field { position: absolute; left: -9999px; opacity: 0; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--teal-deep);
  color: rgba(255, 255, 255, 0.82);
  padding: 56px 0 28px;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.site-footer h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 14px;
}

.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { color: rgba(255, 255, 255, 0.82); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- Page hero (interior pages) ---------- */

.page-hero {
  background: linear-gradient(120deg, var(--teal-deep) 0%, var(--teal) 100%);
  color: var(--white);
  padding: 52px 0;
  text-align: center;
}

.page-hero h1 { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.5rem); }
.page-hero p { color: rgba(255, 255, 255, 0.88); margin-top: 10px; max-width: 40em; margin-left: auto; margin-right: auto; }

/* ---------- Misc ---------- */

.notice {
  background: #fdf3dc;
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  padding: 16px 20px;
  font-size: 0.95rem;
  margin: 24px 0;
}

.text-center { text-align: center; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 32px; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding: 52px 24px; }
  .hero-img { max-height: 320px; }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
    box-shadow: 0 12px 24px rgba(33, 52, 58, 0.12);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .nav-links a.nav-cta { margin-left: 0; margin-top: 8px; text-align: center; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
