/* ============================================================
   CÉLESTE — Design System
   Complete editorial magazine aesthetic
   ============================================================
   Palette:
     Background: #F7F2EA
     Dark:       #111827
     Lavender:   #8B7AB8
     Warm Sand:  #D6B98C
     Grey Blue:  #E8EEF5
     Text:       #20242A
   ============================================================ */

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #F7F2EA;
  color: #20242A;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  color: #111827;
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: clamp(1.1rem, 1.8vw, 1.4rem); }

p { margin-bottom: 1.25rem; }

a {
  color: #8B7AB8;
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: #6B5A98; }

ul, ol { margin-bottom: 1.25rem; padding-left: 1.5rem; }
li { margin-bottom: 0.5rem; }

blockquote {
  border-left: 4px solid #D6B98C;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: rgba(214, 185, 140, 0.08);
  font-style: italic;
  color: #333;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--narrow {
  max-width: 860px;
}

/* --- Section Spacing --- */
.section {
  padding: 5rem 0;
}

.section--hero {
  padding: 6rem 0 4rem;
}

.section--light {
  background-color: #E8EEF5;
}

.section--dark {
  background-color: #111827;
  color: #F7F2EA;
}

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

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
}

.btn--primary {
  background: #111827;
  color: #F7F2EA;
}
.btn--primary:hover {
  background: #2a3a5c;
  color: #F7F2EA;
}

.btn--secondary {
  background: #D6B98C;
  color: #111827;
}
.btn--secondary:hover {
  background: #c4a87a;
  color: #111827;
}

.btn--outline {
  background: transparent;
  color: #111827;
  border: 2px solid #111827;
}
.btn--outline:hover {
  background: #111827;
  color: #F7F2EA;
}

.btn--light {
  background: rgba(247, 242, 234, 0.15);
  color: #F7F2EA;
  border: 1px solid rgba(247, 242, 234, 0.3);
}
.btn--light:hover {
  background: rgba(247, 242, 234, 0.25);
  color: #F7F2EA;
}

/* --- Cards --- */
.card {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.card--sand {
  background: #FFFFFF;
  border-top: 4px solid #D6B98C;
}

.card--lavender {
  background: #FFFFFF;
  border-top: 4px solid #8B7AB8;
}

/* --- Grid Layouts --- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

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

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

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 242, 234, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(17, 24, 39, 0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #111827;
  flex-shrink: 0;
}

.logo svg {
  width: 36px;
  height: 36px;
}

.logo__text {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.02em;
}

/* Navigation */
.nav__list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav__link {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #20242A;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav__link:hover {
  background: rgba(17, 24, 39, 0.05);
  color: #111827;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: #111827;
}

.menu-toggle__icon {
  width: 24px;
  height: 24px;
}

/* Mobile nav */
@media (max-width: 767px) {
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: #F7F2EA;
    border-bottom: 1px solid rgba(17, 24, 39, 0.08);
    padding: 1rem 1.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
  }

  .nav--open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__link {
    padding: 0.85rem 1rem;
    font-size: 1rem;
    border-radius: 10px;
  }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  text-align: center;
  padding: 6rem 0 4rem;
}

.hero__tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #8B7AB8;
  margin-bottom: 1.5rem;
}

.hero__title {
  max-width: 900px;
  margin: 0 auto 1.5rem;
}

.hero__subtitle {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: #555;
  max-width: 700px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* ============================================================
   ARTICLE / CONTENT BLOCKS
   ============================================================ */
.content-block {
  max-width: 860px;
  margin: 0 auto;
}

.content-block p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #333;
}

.section__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #8B7AB8;
  margin-bottom: 0.75rem;
}

.section__title {
  margin-bottom: 1rem;
}

.section__intro {
  font-size: 1.1rem;
  color: #555;
  max-width: 700px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

/* --- Methodology list --- */
.method-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.5rem;
}

.method-list__item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.method-list__number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111827;
  color: #F7F2EA;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 50%;
}

.method-list__content h4 {
  margin-bottom: 0.35rem;
}

.method-list__content p {
  font-size: 0.95rem;
  color: #555;
  margin: 0;
}

/* --- Criteria grid --- */
.criteria-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

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

.criterion {
  padding: 1.5rem;
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.criterion__icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  display: block;
  color: #8B7AB8;
}

.criterion h4 {
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
}

.criterion p {
  font-size: 0.9rem;
  color: #555;
  margin: 0;
}

/* ============================================================
   BRAND CARDS
   ============================================================ */
.brand-card {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.brand-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.brand-card__name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #111827;
}

.brand-card__desc {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.7;
  flex-grow: 1;
  margin: 0;
}

.brand-card__icon {
  margin-bottom: 0.5rem;
}

.brand-card__icon-img {
  width: 200px;
  border-radius: 12px;
  object-fit: contain;
  margin-bottom: 0.75rem;
}

.brand-card__features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.75rem 0;
}

.brand-card__feature {
  font-size: 0.75rem;
  font-weight: 600;
  color: #8B7AB8;
  background: rgba(139, 122, 184, 0.08);
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
}

.brand-card__score {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  margin: 0.5rem 0;
  border-top: 1px solid #f0ebe3;
  border-bottom: 1px solid #f0ebe3;
}

.brand-card__score-label {
  font-size: 0.8rem;
  color: #888;
  font-weight: 500;
}

.brand-card__score-value {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
}

.brand-card__note {
  font-size: 0.82rem;
  line-height: 1.5;
  color: #666;
  font-style: italic;
  margin-top: 0.25rem;
}

.brand-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #8B7AB8;
  padding-top: 0.5rem;
  border-top: 1px solid #eee;
}

