/* ===========================
   CALIFORNIA REAL ESTATE ACADEMY
   styles.css
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400;1,600&display=swap');

/* ---- RESET & BASE ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  color: #033743;
  background: #ffffff;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

/* ---- CONTAINER ---- */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ===========================
   HEADER
   =========================== */
.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 64px);
  max-width: 1140px;
  z-index: 1000;
  height: 60px;
  background: #ffffff;
  border-radius: 50px;
  box-shadow: 0 4px 24px rgba(3,55,67,0.10);
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 32px;
}

.header-logo img {
  height: 44px;
  width: auto;
}

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

.header-nav a {
  font-size: 0.88rem;
  font-weight: 500;
  color: #033743;
  transition: color 0.2s;
}

.header-nav a:hover {
  color: #24A07C;
}

.btn-enroll {
  background: #24A07C;
  color: #ffffff !important;
  padding: 9px 22px;
  border-radius: 3px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.2s !important;
}

.btn-enroll:hover {
  background: #033743 !important;
  color: #ffffff !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #033743;
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===========================
   HERO
   =========================== */
.hero {
  min-height: 100vh;
  background: url('assets/images/hero-bg.jpg') center 55% / cover no-repeat;
  background-attachment: fixed;
  position: relative;
  display: flex;
  align-items: center;
  padding-top: 80px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(3, 55, 67, 0.65);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 160px 64px 120px;
}

.hero-logo img {
  width: 280px;
  max-width: 100%;
}

.hero-text { max-width: 75vw; max-width: min(780px, 75vw); }

.hero-text h1 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero-text h1 .italic-line {
  font-style: italic;
  font-weight: 300;
}

.hero-text .hero-h2 {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  font-weight: 500;
  color: #EDE8E6;
  margin-bottom: 12px;
  line-height: 1.4;
}

.hero-text .hero-tagline {
  font-size: 0.85rem;
  color: rgba(237, 232, 230, 0.8);
  font-weight: 300;
  line-height: 1.6;
  max-width: 460px;
}

/* ===========================
   VIDEO SECTION — Custom Player
   =========================== */
.video-section {
  padding: 48px 0;
  background: #ffffff;
}

.cra-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 22px;
  overflow: hidden;
  background: #033743;
  box-shadow: 0 8px 40px rgba(3,55,67,0.18);
  cursor: pointer;
}

.cra-player video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 22px;
}

/* Big play overlay */
.cra-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(3,55,67,0.35);
  transition: opacity 0.3s;
  border-radius: 22px;
  z-index: 3;
}

.cra-overlay.hidden { opacity: 0; pointer-events: none; }

.cra-cover-text {
  position: absolute;
  top: 36px;
  left: 48px;
  right: 48px;
  text-align: left;
}

.cra-cover-text ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cra-cover-text li {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(0.9rem, 1.8vw, 1.4rem);
  font-weight: 700;
  font-style: italic;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(36, 160, 124, 0.25);
  padding: 3px 12px 3px 8px;
  border-radius: 4px;
  width: fit-content;
}

.cra-cover-text li::before {
  content: '—';
  color: #24A07C;
  font-style: normal;
  font-weight: 700;
  flex-shrink: 0;
}

.cra-cover-text em { font-style: italic; }

@media (max-width: 768px) {
  .cra-cover-text {
    top: 20px;
    left: 20px;
    right: 20px;
  }
  .cra-cover-text li {
    font-size: 0.78rem;
  }
}

.cra-play-big {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #24A07C;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, background 0.2s;
  box-shadow: 0 4px 24px rgba(36,160,124,0.5);
}
.cra-play-big:hover { transform: scale(1.1); background: #1d8a6a; }
.cra-play-big svg { width: 28px; height: 28px; margin-left: 4px; }

/* Controls */
.cra-controls {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(3,55,67,0.85));
  padding: 32px 16px 14px;
  border-radius: 0 0 22px 22px;
  z-index: 4;
  transition: opacity 0.3s;
}
.cra-controls.hidden { opacity: 0; pointer-events: none; }

