/**
 * @file        main.css
 * @description Global reset, CSS custom properties, typography, and base element styles
 *
 * @author      Thomas Dobler - SYNTHETIXMIND LTD
 * @email       tom@synthetixmind.com
 * @company     SYNTHETIXMIND LTD, Paphos, Cyprus
 * @url         https://synthetixmind.com
 *
 * @uid         a1b2c3d4-e5f6-7890-abcd-ef1234567890
 * @version     0.0.0.3
 * @created     2026-05-10
 * @updated     2026-05-10
 *
 * @copyright   (c) 2026 by SYNTHETIXMIND LTD
 * @license     Proprietary — All rights reserved
 */

/* ── Design tokens ───────────────────────────────────────────────────────── */
:root {
  /* Colour palette */
  --color-blue:    #123B5D; /* Tiefes Blau — anchor, headings, nav */
  --color-gold:    #C7A96B; /* Champagner-Gold — CTAs only */
  --color-petrol:  #4FA3A5; /* Sanftes Petrol — sub-headings, icons, hover */
  --color-ice:     #E9F2F7; /* Helles Eisblau — alternate section backgrounds */
  --color-ivory:   #F6F1E8; /* Warmes Elfenbein — default page background */
  --color-gray:    #D4CFC6; /* Elfenbein-Grau — borders, dividers */

  /* Semantic colour aliases */
  --color-text-primary:   var(--color-blue);
  --color-text-body:      #2C3E50;
  --color-text-muted:     #6B7280;
  --color-bg-default:     var(--color-ivory);
  --color-bg-alt:         var(--color-ice);
  --color-border:         var(--color-gray);
  --color-cta:            var(--color-gold);
  --color-cta-text:       #ffffff;
  --color-accent:         var(--color-petrol);

  /* Typography — Brand Konzept authoritative */
  --font-display:  'Playfair Display', Georgia, serif; /* H1 */
  --font-serif:    'Lora', Georgia, serif;             /* H2, H3 */
  --font-body:     'Inter', system-ui, sans-serif;     /* Body — min 17px */

  /* Font sizes (mobile-first, rem based on 16px root) */
  --text-xs:   0.8125rem;  /* 13px */
  --text-sm:   0.875rem;   /* 14px */
  --text-base: 1.0625rem;  /* 17px — brand minimum */
  --text-lg:   1.125rem;   /* 18px */
  --text-xl:   1.25rem;    /* 20px */
  --text-2xl:  1.5rem;     /* 24px */
  --text-3xl:  1.75rem;    /* 28px */
  --text-4xl:  2rem;       /* 32px */
  --text-5xl:  2.5rem;     /* 40px */
  --text-6xl:  3rem;       /* 48px */

  /* Spacing scale */
  --space-1:   0.25rem;   /*  4px */
  --space-2:   0.5rem;    /*  8px */
  --space-3:   0.75rem;   /* 12px */
  --space-4:   1rem;      /* 16px */
  --space-5:   1.25rem;   /* 20px */
  --space-6:   1.5rem;    /* 24px */
  --space-8:   2rem;      /* 32px */
  --space-10:  2.5rem;    /* 40px */
  --space-12:  3rem;      /* 48px */
  --space-16:  4rem;      /* 64px */
  --space-20:  5rem;      /* 80px */

  /* Layout */
  --max-width:      1200px;
  --section-py:     var(--space-12);  /* 48px mobile */
  --container-px:   var(--space-5);   /* 20px mobile gutter */

  /* Border radius */
  --radius-sm:  0.375rem;
  --radius-md:  0.75rem;
  --radius-lg:  1rem;
  --radius-xl:  1.5rem;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(18, 59, 93, 0.08);
  --shadow-md:  0 4px 16px rgba(18, 59, 93, 0.12);
  --shadow-lg:  0 8px 40px rgba(18, 59, 93, 0.18);
  --shadow-xl:  0 20px 60px rgba(18, 59, 93, 0.22);

  /* Gradients */
  --gradient-blue:   linear-gradient(135deg, #0d2e49 0%, #1a4d74 50%, #123B5D 100%);
  --gradient-gold:   linear-gradient(135deg, #d4b06f 0%, #C7A96B 60%, #b08040 100%);
  --gradient-petrol: linear-gradient(135deg, #3d8b8d 0%, #4FA3A5 100%);
  --gradient-glass:  linear-gradient(135deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.04) 100%);

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;

  /* Nav */
  --nav-height: 70px;
}

/* ── CSS Reset ───────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

/* WHY: prefers-reduced-motion disables all transitions and animations globally */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text-body);
  background-color: var(--color-bg-default);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

ul,
ol {
  list-style: none;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-blue);
}

a:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

button:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ── Typography ──────────────────────────────────────────────────────────── */
h1 {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-text-primary);
}

h2 {
  font-family: var(--font-serif);
  font-size: var(--text-3xl);
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-text-primary);
}

h3 {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-text-primary);
}

h4 {
  font-family: var(--font-body);
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-text-primary);
}

p {
  margin-bottom: var(--space-4);
}

p:last-child {
  margin-bottom: 0;
}

/* ── Layout utilities ────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

.section {
  padding-block: var(--section-py);
}

.section--alt {
  background-color: var(--color-bg-alt);
}

.section--dark {
  background-color: var(--color-blue);
  color: #ffffff;
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: #ffffff;
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section__label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.section__title {
  margin-bottom: var(--space-4);
}

.section__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 640px;
  margin-inline: auto;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
  line-height: 1;
  padding: calc(var(--space-4) + 2px) var(--space-8);
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color var(--transition-base), color var(--transition-base),
              border-color var(--transition-base), box-shadow var(--transition-base),
              transform var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.btn:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

/* Primary CTA — Gold gradient, CTAs only */
.btn--primary {
  background: var(--gradient-gold);
  color: var(--color-blue);
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(199, 169, 107, 0.35);
}

.btn--primary:hover {
  background: linear-gradient(135deg, #c9a45e 0%, #b8954f 60%, #9a7038 100%);
  color: var(--color-blue);
  box-shadow: 0 8px 28px rgba(199, 169, 107, 0.50);
}

/* Secondary / Ghost */
.btn--secondary {
  background-color: transparent;
  color: var(--color-blue);
  border-color: var(--color-blue);
}

.btn--secondary:hover {
  background-color: var(--color-blue);
  color: #ffffff;
  box-shadow: var(--shadow-md);
}

/* Ghost on dark background */
.btn--ghost {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(4px);
}

.btn--ghost:hover {
  background-color: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.7);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* ── Scroll-reveal animation ─────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* WHY: honour reduced-motion by showing content immediately without animation */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── Accessibility: skip link ────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--color-gold);
  color: var(--color-blue);
  font-weight: 700;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  z-index: 9999;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-4);
}
