/* ==========================================================================
   Shakti Theme v3 - bhaktiyoga.es
   Design system based on the Shakti Krishna Temple WordPress theme.
   Warm, devotional, bold. Burgundy red, gold accents, cream backgrounds.
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
  /* Backgrounds */
  --bg-primary: #FAF7ED;
  --bg-secondary: #FFFFFF;
  --bg-white: #FFFFFF;
  --bg-dark: #270D0D;

  /* Text */
  --text-dark: #270D0D;
  --text-muted: #7A6B6B;
  --text-light: #FFFFFF;

  /* Accents */
  --accent-primary: #BC2122;
  --accent-primary-hover: #A32021;
  --accent-orange: #F87F18;
  --accent-gold: #FFB700;

  /* Legacy alias so any stray var(--accent-olive) still resolves */
  --accent-olive: #BC2122;
  --accent-olive-hover: #A32021;
  --accent-blue: #8B9DAB;
  --accent-copper: #B8856C;

  /* Divider */
  --divider: #E5DFD6;

  /* Typography */
  --font-heading: 'Roboto Slab', 'Georgia', serif;
  --font-body: 'Roboto', 'Helvetica Neue', sans-serif;
  --font-nav: 'Kumbh Sans', 'Roboto', sans-serif;

  /* Layout */
  --container-max: 1290px;
  --container-padding: 2rem;
  --section-spacing: 5rem;
  --card-radius: 6px;
  --card-shadow: 0px 12px 45px rgba(0, 0, 0, 0.05);
  --card-shadow-hover: 0px 16px 50px rgba(0, 0, 0, 0.10);

  /* Transitions */
  --transition: 0.3s ease;
}

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */
*,
*::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;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.75;
  color: var(--text-dark);
  background-color: var(--bg-primary);
}

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

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  text-decoration: underline;
}

ul,
ol {
  list-style: none;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text-dark);
  margin-bottom: 0.5em;
}

h1 {
  font-size: 2.5rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1.125rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1em;
}

strong {
  font-weight: 600;
}

em {
  font-style: italic;
}

small {
  font-size: 0.875rem;
}

/* --------------------------------------------------------------------------
   Divider
   -------------------------------------------------------------------------- */
hr,
.divider {
  border: none;
  height: 1px;
  background-color: var(--divider);
  margin: 2rem 0;
}

/* --------------------------------------------------------------------------
   Layout: Container
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

/* --------------------------------------------------------------------------
   Site Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--bg-white);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 77px;
}

/* --------------------------------------------------------------------------
   Logo
   -------------------------------------------------------------------------- */
.logo {
  font-family: var(--font-nav);
  font-weight: 700;
  font-size: 1.375rem;
  color: var(--text-dark);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: opacity var(--transition);
}

.logo:hover {
  text-decoration: none;
  opacity: 0.85;
}

.logo img {
  height: 36px;
  width: auto;
}

/* --------------------------------------------------------------------------
   Main Navigation
   -------------------------------------------------------------------------- */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.main-nav > ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.main-nav a {
  font-family: var(--font-nav);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dark);
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.35em;
  white-space: nowrap;
  transition: color var(--transition);
}

.main-nav a:hover {
  color: var(--accent-primary);
  text-decoration: none;
}

/* Active nav state */
.main-nav .active > a {
  color: var(--accent-primary);
}

/* Dropdown arrow SVG */
.dropdown-arrow {
  display: inline-block;
  width: 10px;
  height: 6px;
  flex-shrink: 0;
  transition: transform var(--transition);
}

/* Dropdown support */
.main-nav .has-dropdown {
  position: relative;
}

.main-nav .has-dropdown > a::after {
  display: none;
}

.main-nav .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background-color: var(--bg-white);
  border-radius: 6px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
  z-index: 100;
}

@media (hover: hover) {
  .main-nav .has-dropdown:hover > .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .main-nav .has-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
  }
}

.main-nav .dropdown a {
  padding: 0.5rem 1.25rem;
  font-size: 0.8125rem;
  letter-spacing: 0;
  text-transform: none;
}

