/* ==========================================================================
   Cost Segregation Book Site - Complete Stylesheet
   "Should I Get a Cost Segregation Study?" by AE Tax Advisors

   Brand Colors:
   - Navy:       #1B2A4A
   - Gold:       #C5A55A
   - White:      #FFFFFF
   - Light Gray: #F5F5F0
   - Dark Text:  #333333
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333333;
  background-color: #FFFFFF;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

a {
  color: #C5A55A;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #1B2A4A;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  color: #1B2A4A;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 15px;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 15px;
}

/* --------------------------------------------------------------------------
   Layout Container
   -------------------------------------------------------------------------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --------------------------------------------------------------------------
   Sticky Navigation
   -------------------------------------------------------------------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #1B2A4A;
  padding: 15px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  color: #FFFFFF;
  font-size: 1.3rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.5px;
}

.logo:hover {
  color: #C5A55A;
}

.logo span {
  color: #C5A55A;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #FFFFFF;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 5px;
  line-height: 1;
}

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

.nav-links a {
  color: #FFFFFF;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a:hover {
  color: #C5A55A;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #C5A55A;
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  line-height: 1.5;
}

.btn-gold {
  background-color: #C5A55A;
  color: #1B2A4A;
}

.btn-gold:hover {
  background-color: #b8973f;
  color: #1B2A4A;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(197, 165, 90, 0.4);
}

.btn-navy {
  background-color: #1B2A4A;
  color: #FFFFFF;
}

.btn-navy:hover {
  background-color: #142039;
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(27, 42, 74, 0.4);
}

.btn-outline {
  border: 2px solid #C5A55A;
  color: #C5A55A;
  background-color: transparent;
}

.btn-outline:hover {
  background-color: #C5A55A;
  color: #1B2A4A;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.1rem;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
  background-color: #1B2A4A;
  color: #FFFFFF;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(27, 42, 74, 1) 0%, rgba(27, 42, 74, 0.9) 100%);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.hero-text {
  flex: 1;
}

.hero h1 {
  font-size: 2.8rem;
  color: #FFFFFF;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero .subtitle {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 30px;
  line-height: 1.6;
}

.hero .hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.hero-author {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 25px;
  font-weight: 400;
  letter-spacing: 0.5px;
}

.book-cover {
  width: 300px;
  min-width: 300px;
  height: 400px;
  perspective: 800px;
  flex-shrink: 0;
}

.book-cover-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform: rotateY(-8deg);
  transform-style: preserve-3d;
  box-shadow: 15px 10px 40px rgba(0, 0, 0, 0.5), 2px 2px 10px rgba(0, 0, 0, 0.3);
  border-radius: 0 6px 6px 0;
}

.book-cover-spine {
  position: absolute;
  left: -20px;
  top: 0;
  width: 20px;
  height: 100%;
  background: linear-gradient(to right, #0f1a30, #1B2A4A);
  transform: rotateY(90deg);
  transform-origin: right;
  border-radius: 4px 0 0 4px;
}

.book-cover-front {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #1B2A4A 0%, #0f1a30 100%);
  border: 3px solid #C5A55A;
  border-radius: 0 6px 6px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  position: relative;
  overflow: hidden;
}

.book-cover-front::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  bottom: 15px;
  border: 1px solid rgba(197, 165, 90, 0.3);
  border-radius: 4px;
  pointer-events: none;
}

.book-cover-content {
  text-align: center;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 10px;
}

.book-cover-title {
  color: #FFFFFF;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 15px;
  letter-spacing: 0.3px;
}

.book-cover-divider {
  width: 50px;
  height: 2px;
  background-color: #C5A55A;
  margin: 0 auto 15px;
}

.book-cover-subtitle {
  color: #C5A55A;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: auto;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.book-cover-author {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(197, 165, 90, 0.25);
  width: 100%;
}

/* --------------------------------------------------------------------------
   Section Styling
   -------------------------------------------------------------------------- */
.section {
  padding: 60px 0;
}

.section-alt {
  background-color: #F5F5F0;
}

.section-title {
  text-align: center;
  color: #1B2A4A;
  font-size: 2rem;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: #C5A55A;
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  color: #555;
  font-size: 1.1rem;
  max-width: 700px;
  margin: -20px auto 40px;
  line-height: 1.7;
}

.learn-section {
  padding: 70px 0;
}

.learn-section h2 {
  text-align: center;
  margin-bottom: 15px;
}

