/* ========================================
   CSS Variables
   ======================================== */
:root {
  /* Colors */
  --bg: #F7F3E8;
  --surface: #FFFFFF;
  --text: #1D1B16;
  --muted-text: #5C5A55;
  --brand: #1F2A44;
  --brand-2: #1F4A3C;
  --accent: #B07A2A;
  --border: #E4DDD0;
  --shadow: rgba(29,27,22,0.12);
  
  /* Spacing */
  --s1: 8px;
  --s2: 12px;
  --s3: 16px;
  --s4: 24px;
  --s5: 32px;
  --s6: 48px;
  --s7: 72px;
  
  /* Radius */
  --r1: 10px;
  --r2: 14px;
  
  /* Container */
  --container-max: 1160px;
  --container-padding: 20px;
}

@media (min-width: 641px) {
  :root {
    --container-padding: 32px;
  }
}

/* ========================================
   Base Styles
   ======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
}

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  line-height: 1.2;
  margin-bottom: var(--s4);
  color: var(--brand);
}

h1 {
  font-size: 34px;
}

h2 {
  font-size: 24px;
}

h3 {
  font-size: 18px;
}

@media (min-width: 641px) {
  h1 {
    font-size: 44px;
  }
  
  h2 {
    font-size: 28px;
  }
  
  h3 {
    font-size: 20px;
  }
}

p {
  margin-bottom: var(--s3);
}

small {
  font-size: 14px;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul, ol {
  margin-left: var(--s4);
  margin-bottom: var(--s3);
}

li {
  margin-bottom: var(--s2);
}

/* ========================================
   Layout Utilities
   ======================================== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.section {
  padding-block: var(--s6);
}

.hero {
  padding-block: var(--s7);
}

.grid {
  display: grid;
  gap: var(--s5);
  grid-template-columns: 1fr;
}

@media (min-width: 641px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1025px) {
  .grid.grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ========================================
   Skip Link
   ======================================== */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--accent);
  color: white;
  padding: var(--s2) var(--s3);
  text-decoration: none;
  z-index: 1000;
}

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

/* ========================================
   Header
   ======================================== */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  align-items: center;
  gap: var(--s4);
  padding-top: var(--s3);
  padding-bottom: var(--s3);
  flex-wrap: wrap;
}

.logo {
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  font-size: 20px;
  font-weight: bold;
  color: var(--brand);
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
  color: var(--accent);
}

.main-nav {
  display: flex;
  gap: var(--s4);
  flex: 1;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--text);
  text-decoration: none;
  padding: var(--s1) 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  border-bottom-color: var(--accent);
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
  background: var(--brand);
  color: white;
  padding-block: var(--s6);
  margin-top: var(--s7);
}

.footer-content {
  display: grid;
  gap: var(--s4);
  grid-template-columns: 1fr;
  margin-bottom: var(--s4);
}

@media (min-width: 641px) {
  .footer-content {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.footer-brand {
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  font-size: 18px;
  font-weight: bold;
  margin-bottom: var(--s2);
}

.footer-tagline,
.footer-service {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: var(--s4);
}

.footer-links a {
  color: white;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: var(--s4);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-block;
  padding: var(--s2) var(--s4);
  border-radius: var(--r2);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: 2px solid transparent;
  font-size: 16px;
}

.btn:hover {
  text-decoration: none;
}

.btn:focus {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

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

.btn-primary:hover {
  background: #936420;
}

.btn-secondary {
  background: transparent;
  color: var(--brand);
  border-color: var(--brand);
}

.btn-secondary:hover {
  background: var(--brand);
  color: white;
}

/* ========================================
   Cards
   ======================================== */
.card {
  background: var(--surface);
  padding: var(--s5);
  border-radius: var(--r1);
  border: 1px solid var(--border);
}

.card.elevated {
  box-shadow: 0 10px 30px var(--shadow);
}

/* ========================================
   Pills / Tags
   ======================================== */
.pill {
  display: inline-block;
  padding: var(--s1) var(--s2);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 14px;
  color: var(--text);
}

.pill.active {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
}

.pill.clickable {
  cursor: pointer;
  transition: all 0.2s;
}

.pill.clickable:hover {
  background: var(--brand-2);
  color: white;
  border-color: var(--brand-2);
}

/* ========================================
   Experience Card
   ======================================== */
.experience-card {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}

.experience-card h3 {
  margin-bottom: 0;
}

.experience-summary {
  color: var(--muted-text);
  margin-bottom: 0;
}

.experience-meta {
  display: flex;
  gap: var(--s2);
  font-size: 14px;
  color: var(--muted-text);
  flex-wrap: wrap;
}

.tone-tags {
  display: flex;
  gap: var(--s1);
  flex-wrap: wrap;
}

.experience-highlights {
  list-style: disc;
  color: var(--text);
  margin-left: var(--s4);
}

.experience-highlights li {
  margin-bottom: var(--s1);
}

.card-actions {
  display: flex;
  gap: var(--s2);
  margin-top: auto;
  flex-wrap: wrap;
}

/* ========================================
   Testimonial Card
   ======================================== */
.testimonial-card {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}

.testimonial-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.testimonial-author {
  font-weight: 600;
  color: var(--brand);
}

.testimonial-stars {
  color: var(--accent);
  font-size: 18px;
}

.testimonial-text {
  margin-bottom: 0;
  font-style: italic;
  color: var(--muted-text);
}

/* ========================================
   CTA Band
   ======================================== */
.cta-band {
  background: var(--brand);
  color: white;
  padding-block: var(--s6);
  margin-top: var(--s7);
}

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

.cta-content h2 {
  color: white;
  margin-bottom: var(--s3);
}

.cta-content p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--s4);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ========================================
   FAQ
   ======================================== */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding-block: var(--s4);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  font-size: 18px;
  font-weight: 600;
  color: var(--brand);
  cursor: pointer;
  text-align: left;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  padding: 0;
}

.faq-question:hover {
  color: var(--accent);
}

.faq-question:focus {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.faq-icon {
  font-size: 24px;
  transition: transform 0.2s;
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding-top: var(--s3);
}

.faq-answer[hidden] {
  display: none;
}

/* ========================================
   Forms
   ======================================== */
form {
  max-width: 600px;
  margin: 0 auto;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--s1);
  color: var(--brand);
}

input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: var(--s2) var(--s3);
  border: 2px solid var(--border);
  border-radius: var(--r1);
  font-family: inherit;
  font-size: 16px;
  margin-bottom: var(--s4);
}

