/* 
 * Spearing.co - Premium Editorial Style
 * Inspired by The Gentleman's Journal
 * Version 2.0 - SEO Optimized Redesign
 */

/* ===== CSS VARIABLES ===== */
:root {
  /* Colors - Masculine, Premium */
  --color-primary: #1a1a1a;
  --color-secondary: #c9a962;
  --color-accent: #8b7355;
  --color-text: #2d2d2d;
  --color-text-light: #666666;
  --color-text-muted: #999999;
  --color-bg: #fafafa;
  --color-bg-dark: #0d0d0d;
  --color-bg-card: #ffffff;
  --color-border: #e5e5e5;
  --color-border-dark: #333333;
  
  /* Typography */
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 5rem;
  
  /* Layout */
  --max-width: 1400px;
  --content-width: 720px;
  --nav-height: 80px;
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s 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-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
}

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

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

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

ul, ol {
  list-style: none;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-primary);
  margin-bottom: var(--spacing-sm);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: var(--spacing-md);
}

.lead {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--color-text-light);
  line-height: 1.8;
}

blockquote {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-style: italic;
  color: var(--color-primary);
  border-left: 4px solid var(--color-secondary);
  padding-left: var(--spacing-lg);
  margin: var(--spacing-xl) 0;
}

/* ===== LAYOUT ===== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.container--narrow {
  max-width: var(--content-width);
}

.section {
  padding: var(--spacing-xxl) 0;
}

/* Intro grid - family photo + text */
.intro-grid {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: var(--spacing-xl);
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.intro-grid__photo {
  width: 400px;
  height: 400px;
  object-fit: cover;
  border-radius: 4px;
}

.intro-grid__text {
  text-align: left;
}

@media (max-width: 768px) {
  .intro-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .intro-grid__photo {
    width: 300px;
    height: 300px;
    margin: 0 auto;
  }
  .intro-grid__text {
    text-align: center;
  }
}

.section--dark {
  background-color: var(--color-bg-dark);
  color: #ffffff;
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: #ffffff;
}

/* ===== HEADER & NAVIGATION ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  transition: background var(--transition-normal);
}

.header--scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

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

.nav__list {
  display: flex;
  gap: var(--spacing-lg);
}

.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-secondary);
  transition: width var(--transition-normal);
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

/* Mobile Nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-xs);
  position: relative;
  z-index: 10000;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  margin: 5px 0;
  transition: all 0.3s ease;
  transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--color-bg-dark) 0%, #1f1f1f 100%);
  color: #ffffff;
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
}

.hero__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 900px;
  padding: var(--spacing-xl);
  margin: 0 auto;
}

.hero__tagline {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-secondary);
  margin-bottom: var(--spacing-md);
}

.hero h1 {
  color: #ffffff;
  margin-bottom: var(--spacing-lg);
}

.hero__quote {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--spacing-lg);
}

.hero__subtitle {
  display: inline-block;
  background: rgba(199, 153, 82, 0.25);
  backdrop-filter: blur(4px);
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  color: #ffffff;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: var(--spacing-xl);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  padding: 1rem 2rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.btn--primary {
  background: var(--color-secondary);
  color: var(--color-primary);
}

.btn--primary:hover {
  background: #d4b572;
  color: var(--color-primary);
}

.btn--secondary {
  background: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.btn--secondary:hover {
  background: #ffffff;
  color: var(--color-primary);
}

.btn--dark {
  background: var(--color-primary);
  color: #ffffff;
}

.btn--dark:hover {
  background: #333333;
}

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

.btn--outline:hover {
  background: #C79952;
  color: #ffffff;
  border-color: #C79952;
}

.btn--small {
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
}

.nav__social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: 1.5rem;
}

.nav__social--mobile {
  display: none;
}

.nav__social a {
  color: #1a1a1a;
  transition: color 0.2s;
  display: flex;
  align-items: center;
}

.nav__social a:hover {
  color: #C79952;
}

.category-filter {
  color: #ffffff;
  border-color: #ffffff;
  background: transparent;
}

.category-filter:hover {
  background: rgba(255,255,255,0.15);
  color: #ffffff;
  border-color: #ffffff;
}

.category-filter.active {
  background: #C79952;
  color: #ffffff;
  border-color: #C79952;
}

/* ===== CARDS ===== */
.card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  transition: all var(--transition-normal);
}

.card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.card__image {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.card:hover .card__image img {
  transform: scale(1.05);
}

.card__content {
  padding: var(--spacing-lg);
}

.card__category {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-secondary);
  margin-bottom: var(--spacing-xs);
}

.card__title {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-sm);
}

.card__excerpt {
  font-size: 0.9375rem;
  color: var(--color-text-light);
  margin-bottom: var(--spacing-md);
}

.card__meta {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* ===== PODCAST GRID ===== */
.podcast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--spacing-lg);
}

.episode-card {
  display: flex;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  transition: all var(--transition-normal);
}

.episode-card:hover {
  border-color: var(--color-secondary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.episode-card__number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-secondary);
  line-height: 1;
  min-width: 60px;
}

.episode-card__content {
  flex: 1;
}

.episode-card__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
  line-height: 1.4;
}

.episode-card__date {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* ===== FEATURED SECTION ===== */
.featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
}

.featured__main {
  grid-row: span 2;
}

.featured__main .card__image {
  aspect-ratio: 3/4;
}

.featured__main .card__title {
  font-size: 1.75rem;
}

/* ===== ABOUT SECTION ===== */
.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xxl);
  align-items: center;
}

.about__image {
  position: relative;
}

