/* =========================================================
   The Real Estate Debrief — main stylesheet
   Source: Real Estate Debrief Basic Brand Guide v1.0 (Nov 2026)
   ---------------------------------------------------------
   1. Brand settings (colors + fonts)  ← change these to restyle the whole site
   2. Basics
   3. Logo
   4. Buttons & small pieces
   5. Header
   6. Hero
   7. Sections & cards
   8. Videos
   9. About
   10. Footer
   11. Larger screens (tablet / desktop)
   ========================================================= */

/* ---------- 1. Brand settings ---------- */
:root {
  --cobalt: #050E3D;      /* primary brand / headers */
  --aqua:   #00FBF0;      /* accent / active states — never main text on light backgrounds */
  --onyx:   #1D1D1D;      /* body text / dark UI */
  --mist:   #E5E5E5;      /* dividers / soft surfaces */
  --white:  #FFFFFF;
  --surface: #F6F7F9;     /* very light section background */
  --text-muted: #5A5F6E;  /* secondary text (passes contrast on white) */

  --font-head: 'Poppins', Arial, sans-serif;  /* headlines, logo, buttons */
  --font-body: Arial, Helvetica, sans-serif;  /* body copy */

  --radius: 12px;
  --max-width: 1140px;
  --shadow: 0 10px 30px rgba(5, 14, 61, 0.08);
}

/* ---------- 2. Basics ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--onyx);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--cobalt);
  line-height: 1.2;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.2rem, 6vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p  { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.center { text-align: center; }

/* Small label above headings.
   On light backgrounds it's cobalt with a short aqua rule; on navy it turns aqua. */
.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--cobalt);
  margin-bottom: 0.9em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 3px;
  background: var(--aqua);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- 3. Logo (recreated from the brand guide, "Concept A / Editorial Wordmark") ----------
   Change --logo-size to scale the whole logo; all parts keep their proportions. */
.logo {
  --logo-size: 34px;
  --logo-color: var(--cobalt);
  --logo-sub-color: var(--onyx);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  text-transform: uppercase;
  font-family: var(--font-head);
  font-size: var(--logo-size);
  color: var(--logo-color);
  line-height: 1;
}
.logo-top {
  font-weight: 400;
  font-size: 0.33em;
  letter-spacing: 0.24em;
  margin-right: -0.24em;   /* balances the trailing letter-space so it stays centered */
}
.logo-main {
  font-weight: 700;
  font-size: 1em;
  letter-spacing: 0.01em;
  line-height: 0.95;
  margin: 0.04em 0 0.08em;
}
.logo-sub {
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-weight: 600;
  font-size: 0.24em;
  letter-spacing: 0.12em;
  color: var(--logo-sub-color);
  white-space: nowrap;
}
.logo-sub::before,
.logo-sub::after {
  content: "";
  width: 3.2em;
  height: 0.28em;
  border-radius: 1em;
  background: var(--aqua);
}

/* Reversed logo for navy backgrounds */
.logo-reversed {
  --logo-color: var(--white);
  --logo-sub-color: var(--white);
}

/* ---------- 4. Buttons & small pieces ---------- */
.btn {
  display: inline-block;
  padding: 0.9em 1.7em;
  border-radius: 8px;
  background: var(--aqua);
  color: var(--cobalt);
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 251, 240, 0.25); }

.text-link {
  font-family: var(--font-head);
  color: var(--cobalt);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 3px solid var(--aqua);
  padding-bottom: 2px;
}

.badge {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--cobalt);
  color: var(--aqua);
  padding: 0.35em 0.9em;
  border-radius: 999px;
  margin-bottom: 1em;
}
.badge-muted { background: var(--mist); color: var(--text-muted); }

/* ---------- 5. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--white);
  border-bottom: 1px solid var(--mist);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  padding-top: 10px;
  padding-bottom: 10px;
  position: relative;
}

/* Hamburger button (phones only) */
.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
}
.menu-bar { width: 24px; height: 2px; background: var(--cobalt); border-radius: 2px; }