.cra-progress-wrap { margin-bottom: 10px; }
.cra-progress-bg {
  position: relative;
  height: 4px;
  background: rgba(255,255,255,0.25);
  border-radius: 2px;
  cursor: pointer;
}
.cra-progress-fill {
  position: absolute;
  left: 0; top: 0; height: 100%;
  background: #24A07C;
  border-radius: 2px;
  pointer-events: none;
  transition: width 0.1s linear;
}
.cra-seek {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  cursor: pointer;
  height: 100%;
  margin: 0;
}

.cra-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cra-bar-left, .cra-bar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cra-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  opacity: 0.9;
  transition: opacity 0.2s;
}
.cra-btn:hover { opacity: 1; }

.cra-time {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.85);
  font-family: 'Poppins', sans-serif;
  white-space: nowrap;
}

.cra-vol {
  width: 64px;
  accent-color: #24A07C;
  cursor: pointer;
}

@media (max-width: 768px) {
  .cra-vol { display: none; }
  .cra-play-big { width: 60px; height: 60px; }
  .cra-play-big svg { width: 22px; height: 22px; }
}

/* ===========================
   BUILT FOR REAL ESTATE SUCCESS
   =========================== */
.built {
  padding: 48px 0 56px;
  background: #f2f2f2;
}

.built-text {
  margin-bottom: 32px;
}

.built-text h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #033743;
  line-height: 1.25;
  margin-bottom: 12px;
}

.built-text p {
  font-size: 1rem;
  font-weight: 400;
  color: #033743;
  line-height: 1.6;
}

.built-image {
  margin-top: 40px;
  border-radius: 16px;
  overflow: hidden;
}

.built-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

/* ===========================
   CAREER STARTS HERE (PILLARS)
   =========================== */
.pillars {
  padding: 52px 0;
  background: #ffffff;
  border-top: 1px solid #eee;
}

.pillars-heading {
  text-align: center;
  margin-bottom: 0;
}

.pillars-heading h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #033743;
  line-height: 1.3;
}

.pillars-heading h2 .green-italic {
  display: block;
  color: #24A07C;
  font-style: italic;
  font-weight: 600;
}

.pillars-grid {
  max-width: 960px;
  margin: 48px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.pillar-card {
  border: 1.5px solid #ccc;
  border-radius: 16px;
  padding: 48px 28px;
  text-align: center;
  background: #ffffff;
  transition: border-color 0.2s;
}

.pillar-card:hover { border-color: #24A07C; }

.pillar-card h3 {
  font-size: 1rem;
  font-weight: 300;
  color: #033743;
  line-height: 1.4;
}

/* ---- 4 STEPS ACCORDION ---- */
.steps-accordion {
  max-width: 100%;
  margin: 32px 0 0;
}

.accordion-item {
  border: 1.5px solid #24A07C;
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
  background: #ffffff;
  transition: box-shadow 0.2s;
}

.accordion-item:hover { box-shadow: 0 4px 20px rgba(36,160,124,0.12); }

.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  text-align: left;
}

.acc-step {
  font-size: 1rem;
  font-weight: 300;
  color: #033743;
  letter-spacing: 0.5px;
}

.acc-chevron {
  font-size: 1.4rem;
  color: #24A07C;
  transition: transform 0.3s ease;
  line-height: 1;
}

.accordion-item.open .acc-chevron { transform: rotate(90deg); }

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 28px;
}

.accordion-item.open .accordion-body {
  max-height: 300px;
  padding: 0 28px 28px;
}

.accordion-body h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #033743;
  margin-bottom: 10px;
}

.accordion-body p {
  font-size: 0.88rem;
  font-weight: 300;
  color: #555;
  line-height: 1.7;
}

