/* ==========================================
   DE MUSSEN - Shared Styles
   Brand Guidelines Implementation
   ========================================== */

/* --- Font Imports --- */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;500;600;700&display=swap');

/* Phosphate Solid fallback: Anton (heavy, angular sans-serif) */
@import url('https://fonts.googleapis.com/css2?family=Anton&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Brand Colors (from logo) */
  --color-orange: #F39200;
  --color-green: #7AB51D;
  --color-blue: #009FE3;
  --color-magenta: #E6007E;

  /* Accent: Warm Orange (CMYK 0/50/100/0) */
  --color-accent-warm: #F28C00;

  /* Neutrals */
  --color-white: #FFFFFF;
  --color-off-white: #F8F6F3;
  --color-light-gray: #EAEAEA;
  --color-gray: #888888;
  --color-dark: #2D2D2D;
  --color-black: #1A1A1A;

  /* Typography */
  --font-heading: 'Anton', 'Impact', 'Arial Black', sans-serif;
  --font-body: 'Raleway', 'Calibri', 'Helvetica Neue', sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);

  /* Container */
  --container-max: 1200px;
  --container-padding: 1.25rem;
}

/* --- Reset & Base --- */
*,
*::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-weight: 400;
  line-height: 1.6;
  color: var(--color-dark);
  background-color: var(--color-white);
}

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

a {
  color: var(--color-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-orange);
}

ul {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400; /* Anton only has 400 */
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.75rem); }
h4 { font-size: clamp(1rem, 2vw, 1.25rem); }

p {
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.7;
}

.lead {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--color-gray);
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section {
  padding: var(--space-xl) 0;
}

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

/* --- Header --- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--container-padding);
  max-width: var(--container-max);
  margin: 0 auto;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header__logo img {
  height: 72px;
  width: auto;
}

.header__logo-text {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  text-transform: uppercase;
  color: var(--color-dark);
  line-height: 1.2;
}

.header__logo-text span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: none;
  color: var(--color-gray);
  letter-spacing: 0.05em;
}

/* Navigation */
.nav {
  display: none;
}

.nav.active {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-white);
  box-shadow: var(--shadow-md);
  padding: var(--space-sm);
}

.nav__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nav__link {
  display: block;
  padding: 0.75rem var(--space-sm);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-dark);
  border-bottom: 1px solid var(--color-light-gray);
  transition: color 0.2s, background 0.2s;
}

.nav__link:hover {
  color: var(--color-orange);
  background: var(--color-off-white);
}

/* Mobile menu toggle */
.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--color-dark);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 2px solid transparent;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn--orange {
  background: var(--color-orange);
  color: var(--color-white);
}
.btn--orange:hover {
  background: var(--color-accent-warm);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--green {
  background: var(--color-green);
  color: var(--color-white);
}
.btn--green:hover {
  background: #6a9e18;
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--blue {
  background: var(--color-blue);
  color: var(--color-white);
}
.btn--blue:hover {
  background: #0088c6;
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--magenta {
  background: var(--color-magenta);
  color: var(--color-white);
}
.btn--magenta:hover {
  background: #c9006e;
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  border-color: var(--color-white);
  color: var(--color-white);
}
.btn--outline:hover {
  background: var(--color-white);
  color: var(--color-dark);
}

.btn--outline-dark {
  background: transparent;
  border-color: var(--color-dark);
  color: var(--color-dark);
}
.btn--outline-dark:hover {
  background: var(--color-dark);
  color: var(--color-white);
}

/* --- Cards --- */
.card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: inherit;
  text-decoration: none;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  color: inherit;
}

.card__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card__body {
  padding: var(--space-md);
}

.card__tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}

.card__tag--orange { background: var(--color-orange); color: white; }
.card__tag--green { background: var(--color-green); color: white; }
.card__tag--blue { background: var(--color-blue); color: white; }
.card__tag--magenta { background: var(--color-magenta); color: white; }

.card__title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.card__text {
  font-size: 0.9rem;
  color: var(--color-gray);
  margin-bottom: 1rem;
}

/* --- Stats --- */
.stat {
  text-align: center;
  padding: var(--space-md);
}

.stat__number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--color-orange);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat__label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Footer --- */
.footer {
  background: var(--color-dark);
  color: var(--color-white);
  padding: var(--space-xl) 0 var(--space-md);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer__heading {
  font-size: 1rem;
  color: var(--color-orange);
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
}

.footer__text {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.75);
}

.footer__text a {
  color: var(--color-orange);
}

.footer__text a:hover {
  color: var(--color-white);
}

.footer__social {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--color-white);
  font-size: 1.1rem;
  transition: background 0.2s;
}

.footer__social a:hover {
  background: var(--color-orange);
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: center;
  text-align: center;
}

.footer__bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin: 0;
}

.footer__anbi {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
}

/* --- Section Headers --- */
.section-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.section-header h2 {
  margin-bottom: 0.5rem;
}

.section-header p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--color-gray);
}

/* Color accent bars under headings */
.section-header--orange h2 { color: var(--color-orange); }
.section-header--green h2 { color: var(--color-green); }
.section-header--blue h2 { color: var(--color-blue); }
.section-header--magenta h2 { color: var(--color-magenta); }

/* --- Utility classes --- */
.text-center { text-align: center; }
.text-white { color: var(--color-white); }
.bg-orange { background-color: var(--color-orange); }
.bg-green { background-color: var(--color-green); }
.bg-blue { background-color: var(--color-blue); }
.bg-magenta { background-color: var(--color-magenta); }
.bg-dark { background-color: var(--color-dark); }

/* --- Media Queries --- */

/* Tablet */
@media (min-width: 640px) {
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  :root {
    --container-padding: 2rem;
  }

  .nav {
    display: flex;
  }

  .nav__list {
    flex-direction: row;
    gap: 0.25rem;
  }

  .nav__link {
    padding: 0.5rem 1rem;
    border-bottom: none;
    border-radius: var(--radius-sm);
  }

  .nav__link:hover {
    background: var(--color-off-white);
  }

  .menu-toggle {
    display: none;
  }

  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}