.about__image::before {
  content: '';
  position: absolute;
  top: var(--spacing-lg);
  left: var(--spacing-lg);
  right: calc(var(--spacing-lg) * -1);
  bottom: calc(var(--spacing-lg) * -1);
  border: 2px solid var(--color-secondary);
  z-index: -1;
}

.about__content h2 {
  margin-bottom: var(--spacing-lg);
}

.about__stats {
  display: flex;
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-xl);
  border-top: 1px solid var(--color-border);
}

.stat {
  text-align: center;
}

.stat__number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-secondary);
  line-height: 1;
}

.stat__label {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
}

/* ===== PRODUCTS GRID ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-lg);
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}

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

.product-card__image {
  aspect-ratio: 16 / 10;
  background: var(--color-bg-dark);
  margin-bottom: var(--spacing-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-secondary);
  font-size: 3rem;
  overflow: hidden;
}

.product-card__title {
  font-size: 1.125rem;
  margin-bottom: var(--spacing-xs);
}

.product-card__price {
  font-weight: 600;
  color: var(--color-secondary);
}

/* ===== NEWSLETTER ===== */
.newsletter {
  text-align: center;
  padding: var(--spacing-xxl);
  background: var(--color-bg-dark);
  color: #ffffff;
}

.newsletter h2 {
  color: #ffffff;
  margin-bottom: var(--spacing-sm);
}

.newsletter p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--spacing-lg);
}

.newsletter__form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  gap: var(--spacing-sm);
}

.newsletter__input {
  flex: 1;
  padding: 1rem 1.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 2px solid transparent;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  transition: all var(--transition-fast);
}

.newsletter__input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter__input:focus {
  outline: none;
  border-color: var(--color-secondary);
  background: rgba(255, 255, 255, 0.15);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--spacing-xxl) 0 var(--spacing-lg);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer__brand {
  padding-right: var(--spacing-xl);
}

.footer__logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: var(--spacing-md);
}

.footer__tagline {
  font-size: 0.9375rem;
  line-height: 1.8;
}

.footer h4 {
  color: #ffffff;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--spacing-md);
}

.footer__links li {
  margin-bottom: var(--spacing-xs);
}

.footer__links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  transition: color var(--transition-fast);
}

.footer__links a:hover {
  color: var(--color-secondary);
}

.footer__social {
  display: flex;
  gap: var(--spacing-sm);
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 1.125rem;
  transition: all var(--transition-fast);
}

.footer__social a:hover {
  background: var(--color-secondary);
  color: var(--color-primary);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
}

/* ===== PAGE HEADER ===== */
.page-header {
  padding: calc(var(--nav-height) + var(--spacing-xxl)) 0 var(--spacing-xxl);
  background: var(--color-bg-dark);
  color: #ffffff;
  text-align: center;
}

.page-header h1 {
  color: #ffffff;
}

.page-header .lead {
  color: rgba(255, 255, 255, 0.7);
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
  font-size: 0.875rem;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.5);
}

.breadcrumb span {
  color: rgba(255, 255, 255, 0.3);
}

/* ===== ARTICLE STYLES ===== */
.article {
  padding: var(--spacing-xxl) 0;
}

.article__header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.article__meta {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-md);
}

.article__content {
  font-size: 1.125rem;
  line-height: 1.9;
}

.article__content h2 {
  margin-top: var(--spacing-xl);
}

.article__content h3 {
  margin-top: var(--spacing-lg);
}

.article__content ul,
.article__content ol {
  margin: var(--spacing-md) 0;
  padding-left: var(--spacing-lg);
}

.article__content ul {
  list-style: disc;
}

.article__content ol {
  list-style: decimal;
}

.article__content li {
  margin-bottom: var(--spacing-xs);
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .featured {
    grid-template-columns: 1fr;
  }
  
  .featured__main {
    grid-row: auto;
  }
  
  .about-section {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }
  
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 60px;
  }
  
  .nav {
    position: static;
    overflow: visible !important;
    height: auto !important;
  }
  
  .nav__list {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: #f0f0f0 !important;
    display: none !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 9999;
  }
  
  .nav__list.active {
    display: flex !important;
  }
  
  .nav__list .nav__link {
    color: #1a1a1a !important;
    font-size: 1.25rem;
  }
  
  .nav__social {
    display: none !important;
  }
  
  .nav__social--mobile {
    display: none !important;
    gap: 1.5rem;
    margin-top: 1rem;
    list-style: none;
  }
  
  .nav__social--mobile a {
    color: #1a1a1a;
    transition: color 0.2s ease;
  }
  
  .nav__social--mobile a:hover {
    color: var(--color-accent);
  }
  
  .nav__list.active .nav__social--mobile {
    display: flex !important;
  }
  
  .nav-toggle {
    display: block;
    position: relative;
    z-index: 10000;
  }
  
  .podcast-grid {
    grid-template-columns: 1fr;
  }
  
  .newsletter__form {
    flex-direction: column;
  }
  
  .footer__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer__brand {
    padding-right: 0;
  }
  
  .footer__bottom {
    flex-direction: column;
    gap: var(--spacing-sm);
    text-align: center;
  }
  
  .about__stats {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero__content {
    padding: var(--spacing-lg);
  }
  
  .btn {
    width: 100%;
  }
  
  .episode-card {
    flex-direction: column;
  }
  
  .episode-card__number {
    font-size: 1.5rem;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .header,
  .footer,
  .newsletter,
  .nav-toggle {
    display: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
    background: #fff;
  }
  
  a {
    color: #000;
    text-decoration: underline;
  }
}