.acc-cta-btn {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 28px;
  background: #24A07C;
  color: #ffffff;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.acc-cta-btn:hover { background: #1d8a6a; }

/* Step 1 header hover → verde */
.accordion-item--cta .accordion-header:hover .acc-step { color: #24A07C; }

/* LEGACY grid (keep for safety) */
.steps-grid {
  max-width: 1060px;
  margin: 48px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.step-card {
  position: relative;
  border: 1.5px solid #24A07C;
  border-radius: 16px;
  padding: 40px 24px;
  text-align: center;
  background: #ffffff;
  color: #033743;
  cursor: default;
  transition: background 0.25s ease, color 0.25s ease;
  text-decoration: none;
  display: block;
}

.step-card--cta {
  cursor: pointer;
}

.step-card--cta:hover {
  background: #24A07C;
  color: #ffffff;
}

.step-card--cta:hover .step-number {
  color: rgba(255,255,255,0.75);
}

.step-card--cta:hover h3 {
  color: #ffffff;
}

.step-number {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #24A07C;
  margin-bottom: 12px;
  transition: color 0.25s;
}

.step-card h3 {
  font-size: 0.95rem;
  font-weight: 300;
  color: #033743;
  line-height: 1.5;
  transition: color 0.25s;
}

/* Tooltip Steps 2-4 */
.step-tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: #033743;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.6;
  padding: 12px 16px;
  border-radius: 8px;
  width: 220px;
  z-index: 10;
  text-align: left;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.step-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #033743;
}

.step-card:not(.step-card--cta):hover .step-tooltip {
  display: block;
}

.step-card:not(.step-card--cta):hover {
  border-color: #24A07C;
  background: #f7fdf9;
}

@media (max-width: 768px) {
  .steps-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
}

/* ===========================
   WHAT'S INCLUDED
   =========================== */
.includes {
  padding: 52px 0;
  background: #ffffff;
}

.includes-label {
  display: block;
  text-align: center;
  color: #24A07C;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.includes h2 {
  font-size: 1.9rem;
  font-weight: 700;
  color: #033743;
  text-align: center;
  margin-bottom: 52px;
}

.includes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 24px;
}

.include-item {
  text-align: center;
}

.include-item svg {
  width: 44px;
  height: 44px;
  color: #033743;
  stroke: #033743;
  stroke-width: 1.5;
  fill: none;
  margin: 0 auto 14px;
  display: block;
}

.include-item h3 {
  font-size: 0.82rem;
  font-weight: 600;
  color: #033743;
  line-height: 1.5;
}

/* ===========================
   CTA BANNER
   =========================== */
.cta-banner {
  padding: 48px 0;
  background: #EDE8E6;
}

.cta-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 32px;
}

.cta-inner img {
  width: 80px;
  flex-shrink: 0;
}

.cta-inner p {
  font-size: 1.2rem;
  font-weight: 400;
  color: #033743;
  line-height: 1.7;
}

.cta-inner p strong {
  font-weight: 700;
}

/* ===========================
   GET STARTED TODAY
   =========================== */
.get-started {
  padding: 52px 0;
  background: #24A07C;
  text-align: center;
}

.get-started h2 {
  font-size: 2.8rem;
  color: #ffffff;
  margin-bottom: 32px;
  font-weight: 700;
}

.get-started h2 em {
  font-style: italic;
  font-weight: 300;
}

.btn-enroll-hero {
  display: inline-block;
  border: 2px solid #ffffff;
  background: transparent;
  color: #ffffff;
  padding: 12px 36px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 3px;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}

.btn-enroll-hero:hover {
  background: #ffffff;
  color: #24A07C;
}

/* ===========================
   NEED MORE INFORMATION
   =========================== */
.more-info {
  padding: 40px 0;
  background: #ffffff;
}

.more-info-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

.more-info h2 {
  font-size: 1.9rem;
  font-weight: 600;
  color: #033743;
}

.btn-contact {
  display: inline-block;
  background: #E55938;
  color: #ffffff;
  border: 2px solid #E55938;
  padding: 12px 32px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 3px;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  text-decoration: none;
}

.btn-contact:hover {
  background: #c94a2e;
  border-color: #c94a2e;
}

/* ===========================
   FOOTER
   =========================== */
.site-footer {
  background: #033743;
  padding-top: 56px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 0.6fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(237, 232, 230, 0.12);
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

.footer-col-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: #24A07C;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
  font-variant: small-caps;
}

