/* =====================
   CSS RESET & NORMALIZE
   ===================== */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.4;
  background-color: #121822;
  color: #F5F7FA;
  font-family: 'Open Sans', Arial, sans-serif;
  min-height: 100vh;
  font-size: 16px;
  letter-spacing: 0.01em;
}
img {
  max-width: 100%;
  height: auto;
  border: 0;
  display: inline-block;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
  outline: none;
}
a:focus {
  outline: 2px solid #A0B04B;
  outline-offset: 2px;
}
ul, ol {
  list-style: none;
}
button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  outline: none;
}
input, textarea, select {
  font-family: inherit;
}

/* ==================================
   COLOR VARIABLES & BRAND UTILITIES
   ================================== */
:root {
  --clr-primary: #22647A;
  --clr-primary-light: #3da7ca;
  --clr-secondary: #A0B04B;
  --clr-secondary-dark: #7b902d;
  --clr-accent: #F5F7FA;
  --clr-neutral-900: #121822;
  --clr-neutral-800: #232e3e;
  --clr-neutral-700: #2d3e4f;
  --clr-neutral-200: #dbe3ea;
  --clr-white: #fff;
  --clr-neon-blue: #3fd3ff;
  --clr-neon-green: #baff6c;
  --clr-neon-pink: #ff37a6;
  --box-shadow: 0 4px 24px 0 rgba(60,200,250,0.07), 0 1.5px 5px rgba(50,90,190,0.13);
}

/* ======================
   TYPOGRAPHY
   ====================== */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,800&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  text-transform: none;
  color: var(--clr-accent);
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.2rem;
  margin-bottom: 24px;
  line-height: 1.17;
}
h2 {
  font-size: 1.7rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--clr-neon-blue);
}
h4, h5, h6 {
  font-size: 1.06rem;
  color: var(--clr-secondary);
}
p, ul, li, a, label, input, textarea {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: var(--clr-accent);
  line-height: 1.6;
}
strong {
  font-weight: 700;
  color: var(--clr-secondary);
}
.small {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* ======================
   LAYOUT
   ====================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  margin-left: auto;
  margin-right: auto;
  background: rgba(27, 44, 67, 0.8);
  border-radius: 20px;
  box-shadow: var(--box-shadow);
  padding: 40px 20px;
  margin-bottom: 60px;
}
.text-section {
  background: rgba(35,46,79,0.7);
  border-radius: 14px;
  padding: 32px 20px;
  margin-top: 20px;
  margin-bottom: 32px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}

/* ======================
   FLEXBOX SYSTEM
   ====================== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
  margin-bottom: 24px;
}
.feature-grid > div {
  background: rgba(27, 44, 67, 0.95);
  border-radius: 16px;
  padding: 28px 20px;
  flex: 1 1 280px;
  min-width: 240px;
  box-shadow: 0 2px 16px rgba(63,211,255,0.06);
  margin-bottom: 20px;
  transition: box-shadow 0.18s, border 0.18s;
  border: 1.5px solid transparent;
}
.feature-grid > div:hover, .feature-grid > div:focus-within {
  border: 1.5px solid var(--clr-neon-blue);
  box-shadow: 0 4px 30px 0 rgba(63,211,255,0.19), 0 0.5px 3px 0 rgba(186,255,108,0.12);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: rgba(27,44,67,0.93);
  border-radius: 16px;
  box-shadow: var(--box-shadow);
  padding: 32px 24px;
  transition: box-shadow 0.19s, border 0.2s;
  border: 1.5px solid transparent;
}
.card:hover, .card:focus-within {
  border: 1.5px solid var(--clr-neon-blue);
  box-shadow: 0 4px 30px 0 rgba(63,211,255,0.13);
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--clr-accent);
  color: var(--clr-neutral-900);
  border-radius: 18px;
  box-shadow: 0 3px 16px 0 rgba(63,211,255,0.09);
  margin-bottom: 20px;
  font-size: 1.1rem;
  line-height: 1.7;
  border-left: 4px solid var(--clr-neon-blue);
}
.testimonial-card p {
  color: var(--clr-neutral-900);
  margin-bottom: 0;
}
.testimonial-card strong {
  color: var(--clr-primary);
  margin-left: 10px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}


/* ======================
   HEADER & NAVIGATION
   ====================== */
header {
  width: 100%;
  background: linear-gradient(85deg, #1a2837 50%, #22647A 100%);
  box-shadow: 0 1.5px 12px 0 rgba(63,211,255,0.11);
  padding-top: 12px;
  padding-bottom: 12px;
  position: relative;
  z-index: 100;
}
header .container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
header nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  text-transform: uppercase;
  font-size: 1.02rem;
  color: var(--clr-accent);
  opacity: 0.91;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 6px 3px;
  position: relative;
  transition: color 0.19s;
}
header nav a:hover, header nav a.active {
  color: var(--clr-neon-blue);
  opacity: 1;
}