.brand-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid #8B7AB8;
  background: transparent;
  color: #8B7AB8;
  text-decoration: none;
  margin-top: 0.75rem;
}
.brand-card__cta:hover {
  background: #8B7AB8;
  color: #FFFFFF;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-item {
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
  padding: 1.25rem 0;
}

.faq-item__question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #111827;
  gap: 1rem;
}

.faq-item__toggle {
  flex-shrink: 0;
  font-size: 1.3rem;
  color: #8B7AB8;
  transition: transform 0.3s ease;
}

.faq-item--open .faq-item__toggle {
  transform: rotate(45deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0;
  color: #555;
  line-height: 1.7;
}

.faq-item--open .faq-item__answer {
  max-height: 500px;
  padding-top: 1rem;
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border: 1.5px solid #ddd;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  background: #FFFFFF;
  color: #20242A;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #8B7AB8;
  box-shadow: 0 0 0 3px rgba(139, 122, 184, 0.12);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #111827;
  color: rgba(247, 242, 234, 0.8);
  padding: 4rem 0 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer__brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #F7F2EA;
  margin-bottom: 0.75rem;
}

.footer__desc {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(247, 242, 234, 0.6);
}

.footer__heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #F7F2EA;
  margin-bottom: 1rem;
}

.footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__links li {
  margin-bottom: 0.5rem;
}

.footer__links a {
  color: rgba(247, 242, 234, 0.65);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer__links a:hover {
  color: #D6B98C;
}

/* Footer logos */
.footer__logos {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  margin: 2.5rem 0 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(247, 242, 234, 0.1);
}

.footer__logo-link {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem;
  background: rgba(247, 242, 234, 0.06);
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s ease;
}
.footer__logo-link:hover {
  background: rgba(247, 242, 234, 0.14);
}

.footer__logo-img {
  height: 32px;
  width: auto;
  display: block;
}

/* 18+ badge */
.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(247, 242, 234, 0.12);
  border: 1.5px solid rgba(247, 242, 234, 0.25);
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
  color: #F7F2EA;
  text-decoration: none;
  transition: all 0.2s ease;
}
.age-badge:hover {
  background: rgba(247, 242, 234, 0.2);
  border-color: #D6B98C;
}

.footer__bottom {
  text-align: center;
  padding-top: 1.5rem;
  font-size: 0.8rem;
  color: rgba(247, 242, 234, 0.4);
}

/* ============================================================
   COOKIE CONSENT
   ============================================================ */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #111827;
  color: #F7F2EA;
  padding: 1.5rem 2rem;
  z-index: 200;
  transform: translateY(100%);
  transition: transform 0.5s ease;
  box-shadow: 0 -4px 30px rgba(0,0,0,0.15);
}

.cookie-consent--visible {
  transform: translateY(0);
}

.cookie-consent__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}

.cookie-consent__text {
  flex: 1;
  min-width: 260px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(247, 242, 234, 0.85);
}

.cookie-consent__text a {
  color: #D6B98C;
  text-decoration: underline;
}

.cookie-consent__actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* ============================================================
   PAGE HEADER (Inner pages)
   ============================================================ */
.page-header {
  padding: 4rem 0 2rem;
  text-align: center;
  background: #E8EEF5;
}

.page-header__title {
  max-width: 800px;
  margin: 0 auto 0.75rem;
}

.page-header__intro {
  font-size: 1.05rem;
  color: #555;
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================================
   RESPONSIBLE GAMING SECTION
   ============================================================ */
.resource-card {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  margin-bottom: 1.25rem;
}

.resource-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.resource-card p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 0.75rem;
}

.resource-card a {
  font-weight: 600;
  font-size: 0.9rem;
}

/* ============================================================
   AGE VERIFICATION OVERLAY
   ============================================================ */
.age-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.age-overlay--visible {
  opacity: 1;
  visibility: visible;
}

.age-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.age-overlay__modal {
  position: relative;
  background: #F7F2EA;
  border-radius: 24px;
  padding: 3rem 2.5rem;
  max-width: 480px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: ageModalIn 0.5s ease forwards;
}

@keyframes ageModalIn {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.age-overlay__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: #111827;
  color: #F7F2EA;
  border-radius: 50%;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.age-overlay__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.75rem;
}

.age-overlay__text {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.age-overlay__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: stretch;
}

.age-overlay__actions .btn {
  justify-content: center;
}

.age-overlay__footnote {
  font-size: 0.75rem;
  color: #999;
  margin-top: 1rem;
}

.age-overlay__footnote a {
  color: #8B7AB8;
  text-decoration: underline;
}

@media (min-width: 480px) {
  .age-overlay__actions {
    flex-direction: row;
  }
}

/* ============================================================
   MISC UTILITIES
   ============================================================ */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.py-1 { padding-top: 1rem; padding-bottom: 1rem; }
.py-2 { padding-top: 2rem; padding-bottom: 2rem; }

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
  to { opacity: 1; transform: translateY(0); }
}

.age-notice {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(17, 24, 39, 0.04);
  border-radius: 12px;
  font-size: 0.9rem;
  color: #555;
  margin: 1.5rem 0;
}

/* ============================================================
   RESPONSIVE TWEAKS
   ============================================================ */
@media (max-width: 480px) {
  .section { padding: 3rem 0; }
  .section--hero { padding: 4rem 0 2rem; }
  .hero { padding: 3rem 0 2rem; }
  .card { padding: 1.5rem; }
  .brand-card { padding: 1.5rem; }
  .cookie-consent { padding: 1.25rem; }
  .footer__logos { gap: 0.65rem; }
  .footer__logo-link { font-size: 0.7rem; padding: 0.35rem 0.65rem; }
}