/* Newsletter form */
.footer-form form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: #EDE8E6;
  margin-bottom: 6px;
}

.footer-form label .required {
  color: #E55938;
  margin-left: 2px;
}

.footer-form input[type="email"] {
  width: 100%;
  background: rgba(237, 232, 230, 0.08);
  border: 1px solid rgba(237, 232, 230, 0.25);
  border-radius: 3px;
  padding: 10px 14px;
  font-size: 0.85rem;
  color: #EDE8E6;
  font-family: 'Poppins', sans-serif;
  outline: none;
  transition: border-color 0.2s;
}

.footer-form input[type="email"]:focus {
  border-color: #24A07C;
}

.footer-form input[type="email"]::placeholder {
  color: rgba(237, 232, 230, 0.4);
}

.footer-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}

.footer-checkbox input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: #24A07C;
}

.footer-checkbox span {
  font-size: 0.78rem;
  color: rgba(237, 232, 230, 0.65);
  line-height: 1.5;
}

.btn-request {
  display: block;
  width: 100%;
  background: #E55938;
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 3px;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: background 0.2s;
  -webkit-appearance: none;
  appearance: none;
  margin-top: 4px;
}

.btn-request:hover {
  background: #c94a2e;
}

/* Footer menu col */
.footer-menu a {
  display: block;
  font-size: 0.85rem;
  color: rgba(237, 232, 230, 0.7);
  transition: color 0.2s;
  margin-bottom: 8px;
}

.footer-menu a:hover {
  color: #24A07C;
}

/* Footer contact col */
.footer-contact p {
  font-size: 0.82rem;
  color: rgba(237, 232, 230, 0.7);
  line-height: 1.6;
  margin-bottom: 4px;
}

.footer-contact p strong {
  color: #EDE8E6;
  font-weight: 600;
}

.footer-contact a {
  font-size: 0.82rem;
  color: #24A07C;
  transition: color 0.2s;
}

.footer-contact a:hover {
  color: #EDE8E6;
}

/* Footer bottom */
.footer-bottom {
  padding: 40px 24px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-bottom img {
  height: 120px;
  width: auto;
}

.footer-copyright {
  font-size: 0.75rem;
  color: rgba(237, 232, 230, 0.35);
  text-align: center;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 768px) {
  /* Header */
  .header-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid #eee;
    padding: 16px 0;
  }

  .header-nav.open {
    display: flex;
  }

  .header-nav a {
    padding: 12px 32px;
    width: 100%;
  }

  .btn-enroll {
    margin: 8px 32px;
    text-align: center;
  }

  .hamburger {
    display: flex;
  }

  /* Hero mobile */
  .hero {
    background-attachment: scroll;
    background-position: center 60%;
  }

  .hero-inner {
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 28px 40px;
    min-height: 100svh;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-text h1 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 12px;
  }

  .hero-text .hero-h2 {
    font-size: 0.9rem;
    margin-bottom: 10px;
  }

  .hero-text .hero-tagline {
    font-size: 0.82rem;
    max-width: 100%;
  }

  /* Built */
  .built-inner {
    grid-template-columns: 1fr;
  }

  .built-content {
    padding: 48px 24px;
  }

  .built-image img {
    min-height: 260px;
  }

  /* Pillars */
  .pillars-heading {
    text-align: center;
  }

  .pillars-heading h2 {
    font-size: 1.8rem;
  }

  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 1fr;
    padding: 0 16px;
    gap: 12px;
  }

  .pillar-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    padding: 24px 16px;
  }

  .pillar-card h3 {
    text-align: center;
  }

  /* Includes */
  .includes-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* CTA banner */
  .cta-inner {
    flex-direction: column;
    text-align: center;
  }

  /* Get started */
  .get-started h2 {
    font-size: 2rem;
  }

  /* More info */
  .more-info-inner {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  /* Footer */
  .footer-top {
    grid-template-columns: 1fr;
    padding-bottom: 32px;
  }
}
