/* ==========================================================================
   EQUINE WEALTH — OFFICIAL STYLESHEET
   Vanilla CSS3 | Luxury Equestrian & Wealth Theme
   100% Mobile Responsive | Zero Horizontal Overflow | Zero Dependencies
   ========================================================================== */

/* --- 1. Design Tokens --- */
:root {
  /* Equestrian Luxury Palette (Exact Reference Match) */
  --color-bg-dark: #1F140E;        /* Deep Barn Espresso */
  --color-bg-dark-alt: #2C1E16;    /* Rich Leather Brown */
  --color-bg-dark-surface: #3B2818;
  --color-bg-light: #F9F6F0;       /* Pristine Saddle Cream */
  --color-surface: #FFFFFF;        /* Pure Crisp White */

  --color-gold: #E5B962;           /* Warm Luxury Equestrian Gold */
  --color-gold-hover: #D4A548;     /* Deep Polished Brass */
  --color-gold-active: #BF8E32;
  --color-gold-subtle: rgba(229, 185, 98, 0.15);

  --color-text-dark: #241810;      /* Deep Equestrian Timber */
  --color-text-body: #4A3B31;      /* Warm Saddle Charcoal */
  --color-text-muted: #7E6B5E;     /* Muted Leather Tan */
  --color-text-light: #FFFFFF;     /* Crisp White */
  --color-text-cream: #EAE1D7;     /* Off-White Subtitle */

  --color-border: #E8DFD3;         /* Natural Linen Border */
  --color-border-dark: rgba(229, 185, 98, 0.25);

  /* Typography (Luxury Equestrian Editorial & Clean UI) */
  --font-brand: 'Cinzel', Georgia, 'Times New Roman', serif;
  --font-serif: 'Lora', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(31, 20, 14, 0.06);
  --shadow-md: 0 8px 24px rgba(31, 20, 14, 0.12);
  --shadow-lg: 0 16px 40px rgba(31, 20, 14, 0.18);
  --shadow-gold: 0 4px 20px rgba(229, 185, 98, 0.35);

  /* Layout */
  --container-max: 1220px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.18s ease;
  --transition-normal: 0.28s ease;
}

/* --- 2. CSS Reset & Baseline --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-x: clip;
  width: 100%;
  max-width: 100vw;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg-light);
  color: var(--color-text-body);
  line-height: 1.6;
  overflow-x: hidden;
  overflow-x: clip;
  width: 100%;
  max-width: 100vw;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: transparent;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -60px;
  left: 20px;
  background: var(--color-gold);
  color: var(--color-bg-dark);
  padding: 8px 16px;
  z-index: 9999;
  border-radius: var(--radius-sm);
  transition: top var(--transition-fast);
  font-weight: 700;
}
.skip-link:focus {
  top: 15px;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 3.5vw, 2.5rem);
  padding-right: clamp(1rem, 3.5vw, 2.5rem);
}

/* --- 3. Buttons --- */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background-color: var(--color-gold);
  color: var(--color-bg-dark);
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow-gold);
  cursor: pointer;
  white-space: nowrap;
}

.btn-gold:hover {
  background-color: var(--color-gold-hover);
  box-shadow: 0 6px 24px rgba(229, 185, 98, 0.45);
}

.btn-gold-lg {
  padding: 1rem 2.4rem;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  border-radius: var(--radius-sm);
}

/* --- 4. Header & Navbar (Exact Reference Match) --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(26, 16, 11, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(229, 185, 98, 0.15);
  height: 76px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

/* Logo with Horse Head Silhouette */
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  min-width: max-content;
}

.logo-icon-svg,
.logo-icon-img {
  width: 32px;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.feature-bar-icon-img {
  width: 28px;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.logo-text-block {
  display: flex;
  flex-direction: column;
}

.logo-brand {
  font-family: var(--font-brand);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #FFFFFF;
  text-transform: uppercase;
  line-height: 1.1;
}

.logo-tagline {
  font-family: var(--font-sans);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  color: var(--color-gold);
  text-transform: uppercase;
  font-weight: 600;
  line-height: 1.2;
}

/* Desktop Links */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2.2rem);
}

.nav-desktop a {
  font-size: 0.88rem;
  font-weight: 500;
  color: #EDE4DC;
  transition: color var(--transition-fast);
  white-space: nowrap;
}

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