.cta-primary {
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 14px 36px;
  background: var(--clr-neon-blue);
  color: #101725;
  font-weight: 800;
  border-radius: 100px;
  font-size: 1.08rem;
  box-shadow: 0 2px 12px 0 rgba(63,211,255,0.21), 0 0.5px 3px 0 rgba(186,255,108,0.07);
  border: 1.5px solid var(--clr-neon-blue);
  letter-spacing: 0.04em;
  margin-left: 24px;
  margin-right: 0;
  display: inline-block;
  transition: background 0.19s, color 0.13s, transform 0.13s, border 0.13s;
  position: relative;
  z-index: 2;
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--clr-neon-green);
  border: 1.5px solid var(--clr-neon-green);
  color: #101725;
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 4px 18px 0 rgba(186,255,108,0.14);
}

header img[alt='Recuspatri AlpenEntdecker'] {
  height: 46px;
  width: auto;
  margin-right: 18px;
}

/* ===============
   MOBILE NAVIGATION
   =============== */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 28px;
  top: 22px;
  font-size: 2.2rem;
  color: var(--clr-neon-blue);
  background: transparent;
  border: none;
  z-index: 210;
  width: 44px;
  height: 44px;
  transition: color 0.2s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  color: var(--clr-neon-green);
}
.mobile-menu {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(26,40,55,0.98);
  z-index: 2999;
  transform: translateX(-102vw);
  transition: transform 0.36s cubic-bezier(.77,.25,.4,1.09);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 38px;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  right: 22px;
  top: 18px;
  font-size: 2.3rem;
  color: var(--clr-neon-blue);
  background: transparent;
  border: none;
  z-index: 3010;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--clr-neon-green);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  margin-top: 46px;
  align-items: flex-start;
  padding-left: 38px;
}
.mobile-nav a {
  color: var(--clr-accent);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.32rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 8px 0;
  letter-spacing: 0.02em;
  transition: color 0.16s, background 0.16s;
  border-radius: 4px;
  min-width: 220px;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--clr-neon-blue);
  background: rgba(63,211,255,0.055);
}

@media (max-width: 1024px) {
  header nav {
    gap: 18px;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 100vw;
    padding-left: 12px;
    padding-right: 12px;
  }
  .content-wrapper, .text-section {
    padding: 24px 10px;
  }
}
@media (max-width: 820px) {
  header .container {
    flex-wrap: wrap;
    gap: 12px;
  }
  .feature-grid {
    gap: 16px;
  }
}
@media (max-width: 768px) {
  .feature-grid {
    flex-direction: column;
  }
  .content-grid, .card-container, .text-image-section {
    flex-direction: column;
    gap: 16px;
  }
  header nav,
  header .cta-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .content-wrapper, .section {
    padding: 22px 4vw;
  }
  .text-section {
    padding: 12px 4vw;
  }
}
@media (max-width: 500px) {
  .content-wrapper, .section, .text-section {
    border-radius: 9px;
  }
  h1 { font-size: 1.35rem; }
  h2 { font-size: 1.12rem; }
  h3 { font-size: 1rem; }
  .testimonial-card {
    font-size: 1rem;
    padding: 14px 10px;
  }
}

/* ======================
   HERO & SECTIONS
   ====================== */
section {
  background: none;
  margin-bottom: 60px;
  padding: 40px 20px;
}
section:first-of-type {
  background: linear-gradient(120deg,#001824 60%,#22647A 100%);
  box-shadow: 0 5px 24px 0 rgba(63,211,255,0.09);
}
section .container {
  padding: 0;
}

/* ======================
   LISTS & ICONS
   ====================== */
ul li, .feature-item li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--clr-accent);
}
ul li img, .feature-item li img {
  height: 26px;
  width: 26px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px var(--clr-neon-blue));
}

/* ======================
   FOOTER
   ====================== */
