/* ============================================
   Europe Social — Site Styles
   europesocial.org
   Monochrome design system per brand guide
   ============================================ */

/* --- Self-hosted Inter font (GDPR: no Google Fonts CDN) --- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/inter-400.ttf) format('truetype');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/inter-600.ttf) format('truetype');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/inter-700.ttf) format('truetype');
}

/* --- Design Tokens --- */
:root {
  --color-black: #000000;
  --color-white: #FFFFFF;
  --color-gray-dark: #333333;
  --color-gray-medium: #666666;
  --color-gray-light: #999999;
  --color-gray-faint: #E5E5E5;

  --font-family: 'Inter', -apple-system, 'SF Pro Text', system-ui, sans-serif;
  --font-weight-regular: 400;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  --h1-size: 32px;
  --h2-size: 24px;
  --h3-size: 20px;
  --body-size: 16px;
  --small-size: 14px;
  --caption-size: 12px;

  --max-width: 960px;
  --section-spacing: 80px;
  --padding-mobile: 16px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-size: var(--body-size);
  font-weight: var(--font-weight-regular);
  line-height: 1.6;
  color: var(--color-black);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--color-black);
  text-decoration: underline;
}

a:hover {
  color: var(--color-gray-dark);
}

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

/* --- Typography --- */
h1 {
  font-size: var(--h1-size);
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
}

h2 {
  font-size: var(--h2-size);
  font-weight: var(--font-weight-bold);
  line-height: 1.3;
}

h3 {
  font-size: var(--h3-size);
  font-weight: var(--font-weight-bold);
  line-height: 1.3;
}

.section-label {
  font-size: var(--caption-size);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-gray-medium);
  margin-bottom: 16px;
}

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

section {
  padding: var(--section-spacing) 0;
}

section + section {
  border-top: 1px solid var(--color-gray-faint);
}

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

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-header__logo {
  font-size: var(--h3-size);
  font-weight: var(--font-weight-bold);
  text-decoration: none;
  color: var(--color-black);
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-header__icon {
  height: 28px;
  width: auto;
}

.site-header__logo:hover {
  color: var(--color-black);
}

.site-header__nav {
  display: flex;
  gap: 24px;
  list-style: none;
}

.site-header__nav a {
  font-size: var(--small-size);
  text-decoration: none;
  color: var(--color-gray-medium);
}

.site-header__nav a:hover {
  color: var(--color-black);
}

.site-header__nav a[aria-current="page"] {
  color: var(--color-black);
  font-weight: var(--font-weight-bold);
}

/* --- Language Switcher --- */
.lang-switcher {
  position: relative;
}

.lang-switcher__btn {
  font-family: var(--font-family);
  font-size: var(--small-size);
  font-weight: var(--font-weight-semibold);
  color: var(--color-gray-medium);
  background: none;
  border: 1px solid var(--color-gray-faint);
  padding: 4px 12px;
  cursor: pointer;
  border-radius: 0;
  letter-spacing: 0.5px;
}

.lang-switcher__btn:hover {
  color: var(--color-black);
  border-color: var(--color-black);
}

.lang-switcher__menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 8px;
  background: var(--color-white);
  border: 1px solid var(--color-gray-faint);
  list-style: none;
  min-width: 140px;
  z-index: 200;
}

.lang-switcher:hover .lang-switcher__menu,
.lang-switcher:focus-within .lang-switcher__menu {
  display: block;
}

.lang-switcher__menu li a {
  display: block;
  padding: 8px 16px;
  font-size: var(--small-size);
  text-decoration: none;
  color: var(--color-gray-dark);
}

.lang-switcher__menu li a:hover {
  background: var(--color-gray-faint);
  color: var(--color-black);
}

.lang-switcher__menu li a[aria-current="page"] {
  color: var(--color-black);
}

/* --- Hero --- */
.hero {
  padding: 96px 0 var(--section-spacing);
  text-align: center;
}

.hero__logo {
  height: 80px;
  width: auto;
  margin: 0 auto 32px;
}

.hero h1 {
  margin-bottom: 24px;
}

.hero__subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-gray-dark);
  max-width: 640px;
  margin: 0 auto 40px;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--font-family);
  font-size: var(--small-size);
  font-weight: var(--font-weight-semibold);
  padding: 12px 32px;
  border: 1px solid var(--color-black);
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

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

.btn--primary:hover {
  background: var(--color-gray-dark);
  color: var(--color-white);
}

.btn--disabled {
  background: var(--color-gray-faint);
  color: var(--color-gray-medium);
  border-color: var(--color-gray-faint);
  cursor: default;
  pointer-events: none;
}