.main-nav .dropdown a:hover {
  background-color: var(--bg-primary);
}

.main-nav .dropdown a.active {
  color: var(--accent-primary);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Language Toggle (visual separator)
   -------------------------------------------------------------------------- */
.nav-lang {
  margin-left: 0.5rem;
  padding-left: 0.75rem;
  border-left: 1px solid var(--divider);
}

.nav-lang > a {
  font-size: 0.75rem !important;
  color: var(--text-muted) !important;
  letter-spacing: 0.08em;
}

.nav-lang > a:hover {
  color: var(--accent-primary) !important;
}

/* --------------------------------------------------------------------------
   Mobile Toggle (hamburger)
   -------------------------------------------------------------------------- */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  width: 40px;
  height: 40px;
  position: relative;
  flex-shrink: 0;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-dark);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: all var(--transition);
}

.mobile-toggle span:nth-child(1) {
  top: 12px;
}

.mobile-toggle span:nth-child(2) {
  top: 19px;
}

.mobile-toggle span:nth-child(3) {
  top: 26px;
}

/* Hamburger open state */
.mobile-toggle.active span:nth-child(1) {
  top: 19px;
  transform: translateX(-50%) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  top: 19px;
  transform: translateX(-50%) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 65vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background-color: var(--bg-dark);
}

.hero__background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.43);
  z-index: 2;
}

.hero__content {
  position: relative;
  z-index: 3;
  padding: 4rem var(--container-padding);
  max-width: var(--container-max);
  margin: 0 auto;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: 3.25rem;
  font-weight: 400;
  color: var(--text-light);
  margin-bottom: 0.5em;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.hero__subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
  line-height: 1.75;
}

.hero__cta {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--text-light);
  background-color: var(--accent-primary);
  border: none;
  border-radius: 4px;
  padding: calc(0.667em + 2px) calc(1.333em + 2px);
  text-decoration: none;
  transition: background-color var(--transition);
}

.hero__cta:hover {
  background-color: var(--accent-primary-hover);
  color: var(--text-light);
  text-decoration: none;
}

/* Legacy hero classes (backward compat with ::after overlay) */
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 3;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 3.25rem;
  font-weight: 400;
  color: var(--text-light);
  margin-bottom: 0.5em;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.hero p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
  line-height: 1.75;
}

/* --------------------------------------------------------------------------
   Home Sections
   -------------------------------------------------------------------------- */
.home-section {
  padding: var(--section-spacing) 0;
}

.home-section:nth-child(odd) {
  background-color: var(--bg-primary);
}

.home-section:nth-child(even) {
  background-color: var(--bg-secondary);
}

.home-section--features {
  background-color: var(--bg-primary);
}

.home-section--highlight {
  background-color: var(--bg-secondary);
}

.home-section--cta {
  background-color: var(--bg-primary);
}

/* Generic section classes (legacy / hub pages) */
.section {
  padding: var(--section-spacing) 0;
}

.section:nth-child(odd) {
  background-color: var(--bg-primary);
}

.section:nth-child(even) {
  background-color: var(--bg-secondary);
}

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

.section--beige {
  background-color: var(--bg-primary);
}

.section--dark {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--text-light);
}

/* --------------------------------------------------------------------------
   Section Title
   -------------------------------------------------------------------------- */
.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h1,
.section-title h2 {
  font-family: var(--font-heading);
  font-weight: 400;
  margin-bottom: 0.75rem;
  position: relative;
  display: inline-block;
}

.section-title h2 {
  font-size: 2rem;
}

.section-title h1::after,
.section-title h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 2px;
  background-color: var(--accent-gold);
  margin: 0.75rem auto 0;
}

.section-title p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* --------------------------------------------------------------------------
   Feature Grid (Homepage)
   -------------------------------------------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* --------------------------------------------------------------------------
   Feature Card (Homepage)
   -------------------------------------------------------------------------- */
.feature-card {
  display: block;
  background-color: var(--bg-white);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
  text-decoration: none;
}