.header-action {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.header-cta-btn {
  padding: 0.55rem 1.15rem;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  border-radius: var(--radius-sm);
}

.nav-toggle {
  display: none;
  padding: 0.4rem;
  color: var(--color-gold);
}

/* Mobile Slide-out Menu */
.mobile-nav {
  display: none;
  position: fixed;
  top: 76px;
  left: 0;
  right: 0;
  width: 100%;
  background: var(--color-bg-dark);
  border-bottom: 2px solid var(--color-gold);
  padding: 1.5rem;
  flex-direction: column;
  gap: 1rem;
  z-index: 999;
  box-shadow: var(--shadow-lg);
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav a {
  font-size: 1.05rem;
  font-weight: 600;
  color: #FFFFFF;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(229, 185, 98, 0.15);
}

/* --- 5. Hero Section (The Hook) --- */
.hero-section {
  position: relative;
  background: 
    linear-gradient(to right, rgba(20, 12, 8, 0.78) 0%, rgba(31, 20, 14, 0.48) 50%, rgba(20, 12, 8, 0.80) 100%),
    url('../assets/hero-bg.jpg') center top / cover no-repeat;
  background-color: var(--color-bg-dark);
  padding: clamp(3.5rem, 6vw, 5.5rem) 0;
  color: #FFFFFF;
  overflow: hidden;
  border-bottom: 1px solid rgba(229, 185, 98, 0.2);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.hero-content {
  max-width: 640px;
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4.8vw, 4.1rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  font-variant-numeric: lining-nums proportional-nums;
  margin-bottom: 1.2rem;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.6);
}

.headline-white {
  color: #FFFFFF;
  display: block;
}

.headline-gold {
  color: #F3C66E;
  display: block;
  text-shadow: 0 2px 12px rgba(243, 198, 110, 0.3), 0 3px 8px rgba(0, 0, 0, 0.7);
}

.hero-subheadline {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  line-height: 1.6;
  color: var(--color-text-cream);
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero-cta-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
  margin-bottom: 1.6rem;
}

/* Trust Badges directly below button */
.trust-badges-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.75rem, 1.8vw, 1.8rem);
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: #EAE1D7;
}

.trust-badge-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 500;
}

.trust-badge-item svg {
  color: #F3C66E;
  flex-shrink: 0;
}

/* Hero Book Mockup Image */
.hero-book-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-book-wrap::before {
  content: '';
  position: absolute;
  width: 75%;
  height: 75%;
  background: radial-gradient(circle, rgba(229, 185, 98, 0.18) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-book-img {
  position: relative;
  z-index: 1;
  max-width: 100%;
  width: clamp(270px, 26vw, 345px);
  height: auto;
  filter: drop-shadow(-18px 24px 34px rgba(0, 0, 0, 0.8)) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
  transition: transform var(--transition-normal), filter var(--transition-normal);
  will-change: transform;
}

.hero-book-img:hover {
  transform: translateY(-6px) scale(1.02);
  filter: drop-shadow(-22px 30px 42px rgba(0, 0, 0, 0.9)) drop-shadow(0 6px 16px rgba(229, 185, 98, 0.25));
}

/* --- 6. ROI Comparison Section (The Table) --- */
.roi-section {
  background-color: var(--color-bg-light);
  padding: clamp(3.8rem, 6.5vw, 6rem) 0;
  position: relative;
}

.roi-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.35fr;
  gap: clamp(2rem, 4.5vw, 4rem);
  align-items: center;
}

/* Left Column Text */
.roi-left-content {
  max-width: 440px;
}

.roi-eyebrow {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 800;
  color: #B58434;
  margin-bottom: 0.75rem;
  display: block;
}

.roi-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  color: var(--color-text-dark);
  font-weight: 700;
  line-height: 1.18;
  margin-bottom: 1.1rem;
}

.roi-desc {
  font-size: 1.02rem;
  color: var(--color-text-body);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.roi-points-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.roi-point-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-dark);
}

.roi-point-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(181, 132, 52, 0.14);
  border: 1px solid rgba(181, 132, 52, 0.28);
  color: #9E6F22;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(181, 132, 52, 0.08);
}

/* Right Column Table */
.roi-table-wrap {
  width: 100%;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.roi-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-size: 0.95rem;
}

/* Table Header */
.roi-table thead tr {
  background-color: var(--color-bg-dark-alt);
  color: #FFFFFF;
}

.roi-table th {
  padding: 1.1rem 0.9rem;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}
.roi-table th:last-child {
  border-right: none;
}
.roi-table th:first-child {
  text-align: left;
  padding-left: 1.4rem;
}

/* Table Body Rows */
.roi-table tbody tr {
  border-bottom: 1px solid var(--color-border);
  transition: background-color var(--transition-fast);
}
.roi-table tbody tr:last-child {
  border-bottom: none;
}
.roi-table tbody tr:hover {
  background-color: #FAF7F2;
}