/* --- Why Support --- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.why-block h3 {
  margin-bottom: 8px;
}

.why-block p {
  color: var(--color-gray-dark);
  line-height: 1.6;
}

/* --- Tier Cards --- */
.tiers {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.tier-card {
  border: 1px solid var(--color-gray-faint);
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s;
}

.tier-card:hover {
  border-color: var(--color-black);
}

.tier-card__name {
  font-size: var(--h3-size);
  font-weight: var(--font-weight-bold);
  margin-bottom: 4px;
}

.tier-card__price {
  font-size: var(--h2-size);
  font-weight: var(--font-weight-bold);
  margin-bottom: 4px;
}

.tier-card__price span {
  font-size: var(--small-size);
  font-weight: var(--font-weight-regular);
  color: var(--color-gray-medium);
}

.tier-card__audience {
  font-size: var(--small-size);
  color: var(--color-gray-medium);
  margin-bottom: 24px;
}

.tier-card__perks {
  list-style: none;
  margin-bottom: 32px;
  flex-grow: 1;
}

.tier-card__perks li {
  font-size: var(--small-size);
  line-height: 1.6;
  padding: 4px 0;
  padding-left: 20px;
  position: relative;
}

.tier-card__perks li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--color-gray-light);
}

.tier-card .btn {
  align-self: flex-start;
  width: 100%;
  text-align: center;
}

/* --- European Companies --- */
.eu-verification {
  color: var(--color-gray-dark);
  line-height: 1.6;
  margin-bottom: 32px;
}

.institutional-aside {
  border: 1px solid var(--color-gray-faint);
  padding: 32px;
}

.institutional-aside h3 {
  margin-bottom: 12px;
}

.institutional-aside p {
  color: var(--color-gray-dark);
  line-height: 1.6;
}

.institutional-aside a {
  font-weight: var(--font-weight-semibold);
}

/* --- Supporters Placeholder --- */
.supporters-section h3 {
  margin-bottom: 16px;
}

.supporters-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.supporters-placeholder {
  border: 2px dashed var(--color-gray-faint);
  padding: 48px 24px;
  text-align: center;
}

.supporters-placeholder--large {
  padding: 64px 24px;
}

.supporters-placeholder__label {
  font-size: var(--caption-size);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-gray-light);
  margin-bottom: 8px;
}

.supporters-placeholder__text {
  font-size: var(--small-size);
  color: var(--color-gray-light);
}

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--color-gray-faint);
  padding: 48px 0;
}

.site-footer__attribution {
  font-size: var(--small-size);
  color: var(--color-gray-medium);
  margin-bottom: 24px;
  line-height: 1.6;
}

.site-footer__links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}

.site-footer__links a {
  font-size: var(--small-size);
  color: var(--color-gray-medium);
  text-decoration: none;
}

.site-footer__links a:hover {
  color: var(--color-black);
}

.site-footer__domains {
  font-size: var(--caption-size);
  color: var(--color-gray-light);
}

/* --- Section Intro --- */
.section-intro {
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-gray-dark);
  max-width: 640px;
  margin-bottom: 16px;
}

/* --- Hero Actions --- */
.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Features Grid --- */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 32px;
}

.feature-block h3 {
  margin-bottom: 8px;
}

.feature-block p {
  color: var(--color-gray-dark);
  line-height: 1.6;
}

/* --- Values Grid --- */
.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 32px;
}

.value-block h3 {
  margin-bottom: 8px;
}

.value-block p {
  color: var(--color-gray-dark);
  line-height: 1.6;
}

/* --- Protocol Grid --- */
.protocol-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 32px;
}

.protocol-block {
  border: 1px solid var(--color-gray-faint);
  padding: 24px;
}

.protocol-block h3 {
  margin-bottom: 8px;
}

.protocol-block p {
  color: var(--color-gray-dark);
  line-height: 1.6;
  font-size: var(--small-size);
}

/* --- CTA Section --- */
.cta-section {
  background: var(--color-black);
  color: var(--color-white);
}

.cta-section h2 {
  color: var(--color-white);
}

.cta-section .hero__subtitle {
  color: var(--color-gray-light);
}

.cta-section .btn--primary {
  background: var(--color-white);
  color: var(--color-black);
  border-color: var(--color-white);
}

.cta-section .btn--primary:hover {
  background: var(--color-gray-faint);
  color: var(--color-black);
}

.cta-note {
  font-size: var(--small-size);
  color: var(--color-gray-medium);
  margin-top: 24px;
}

/* --- Responsive: Desktop (768px+) --- */
@media (min-width: 768px) {
  .why-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
  }

  .tiers {
    grid-template-columns: repeat(2, 1fr);
  }

  .tiers .tier-card:last-child {
    grid-column: 1 / -1;
  }

  .supporters-grid {
    grid-template-columns: 1fr 1fr;
  }

  .supporters-grid .supporters-placeholder:first-child {
    grid-column: 1 / -1;
  }

  .features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
  }

  .values-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
  }

  .protocol-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
