/* ═══════════════════════════════════════════════════════
   AUTHENTIC GUIDES — Design System
   Finding Teachers You Can Trust
   ═══════════════════════════════════════════════════════ */

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

:root {
  --navy: #0D1B2A;
  --navy-light: #1B2D45;
  --navy-dark: #060F1A;
  --amber: #E09F3E;
  --amber-light: #F0C060;
  --amber-dark: #C08830;
  --white: #FFFFFF;
  --off-white: #F5F5F0;
  --grey-100: #E8E8E3;
  --grey-200: #D0D0CB;
  --grey-600: #6B6B66;
  --grey-800: #333330;
  --font-heading: 'Crimson Pro', Georgia, 'Times New Roman', serif;
  --font-body: 'Karla', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1200px;
  --content-width: 780px;
  --transition: 0.3s ease;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--grey-800);
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--amber-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--amber); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); margin-bottom: 0.75rem; }

p { margin-bottom: 1.25rem; }

/* ── Skip Link ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--amber);
  color: var(--navy);
  padding: 0.5rem 1rem;
  border-radius: 0 0 4px 4px;
  z-index: 9999;
  font-weight: 600;
}
.skip-link:focus { top: 0; }

/* ── Header / Nav ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(13, 27, 42, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(224, 159, 62, 0.15);
  transition: background var(--transition);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
}

.site-logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--amber);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.site-logo:hover { color: var(--amber-light); }

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

.nav-links a {
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--amber); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: var(--transition);
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 6rem 1.5rem 4rem;
}

.hero-inner {
  max-width: var(--max-width);
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-text {
  z-index: 2;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  color: var(--amber);
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero-title span {
  display: block;
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--white);
  margin-top: 1.5rem;
  font-style: italic;
  opacity: 0.9;
  max-width: 420px;
}

.hero-cta {
  margin-top: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--amber);
  color: var(--navy);
  padding: 0.875rem 2rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background var(--transition), transform var(--transition);
}
.hero-cta:hover {
  background: var(--amber-light);
  color: var(--navy);
  transform: translateY(-2px);
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-magnifier {
  width: 100%;
  max-width: 420px;
}

.hero-magnifier svg {
  width: 100%;
  height: auto;
}

/* ── Section Layouts ── */
.section {
  padding: 5rem 1.5rem;
}

.section--navy {
  background: var(--navy);
  color: var(--white);
}
.section--navy h2,
.section--navy h3 { color: var(--amber); }

.section--light {
  background: var(--off-white);
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.section-header p {
  color: var(--grey-600);
  font-size: 1.0625rem;
}

.section--navy .section-header p {
  color: rgba(255,255,255,0.75);
}

/* ── Category Cards ── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.category-card {
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: 8px;
  padding: 2rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(13,27,42,0.08);
  border-color: var(--amber);
}

.category-card .card-icon {
  width: 48px;
  height: 48px;
  background: rgba(224,159,62,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--amber);
}

.category-card h3 {
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.category-card p {
  color: var(--grey-600);
  font-size: 0.9375rem;
  flex: 1;
}

.category-card .card-link {
  margin-top: 1rem;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--amber-dark);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.category-card .card-link:hover { color: var(--amber); }

/* ── Article Cards ── */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.article-card {
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: 8px;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(13,27,42,0.06);
}

.article-card .card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--navy-light);
}

.article-card .card-body {
  padding: 1.5rem;
}

.article-card .card-category {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amber-dark);
  margin-bottom: 0.5rem;
}

.article-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.article-card h3 a { color: var(--navy); }
.article-card h3 a:hover { color: var(--amber-dark); }

.article-card .card-excerpt {
  font-size: 0.9375rem;
  color: var(--grey-600);
  line-height: 1.6;
}

.article-card .card-meta {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--grey-600);
  display: flex;
  gap: 1rem;
}

/* ── Vet Page ── */
.vet-hero {
  background: var(--navy);
  padding: 8rem 1.5rem 4rem;
  text-align: center;
}

.vet-hero h1 { color: var(--amber); }
.vet-hero p { color: rgba(255,255,255,0.8); max-width: 600px; margin: 1rem auto 0; }

