/* ============================================================
   Real Estate Investor Tax Playbook -- Site Styles
   AE Tax Advisors | therealestatetaxbook.com
   Design System: Navy #1B2A4A / Gold #C5A572
   ============================================================ */

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

:root {
  --navy: #1B2A4A;
  --navy-light: #243558;
  --navy-dark: #111D33;
  --gold: #C5A572;
  --gold-light: #D4BA8E;
  --gold-dark: #A8894E;
  --white: #FFFFFF;
  --off-white: #F8F6F3;
  --gray-100: #F5F5F5;
  --gray-200: #E8E8E8;
  --gray-300: #D1D1D1;
  --gray-600: #6B7280;
  --gray-700: #4A4A4A;
  --gray-800: #2D2D2D;
  --text-primary: #1A1A1A;
  --text-secondary: #4A4A4A;
  --font-serif: "Georgia", "Times New Roman", serif;
  --font-sans: "Helvetica Neue", "Arial", sans-serif;
  --max-width: 1200px;
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  line-height: 1.7;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--gold-dark);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--gold);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--navy);
  line-height: 1.3;
}

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

/* --- Header / Navigation --- */
.site-header {
  background: var(--navy);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

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

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--gold);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 18px;
  color: var(--navy);
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.5px;
}

.logo-text span {
  color: var(--gold);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all var(--transition);
  text-decoration: none;
}

.main-nav a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.main-nav a.nav-cta {
  background: var(--gold);
  color: var(--navy);
  font-weight: 600;
}

.main-nav a.nav-cta:hover {
  background: var(--gold-light);
  color: var(--navy);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

/* --- Hero Section --- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(197, 165, 114, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

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

.hero-series-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(197, 165, 114, 0.15);
  border: 1px solid rgba(197, 165, 114, 0.3);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px;
  color: var(--gold-light);
  font-weight: 500;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: 48px;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 20px;
  font-weight: 700;
}

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

.hero-subtitle {
  font-size: 20px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 12px;
  font-family: var(--font-serif);
  font-style: italic;
}

.hero-meta {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Book Cover Placeholder --- */
.book-cover-wrap {
  display: flex;
  justify-content: center;
}

.book-cover {
  width: 340px;
  height: 480px;
  background: linear-gradient(160deg, var(--navy-light) 0%, var(--navy-dark) 100%);
  border-radius: 4px 16px 16px 4px;
  box-shadow:
    -6px 6px 20px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(197, 165, 114, 0.1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 32px;
  text-align: center;
  border-left: 6px solid var(--gold);
}

.book-cover::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gold);
}

.book-cover::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gold);
}

.book-cover-icon {
  font-size: 48px;
  margin-bottom: 20px;
  opacity: 0.9;
}

.book-cover-series {
  font-family: var(--font-sans);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 16px;
}

.book-cover-title {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 16px;
}

.book-cover-subtitle {
  font-family: var(--font-sans);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
  margin-bottom: 24px;
}

.book-cover-author {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.book-cover-divider {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 16px auto;
  opacity: 0.5;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  font-family: var(--font-sans);
  letter-spacing: 0.3px;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(197, 165, 114, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  border-color: var(--white);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.btn-navy:hover {
  background: var(--navy-light);
  border-color: var(--navy-light);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(27, 42, 74, 0.35);
}

/* --- Section Styles --- */
.section {
  padding: 80px 0;
}

.section-light {
  background: var(--white);
}

.section-alt {
  background: var(--off-white);
}

.section-navy {
  background: var(--navy);
  color: var(--white);
}

.section-navy h2,
.section-navy h3 {
  color: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: 36px;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
}

.section-navy .section-header p {
  color: rgba(255, 255, 255, 0.7);
}

.section-label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 12px;
}

/* --- Chapters Grid --- */
.chapters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.chapter-card {
  background: var(--white);
  border-radius: 12px;
  padding: 32px;
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
  position: relative;
}

.chapter-card:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 30px rgba(27, 42, 74, 0.08);
  transform: translateY(-3px);
}

.chapter-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--navy);
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  border-radius: 8px;
  margin-bottom: 16px;
}

.chapter-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  line-height: 1.35;
}

.chapter-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* --- Audience Section --- */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.audience-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  transition: all var(--transition);
}

.audience-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(197, 165, 114, 0.3);
  transform: translateY(-3px);
}

.audience-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.audience-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--white);
}

.audience-card p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
}

/* --- Series Section --- */
.series-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.series-card {
  background: var(--white);
  border-radius: 12px;
  padding: 32px;
  border: 1px solid var(--gray-200);
  text-align: center;
  transition: all var(--transition);
  text-decoration: none;
  display: block;
}

