/* ============================================================
   DeepYogaWay — 01_main.css
   Bruges i Simple Custom CSS & JS PRO → All Website
   Load order: 1 af 8
   ============================================================
   Indhold:
   1. Google Fonts import
   2. Design tokens (farver, spacing, typografi)
   3. Global reset
   4. Layout / container
   5. Typografi (display-xl → body-sm, label)
   6. Buttons (.btn, --primary, --outline, --clay)
   7. Divider
   8. Section spacing
   9. Cards (.card, .card__image, .card__body osv.)
   10. Pillars grid
   11. Blockquote
   12. Utility klasser
   13. Responsive breakpoints (globale)
   ============================================================ */

/* ── Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=DM+Sans:wght@300;400;500&display=swap');

/* ── Design Tokens ── */
:root {
  --ivory:       #F4EFE7;
  --sand:        #E7D8C5;
  --olive:       #243225;
  --clay:        #A66546;
  --ink:         #1C1A17;
  --brown:       #7A6758;
  --white:       #FDFAF6;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  2rem;
  --text-4xl:  2.75rem;
  --text-5xl:  3.75rem;
  --text-6xl:  5rem;

  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-7:  1.75rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  --radius-sm: 2px;
  --radius:    4px;

  --max-w: 1200px;
  --max-w-text: 680px;

  --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--ivory);
}

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

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

/* ── Layout ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--space-8);
}

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

/* ── Typography ── */
.display-xl {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, var(--text-6xl));
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--olive);
}

.display-lg {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.5vw, var(--text-5xl));
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--olive);
}

.display-md {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, var(--text-4xl));
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--olive);
}

.heading {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, var(--text-3xl));
  font-weight: 400;
  line-height: 1.2;
  color: var(--olive);
}

.subheading {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 300;
  font-style: italic;
  color: var(--brown);
}

.label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clay);
}

.body-lg {
  font-size: var(--text-lg);
  font-weight: 300;
  line-height: 1.75;
  color: var(--ink);
}

.body-base {
  font-size: var(--text-base);
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink);
}

.body-sm {
  font-size: var(--text-sm);
  font-weight: 300;
  line-height: 1.65;
  color: var(--brown);
}

em, i { font-style: italic; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: var(--space-4) var(--space-8);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn--primary {
  background: var(--olive);
  color: var(--ivory);
  border-color: var(--olive);
}

.btn--primary:hover {
  background: var(--ink);
  border-color: var(--ink);
}

.btn--outline {
  background: transparent;
  color: var(--olive);
  border-color: var(--olive);
}

.btn--outline:hover {
  background: var(--olive);
  color: var(--ivory);
}

.btn--clay {
  background: var(--clay);
  color: var(--white);
  border-color: var(--clay);
}

.btn--clay:hover {
  background: var(--ink);
  border-color: var(--ink);
}

/* ── Divider ── */
.divider {
  width: 48px;
  height: 1px;
  background: var(--clay);
  margin-block: var(--space-6);
}

.divider--center { margin-inline: auto; }

/* ── Section spacing ── */
.section {
  padding-block: var(--space-32);
}

.section--sm {
  padding-block: var(--space-20);
}

.section--lg {
  padding-block: clamp(5rem, 10vw, 8rem);
}

/* ── Navigation ── */
/* Styles er flyttet til header.css */

/* ── Cards ── */
.card {
  background: var(--white);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(28,26,23,0.06), 0 4px 16px rgba(28,26,23,0.04);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(28,26,23,0.1), 0 16px 40px rgba(28,26,23,0.08);
}

.card__image {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--sand);
  flex-shrink: 0;
}

.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.card__body {
  padding: var(--space-6) var(--space-7);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card__category {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: var(--space-3);
}

.card__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  line-height: 1.2;
  color: var(--olive);
  margin-bottom: var(--space-3);
}

.card__excerpt {
  font-size: var(--text-sm);
  font-weight: 300;
  line-height: 1.7;
  color: var(--brown);
  flex: 1;
}

.card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--sand);
}

.card__meta {
  font-size: var(--text-xs);
  color: var(--brown);
  opacity: 0.65;
  letter-spacing: 0.02em;
}

.card__read {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clay);
  transition: letter-spacing var(--transition);
  white-space: nowrap;
}

.card:hover .card__read { letter-spacing: 0.16em; }

/* ── Pillars grid ── */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--sand);
}

.pillar {
  background: var(--ivory);
  padding: var(--space-12) var(--space-8);
  transition: background var(--transition);
}

.pillar:hover { background: var(--olive); }

.pillar:hover .pillar__number,
.pillar:hover .pillar__title,
.pillar:hover .pillar__text { color: var(--ivory); }