.vet-container {
  max-width: var(--content-width);
  margin: -2rem auto 4rem;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(13,27,42,0.12);
  padding: 2.5rem;
  position: relative;
  z-index: 2;
}

.vet-question {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--grey-100);
}

.vet-question:last-of-type { border-bottom: none; }

.vet-question .q-number {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.vet-question h3 {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.vet-question .q-explain {
  font-size: 0.9375rem;
  color: var(--grey-600);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.vet-options {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.vet-option {
  padding: 0.5rem 1.25rem;
  border: 2px solid var(--grey-200);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all var(--transition);
  background: var(--white);
  color: var(--grey-800);
}

.vet-option:hover { border-color: var(--amber); color: var(--amber-dark); }
.vet-option.selected-green { border-color: #2ECC40; background: rgba(46,204,64,0.08); color: #1a8a2a; }
.vet-option.selected-yellow { border-color: #FFDC00; background: rgba(255,220,0,0.08); color: #8a7a00; }
.vet-option.selected-red { border-color: #FF4136; background: rgba(255,65,54,0.08); color: #c0302a; }

/* Results */
.vet-results {
  display: none;
  margin-top: 2rem;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
}

.vet-results.show { display: block; }

.vet-results.result-green { background: rgba(46,204,64,0.08); border: 2px solid #2ECC40; }
.vet-results.result-yellow { background: rgba(255,220,0,0.08); border: 2px solid #FFDC00; }
.vet-results.result-red { background: rgba(255,65,54,0.08); border: 2px solid #FF4136; }

.vet-results h2 { margin-bottom: 1rem; }
.vet-results .score-display {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.vet-progress {
  width: 100%;
  height: 6px;
  background: var(--grey-100);
  border-radius: 3px;
  margin: 1.5rem 0;
  overflow: hidden;
}

.vet-progress-bar {
  height: 100%;
  background: var(--amber);
  border-radius: 3px;
  transition: width 0.5s ease;
  width: 0%;
}

/* ── Newsletter CTA ── */
.newsletter-section {
  background: var(--navy);
  padding: 4rem 1.5rem;
}

.newsletter-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1.25rem;
  color: var(--amber);
}

.newsletter-inner h2 {
  color: var(--amber);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.newsletter-inner p {
  color: rgba(255,255,255,0.75);
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
}

.newsletter-form {
  display: flex;
  gap: 0.75rem;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 0.875rem 1rem;
  border: 1px solid rgba(224,159,62,0.3);
  border-radius: 4px;
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--grey-800);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(224,159,62,0.15);
}

.newsletter-form button {
  padding: 0.875rem 1.5rem;
  background: var(--amber);
  color: var(--navy);
  border: none;
  border-radius: 4px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: background var(--transition);
  white-space: nowrap;
}

.newsletter-form button:hover { background: var(--amber-light); }

.newsletter-success {
  display: none;
  color: var(--amber);
  font-weight: 600;
  margin-top: 1rem;
}

/* ── Footer ── */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.6);
  padding: 3rem 1.5rem 2rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand .site-logo { margin-bottom: 0.75rem; display: inline-block; }
.footer-brand p { font-size: 0.875rem; max-width: 300px; line-height: 1.6; }

.footer-links h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--amber); }

.footer-bottom {
  max-width: var(--max-width);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
}

/* ── About Page ── */
.about-hero {
  background: var(--navy);
  padding: 8rem 1.5rem 4rem;
}

.about-content {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.about-content h2 { margin-top: 2.5rem; }

/* ── Article Page ── */
.article-hero {
  background: var(--navy);
  padding: 8rem 1.5rem 3rem;
  text-align: center;
}

.article-hero .breadcrumb {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1rem;
}

.article-hero .breadcrumb a { color: var(--amber); }

.article-hero h1 {
  color: var(--white);
  max-width: 700px;
  margin: 0 auto;
}

.article-hero .article-meta {
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  margin-top: 1rem;
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.article-body {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.article-body h2 { margin-top: 2.5rem; }
/* blockquote base — see enhanced version below */

/* ── Start Here ── */
.start-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* ── Breadcrumb ── */
.breadcrumb-nav {
  background: var(--off-white);
  padding: 0.75rem 1.5rem;
  font-size: 0.8125rem;
}

.breadcrumb-nav ol {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.breadcrumb-nav li::after { content: '›'; margin-left: 0.5rem; color: var(--grey-600); }
.breadcrumb-nav li:last-child::after { content: ''; }
.breadcrumb-nav a { color: var(--amber-dark); }
.breadcrumb-nav span { color: var(--grey-600); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .article-body > p:first-of-type::first-letter {
    font-size: 2.75rem;
    padding-right: 0.35rem;
  }

  .article-body {
    font-size: 1rem;
    line-height: 1.75;
  }

  .article-body h2 {
    font-size: 1.35rem;
    margin-top: 2rem;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-tagline { margin-left: auto; margin-right: auto; }

  .hero-visual { order: -1; }
  .hero-magnifier { max-width: 280px; }

  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 1.5rem;
    gap: 1rem;
    border-top: 1px solid rgba(224,159,62,0.15);
  }

  .nav-toggle { display: block; }

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

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

  .newsletter-form {
    flex-direction: column;
  }

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

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

  .vet-container {
    margin: -1rem 1rem 3rem;
    padding: 1.5rem;
  }

  .vet-options {
    flex-direction: column;
  }
}

/* ── Selection Color ── */
::selection {
  background: rgba(224,159,62,0.25);
  color: var(--navy);
}

/* ── Article Prose Enhancements ── */
.article-body > p:first-of-type::first-letter {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  float: left;
  line-height: 0.85;
  padding-right: 0.5rem;
  padding-top: 0.15rem;
  color: var(--amber);
  font-weight: 700;
}

.article-body a {
  color: var(--amber-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(224,159,62,0.35);
  transition: color var(--transition), text-decoration-color var(--transition);
}
.article-body a:hover {
  color: var(--amber);
  text-decoration-color: var(--amber);
}

/* ── Warm Glow Effects ── */
.category-card:hover,
.article-card:hover {
  box-shadow: 0 12px 32px rgba(13,27,42,0.08), 0 0 40px rgba(224,159,62,0.06);
}

.vet-container {
  box-shadow: 0 16px 48px rgba(13,27,42,0.12), 0 0 60px rgba(224,159,62,0.04);
}

/* ── Flourish Divider ── */
.flourish-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 0;
}
.flourish-divider::before,
.flourish-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(224,159,62,0.4), transparent);
}

/* ── Enhanced Blockquote ── */
.article-body blockquote {
  position: relative;
  border-left: 3px solid var(--amber);
  padding: 1.5rem 2rem 1.5rem 2.5rem;
  margin: 2rem 0;
  background: rgba(224,159,62,0.04);
  font-style: italic;
  color: var(--navy-light);
  border-radius: 0 6px 6px 0;
}
.article-body blockquote::before {
  content: '\201C';
  position: absolute;
  top: 0.25rem;
  left: 0.5rem;
  font-family: var(--font-heading);
  font-size: 3rem;
  color: rgba(224,159,62,0.25);
  line-height: 1;
}

/* ── Hero Subtle Glow ── */
.hero::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(224,159,62,0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Nav Active State ── */
.nav-links a[aria-current="page"] {
  color: var(--amber);
  border-bottom: 2px solid var(--amber);
  padding-bottom: 2px;
}

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

.text-amber { color: var(--amber); }
.text-navy { color: var(--navy); }
.bg-navy { background: var(--navy); }
.bg-light { background: var(--off-white); }

/* ── Amber accent line (used in newsletter) ── */
.amber-line {
  width: 60px;
  height: 3px;
  background: var(--amber);
  margin: 0 auto 1.5rem;
  border-radius: 2px;
}

/* ── FAQ Accordion ── */
.faq-list { max-width: var(--content-width); margin: 0 auto; }

.faq-item {
  border-bottom: 1px solid var(--grey-100);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.25rem 0;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--amber);
  flex-shrink: 0;
  transition: transform var(--transition);
}

.faq-item.open .faq-question::after {
  content: '−';
}

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

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

.faq-answer p {
  padding-bottom: 1.25rem;
  color: var(--grey-600);
  font-size: 0.9375rem;
  line-height: 1.7;
}