.series-card:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 30px rgba(27, 42, 74, 0.08);
  transform: translateY(-3px);
}

.series-card.current {
  border-color: var(--gold);
  background: linear-gradient(135deg, var(--off-white) 0%, var(--white) 100%);
}

.series-card.coming-soon {
  opacity: 0.6;
  cursor: default;
}

.series-card.coming-soon:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--gray-200);
}

.series-card-icon {
  font-size: 36px;
  margin-bottom: 16px;
}

.series-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.series-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.series-card .badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 100px;
  margin-top: 12px;
}

.badge-current {
  background: var(--gold);
  color: var(--navy);
}

.badge-available {
  background: var(--navy);
  color: var(--white);
}

.badge-soon {
  background: var(--gray-200);
  color: var(--gray-600);
}

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  padding: 80px 0;
  text-align: center;
}

.cta-section h2 {
  font-size: 36px;
  color: var(--white);
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 580px;
  margin: 0 auto 32px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Footer --- */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.6);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 48px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  margin-top: 12px;
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 12px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  transition: color var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px;
  text-align: center;
  font-size: 13px;
}

.footer-bottom a {
  color: var(--gold);
}

/* --- About Page --- */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  padding: 60px 0 80px;
  text-align: center;
}

.page-hero h1 {
  font-size: 42px;
  color: var(--white);
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin: 0 auto;
}

.about-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px;
}

.about-content h2 {
  font-size: 28px;
  margin-top: 48px;
  margin-bottom: 16px;
}

.about-content h2:first-child {
  margin-top: 0;
}

.about-content p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-content ul {
  margin-bottom: 20px;
  padding-left: 24px;
}

.about-content li {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 8px;
}

/* --- 404 Page --- */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
}

.error-page h1 {
  font-size: 120px;
  color: var(--gold);
  margin-bottom: 16px;
  line-height: 1;
}

.error-page h2 {
  font-size: 28px;
  margin-bottom: 16px;
}

.error-page p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* --- Buy Section --- */
.buy-section {
  background: var(--off-white);
  padding: 80px 0;
}

.buy-box {
  max-width: 560px;
  margin: 0 auto;
  background: var(--white);
  border: 2px solid var(--gold);
  border-radius: 16px;
  padding: 48px;
  text-align: center;
}

.buy-box h2 {
  font-size: 28px;
  margin-bottom: 8px;
}

.buy-box .price {
  font-size: 48px;
  font-weight: 700;
  color: var(--navy);
  font-family: var(--font-serif);
  margin: 16px 0;
}

.buy-box .price-note {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.buy-box ul {
  list-style: none;
  margin-bottom: 32px;
  text-align: left;
}

.buy-box li {
  font-size: 15px;
  color: var(--text-secondary);
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  gap: 10px;
}

.buy-box li::before {
  content: "\2713";
  font-weight: 700;
  color: var(--gold);
  font-size: 16px;
}

/* --- Key Topics Bar --- */
.topics-bar {
  background: var(--navy-light);
  padding: 32px 0;
  border-bottom: 2px solid var(--gold);
}

.topics-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 32px;
  list-style: none;
}

.topics-list li {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.topics-list li::before {
  content: "\25C6";
  color: var(--gold);
  font-size: 8px;
}

/* --- Responsive --- */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero h1 {
    font-size: 38px;
  }

  .book-cover {
    width: 280px;
    height: 400px;
    padding: 32px 24px;
  }

  .book-cover-title {
    font-size: 22px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 16px 24px;
    gap: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  }

  .main-nav.active {
    display: flex;
  }

  .main-nav a {
    width: 100%;
    text-align: center;
    padding: 12px 16px;
  }

  .mobile-toggle {
    display: flex;
  }

  .hero {
    padding: 60px 0 80px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 17px;
  }

  .section {
    padding: 60px 0;
  }

  .section-header h2 {
    font-size: 28px;
  }

  .chapters-grid {
    grid-template-columns: 1fr;
  }

  .audience-grid {
    grid-template-columns: 1fr;
  }

  .series-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-brand {
    grid-column: span 1;
  }

  .cta-section h2 {
    font-size: 28px;
  }

  .page-hero h1 {
    font-size: 32px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 26px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 320px;
  }

  .book-cover {
    width: 240px;
    height: 340px;
    padding: 24px 20px;
  }

  .book-cover-title {
    font-size: 18px;
  }

  .book-cover-subtitle {
    font-size: 11px;
  }
}