.section-intro {
  text-align: center;
  color: #555;
  font-size: 1.05rem;
  max-width: 700px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.audience-section {
  padding: 70px 0;
  background-color: #F5F5F0;
}

.audience-section h2 {
  text-align: center;
  margin-bottom: 15px;
}

.testimonials-section {
  padding: 70px 0;
}

.testimonials-section h2 {
  text-align: center;
  margin-bottom: 40px;
}

/* --------------------------------------------------------------------------
   Card Layouts
   -------------------------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.card {
  background: #FFFFFF;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.card h3 {
  color: #1B2A4A;
  margin-bottom: 10px;
}

.card p {
  color: #555;
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 15px;
  display: block;
}

.card-number {
  display: inline-block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #C5A55A;
  color: #1B2A4A;
  font-weight: 700;
  text-align: center;
  line-height: 40px;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

/* --------------------------------------------------------------------------
   Chapter List
   -------------------------------------------------------------------------- */
.chapter-card {
  background: #FFFFFF;
  border-left: 4px solid #C5A55A;
  padding: 25px 30px;
  margin-bottom: 20px;
  border-radius: 0 8px 8px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: border-left-color 0.3s ease, transform 0.3s ease;
}

.chapter-card:hover {
  border-left-color: #1B2A4A;
  transform: translateX(5px);
}

.chapter-card h3 {
  color: #1B2A4A;
  margin-bottom: 8px;
}

.chapter-card .meta {
  color: #888;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.chapter-card p {
  color: #555;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Calculator
   -------------------------------------------------------------------------- */
.calculator-container {
  max-width: 800px;
  margin: 0 auto;
}

.calc-form {
  background: #FFFFFF;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #1B2A4A;
  font-size: 0.95rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background-color: #FFFFFF;
}

.form-group input:focus,
.form-group select:focus {
  border-color: #C5A55A;
  outline: none;
  box-shadow: 0 0 0 3px rgba(197, 165, 90, 0.2);
}

.form-group input::placeholder {
  color: #aaa;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.calc-results {
  background: #1B2A4A;
  color: #FFFFFF;
  padding: 40px;
  border-radius: 8px;
  margin-top: 30px;
}

.calc-results.hidden {
  display: none;
}

.calc-results h3 {
  color: #FFFFFF;
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.4rem;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.result-item {
  text-align: center;
  padding: 20px;
}

.result-item .result-value {
  font-size: 2rem;
  font-weight: 700;
  color: #C5A55A;
  display: block;
}

.result-item .result-label {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-top: 5px;
  display: block;
}

.result-highlight {
  background: rgba(197, 165, 90, 0.15);
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  margin-top: 20px;
}

.result-highlight .result-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: #C5A55A;
}

.result-highlight .result-label {
  font-size: 1rem;
  opacity: 0.9;
  margin-top: 8px;
}

/* --------------------------------------------------------------------------
   Blog Grid
   -------------------------------------------------------------------------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.blog-card {
  background: #FFFFFF;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.blog-header-image {
  width: 100%;
  height: 200px;
  background-color: #1B2A4A;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #C5A55A;
  font-size: 3rem;
}

.blog-card-body {
  padding: 25px;
}

.blog-card h3 {
  color: #1B2A4A;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.blog-card .blog-meta {
  color: #888;
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.blog-card .blog-excerpt {
  color: #555;
  line-height: 1.6;
  margin-bottom: 10px;
}

.blog-card .read-more {
  color: #C5A55A;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  margin-top: 15px;
  transition: color 0.3s ease;
}

.blog-card .read-more:hover {
  color: #1B2A4A;
}

/* --------------------------------------------------------------------------
   Blog Post (Single)
   -------------------------------------------------------------------------- */
.post-content {
  max-width: 750px;
  margin: 0 auto;
}

.post-header {
  text-align: center;
  margin-bottom: 40px;
  padding-top: 20px;
}

.post-header h1 {
  font-size: 2.2rem;
  color: #1B2A4A;
  line-height: 1.3;
}

.post-header .post-meta {
  color: #888;
  margin-top: 10px;
  font-size: 0.95rem;
}

.post-content h2 {
  color: #1B2A4A;
  margin-top: 40px;
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.post-content h3 {
  color: #1B2A4A;
  margin-top: 30px;
  margin-bottom: 10px;
}

.post-content p {
  margin-bottom: 18px;
  line-height: 1.8;
}

.post-content ul,
.post-content ol {
  margin-bottom: 18px;
  padding-left: 25px;
}

.post-content li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.post-content blockquote {
  border-left: 4px solid #C5A55A;
  padding: 15px 20px;
  margin: 25px 0;
  background-color: #F5F5F0;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #555;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 25px 0;
}

.post-content th {
  background-color: #1B2A4A;
  color: #FFFFFF;
  padding: 12px 15px;
  text-align: left;
  font-weight: 600;
}

.post-content td {
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
}

.post-content tr:hover td {
  background-color: #f9f9f5;
}

.share-buttons {
  display: flex;
  gap: 10px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.share-btn {
  padding: 8px 20px;
  border-radius: 4px;
  color: #FFFFFF;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.share-btn:hover {
  opacity: 0.85;
  color: #FFFFFF;
}

.share-btn-twitter {
  background-color: #1DA1F2;
}

.share-btn-linkedin {
  background-color: #0077B5;
}

.share-btn-facebook {
  background-color: #4267B2;
}

.share-btn-email {
  background-color: #555;
}

/* --------------------------------------------------------------------------
   FAQ Accordion
   -------------------------------------------------------------------------- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid #eee;
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: 20px 0;
  text-align: left;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 600;
  color: #1B2A4A;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
  line-height: 1.4;
  gap: 15px;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: #C5A55A;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  font-weight: 300;
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  padding: 0 0 20px;
  color: #555;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial {
  background: #FFFFFF;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  position: relative;
}

.testimonial::before {
  content: '\201C';
  font-size: 4rem;
  color: #C5A55A;
  opacity: 0.3;
  position: absolute;
  top: 10px;
  left: 15px;
  line-height: 1;
  font-family: Georgia, serif;
}

.testimonial p {
  margin-bottom: 15px;
  color: #555;
  line-height: 1.7;
}

.testimonial-text {
  font-style: italic;
  color: #555;
  line-height: 1.7;
  padding-top: 20px;
  margin-bottom: 15px;
}

.testimonial-author {
  font-weight: 600;
  color: #1B2A4A;
  font-style: normal;
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Who This Book Is For (Audience)
   -------------------------------------------------------------------------- */
.audience-list {
  list-style: none;
  max-width: 600px;
  margin: 0 auto;
}

.audience-list li {
  padding: 12px 0 12px 35px;
  position: relative;
  font-size: 1.05rem;
  color: #333;
}

.audience-list li::before {
  content: '\2713';
  color: #C5A55A;
  position: absolute;
  left: 0;
  font-weight: 700;
  font-size: 1.2rem;
}

/* --------------------------------------------------------------------------
   CTA Section
   -------------------------------------------------------------------------- */
.cta-section {
  background-color: #1B2A4A;
  color: #FFFFFF;
  text-align: center;
  padding: 60px 0;
}

.cta-section h2 {
  color: #FFFFFF;
  margin-bottom: 15px;
  font-size: 2rem;
}

.cta-section p {
  margin-bottom: 25px;
  opacity: 0.85;
  font-size: 1.1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 30px;
}

.cta-section .btn {
  margin: 0 8px;
}

/* --------------------------------------------------------------------------
   About / Services
   -------------------------------------------------------------------------- */
.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-content p {
  line-height: 1.8;
  margin-bottom: 18px;
  color: #555;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.service-item {
  padding: 25px;
  background: #FFFFFF;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.service-item:hover {
  transform: translateY(-3px);
}

.service-item h3 {
  margin-bottom: 10px;
}

.service-item p {
  color: #555;
  font-size: 0.95rem;
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  display: block;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  background-color: #111827;
  color: #FFFFFF;
  padding: 50px 0 20px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h3 {
  color: #C5A55A;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.footer-col p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.7;
}

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

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

.footer-col ul a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.95rem;
}

.footer-col ul a:hover {
  color: #C5A55A;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   Utility Classes
   -------------------------------------------------------------------------- */
.text-center {
  text-align: center;
}

.text-gold {
  color: #C5A55A;
}

.text-navy {
  color: #1B2A4A;
}

.text-white {
  color: #FFFFFF;
}

.mb-10 {
  margin-bottom: 10px;
}

.mb-20 {
  margin-bottom: 20px;
}

.mb-30 {
  margin-bottom: 30px;
}

.mb-40 {
  margin-bottom: 40px;
}

.mt-20 {
  margin-top: 20px;
}

.mt-40 {
  margin-top: 40px;
}

.pt-20 {
  padding-top: 20px;
}

.pb-20 {
  padding-bottom: 20px;
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in-up {
  animation: fadeInUp 0.5s ease forwards;
}

.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Responsive - Tablet and Below (768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  /* Navigation */
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #1B2A4A;
    padding: 20px;
    gap: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  }

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

  .nav-links a::after {
    display: none;
  }

  /* Hero */
  .hero {
    padding: 50px 0;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero .subtitle {
    font-size: 1.1rem;
  }

  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

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

  .book-cover {
    width: 220px;
    min-width: 220px;
    height: 300px;
  }

  .book-cover-title {
    font-size: 1.1rem;
  }

  /* Sections */
  .section {
    padding: 40px 0;
  }

  .section-title {
    font-size: 1.6rem;
    margin-bottom: 30px;
  }

  .section-subtitle {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  /* Grids */
  .card-grid {
    grid-template-columns: 1fr;
  }

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

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

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

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

  /* Calculator */
  .form-row {
    grid-template-columns: 1fr;
  }

  .calc-form {
    padding: 25px;
  }

  .calc-results {
    padding: 25px;
  }

  .result-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .result-item .result-value {
    font-size: 1.6rem;
  }

  .result-highlight .result-value {
    font-size: 2rem;
  }

  /* Blog post */
  .post-header h1 {
    font-size: 1.7rem;
  }

  /* Typography */
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }

  /* CTA */
  .cta-section {
    padding: 40px 0;
  }

  .cta-section h2 {
    font-size: 1.6rem;
  }

  .cta-section .btn {
    display: block;
    margin: 10px auto;
    max-width: 280px;
  }

  /* Chapter cards */
  .chapter-card {
    padding: 20px;
  }

  /* Share buttons */
  .share-buttons {
    flex-direction: column;
  }

  .share-btn {
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   Responsive - Small Mobile (480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.6rem;
  }

  .hero .subtitle {
    font-size: 1rem;
  }

  .book-cover {
    width: 180px;
    min-width: 180px;
    height: 250px;
  }

  .book-cover-title {
    font-size: 0.95rem;
  }

  .btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
  }

  .faq-question {
    font-size: 0.95rem;
  }

  .container {
    padding: 0 15px;
  }
}

/* Expanded book guide */
.book-depth { padding: 80px 24px; background: color-mix(in srgb, var(--primary, #17233b) 4%, #fff); color: var(--text, #1d2533); }
.book-depth__inner { width: min(1120px, 100%); margin: 0 auto; }
.book-depth__eyebrow { display:block; margin-bottom:10px; font-size:.76rem; font-weight:800; letter-spacing:.16em; text-transform:uppercase; color:var(--accent, #9b6b24); }
.book-depth h2 { max-width:850px; margin:0 0 20px; font-size:clamp(2rem,4vw,3.35rem); line-height:1.08; color:var(--primary, #17233b); }
.book-depth__lead { max-width:880px; margin:0 0 18px; font-size:1.08rem; line-height:1.8; }
.book-depth__note { max-width:880px; margin:0 0 40px; padding:18px 20px; border-left:4px solid var(--accent, #9b6b24); background:#fff; line-height:1.7; }
.book-depth__grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; margin:28px 0 58px; }
.book-depth__card { padding:24px; border:1px solid rgba(20,30,50,.12); border-radius:14px; background:#fff; box-shadow:0 8px 24px rgba(20,30,50,.05); }
.book-depth__card h3 { margin:0 0 10px; font-size:1.2rem; color:var(--primary, #17233b); }
.book-depth__card p { margin:0 0 12px; line-height:1.7; }
.book-depth__card strong { display:block; font-size:.88rem; line-height:1.55; color:var(--accent, #8a5c16); }
.book-depth__subhead { margin:0 0 20px; font-size:clamp(1.55rem,3vw,2.25rem); color:var(--primary, #17233b); }
.book-depth__faq { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px 26px; margin-bottom:54px; }
.book-depth__faq div { padding:18px 0; border-top:1px solid rgba(20,30,50,.16); }
.book-depth__faq h3 { margin:0 0 8px; font-size:1.05rem; color:var(--primary, #17233b); }
.book-depth__faq p { margin:0; line-height:1.68; }
.book-depth__links { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.book-depth__link { display:block; padding:22px; border-radius:12px; background:var(--primary, #17233b); color:#fff !important; text-decoration:none !important; }
.book-depth__link b { display:block; margin-bottom:8px; font-size:1.05rem; }
.book-depth__link span { display:block; color:rgba(255,255,255,.82); line-height:1.55; }
@media (max-width:760px){.book-depth{padding:60px 20px}.book-depth__grid,.book-depth__faq,.book-depth__links{grid-template-columns:1fr}}
.book-workshop { padding:80px 24px; background:#fff; color:var(--text, #1d2533); }
.book-workshop h2 { max-width:850px; margin:0 0 20px; font-size:clamp(2rem,4vw,3.15rem); line-height:1.08; color:var(--primary, #17233b); }
.book-workshop__grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; margin:34px 0 44px; }
.book-workshop__grid article { padding:24px; border-top:4px solid var(--accent, #9b6b24); background:color-mix(in srgb, var(--primary, #17233b) 4%, #fff); }
.book-workshop__grid span { display:block; margin-bottom:12px; font-size:.7rem; font-weight:800; letter-spacing:.16em; color:var(--accent, #8a5c16); }
.book-workshop__grid h3 { margin:0 0 10px; font-size:1.16rem; color:var(--primary, #17233b); }
.book-workshop__grid p,.book-workshop__plan p { margin:0; line-height:1.72; }
.book-workshop__plan { padding:28px; border-radius:14px; background:var(--primary, #17233b); color:#fff; }
.book-workshop__plan h3 { margin:0 0 16px; color:#fff; font-size:1.45rem; }
.book-workshop__plan p + p { margin-top:14px; }
@media (max-width:900px){.book-workshop__grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:760px){.book-depth,.book-workshop{padding:60px 20px}.book-depth__grid,.book-depth__faq,.book-depth__links,.book-workshop__grid{grid-template-columns:1fr}}
.tax-dossier{padding:80px 24px;background:color-mix(in srgb,var(--primary,#17233b) 7%,#fff)}
.tax-dossier h2{max-width:850px;margin:0 0 20px;font-size:clamp(2rem,4vw,3.15rem);line-height:1.08;color:var(--primary,#17233b)}
.tax-dossier__grid,.tax-dossier__issues{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:34px 0 54px}
.tax-dossier__grid article,.tax-dossier__issues article{padding:24px;border:1px solid rgba(20,30,50,.13);border-radius:14px;background:#fff}
.tax-dossier__grid span{display:block;margin-bottom:10px;font-size:.7rem;font-weight:800;letter-spacing:.14em;color:var(--accent,#8a5c16)}
.tax-dossier h3{margin:0 0 10px;color:var(--primary,#17233b)}
.tax-dossier article p{margin:0;line-height:1.72}.tax-dossier article p+p{margin-top:12px}
.tax-dossier__calendar{padding:30px;border-radius:14px;background:var(--primary,#17233b);color:#fff}.tax-dossier__calendar h3{color:#fff;font-size:1.45rem}.tax-dossier__calendar p{margin:0;line-height:1.72}.tax-dossier__calendar p+p{margin-top:14px}
@media (max-width:900px){.book-workshop__grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:760px){.book-depth,.book-workshop,.tax-dossier{padding:60px 20px}.book-depth__grid,.book-depth__faq,.book-depth__links,.book-workshop__grid,.tax-dossier__grid,.tax-dossier__issues{grid-template-columns:1fr}}
.book-depth__essay { max-width:920px; margin:26px 0 34px; columns:2; column-gap:34px; }
.book-depth__essay p { margin:0 0 18px; break-inside:avoid; line-height:1.78; }
@media(max-width:760px){.book-depth__essay{columns:1}}
/* Visual accessibility polish */
h1,h2,h3{text-wrap:balance}
::selection{background:rgba(184,137,42,.25);color:#172033}
:where(a,button,input,select,textarea,summary):focus-visible{outline:3px solid #b8892a;outline-offset:3px;border-radius:4px}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}

/* Visual refinement 2026-10: preserve the existing brand, layout and content. */
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
h1, h2, h3 { text-wrap: balance; }
p, blockquote { text-wrap: pretty; }
:where(a, button, input, select, textarea):focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
:where(article, .content, .article-content) a { text-underline-offset: .2em; text-decoration-thickness: 1px; }
:where(.hero-grid, .features-grid, .cards-grid, .grid, .footer-grid) > * { min-width: 0; }
@media (max-width: 600px) { input, select, textarea { font-size: 16px; } :where(.hero-cta, .hero-actions, .cta-actions) { flex-wrap: wrap; row-gap: 12px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; } }

.card, .blog-card, .book-depth__card { box-shadow: 0 1px 2px rgba(15,23,42,.035), 0 10px 30px rgba(15,23,42,.055); }

.btn, .btn-outline, .btn-gold { transition: background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease; }

h1 { letter-spacing: -.025em; } h2 { letter-spacing: -.018em; } .hero-subtitle { line-height: 1.75; }
.book-cover { box-shadow: 0 4px 10px rgba(0,0,0,.12), 0 24px 48px rgba(0,0,0,.24); }
