/* ───────────────────────────────────────────────
   01 • RESET & ROOT
────────────────────────────────────────────────*/
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  /* Neutral palette */
  --color-bg: #f2f3f5;
  --color-surface: #e8e9eb;
  --color-surface-dark: #d7d8da;
  --color-text: #333333;
  --color-heading: #222222;

  /* Accent palette */
  --color-primary: #4c6ef5;
  --color-primary-dark: #3b55c7;
  --color-secondary: #8e8e93;

  /* Neumorphism shadows */
  --shadow-out: 6px 6px 12px #d1d2d4, -6px -6px 12px #ffffff;
  --shadow-in: inset 6px 6px 12px #d1d2d4, inset -6px -6px 12px #ffffff;

  /* Typography */
  --font-heading: 'Inter', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
}

/* ───────────────────────────────────────────────
   02 • GENERIC TYPOGRAPHY
────────────────────────────────────────────────*/
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-heading);
  text-align: center;
  line-height: 1.3;
  margin-bottom: 1rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.05);
}

p {
  margin-bottom: 1rem;
  max-width: 80ch;
}

.subtitle {
  font-family: var(--font-body);
}

/* ───────────────────────────────────────────────
   03 • GLOBAL BUTTONS
────────────────────────────────────────────────*/
.button,
.btn,
button,
input[type='submit'] {
  cursor: pointer;
  border: none;
  border-radius: 50px;
  padding: 0.75rem 2rem;
  font-family: var(--font-heading);
  font-weight: 600;
  color: #ffffff;
  background: var(--color-primary);
  box-shadow: var(--shadow-out);
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.button.is-link,
button.is-link {
  background: var(--color-primary);
}

.button:hover,
.btn:hover,
button:hover,
input[type='submit']:hover,
.button:focus,
.btn:focus {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.15);
}

/* ───────────────────────────────────────────────
   04 • NAVBAR
────────────────────────────────────────────────*/
.navbar {
  background: transparent;
  backdrop-filter: blur(10px);
  transition: background 0.3s ease;
}

.navbar.is-scrolled {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.navbar-burger span {
  background: var(--color-heading);
}

.navbar-menu a.navbar-item {
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar-menu a.navbar-item:hover {
  color: var(--color-primary);
}

/* ───────────────────────────────────────────────
   05 • HERO
────────────────────────────────────────────────*/
#hero.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
}

#hero .title,
#hero .subtitle {
  color: #ffffff;
}

#hero .button {
  background: var(--color-primary);
}

/* ───────────────────────────────────────────────
   06 • CARD COMPONENT
────────────────────────────────────────────────*/
.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--color-surface);
  border-radius: 20px;
  box-shadow: var(--shadow-out);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-out), 0 8px 24px rgba(0, 0, 0, 0.1);
}

.card-image,
.image-container {
  width: 100%;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card-image img,
.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0 auto;
}

/* ───────────────────────────────────────────────
   07 • SECTIONS
────────────────────────────────────────────────*/
.section {
  padding: 4rem 0;
}

.section:nth-child(even) {
  background: var(--color-surface);
}

.section .container.is-two-thirds {
  max-width: 1100px;
  margin: 0 auto;
}

/* ───────────────────────────────────────────────
   08 • EXTERNAL LINKS / READ MORE
────────────────────────────────────────────────*/
.read-more,
.section a[target='_blank'] {
  color: var(--color-primary);
  font-weight: 600;
  position: relative;
  transition: color 0.3s ease;
}

.read-more::after {
  content: '›';
  margin-left: 0.25rem;
  transition: transform 0.3s ease;
}

.read-more:hover,
.section a[target='_blank']:hover {
  color: var(--color-primary-dark);
}

.read-more:hover::after {
  transform: translateX(4px);
}

/* ───────────────────────────────────────────────
   09 • FOOTER
────────────────────────────────────────────────*/
.footer {
  background: var(--color-surface);
  padding: 3rem 1.5rem;
  font-size: 0.9rem;
  box-shadow: var(--shadow-in);
}

.footer a {
  color: var(--color-heading);
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--color-primary);
}

.footer .social-link {
  text-decoration: underline;
}

/* ───────────────────────────────────────────────
   10 • SUCCESS PAGE
────────────────────────────────────────────────*/
body.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.success-page .message-box {
  background: var(--color-surface);
  padding: 3rem 4rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: var(--shadow-out);
}

/* ───────────────────────────────────────────────
   11 • LEGAL PAGES (Privacy & Terms)
────────────────────────────────────────────────*/
body.legal-page {
  padding-top: 100px;
}

/* ───────────────────────────────────────────────
   12 • COOKIES POPUP
────────────────────────────────────────────────*/
#cookie-popup .button {
  padding: 0.5rem 1.5rem;
  border-radius: 6px;
}

/* ───────────────────────────────────────────────
   13 • ANIMATIONS / REVEAL ON SCROLL
────────────────────────────────────────────────*/
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ───────────────────────────────────────────────
   14 • MEDIA QUERIES
────────────────────────────────────────────────*/
@media (max-width: 1024px) {
  .card-image,
  .image-container {
    height: 200px;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 1.9rem;
  }
  h2 {
    font-size: 1.6rem;
  }
  #hero .button {
    width: 80%;
  }
}

/* ───────────────────────────────────────────────
   15 • UTILITIES
────────────────────────────────────────────────*/
.text-center {
  text-align: center;
}

.full-width {
  width: 100%;
}

.mt-2 {
  margin-top: 1rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.pt-5 {
  padding-top: 3rem;
}