/* ============================================================
   JON ENGLUND — YOUR REAL ESTATE CONSULTANT FOR LIFE
   Authority Site Stylesheet
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy: #0d1b2a;
  --navy-mid: #1a2e45;
  --blue: #1a4b8c;
  --blue-light: #2563b0;
  --gold: #c8973a;
  --gold-light: #e8b84b;
  --white: #ffffff;
  --off-white: #f8f5ef;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-600: #4b5563;
  --gray-800: #1f2937;
  --text: #1a2030;
  --text-light: #4a5568;

  --font-serif: 'Georgia', 'Times New Roman', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,0.10);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.18);

  --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 50%, var(--blue) 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 50%, rgba(200,151,58,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(26,75,140,0.3) 0%, transparent 50%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--white));
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h60v60H0z' fill='none'/%3E%3Ccircle cx='30' cy='30' r='1' fill='rgba(255,255,255,0.04)'/%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 100px 0 160px;
}

.hero-flex {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 64px;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Book column — now on the RIGHT */
.hero-book {
  order: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* Text column — now on the LEFT */
.hero-text {
  order: 1;
}

.business-card {
  width: 100%;
  max-width: 340px;
  border-radius: var(--radius-lg);
  box-shadow: 0 32px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.08);
  transform: rotate(2deg);
  transition: transform var(--transition);
}

.business-card:hover {
  transform: rotate(0deg) scale(1.02);
}

.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.12;
  color: var(--white);
  margin-bottom: 12px;
}

.hero-title .accent {
  color: var(--gold-light);
}

.hero-author {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 24px;
}

.hero-author strong {
  color: var(--white);
}

.hero-subtitle {
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.75);
  max-width: 500px;
  margin-bottom: 40px;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200,151,58,0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.8);
  transform: translateY(-2px);
}

/* ============================================================
   AMAZON BUTTON
   ============================================================ */

.amazon-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--navy);
  color: var(--white);
  border: 2px solid var(--gold);
  border-radius: 8px;
  padding: 12px 22px;
  font-family: var(--font-sans);
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  transition: background .2s, box-shadow .2s, transform .2s, color .2s;
}

.amazon-btn:hover {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 6px 20px rgba(200,151,58,.35);
  transform: translateY(-2px);
}

.amazon-btn-text { font-size: .88rem; font-weight: 700; white-space: nowrap; }
.amazon-logo { flex-shrink: 0; }
.amazon-arrow { flex-shrink: 0; color: var(--gold); transition: color .2s; }
.amazon-btn:hover .amazon-arrow { color: var(--navy); }
.amazon-btn:hover .amazon-logo text { fill: var(--navy); }

/* Hero variant — on dark background */
.amazon-btn--dark {
  background: var(--navy-mid);
  border-color: var(--gold);
}
.amazon-btn--dark:hover {
  background: var(--gold);
  color: var(--navy);
}

/* FAQ variant — on white background */
.amazon-btn--faq {
  margin-top: 18px;
  background: var(--navy);
  border-color: var(--gold);
}
.amazon-btn--faq:hover {
  background: var(--gold);
  color: var(--navy);
}

/* ============================================================
   PULL QUOTE
   ============================================================ */

.pullquote-section {
  background: var(--navy);
  padding: 64px 0;
}

.pullquote-eyebrow {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}

.pullquote {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.pullquote p {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  line-height: 1.65;
  color: var(--white);
  font-style: italic;
  margin-bottom: 20px;
}

.pullquote cite {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  font-style: normal;
}

/* ============================================================
   SECTION COMMON
   ============================================================ */

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.section-intro {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 620px;
  margin-top: 12px;
  line-height: 1.7;
}

/* ============================================================
   ABOUT BOOK
   ============================================================ */

.about-book {
  padding: 100px 0;
  background: var(--white);
}

.about-book h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--navy);
  margin-top: 8px;
  max-width: 640px;
  line-height: 1.25;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
  margin-top: 52px;
}

.pillar {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 32px 24px;
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

.pillar:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--gold);
}

.pillar-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.pillar h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.pillar p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ============================================================
   CHAPTERS SECTION
   ============================================================ */

.chapters-section {
  padding: 100px 0;
  background: var(--gray-100);
}

.chapters-section h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--navy);
  margin-top: 8px;
}

.chapters-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 52px;
}

.chapter-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition);
}

.chapter-card:hover {
  box-shadow: var(--shadow-lg);
}

.chapter-header {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  padding: 36px 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto auto;
  gap: 4px 16px;
  transition: background var(--transition);
}

.chapter-header:hover {
  background: var(--off-white);
}

.chapter-meta {
  grid-column: 1 / 2;
  grid-row: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chapter-num {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-light);
}