footer {
  background: linear-gradient(87deg,#182539 80%, #22647A 100%);
  padding: 36px 0 18px 0;
  color: var(--clr-accent);
  box-shadow: 0 -1.5px 10px 0 rgba(63,211,255,0.08);
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
footer nav {
  display: flex;
  gap: 22px;
}
footer nav a {
  color: var(--clr-accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  opacity: 0.8;
  font-size: 0.97rem;
  transition: color 0.18s;
}
footer nav a:hover, footer nav a:focus {
  color: var(--clr-neon-blue);
  opacity: 1;
}
footer p {
  font-size: 0.97rem;
  color: var(--clr-accent);
  opacity: 0.8;
  margin-top: 6px;
}
@media (max-width: 600px) {
  footer .container { flex-direction: column; gap: 10px; }
  footer nav { gap: 14px; }
}

/* ======================
   SOCIAL ICONS
   ====================== */
.social-links {
  display: flex;
  gap: 20px;
  margin-top: 14px;
}
.social-links a {
  border-radius: 50%;
  background: rgba(63,211,255,0.09);
  padding: 8px;
  display: flex;
  transition: background 0.18s;
  box-shadow: 0 2px 6px 0 rgba(63,211,255,0.09);
}
.social-links a:hover, .social-links a:focus {
  background: var(--clr-neon-blue);
}
.social-links img {
  width: 30px;
  height: 30px;
}

/* ======================
   BUTTONS & LINKS
   ====================== */
button, .button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  padding: 12px 32px;
  border-radius: 100px;
  background: var(--clr-primary);
  color: var(--clr-accent);
  border: 1.5px solid var(--clr-primary);
  margin-right: 12px;
  margin-bottom: 10px;
  box-shadow: 0 2px 13px 0 rgba(63,211,255,0.13);
  transition: background 0.16s, color 0.16s, border 0.16s;
}
button:hover, button:focus, .button:hover, .button:focus {
  background: var(--clr-secondary);
  color: var(--clr-neutral-900);
  border: 1.5px solid var(--clr-secondary);
}

/* ========================
   MICROS & ANIMATIONS
   ======================== */
.cta-primary, button, .button {
  transition: background 0.18s, color 0.15s, border 0.13s, transform 0.16s;
}
.cta-primary:active, button:active, .button:active {
  transform: scale(0.96);
}

/* ======================
   COOKIE CONSENT BANNER
   ====================== */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  z-index: 3999;
  padding: 28px 30px 24px 30px;
  background: rgba(28, 32, 52, 0.98);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  box-shadow: 0 -2px 24px 0 rgba(63,211,255,0.13);
  gap: 32px;
  flex-wrap: wrap;
  animation: cookieAppear 0.7s cubic-bezier(.4,1.3,.4,1) both;
}
@keyframes cookieAppear {
  0% { opacity: 0; transform: translateY(60px); }
  100% { opacity: 1; transform: translateY(0); }
}
.cookie-banner p {
  color: var(--clr-accent);
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  flex: 1 1 250px;
  margin-right: 22px;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.cookie-banner button {
  background: var(--clr-neon-blue);
  color: #101725;
  border: 1.5px solid var(--clr-neon-blue);
  font-size: 1.07rem;
  font-weight: 700;
  margin-bottom: 0;
  margin-right: 12px;
  padding: 12px 28px;
  border-radius: 100px;
  transition: background 0.19s, color 0.14s, border 0.14s, box-shadow 0.18s;
  box-shadow: 0 3px 10px 0 rgba(63,211,255,0.13);
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: var(--clr-neon-green);
  color: #101725;
  border: 1.5px solid var(--clr-neon-green);
}
.cookie-banner .settings {
  background: var(--clr-secondary);
  color: #101725;
  border: 1.5px solid var(--clr-secondary);
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: var(--clr-primary-light);
  color: #101725;
  border: 1.5px solid var(--clr-primary-light);
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 12px;
    gap: 16px;
  }
  .cookie-banner .cookie-actions {
    gap: 10px;
    width: 100%;
  }
}

/* ===============
   COOKIE MODAL
   =============== */
.cookie-modal {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(14,20,34,0.92);
  z-index: 4900;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.13s, opacity 0.23s;
}
.cookie-modal.active {
  visibility: visible;
  opacity: 1;
}
.cookie-modal-content {
  background: var(--clr-neutral-800);
  border-radius: 18px;
  padding: 38px 28px 28px 28px;
  box-shadow: 0 7px 24px 0 rgba(63,211,255,0.19);
  color: var(--clr-accent);
  min-width: 320px;
  animation: cookieModalScale 0.32s cubic-bezier(.32,1.3,.34,1) both;
  max-width: 90vw;
}
@keyframes cookieModalScale {
  0% { transform: scale(0.91); opacity: 0; }
  60% { transform: scale(1.02); }
  100% { transform: scale(1); opacity: 1; }
}
.cookie-modal-content h2 {
  margin-bottom: 19px;
}
.cookie-modal-content ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cookie-modal-content li {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--clr-accent);
  font-size: 1.08rem;
  margin-bottom: 0;
}
.cookie-modal-content .cookie-toggle {
  width: 44px;
  height: 24px;
  background: var(--clr-neutral-700);
  border-radius: 24px;
  position: relative;
  margin-left: auto;
  margin-right: 0;
  cursor: pointer;
  transition: background 0.13s;
}
.cookie-modal-content .cookie-toggle[data-checked="true"] {
  background: var(--clr-neon-blue);
}
.cookie-modal-content .cookie-toggle .toggle-knob {
  display: block;
  position: absolute;
  left: 4px;
  top: 3.5px;
  width: 18px;
  height: 17px;
  border-radius: 50%;
  background: var(--clr-accent);
  transition: left 0.15s;
}
.cookie-modal-content .cookie-toggle[data-checked="true"] .toggle-knob {
  left: 22px;
  background: var(--clr-neon-green);
}
.cookie-modal-content .cookie-modal-close {
  position: absolute;
  right: 20px;
  top: 14px;
  font-size: 2.2rem;
  color: var(--clr-neon-blue);
  background: none;
  border: none;
}
.cookie-modal-content .cookie-modal-close:hover, 
.cookie-modal-content .cookie-modal-close:focus {
  color: var(--clr-neon-green);
}
.cookie-modal-content .cookie-actions {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}
.cookie-modal-content .cookie-actions button {
  padding: 10px 27px;
  font-size: 1.04rem;
  border-radius: 100px;
}