.feature-card__image {
  height: 220px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.feature-card__image--placeholder {
  background-color: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-card__image--placeholder svg {
  color: var(--text-muted);
}

.feature-card__body {
  padding: 1.5rem;
}

.feature-card__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 0.5em;
  line-height: 1.3;
  color: var(--text-dark);
}

.feature-card__text {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 1rem;
}

/* --------------------------------------------------------------------------
   Highlight Block (Homepage)
   -------------------------------------------------------------------------- */
.highlight-block {
  display: flex;
  gap: 3rem;
  align-items: center;
}

.highlight-block__text {
  flex: 1;
}

.highlight-block__text h2 {
  font-family: var(--font-heading);
  font-weight: 400;
  margin-bottom: 0.75rem;
}

.highlight-block__text p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.75;
}

.highlight-block__image {
  flex: 1;
}

.highlight-block__image img {
  border-radius: var(--card-radius);
  width: 100%;
  height: auto;
}

/* --------------------------------------------------------------------------
   CTA Banner (Homepage)
   -------------------------------------------------------------------------- */
.cta-banner {
  background-color: var(--bg-primary);
  border-radius: 8px;
  padding: 3rem;
  text-align: center;
}

.cta-banner h2 {
  font-family: var(--font-heading);
  font-weight: 400;
  margin-bottom: 0.5em;
}

.cta-banner p {
  color: var(--text-muted);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.5rem;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 1.5rem;
}

.contact-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text-dark);
  transition: color var(--transition);
}

.contact-link:hover {
  color: var(--accent-primary);
  text-decoration: none;
}

.contact-link__icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.contact-link__label {
  font-weight: 500;
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   Homepage Cards Section
   -------------------------------------------------------------------------- */
.home-cards-section {
  padding: 4rem 0 2rem;
}

.home-heading {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.home-subheading {
  text-align: center;
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.home-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.home-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-white);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition), box-shadow var(--transition);
}

.home-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
  text-decoration: none;
}

.home-card__image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.home-card__body {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.home-card__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.home-card__text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.home-card__body .btn--primary,
.home-card__body .btn--accent,
.home-card__body .btn--success {
  align-self: flex-start;
}

/* --------------------------------------------------------------------------
   Homepage Contact Section
   -------------------------------------------------------------------------- */
.home-contact {
  padding: 3rem 0 4rem;
  background: var(--bg-secondary);
}

.home-contact__heading {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 2rem;
}

.home-contact__items {
  display: flex;
  justify-content: center;
  gap: 4rem;
}

/* --------------------------------------------------------------------------
   Card Grid
   -------------------------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

/* --------------------------------------------------------------------------
   Card
   -------------------------------------------------------------------------- */
.card {
  background-color: var(--bg-white);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
}

.card a {
  color: inherit;
  text-decoration: none;
}

.card a:hover {
  text-decoration: none;
}

.card-image {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--card-radius) var(--card-radius) 0 0;
  transition: transform var(--transition);
}

.card:hover .card-image img {
  transform: scale(1.03);
}

/* Card image placeholder */
.card-image--placeholder {
  background-color: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-image--placeholder svg {
  color: var(--text-muted);
  opacity: 0.5;
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 400;
  margin-bottom: 0.5em;
  line-height: 1.35;
}

.card-title a {
  color: var(--text-dark);
}

.card-title a:hover {
  color: var(--accent-primary);
}

.card-description {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 0;
}

.card-text {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 1rem;
}

.card-meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Hub intro text */
.hub-intro {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 3rem;
  text-align: left;
  color: var(--text-muted);
}

.hub-intro > p:first-child,
.hub-intro > .section-title {
  text-align: center;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn--primary,
.btn-primary {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--text-light);
  background-color: var(--accent-primary);
  border: none;
  border-radius: 4px;
  padding: calc(0.667em + 2px) calc(1.333em + 2px);
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  box-shadow: none;
  transition: background-color var(--transition);
}

.btn--primary:hover,
.btn-primary:hover {
  background-color: var(--accent-primary-hover);
  text-decoration: none;
}

.btn--primary:active,
.btn-primary:active {
  transform: translateY(0);
}

.btn--outline,
.btn-outline {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--accent-primary);
  background-color: transparent;
  border: 1.5px solid var(--accent-primary);
  border-radius: 4px;
  padding: calc(0.667em + 2px) calc(1.333em + 2px);
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  box-shadow: none;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}

