/* ==========================================================================
   FelixTS GmbH — Static site styles
   Hand-authored migration of the WordPress/Avada site, enhanced with
   theming (light/dark), i18n-ready controls, and modern motion.
   Native CSS3 only. No framework.
   --------------------------------------------------------------------------
   Sections:
     1.  Theme tokens (light + dark)
     2.  Reset & base
     3.  Typography
     4.  Layout helpers
     5.  Buttons
     6.  Header, nav, theme toggle & language switcher
     7.  Hero slider (+ parallax)
     8.  CTA band
     9.  Icon-box services
     10. Core values
     11. About: team & partners
     12. Services: tabs
     13. Contact: info, form, map
     14. Footer
     15. Motion: scroll-reveal, hover, parallax
     16. Responsive
     17. Reduced motion
   ========================================================================== */

/* 1. Theme tokens --------------------------------------------------------- */
:root {
  /* Brand colours — constant across themes */
  --gold: #fed03d;
  --orange: #e9a825;
  --orange-dark: #cf9114;
  --grad: linear-gradient(135deg, #fed03d 0%, #e9a825 100%);
  --grad-soft: linear-gradient(135deg, rgba(254, 208, 61, 0.14), rgba(233, 168, 37, 0.14));

  /* Semantic colours — light theme (default) */
  --bg: #ffffff;
  --bg-alt: #f5f5f5;
  --surface: #ffffff;
  --heading: #2b2f36;
  --text: #5b6168;                       /* darkened from #747474 to meet AA on white */
  --muted: #7a8089;
  --border: #e6e6e6;

  --header-bg: rgba(255, 255, 255, 0.96);
  --header-text: #333333;
  --footer-bg: #1f1f1f;
  --footer-bg-2: #121212;
  --footer-text: #b9b9b9;
  --footer-heading: #ffffff;

  --hero-overlay: linear-gradient(180deg, rgba(8, 12, 20, 0.34) 0%, rgba(8, 12, 20, 0.62) 100%);
  --shadow-sm: 0 2px 10px rgba(20, 23, 28, 0.07);
  --shadow-md: 0 12px 34px rgba(20, 23, 28, 0.12);
  --card-bg: #ffffff;
  --card-border: #ececec;

  --font-base: "Raleway", "Helvetica Neue", Arial, Helvetica, sans-serif;
  --maxw: 1100px;
  --gutter: 30px;
  --header-h: 84px;
  --radius: 6px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --theme-transition: background-color 0.4s var(--ease), color 0.4s var(--ease),
    border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);

  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #14171c;
  --bg-alt: #1a1e24;
  --surface: #1b2026;
  --heading: #f1f3f5;
  --text: #b8c0c9;
  --muted: #8b929b;
  --border: #2b313a;

  --header-bg: rgba(20, 23, 28, 0.92);
  --header-text: #e7eaee;
  --footer-bg: #0f1115;
  --footer-bg-2: #0a0c0f;
  --footer-text: #aab1ba;
  --footer-heading: #ffffff;

  --hero-overlay: linear-gradient(180deg, rgba(4, 6, 10, 0.5) 0%, rgba(4, 6, 10, 0.72) 100%);
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 16px 40px rgba(0, 0, 0, 0.55);
  --card-bg: #1b2026;
  --card-border: #2b313a;

  color-scheme: dark;
}

/* 2. Reset & base --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-base);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  transition: var(--theme-transition);
}

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

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

ul { margin: 0; padding: 0; list-style: none; }

button { font-family: inherit; cursor: pointer; }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 2px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--orange); color: #fff; padding: 10px 18px; border-radius: var(--radius);
}
.skip-link:focus { left: 8px; top: 8px; }

/* 3. Typography ----------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.5em;
  font-family: var(--font-base);
  color: var(--heading);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  transition: color 0.4s var(--ease);
}
h1 { font-size: clamp(2.2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.2rem; }
h5 { font-size: 1rem; letter-spacing: 1px; }
p { margin: 0 0 1.2em; }

/* eyebrow / kicker above section titles */
.kicker {
  display: block; text-align: center; margin: 0 0 12px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--orange);
}
.section-title {
  text-align: center; font-size: clamp(1.9rem, 3.2vw, 2.5rem); font-weight: 700;
  margin: 0 auto; letter-spacing: -0.02em;
}
.section-title::after {
  content: ""; display: block; width: 60px; height: 4px; margin: 18px auto 1.4rem;
  background: var(--grad); border-radius: 4px;
}
.section-intro { text-align: center; max-width: 760px; margin: 0 auto 3rem; font-size: 1.02rem; }

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