input[type="text"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-color: var(--accent);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

button[type="submit"] {
  background: none;
  border: none;
  font: inherit;
}

/* ========================================
   Hero
   ======================================== */
.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-subhead {
  font-size: 18px;
  color: var(--muted-text);
  margin-bottom: var(--s5);
}

.hero-buttons {
  display: flex;
  gap: var(--s3);
  justify-content: center;
  margin-bottom: var(--s5);
  flex-wrap: wrap;
}

.at-a-glance {
  display: flex;
  gap: var(--s4);
  justify-content: center;
  flex-wrap: wrap;
  padding: var(--s4);
  background: var(--surface);
  border-radius: var(--r1);
  border: 1px solid var(--border);
  font-size: 14px;
  color: var(--muted-text);
}

.at-a-glance span {
  white-space: nowrap;
}

/* ========================================
   How It Works
   ======================================== */
.how-it-works-grid {
  display: grid;
  gap: var(--s5);
  grid-template-columns: 1fr;
}

@media (min-width: 641px) {
  .how-it-works-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

.step-card h3 {
  margin-bottom: var(--s3);
}

/* ========================================
   Age Tiles
   ======================================== */
.age-tiles {
  display: grid;
  gap: var(--s4);
  grid-template-columns: 1fr;
}

@media (min-width: 641px) {
  .age-tiles {
    grid-template-columns: repeat(3, 1fr);
  }
}

.age-tile {
  display: block;
  padding: var(--s5);
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--r1);
  text-align: center;
  text-decoration: none;
  color: var(--brand);
  font-weight: 600;
  font-size: 20px;
  transition: all 0.2s;
}

.age-tile:hover {
  border-color: var(--accent);
  background: var(--bg);
  text-decoration: none;
  transform: translateY(-2px);
}

.age-tile:focus {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* ========================================
   Filtering
   ======================================== */
.filter-controls {
  margin-bottom: var(--s5);
  padding: var(--s4);
  background: var(--surface);
  border-radius: var(--r1);
  border: 1px solid var(--border);
}

.filter-label {
  font-weight: 600;
  margin-bottom: var(--s3);
  display: block;
  color: var(--brand);
}

.filter-chips {
  display: flex;
  gap: var(--s2);
  flex-wrap: wrap;
  margin-bottom: var(--s3);
}

.filter-status {
  font-size: 14px;
  color: var(--muted-text);
}

/* ========================================
   Detail Page
   ======================================== */
.detail-header {
  text-align: center;
  margin-bottom: var(--s6);
}

.detail-subhead {
  font-size: 18px;
  color: var(--muted-text);
  max-width: 700px;
  margin: 0 auto var(--s5);
}

.detail-glance {
  background: var(--surface);
  padding: var(--s5);
  border-radius: var(--r1);
  border: 1px solid var(--border);
  margin-bottom: var(--s6);
}

.detail-glance h3 {
  font-size: 16px;
  margin-bottom: var(--s3);
}

.detail-glance-grid {
  display: grid;
  gap: var(--s3);
  grid-template-columns: 1fr;
}

@media (min-width: 641px) {
  .detail-glance-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.detail-glance-item {
  display: flex;
  gap: var(--s2);
}

.detail-glance-label {
  font-weight: 600;
  color: var(--brand);
}

.logistics-grid {
  display: grid;
  gap: var(--s3);
  grid-template-columns: 1fr;
}

@media (min-width: 641px) {
  .logistics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.logistics-item {
  display: flex;
  gap: var(--s2);
}

.logistics-key {
  font-weight: 600;
  color: var(--brand);
  min-width: 120px;
}

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

.mb-0 {
  margin-bottom: 0;
}

.mt-0 {
  margin-top: 0;
}

[hidden] {
  display: none !important;
}