@media (max-width: 480px) {
  .cookie-modal-content {
    min-width: 94vw;
    padding: 18px 5vw;
    border-radius: 10px;
  }
}

/* ======================
   MISC. ACCESSORIES
   ====================== */
::-webkit-scrollbar {
  width: 8px;
  background: #202940;
}
::-webkit-scrollbar-thumb {
  background: #314155;
  border-radius: 4px;
}

/* Subtle neon borders */
.content-wrapper, .card, .feature-grid > div, .text-section {
  border: 1.5px solid rgba(31,255,178,0.06);
  transition: border 0.18s, box-shadow 0.14s;
}
.content-wrapper:focus-within, .card:focus-within, .feature-grid > div:focus-within,
.content-wrapper:hover, .card:hover, .feature-grid > div:hover {
  border: 1.5px solid var(--clr-neon-blue);
  box-shadow: 0 4px 28px rgba(63,211,255,0.09);
}

/* Inputs/forms (where applicable, i.e. contact, newsletter) */
input, textarea {
  background: var(--clr-neutral-800);
  color: var(--clr-accent);
  border: 1.5px solid var(--clr-primary);
  border-radius: 8px;
  padding: 11px 17px;
  width: 100%;
  margin-bottom: 18px;
  font-size: 1.06rem;
  transition: border 0.16s, box-shadow 0.13s;
}
input:focus, textarea:focus {
  border: 1.5px solid var(--clr-neon-blue);
  box-shadow: 0 1.5px 8px rgba(63,211,255,0.13);
}

/* ===============
   TABLES (Legal Pages)
   =============== */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 28px;
}
th, td {
  border: 1px solid #263243;
  padding: 12px 10px;
  text-align: left;
  background: rgba(35,46,79,0.38);
  color: var(--clr-accent);
  font-size: 1rem;
}
th {
  background: var(--clr-primary);
  color: var(--clr-accent);
}

/* ======================
   FOCUS STYLES (A11Y)
   ====================== */
a:focus, .cta-primary:focus, button:focus {
  box-shadow: 0 0 0 2px var(--clr-neon-green);
  outline: 2px solid var(--clr-neon-blue);
  outline-offset: 2px;
}

/* ======================
   SPACING FOR LISTS AND BETWEEN CARDS/SECTIONS
   ====================== */
ul {
  margin-bottom: 20px;
}
li + li {
  margin-top: 10px;
}
.section + .section, .content-wrapper + .content-wrapper, .card + .card {
  margin-top: 32px;
}

/* ======================
   OVERLAY/LOADING (for modals)
   ====================== */
.overlay {
  background: rgba(12,24,48,0.77);
  position: fixed;
  width: 100vw;
  height: 100vh;
  left: 0; top: 0;
  z-index: 4700;
  display: none;
}
.overlay.active {
  display: block;
}

/* ======================
   RESPONSIVE ALIGNMENT (critical)
   ====================== */
@media (max-width: 768px) {
  .feature-grid, .card-container, .content-grid, .text-image-section {
    flex-direction: column;
    gap: 16px;
  }
  .content-wrapper, .section, .testimonial-card {
    margin-bottom: 30px;
  }
}

/* ======================
   END CSS
   ====================== */