.section { padding: 100px 0; }
.section--light { background: var(--bg-alt); transition: var(--theme-transition); }
.section--white { background: var(--bg); transition: var(--theme-transition); }

.grid { display: grid; gap: 30px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

/* 5. Buttons -------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-block;
  padding: 12px 30px;
  font-size: 0.9rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px;
  border: 2px solid transparent; border-radius: var(--radius);
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn--primary { background: var(--grad); color: #1a1a1a; }
.btn--primary:hover { color: #1a1a1a; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(233, 168, 37, 0.4); filter: brightness(1.04); }
.btn--primary:active { transform: translateY(0); }
.btn--light { background: #fff; color: #1a1a1a; }
.btn--light:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18); }
.btn--lg { padding: 15px 38px; font-size: 0.95rem; }

/* 6. Header, nav, controls ------------------------------------------------ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  box-shadow: var(--shadow-sm);
  transition: height 0.3s var(--ease), background-color 0.4s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.is-stuck { height: 64px; border-bottom-color: var(--border); }

.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 14px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { width: auto; height: 38px; transition: height 0.3s var(--ease); }
.site-header.is-stuck .brand img { height: 30px; }
/* keep the dark-on-transparent logo legible in dark mode */
[data-theme="dark"] .brand img { filter: brightness(0) invert(1); }

.main-nav { margin-right: auto; }  /* nav sits next to the logo; tools pushed to far right */
.main-nav ul { display: flex; align-items: center; gap: 2px; }
.main-nav a {
  display: flex; align-items: center; gap: 7px; padding: 10px 14px;
  color: var(--header-text); font-size: 0.84rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.6px;
  position: relative;
}
.nav-ico { width: 16px; height: 16px; flex: none; }
.main-nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px;
  background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease);
}
.main-nav a:hover, .main-nav a.is-active { color: var(--orange); }
.main-nav a:hover::after, .main-nav a.is-active::after { transform: scaleX(1); }