/* Phone menu: hidden until the button is tapped */
.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  background: var(--white);
  padding: 8px 20px 16px;
  border-bottom: 1px solid var(--mist);
  box-shadow: 0 12px 20px rgba(5, 14, 61, 0.06);
}
.site-nav.open { display: flex; }
.site-nav a {
  font-family: var(--font-head);
  color: var(--onyx);
  text-decoration: none;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--cobalt); border-bottom-color: var(--aqua); }

/* ---------- 6. Hero ---------- */
.hero {
  background: var(--cobalt);
  color: var(--white);
  padding: 44px 0 60px;
}

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

.hero-inner {
  display: flex;
  flex-direction: column-reverse;   /* photo first on phones */
  gap: 36px;
}

.hero-lead {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 34em;
}

.hero-buttons { margin-top: 28px; }

.hero-photo {
  max-width: 340px;
  margin: 0 auto;
}
.hero-photo img { border-radius: var(--radius); }

/* ---------- 7. Sections & cards ---------- */
.section { padding: 72px 0; }
.section-light { background: var(--surface); }

.section-heading { max-width: 640px; margin-bottom: 40px; }
.section-heading p:last-child { color: var(--text-muted); }

.card-grid { display: grid; gap: 20px; }

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--aqua);
}
.card p { color: var(--text-muted); margin: 0; }
.tool-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.tool-card-link:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(5, 14, 61, 0.14); }
.card-cta { display: inline-block; margin-top: 18px; }
.card-muted { box-shadow: none; border: 1px solid var(--mist); border-top: 4px solid var(--mist); }

/* ---------- 8. Videos ---------- */
.video-grid { display: grid; gap: 28px; margin-bottom: 36px; }

.video-thumb,
.video-embed {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 14px;
}

.video-thumb {
  background: var(--cobalt);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
}
.video-thumb span {
  font-family: var(--font-head);
  color: var(--white);
  font-weight: 700;
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 3px solid var(--aqua);
  padding-bottom: 4px;
}

.video-embed iframe { width: 100%; height: 100%; border: 0; }

.video-status {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.3em;
}
.video-card h3 { font-size: 1.02rem; }

/* ---------- 9. About ---------- */
.about-inner { display: flex; flex-direction: column; gap: 40px; }
.about-photo { max-width: 360px; }
.about-photo img { border-radius: var(--radius); box-shadow: var(--shadow); }
.about-text p { color: var(--onyx); }
.about-text .note {
  border-left: 4px solid var(--aqua);
  padding-left: 16px;
  color: var(--text-muted);
  font-style: italic;
}

/* ---------- 10. Footer ---------- */
.site-footer {
  background: var(--cobalt);
  color: rgba(255, 255, 255, 0.78);
  padding: 56px 0 32px;
  font-size: 0.88rem;
}

.logo-footer { --logo-size: 40px; }

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-nav { display: flex; flex-wrap: wrap; gap: 20px; font-family: var(--font-head); }
.footer-nav a { color: var(--white); text-decoration: none; }
.footer-nav a:hover { color: var(--aqua); }

.disclaimer { max-width: 60em; }
.disclaimer strong { color: var(--white); }

.disclosure {
  max-width: 60em;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 20px;
}

.copyright { color: rgba(255, 255, 255, 0.55); font-size: 0.8rem; margin: 0; }

/* ---------- 11. Larger screens ---------- */
@media (min-width: 700px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { flex-direction: row; justify-content: space-between; align-items: center; }
}

@media (min-width: 900px) {
  .menu-toggle { display: none; }
  .site-nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 32px;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: none;
  }
  .site-nav a { padding: 6px 0; }
  .logo { --logo-size: 40px; }
  .logo-footer { --logo-size: 44px; }

  .hero { padding: 88px 0 100px; }
  .hero-inner { flex-direction: row; align-items: center; gap: 64px; }
  .hero-text { flex: 1.2; }
  .hero-photo { flex: 1; max-width: 400px; }

  .section { padding: 100px 0; }

  .about-inner { flex-direction: row; align-items: center; gap: 64px; }
  .about-photo { flex: 0 0 360px; }
}

@media (min-width: 1100px) {
  .video-grid { grid-template-columns: repeat(4, 1fr); }
}