.btn--outline:hover,
.btn-outline:hover {
  background-color: var(--accent-primary);
  color: var(--text-light);
  text-decoration: none;
}

.btn--outline:active,
.btn-outline:active {
  transform: translateY(0);
}

.btn--accent {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--text-light);
  background-color: var(--accent-orange);
  border: none;
  border-radius: 4px;
  padding: calc(0.667em + 2px) calc(1.333em + 2px);
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background-color var(--transition);
}

.btn--accent:hover {
  background-color: #e06a00;
  text-decoration: none;
}

.btn--success {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--text-light);
  background-color: #5a9a3c;
  border: none;
  border-radius: 4px;
  padding: calc(0.667em + 2px) calc(1.333em + 2px);
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background-color var(--transition);
}

.btn--success:hover {
  background-color: #4a8530;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Breadcrumb Bar
   -------------------------------------------------------------------------- */
.breadcrumb-bar {
  background-color: var(--bg-primary);
  padding: 1rem 0;
  border-bottom: 1px solid var(--divider);
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
}

.breadcrumb-item {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0;
}

.breadcrumb-item .sep {
  margin: 0 0.5rem;
  color: var(--text-muted);
  opacity: 0.5;
}

.breadcrumb-item a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.breadcrumb-item a:hover {
  color: var(--accent-primary);
}

.breadcrumb-item.current {
  color: var(--text-dark);
}

/* Legacy breadcrumb (ul/li) */
.breadcrumb-bar ul {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
}

.breadcrumb-bar li {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.breadcrumb-bar li + li::before {
  content: '/';
  margin: 0 0.5rem;
  color: var(--text-muted);
  opacity: 0.5;
}

.breadcrumb-bar a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.breadcrumb-bar a:hover {
  color: var(--accent-primary);
}

.breadcrumb-bar li:last-child {
  color: var(--text-dark);
}

/* --------------------------------------------------------------------------
   Page Banner (unified header for all pages)
   -------------------------------------------------------------------------- */
.page-banner {
  position: relative;
  background-color: var(--bg-dark);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.page-banner .container {
  position: relative;
  z-index: 3;
  padding-top: 2.5rem;
  padding-bottom: 1.75rem;
}

.page-banner__title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 2.25rem;
  color: var(--text-light);
  margin: 0;
  line-height: 1.25;
  padding-left: 1rem;
  border-left: 3px solid var(--accent-gold);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

/* Default background for pages without cover image */
.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/assets/hero-bg.webp');
  background-size: cover;
  background-position: center 40%;
  opacity: 0.15;
  z-index: 1;
}

.page-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(39, 13, 13, 0.7) 0%, rgba(39, 13, 13, 0.3) 100%);
  z-index: 2;
}


/* --------------------------------------------------------------------------
   Page Cover
   -------------------------------------------------------------------------- */
.page-cover {
  position: relative;
  height: 350px;
  overflow: hidden;
}

.page-cover__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.page-cover__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(250, 247, 237, 0.3) 100%);
}

.page-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   Page Content (article reading width)
   -------------------------------------------------------------------------- */
.page-content {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  padding: 3rem var(--container-padding);
  line-height: 1.75;
}

.page-header {
  margin-bottom: 2rem;
  padding-top: 2.5rem;
}

.page-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 400;
  line-height: 1.2;
}