.header-tools { display: flex; align-items: center; gap: 8px; flex: none; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; background: transparent; border: none;
  color: var(--header-text); border-radius: 50%;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.icon-btn:hover { color: var(--orange); background: rgba(233, 168, 37, 0.12); }
.icon-btn svg { width: 18px; height: 18px; }

/* theme toggle: sliding switch with sun (light) / moon (dark) indicators */
.theme-toggle {
  --tw: 54px; --th: 28px;
  position: relative; flex: none; width: var(--tw); height: var(--th); padding: 0;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--bg-alt);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
[data-theme="dark"] .theme-toggle { background: rgba(255, 255, 255, 0.12); }
.theme-toggle svg {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px; z-index: 1; transition: opacity 0.3s var(--ease);
}
.theme-toggle .i-sun { left: 8px; color: #e9a825; }
.theme-toggle .i-moon { right: 8px; color: #cdd3da; }
.theme-toggle::after { /* thumb */
  content: ""; position: absolute; top: 2px; left: 2px; z-index: 2;
  width: calc(var(--th) - 6px); height: calc(var(--th) - 6px); border-radius: 50%;
  background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}
[data-theme="dark"] .theme-toggle::after {
  transform: translateX(26px); /* track 54 − thumb 22 − 2×2 padding */
  background: var(--grad);
}
.theme-toggle:hover { border-color: var(--orange); }
.theme-toggle:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

/* language switcher — pill matched to the theme switch (flag-only, active highlighted) */
.lang-switch {
  display: inline-flex; align-items: center; gap: 2px;
  height: 28px; padding: 2px; border-radius: 999px;
  background: var(--bg-alt); border: 1px solid var(--border);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
[data-theme="dark"] .lang-switch { background: rgba(255, 255, 255, 0.12); }
.lang-seg {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; padding: 0; border: none; background: transparent;
  border-radius: 50%; cursor: pointer; opacity: 0.5;
  transition: background 0.25s var(--ease), box-shadow 0.25s var(--ease),
    opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.lang-seg .lang-flag {
  width: 20px; height: 20px; display: block; border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15) inset;
  filter: grayscale(0.7); transition: filter 0.25s var(--ease);
}
.lang-seg .lang-code { display: none; } /* icon-only, to match the theme toggle */
.lang-seg:hover { opacity: 0.9; }
.lang-seg:hover .lang-flag { filter: grayscale(0); }
/* selected language — clearly highlighted: full-colour flag, white seat, orange ring */
.lang-seg.is-active { opacity: 1; background: #fff; box-shadow: var(--shadow-sm); transform: scale(1.06); }
.lang-seg.is-active .lang-flag { filter: none; box-shadow: 0 0 0 2px var(--orange); }
[data-theme="dark"] .lang-seg.is-active { background: rgba(255, 255, 255, 0.22); }
.lang-seg:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

.nav-toggle { display: none; }

/* mobile drawer */
.mobile-nav {
  position: fixed; inset: 0 0 0 auto; width: min(320px, 84vw);
  background: var(--surface); z-index: 200;
  transform: translateX(100%); transition: transform 0.32s var(--ease);
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.18); padding: 80px 24px 24px; overflow-y: auto;
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav a {
  display: flex; align-items: center; gap: 14px; padding: 14px 6px; color: var(--heading); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.6px; border-bottom: 1px solid var(--border);
}
.mobile-nav .nav-ico { width: 18px; height: 18px; flex: none; color: var(--orange); }
.mobile-nav a:hover { color: var(--orange); }
.mobile-nav .nav-close { position: absolute; top: 20px; right: 20px; background: none; border: none; color: var(--heading); }
.mobile-nav .nav-close svg { width: 26px; height: 26px; }
.nav-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.45); opacity: 0; visibility: hidden; transition: opacity 0.3s; z-index: 150; }
.nav-backdrop.is-open { opacity: 1; visibility: visible; }

.header-spacer { height: var(--header-h); }

/* 7. Hero slider ---------------------------------------------------------- */
.hero {
  position: relative; margin-top: var(--header-h);
  height: clamp(440px, 72vh, 640px); overflow: hidden; background: #111;
}
.hero__track { position: absolute; inset: 0; }
.hero__slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 1s var(--ease);
  display: flex; align-items: center; justify-content: center;
}
.hero__slide.is-active { opacity: 1; }
.hero__bg {
  position: absolute; inset: -8% 0; z-index: 0; /* extra height for parallax travel */
  background-size: cover; background-position: center;
  transform: translate3d(0, 0, 0); will-change: transform;
}
.hero__slide::before { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--hero-overlay); }
.hero__caption {
  position: relative; z-index: 2; text-align: center; max-width: 860px; padding: 0 24px;
  transform: translateY(24px); opacity: 0;
  transition: transform 0.8s var(--ease) 0.25s, opacity 0.8s var(--ease) 0.25s;
}
.hero__slide.is-active .hero__caption { transform: translateY(0); opacity: 1; }
.hero__title {
  color: #fff; font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 700; letter-spacing: -0.01em;
  text-transform: uppercase; margin-bottom: 0.5em; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}
.hero__title::after {
  content: ""; display: block; width: 70px; height: 4px; margin: 0.5em auto 0;
  background: var(--grad); border-radius: 4px;
}
.hero__subtitle {
  color: rgba(255, 255, 255, 0.92); font-size: clamp(1rem, 1.6vw, 1.3rem); line-height: 1.7;
  margin: 0 auto; max-width: 720px; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}
.hero__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 52px; height: 52px; display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.25); color: #fff; border: none;
  opacity: 0; transition: opacity 0.3s, background 0.3s;
}
.hero:hover .hero__arrow { opacity: 1; }
.hero__arrow:hover { background: var(--orange); }
.hero__arrow svg { width: 24px; height: 24px; }
.hero__arrow--prev { left: 0; } .hero__arrow--next { right: 0; }
.hero__dots { position: absolute; bottom: 22px; left: 0; right: 0; z-index: 5; display: flex; justify-content: center; gap: 10px; }
.hero__dots button {
  width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: transparent; padding: 0;
  transition: background 0.25s, transform 0.25s;
}
.hero__dots button.is-active { background: #fff; transform: scale(1.15); }

.hero--single .hero__slide { opacity: 1; }
.hero--single .hero__arrow, .hero--single .hero__dots { display: none; }

/* 8. CTA band ------------------------------------------------------------- */
.cta-band { background: var(--grad); padding: 50px 0; position: relative; overflow: hidden; }
.cta-band .container {
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
}
.cta-band h2 {
  color: #1a1a1a; font-size: clamp(1.3rem, 2.6vw, 2rem); margin: 0; font-weight: 700;
  flex: 1 1 420px; letter-spacing: -0.01em;
}
.cta-band .btn { flex: none; }

/* 9. Icon-box services ---------------------------------------------------- */
.icon-box {
  text-align: center; padding: 34px 24px;
  background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease), background-color 0.4s var(--ease);
}
.icon-box:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: transparent; }
.icon-box__icon {
  width: 92px; height: 92px; margin: 0 auto 24px; border-radius: 22px;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad); color: #1a1a1a;
  box-shadow: 0 12px 26px rgba(233, 168, 37, 0.28);
  transition: transform 0.35s var(--ease), border-radius 0.35s var(--ease), box-shadow 0.3s var(--ease);
}
.icon-box__icon svg { width: 40px; height: 40px; }
.icon-box:hover .icon-box__icon { transform: translateY(-4px) rotate(-6deg); border-radius: 50%; box-shadow: 0 16px 32px rgba(233, 168, 37, 0.4); }
.icon-box h3 { font-size: 1.25rem; margin-bottom: 0.6em; }
.icon-box p { font-size: 0.95rem; }