.pillar__number {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 300;
  color: var(--sand);
  line-height: 1;
  margin-bottom: var(--space-4);
  transition: color var(--transition);
}

.pillar__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  color: var(--olive);
  margin-bottom: var(--space-3);
  transition: color var(--transition);
}

.pillar__text {
  font-size: var(--text-sm);
  font-weight: 300;
  line-height: 1.65;
  color: var(--brown);
  transition: color var(--transition);
}

/* ── Quote block ── */
.blockquote {
  border-left: 2px solid var(--clay);
  padding-left: var(--space-8);
  margin-block: var(--space-12);
}

.blockquote__text {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.4;
  color: var(--olive);
}

.blockquote__cite {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--brown);
  letter-spacing: 0.05em;
}

/* ── Footer & Newsletter ── */
/* Styles er flyttet til footer.css */

/* ── Utility ── */
.text-center { text-align: center; }
.text-olive   { color: var(--olive); }
.text-clay    { color: var(--clay); }
.text-brown   { color: var(--brown); }
.bg-ivory     { background: var(--ivory); }
.bg-sand      { background: var(--sand); }
.bg-olive     { background: var(--olive); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  :root {
    --space-32: 6rem;
    --space-24: 4rem;
    --space-20: 4rem;
  }

  .pillars { grid-template-columns: repeat(2, 1fr); }
  /* Footer grid responsive → se footer.css */
}

@media (max-width: 768px) {
  .container { padding-inline: var(--space-5); }

  /* Nav og footer responsive → se header.css og footer.css */
  .pillars { grid-template-columns: 1fr; }

  /* ── Pillars mobil: alternerende mørk/lys — ingen hover nødvendig ── */
  .pillar {
    padding: var(--space-8) var(--space-6);
    border-top: none;
    border-left: 3px solid transparent;
  }

  /* Ulige: ivory med clay nummer */
  .pillar:nth-child(odd) {
    background: var(--ivory);
    border-left-color: rgba(166,101,70,0.3);
  }

  .pillar:nth-child(odd) .pillar__number {
    color: var(--clay);
    opacity: 0.8;
  }

  .pillar:nth-child(odd) .pillar__title {
    color: var(--olive);
  }

  .pillar:nth-child(odd) .pillar__text {
    color: var(--brown);
  }

  /* Lige: olive med ivory tekst */
  .pillar:nth-child(even) {
    background: var(--olive);
    border-left-color: var(--clay);
  }

  .pillar:nth-child(even) .pillar__number {
    color: rgba(244,239,231,0.3);
  }

  .pillar:nth-child(even) .pillar__title {
    color: var(--ivory);
  }

  .pillar:nth-child(even) .pillar__text {
    color: rgba(244,239,231,0.7);
  }

  /* Fjern hover-effekt på touch */
  .pillar:hover {
    background: inherit;
  }

  .pillar:nth-child(odd):hover { background: var(--ivory); }
  .pillar:nth-child(even):hover { background: var(--olive); }

  .pillar:hover .pillar__number,
  .pillar:hover .pillar__title,
  .pillar:hover .pillar__text {
    color: inherit;
  }

  /* Knapper fuld bredde på mobil */
  .final-cta__actions,
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .final-cta__actions .btn,
  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Sections */
  .section { padding-block: var(--space-16); }
  .section--sm { padding-block: var(--space-12); }
}

/* ============================================================
   DeepYogaWay — Final QA Additions
   Tablet breakpoints + premium spacing polish
   ============================================================ */

/* Tablet nav — vis CTA, skjul links */
@media (min-width: 769px) and (max-width: 1024px) {
  .nav__links {
    gap: var(--space-5);
  }

  .nav__links a {
    font-size: 0.8rem;
  }
}

/* Callout box mobil */
@media (max-width: 768px) {
  .callout {
    padding: var(--space-5) var(--space-6);
  }

  .callout p {
    font-size: var(--text-lg);
  }
}

/* Feature list mobil */
@media (max-width: 768px) {
  .feature-list {
    gap: var(--space-4);
  }
}

/* Display text mobil */
@media (max-width: 480px) {
  .display-xl {
    font-size: clamp(2.4rem, 9vw, 3.2rem);
  }

  .display-lg {
    font-size: clamp(2rem, 8vw, 2.75rem);
  }

  .display-md {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }
}

/* Journal preview header mobil */
@media (max-width: 768px) {
  .journal-preview__header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-6);
  }
}

/* Group facts mobil */
@media (max-width: 768px) {
  .group-facts {
    flex-direction: column;
    gap: var(--space-5);
    border-top: 1px solid var(--sand);
  }

  .group-fact__value {
    font-size: var(--text-3xl);
  }
}