.roi-table td {
  padding: 1rem 0.9rem;
  color: var(--color-text-body);
  font-weight: 600;
  border-right: 1px solid var(--color-border);
}
.roi-table td:last-child {
  border-right: none;
  color: var(--color-text-dark);
  font-weight: 700;
}

.table-category-cell {
  text-align: left;
  padding-left: 1.4rem !important;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-text-dark) !important;
  font-weight: 700 !important;
}

.category-icon {
  width: 22px;
  height: 22px;
  color: #9C7436;
  flex-shrink: 0;
}

/* Table Footer Row Highlight (Exact Reference Match) */
.roi-table tfoot tr {
  background-color: var(--color-bg-dark-alt);
  color: #FFFFFF;
}

.roi-table tfoot th,
.roi-table tfoot td {
  padding: 1.15rem 0.9rem;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  font-size: 1.05rem;
  background-color: var(--color-bg-dark-alt);
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  border-top: none;
}

.roi-table tfoot th.roi-table-total-label {
  text-align: left;
  padding-left: 1.4rem !important;
  font-weight: 800 !important;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #FFFFFF !important;
}

.roi-table tfoot td.roi-table-savings-highlight {
  background-color: var(--color-gold) !important;
  color: var(--color-bg-dark) !important;
  font-weight: 900 !important;
  font-size: 1.25rem !important;
  border-right: none;
  border-top: none !important;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.08);
}

/* --- 7. Features / Benefits Bar --- */
.features-bar-section {
  background-color: var(--color-bg-light);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 2.5rem 0;
}

.features-bar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr) 1.2fr;
  gap: 1.5rem;
  align-items: center;
}

.feature-bar-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.feature-bar-icon,
.feature-bar-icon-img {
  width: 28px;
  height: 28px;
  color: #4A3B31;
  flex-shrink: 0;
  margin-top: 2px;
  object-fit: contain;
}

.feature-bar-text h4 {
  font-size: 0.95rem;
  color: var(--color-text-dark);
  font-weight: 800;
  margin-bottom: 0.2rem;
  line-height: 1.2;
}

.feature-bar-text p {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* Right Distressed Brush Badge */
.brush-badge-wrap {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.brush-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.15rem 3.4rem 1.05rem;
  min-width: 285px;
}

.brush-badge-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  z-index: 0;
}

.brush-badge-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.18rem;
}

.brush-line-1,
.brush-line-2 {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
  font-size: 0.98rem;
  color: #FFFFFF;
  line-height: 1.25;
  white-space: nowrap;
}

.brush-gold-rule {
  display: block;
  width: 40px;
  height: 2px;
  background-color: var(--color-gold);
  margin-top: 4px;
  border-radius: 1px;
}

/* --- 8. Final CTA Section (Footer Area) --- */
.final-cta-section {
  position: relative;
  background: 
    radial-gradient(circle at 18% 50%, rgba(229, 185, 98, 0.18) 0%, rgba(229, 185, 98, 0.05) 42%, transparent 70%),
    linear-gradient(rgba(24, 15, 10, 0.76), rgba(24, 15, 10, 0.86)),
    url('../assets/footer-bg.jpg') center bottom / cover no-repeat;
  background-color: var(--color-bg-dark);
  padding: clamp(4rem, 7vw, 6.5rem) 0 2.5rem;
  color: #FFFFFF;
  text-align: center;
  border-top: 2px solid rgba(229, 185, 98, 0.3);
}

.final-cta-content {
  max-width: 950px;
  margin: 0 auto 3rem;
}

.final-cta-headline {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 3.1vw, 2.75rem);
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.final-cta-subtext {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--color-text-cream);
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* Clean Footer Bottom */
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: #A69688;
}

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

.footer-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

/* --- 9. Responsive Breakpoints --- */

/* Tablets (<= 1024px) */
@media (max-width: 1024px) {
  .nav-desktop, .header-cta-btn {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-content {
    margin: 0 auto;
  }

  .trust-badges-row {
    justify-content: center;
  }

  .roi-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .roi-left-content {
    max-width: 100%;
    text-align: center;
  }

  .roi-points-list {
    align-items: center;
  }

  .features-bar-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .brush-badge-wrap {
    grid-column: span 2;
    justify-content: center;
  }
}

/* Mobile Screens (<= 640px) */
@media (max-width: 640px) {
  .hero-section {
    padding: 3rem 0;
  }

  .trust-badges-row {
    flex-direction: column;
    gap: 0.65rem;
  }

  .roi-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .roi-table {
    min-width: 540px; /* guarantees table readability with horizontal scroll */
  }

  .features-bar-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .brush-badge-wrap {
    grid-column: span 1;
  }

  .brush-badge {
    white-space: normal;
    font-size: 0.95rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-nav {
    justify-content: center;
  }
}