/* 10. Core values --------------------------------------------------------- */
.value { text-align: center; padding: 16px; }
.value__icon {
  width: 78px; height: 78px; margin: 0 auto 18px; border-radius: 50%; border: 2px solid var(--orange);
  display: flex; align-items: center; justify-content: center; color: var(--orange);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.value__icon svg { width: 34px; height: 34px; }
.value:hover .value__icon { background: var(--orange); color: #fff; transform: rotate(360deg); }
.value h3 { font-size: 1.15rem; }
.value p { font-size: 0.92rem; }

/* 11. About: team & partners --------------------------------------------- */
.team-card { text-align: center; }
.team-card img { width: 100%; border-radius: var(--radius); filter: grayscale(15%); transition: filter 0.3s, transform 0.3s, box-shadow 0.3s; }
.team-card:hover img { filter: grayscale(0); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.team-card h3 { margin-top: 18px; font-size: 1.2rem; }
.team-card .role { color: var(--orange); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; }

.partners { display: grid; grid-template-columns: repeat(5, 1fr); gap: 30px; align-items: center; margin-top: 2rem; }
.partners img {
  width: 100%; max-width: 160px; margin: 0 auto;
  filter: grayscale(100%); opacity: 0.7; transition: filter 0.3s, opacity 0.3s, transform 0.3s;
}
[data-theme="dark"] .partners img { filter: grayscale(100%) invert(0.85); }
.partners img:hover { filter: grayscale(0); opacity: 1; transform: translateY(-4px); }
[data-theme="dark"] .partners img:hover { filter: grayscale(0) invert(0); }

/* 12. Services: tabs ------------------------------------------------------ */
.tabs__nav { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 36px; }
.tabs__tab {
  padding: 14px 22px; background: transparent; border: none;
  font-size: 0.92rem; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.5px;
  border-bottom: 3px solid transparent; margin-bottom: -2px;
  transition: color 0.25s, border-color 0.25s;
}
.tabs__tab:hover { color: var(--orange); }
.tabs__tab.is-active { color: var(--orange); border-bottom-color: var(--orange); }
.tabs__panel { display: none; }
.tabs__panel.is-active { display: block; animation: fadeIn 0.45s var(--ease); }
.tab-content { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.tab-content img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.tab-content h2 { font-size: 1.8rem; }
.tab-content .tab-text p:last-child { margin-bottom: 0; }

/* 13. Contact ------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; align-items: start; }
.contact-info h5 { color: var(--orange); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 1.5rem; }
.contact-info ul li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--border); }
.contact-info ul li svg { width: 20px; height: 20px; color: var(--orange); flex: none; margin-top: 3px; }
.contact-info address { font-style: normal; }

.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { margin-bottom: 20px; }
.field label { display: block; margin-bottom: 6px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius);
  font-family: inherit; font-size: 0.95rem; color: var(--heading); background: var(--bg-alt);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.field input:focus, .field textarea:focus { border-color: var(--orange); background: var(--bg); outline: none; box-shadow: 0 0 0 3px rgba(233, 168, 37, 0.15); }
.field textarea { resize: vertical; min-height: 150px; }
.field.is-invalid input, .field.is-invalid textarea { border-color: #d33; background: rgba(221, 51, 51, 0.06); }
.field .error-msg { display: none; color: #e0564f; font-size: 0.78rem; margin-top: 4px; }
.field.is-invalid .error-msg { display: block; }
.form-status { display: none; margin-top: 16px; padding: 14px 18px; border-radius: var(--radius); font-size: 0.92rem; }
.form-status.is-success { display: block; background: rgba(46, 125, 50, 0.14); color: #2e7d32; }
[data-theme="dark"] .form-status.is-success { color: #7ddc84; }

.map-embed iframe { width: 100%; height: 360px; border: 0; display: block; }

/* 14. Footer -------------------------------------------------------------- */
.site-footer { background: var(--footer-bg); color: var(--footer-text); transition: var(--theme-transition); }
.footer-widgets { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 50px; padding: 70px 0; }
.footer-widgets h5 { color: var(--footer-heading); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 1.4rem; font-size: 0.95rem; }
.footer-brand img { height: 40px; width: auto; margin-bottom: 20px; background: #fff; padding: 8px 12px; border-radius: var(--radius); }
.footer-widgets p { font-size: 0.9rem; line-height: 1.8; }
.footer-contact li { display: flex; gap: 12px; padding: 7px 0; font-size: 0.9rem; }
.footer-contact li svg { width: 18px; height: 18px; color: var(--gold); flex: none; margin-top: 3px; }
.footer-contact a { color: var(--footer-text); }
.footer-contact a:hover { color: var(--gold); }
.footer-map iframe { width: 100%; height: 180px; border: 0; border-radius: var(--radius); }
.copyright { background: var(--footer-bg-2); text-align: center; padding: 22px 0; font-size: 0.85rem; color: var(--muted); transition: var(--theme-transition); }

.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 90; width: 46px; height: 46px; border-radius: 50%;
  background: var(--orange); color: #fff; border: none; display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.3s; box-shadow: var(--shadow-md);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--orange-dark); transform: translateY(-3px); }
.to-top svg { width: 20px; height: 20px; }

/* 15. Motion -------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); will-change: opacity, transform; }
.reveal[data-reveal="left"]  { transform: translateX(-46px); }
.reveal[data-reveal="right"] { transform: translateX(46px); }
.reveal[data-reveal="zoom"]  { transform: scale(0.92); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* avoid theme-transition flash on initial paint */
.preload *, .preload *::before, .preload *::after { transition: none !important; }

/* 16. Responsive ---------------------------------------------------------- */
@media (max-width: 992px) {
  .footer-widgets { grid-template-columns: 1fr 1fr; }
  .partners { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .tab-content { grid-template-columns: 1fr; gap: 28px; }
  .footer-widgets { grid-template-columns: 1fr; gap: 36px; }
  .cta-band .container { justify-content: center; text-align: center; }
  .cta-band h2 { flex-basis: 100%; text-align: center; }
}
@media (max-width: 560px) {
  .section { padding: 56px 0; }
  .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .partners { grid-template-columns: repeat(2, 1fr); }
  .contact-form .form-row { grid-template-columns: 1fr; }
  .tabs__nav { flex-direction: column; }
  .tabs__tab { border-bottom: 1px solid var(--border); margin: 0; }
  .tabs__tab.is-active { border-bottom-color: var(--orange); }
}

/* 17. Reduced motion ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__bg { transform: none !important; }
}