.page-content h1 {
  font-size: 2.25rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.page-content h2 {
  font-size: 1.75rem;
  margin-top: 2.5rem;
  margin-bottom: 0.5rem;
}

.page-content h3 {
  font-size: 1.375rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.page-content p {
  margin-bottom: 1.25em;
}

.page-content img {
  border-radius: var(--card-radius);
  margin: 1.5rem 0;
}

.page-content ul,
.page-content ol {
  margin-bottom: 1.25em;
  padding-left: 1.5em;
}

.page-content ul {
  list-style: disc;
}

.page-content ol {
  list-style: decimal;
}

.page-content li {
  margin-bottom: 0.35em;
}

.page-content blockquote {
  border-left: 2px solid var(--accent-gold);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background-color: var(--bg-primary);
  border-radius: 0 var(--card-radius) var(--card-radius) 0;
  font-style: italic;
  color: var(--text-dark);
}

.page-content blockquote p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Responsive YouTube Video Embed
   -------------------------------------------------------------------------- */
.video-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  margin: 1.5rem 0;
  background: var(--bg-dark);
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* --------------------------------------------------------------------------
   Podcast Episode Grid
   -------------------------------------------------------------------------- */
.podcast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.podcast-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-secondary);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  border-left: 3px solid var(--accent-primary);
  text-decoration: none;
  color: var(--text-dark);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.podcast-card:hover {
  transform: translateY(-2px);
  box-shadow: 0px 16px 50px rgba(0, 0, 0, 0.1);
}

.podcast-card__icon {
  flex-shrink: 0;
  color: var(--accent-primary);
  opacity: 0.7;
}

.podcast-card__title {
  flex: 1;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.35;
}

.podcast-card__listen {
  flex-shrink: 0;
  font-family: var(--font-nav);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--accent-primary);
  letter-spacing: 0.03em;
}

@media (max-width: 480px) {
  .podcast-grid {
    grid-template-columns: 1fr;
  }
  .podcast-card__listen {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Article Portrait (floated image beside text)
   -------------------------------------------------------------------------- */
.article-portrait {
  float: right;
  width: 280px;
  margin: 0 0 1.5rem 2rem;
  border-radius: 4px;
  box-shadow: var(--card-shadow);
}

.article-portrait img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .article-portrait {
    float: none;
    width: 220px;
    margin: 0 auto 1.5rem;
  }
}

/* --------------------------------------------------------------------------
   Site Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.8fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 1.25rem;
}
.footer-col h4 + ul + h4 {
  margin-top: 2.5rem;
}

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

.footer-cif {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.75rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--accent-gold);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.75);
}

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

/* --------------------------------------------------------------------------
   Utility Classes
   -------------------------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

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

.text-muted {
  color: var(--text-muted);
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* --------------------------------------------------------------------------
   Skip to Content Link (accessibility)
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  background: var(--accent-primary);
  color: var(--text-light);
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 4px 4px;
  font-family: var(--font-nav);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

/* --------------------------------------------------------------------------
   Focus Visible (keyboard navigation)
   -------------------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

a:focus-visible {
  border-radius: 2px;
}

button:focus-visible {
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   External Link Card (replaces raw URL source blocks)
   -------------------------------------------------------------------------- */
.external-link-card {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  margin: 0.5rem 0;
  border: 1px solid var(--divider);
  border-radius: var(--card-radius);
  background: var(--bg-secondary);
  color: var(--text-dark);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}

.external-link-card:hover {
  box-shadow: var(--card-shadow);
  border-color: var(--accent-primary);
  transform: translateY(-1px);
  text-decoration: none;
}

.external-link-card__icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.external-link-card__label {
  color: var(--accent-primary);
  font-family: var(--font-nav);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.external-link-card--stripe {
  border-color: #635BFF;
}

.external-link-card--stripe:hover {
  border-color: #635BFF;
  background: #F8F7FF;
}

.external-link-card--stripe .external-link-card__label {
  color: #635BFF;
}

/* --------------------------------------------------------------------------
   Table Buy Link (Amazon/Leanpub in collection tables)
   -------------------------------------------------------------------------- */
.table-buy-link {
  display: inline-block;
  padding: 0.2em 0.75em;
  background: var(--accent-primary);
  color: var(--text-light) !important;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: background-color var(--transition);
}

.table-buy-link:hover {
  background: var(--accent-primary-hover);
  text-decoration: none;
  color: var(--text-light) !important;
}