.chapter-arrow {
  font-size: 0.85rem;
  color: var(--gold);
  transition: transform var(--transition);
  grid-column: 2;
  grid-row: 1 / 4;
  display: flex;
  align-items: flex-start;
  padding-top: 4px;
}

.chapter-header[aria-expanded="true"] .chapter-arrow {
  transform: rotate(180deg);
}

.chapter-title {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  color: var(--navy);
  font-weight: 700;
  grid-column: 1;
  grid-row: 2;
  margin: 4px 0;
}

.chapter-subtitle {
  font-size: 0.88rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  grid-column: 1;
  grid-row: 3;
}

.chapter-preview {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-top: 12px;
  grid-column: 1;
  grid-row: 4;
  max-width: 680px;
}

.chapter-content {
  border-top: 1px solid var(--gray-200);
  animation: slideDown 0.3s ease;
}

.chapter-content[hidden] {
  display: none;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.chapter-body {
  padding: 48px 40px 52px;
  max-width: 780px;
}

.chapter-body p {
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 20px;
}

.chapter-body p:last-child {
  margin-bottom: 0;
}

.chapter-body h4 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--navy);
  font-weight: 700;
  margin: 36px 0 14px;
  padding-left: 16px;
  border-left: 3px solid var(--gold);
}

/* ============================================================
   AUTHOR SECTION
   ============================================================ */

.author-section {
  padding: 100px 0;
  background: var(--navy);
}

.author-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 72px;
  align-items: start;
}

.author-image-wrap {
  position: relative;
}

.author-photo {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
  border: 3px solid rgba(200,151,58,0.3);
}

.author-license {
  display: inline-block;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--gold);
  border: 2px solid var(--gold-light);
  border-radius: 6px;
  padding: 10px 20px;
  margin-top: 16px;
  width: 100%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.author-section .section-label {
  color: var(--gold);
}

.author-bio h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  margin: 8px 0 4px;
}

.author-tagline {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
}

.author-bio p {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.78);
  margin-bottom: 18px;
}

.author-bio strong {
  color: var(--white);
}

.author-credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.credential {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 100px;
  letter-spacing: 0.04em;
}

/* ============================================================
   FAQ SECTION
   ============================================================ */

.faq-section {
  padding: 100px 0;
  background: var(--off-white);
}

.faq-section h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--navy);
  margin-top: 8px;
  margin-bottom: 48px;
}

.faq-list {
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.faq-item summary {
  padding: 22px 28px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: background var(--transition);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--gold);
  flex-shrink: 0;
  transition: transform var(--transition);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:hover {
  background: var(--off-white);
}

.faq-answer {
  padding: 0 28px 24px;
}

.faq-answer p {
  font-size: 0.97rem;
  line-height: 1.75;
  color: var(--text-light);
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */

.contact-section {
  padding: 100px 0;
  background: var(--white);
}

.contact-section h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--navy);
  margin-top: 8px;
  margin-bottom: 16px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 52px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 28px;
  background: var(--navy);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--white);
  transition: all var(--transition);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(13,27,42,0.3);
  border-color: var(--gold);
}

/* Phone card — no pointer, no hover lift */
.contact-card--no-link {
  cursor: default;
}
.contact-card--no-link:hover {
  transform: none;
  box-shadow: none;
  border-color: transparent;
}

/* Email card — pointer cursor */
.contact-card--email {
  cursor: pointer;
}

.contact-icon {
  font-size: 2.2rem;
  margin-bottom: 14px;
}

.contact-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.contact-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
}

/* Toast notification */
.toast {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--gold);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 100px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}

.toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Global toast for contact strip */
#global-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--gold);
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 100px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
  z-index: 9999;
}

#global-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: start;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 32px;
}

.footer-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--white);
  font-weight: 700;
  margin-bottom: 4px;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.footer-brokerage {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}

.footer-links nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: right;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  text-align: center;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

.footer-bottom a {
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}

.footer-bottom a:hover {
  color: var(--gold);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  .hero-flex {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-book {
    order: 1;
    align-items: center;
  }

  .hero-text {
    order: 2;
  }

  .business-card {
    max-width: 280px;
    transform: rotate(0deg);
  }

  .author-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .author-image-wrap {
    max-width: 320px;
    margin: 0 auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-links nav {
    text-align: left;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px 24px;
  }

  .contact-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }
}

@media (max-width: 640px) {
  .chapter-header {
    padding: 24px;
  }

  .chapter-body {
    padding: 32px 24px;
  }

  .hero-content {
    padding: 80px 0 120px;
  }

  .hero-cta-group {
    flex-direction: column;
  }

  .btn {
    text-align: center;
    justify-content: center;
  }

  .pillars-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-strip-links {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .pillars-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   PRINT / ACCESSIBILITY
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}