/* ===================================================================
   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, b, 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;
}
html { line-height: 1.15; -webkit-text-size-adjust: 100%; }
body { line-height: 1.5; }
article, aside, footer, header, nav, section, main { display: block; }
img { max-width: 100%; height: auto; display: block; border:0; }
ul, ol { list-style: none; }
a { background-color: transparent; text-decoration: none; color: inherit; transition: color 0.2s; }
button { background: none; border: none; cursor: pointer; font: inherit; padding: 0; margin: 0; }
input, select, textarea { font-family: inherit; font-size: inherit; }

/* ===================================================================
   BRAND VARIABLES/FALLBACKS
=================================================================== */
:root {
  --color-primary: #005F73;
  --color-primary-dark: #004957;
  --color-secondary: #E9D8A6;
  --color-secondary-light: #FFFBEA;
  --color-accent: #0A9396;
  --color-accent-2: #00787C;
  --color-gradient1: #059BA8;
  --color-gradient2: #E9D8A6;
  --color-gradient3: #86B2CE;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F7FAFC;
  --color-bg-dark: #FAFAFA;
  --color-border: #E5EEF2;
  --color-text: #12313B;
  --color-text-dark: #09313A;
  --color-text-light: #FFFFFF;
  --color-shadow: rgba(0, 95, 115, 0.07);
  --radius: 16px;
  --radius-small: 8px;
  --shadow: 0 4px 18px var(--color-shadow);
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

/* Montserrat + Roboto import (fallbacks provided in HTML) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;900&family=Roboto:wght@400;500;700&display=swap');

body {
  background: linear-gradient( 120deg, var(--color-gradient1) 0%, var(--color-gradient2) 100% );
  min-height: 100vh;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-text);
  font-size: 16px;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  background-attachment: fixed;
}

/* =============================
    CONTAINER & SECTION LAYOUTS
   ============================= */
.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0; /* default gap, use section spacing below */
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.text-section { /* for text-focused sections */
  gap: 24px;
}

/* ========================
     HEADER / BRANDING
   ======================== */
header {
  background: linear-gradient(90deg, var(--color-primary) 50%, var(--color-gradient1) 100%);
  color: var(--color-text-light);
  width: 100%;
  box-shadow: 0 2px 12px var(--color-shadow);
  position: relative;
  z-index: 50;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 82px;
}
.logo {
  display: flex;
  align-items: center;
}
.logo img { height: 46px; width: auto; margin-right: 8px; }

/* =============================
    NAVIGATION (DESKTOP)
   ============================= */
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 28px;
  align-items: center;
}
.main-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--color-secondary);
  text-shadow: 0 2px 10px rgba(0,0,0,0.07);
  position: relative;
  padding: 4px 10px;
  border-radius: var(--radius-small);
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--color-bg);
  background: var(--color-accent);
}

.cta-btn {
  background: linear-gradient(90deg, var(--color-accent-2) 40%, var(--color-primary) 100%);
  color: var(--color-secondary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  border-radius: var(--radius);
  box-shadow: 0 2px 10px var(--color-shadow);
  letter-spacing: 0.015em;
  padding: 12px 30px;
  margin-left: 20px;
  transition: background 0.18s, box-shadow 0.2s, color 0.2s;
  outline: none;
  border: none;
  display: inline-block;
}
.cta-btn:hover, .cta-btn:focus {
  background: linear-gradient(90deg, var(--color-gradient1) 30%, var(--color-primary) 100%);
  color: var(--color-secondary-light);
  box-shadow: 0 4px 20px var(--color-shadow);
  text-decoration: none;
}

/* ===============================
     MOBILE BURGER & MOBILE MENU
   =============================== */
.mobile-menu-toggle {
  display: none;
  font-size: 32px;
  color: var(--color-secondary);
  background: none;
  border: none;
  margin-left: 22px;
  z-index: 110;
  transition: color 0.18s;
  border-radius: 8px;
  padding: 2px 8px;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--color-gradient1);
  color: var(--color-bg);
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(20,42,53, 0.89);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(.63,-0.04,.37,1.16), opacity 0.2s;
  z-index: 200;
  display: flex;
  flex-direction: column;
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 22px; right: 28px;
  font-size: 32px;
  color: var(--color-bg);
  background: var(--color-accent-2);
  border-radius: 50%;
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px var(--color-shadow);
  z-index: 210;
  border: none;
  transition: background 0.18s, color 0.16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-primary-dark);
  color: var(--color-secondary-light);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  justify-content: center;
  align-items: center;
  margin-top: 82px;
}
.mobile-nav a {
  width: 100%;
  text-align: center;
  padding: 16px 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--color-secondary-light);
  letter-spacing: 0.008em;
  border-radius: var(--radius-small);
  background: none;
  transition: background 0.2s, color 0.2s;
  box-shadow: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-accent-2);
  color: var(--color-bg);
}

/* ============================
     HERO SECTIONS
   ============================ */
.hero {
  width: 100%;
  min-height: 380px;
  background: linear-gradient(110deg, var(--color-gradient1) 0%, var(--color-gradient3) 65%, var(--color-gradient2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 60px;
  padding: 0;
}
.hero .container {
  flex-direction: column;
  gap: 0;
  align-items: flex-start;
  justify-content: center;
  min-height: 380px;
}
.hero .content-wrapper {
  gap: 18px;
  align-items: flex-start;
  background: rgba(255,255,255,0.81);
  padding: 38px 34px 42px 38px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 570px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 900;
  color: var(--color-primary);
  letter-spacing: -0.04em;
  margin-bottom: 10px;
}
.hero .subheadline {
  font-size: 20px;
  color: var(--color-accent);
  margin-bottom: 10px;
  line-height: 1.45;
}

/* ==========================
     TYPOGRAPHY
   ========================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 10px;
}
h2 {
  font-size: 30px;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
h3 {
  font-size: 20px;
  margin-bottom: 8px;
}
h4, h5, h6 { font-size: 18px; }
p, ul, ol, li {
  font-family: var(--font-body);
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.7;
}
ul {
  padding-left: 18px;
  margin-bottom: 12px;
}
ul li {
  position: relative;
  margin-bottom: 8px;
  padding-left: 20px;
}
ul li:before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 8px; height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
  display: inline-block;
}
a {
  color: var(--color-accent-2);
  transition: color 0.18s;
}
a:hover, a:focus {
  color: var(--color-accent);
  text-decoration: underline;
}
strong, b { font-weight: 600; color: var(--color-primary); }

/* ==========================
     CARDS & FEATURE SECTIONS
   ========================== */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 24px 0 0 0;
  justify-content: flex-start;
}
.features-grid > div {
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px var(--color-shadow);
  padding: 30px 24px 20px 24px;
  min-width: 210px;
  flex: 1 1 240px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, background 0.16s;
}
.features-grid > div:hover {
  box-shadow: 0 8px 30px var(--color-shadow);
  background: var(--color-secondary-light);
}
.features-grid img {
  width: 42px;
  height: 42px;
  margin-bottom: 8px;
}
.features-grid h3 {
  color: var(--color-primary);
}

/* ======= CARDS (if present) ======= */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  position: relative;
  background: var(--color-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.18s, background 0.18s;
  padding: 28px 20px 24px 24px;
  gap: 16px;
}
.card:hover {
  box-shadow: 0 10px 32px var(--color-shadow);
  background: var(--color-bg-alt);
}

/* =============================
  TESTIMONIALS & REVIEWS
============================= */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--color-secondary-light);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 2px 18px var(--color-shadow);
  margin-bottom: 20px;
  margin-top: 22px;
  transition: box-shadow 0.16s, background 0.15s;
  color: var(--color-text-dark);
  max-width: 700px;
}
.testimonial-card:hover {
  box-shadow: 0 6px 28px var(--color-shadow);
  background: var(--color-secondary);
}
.testimonial-header {
  display: flex;
  align-items: center;
  gap: 18px;
}
.testimonial-header img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 2px solid var(--color-gradient1);
  box-shadow: 0 2px 8px var(--color-shadow);
}
.testimonial-header strong {
  font-weight: 700;
  color: var(--color-primary);
}
.testimonial-body p {
  margin-bottom: 10px;
  color: var(--color-text-dark);
}
.testimonial-body span {
  color: #FFA700;
  font-size: 20px;
  font-family: var(--font-display);
}

/* =====================
   FOOTER
====================== */
footer {
  width: 100%;
  background: linear-gradient(90deg, var(--color-gradient3) 0%, var(--color-accent) 100%);
  color: var(--color-primary);
  padding: 32px 0 0 0;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 12px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-brand img {
  width: 42px; height: 42px;
  margin-right: 4px;
}
.footer-brand span {
  font-size: 16px;
  font-family: var(--font-display);
  font-weight: 600;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-nav a {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 500;
  transition: color 0.17s;
}
.footer-nav a:hover {
  color: var(--color-accent-2);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15px;
  color: var(--color-primary);
}
.footer-contact img {
  margin-right: 8px;
  width: 20px; height: 20px; vertical-align: middle;
  display: inline-block;
}

/* ===============================
     SOCIAL LINKS ON KONTAKT PAGE
   =============================== */
.social-links {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 10px;
}
.social-links li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 15px;
}
.social-links img {
  width: 22px; height: 22px;
}

/* ============================
  RESPONSIVE FLEX LAYOUTS
============================ */
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* =========================
    BUTTONS, LINKS
========================= */
button, .btn, input[type="submit"] {
  font-family: var(--font-display);
  font-weight: 700;
  background: linear-gradient(90deg, var(--color-accent-2) 0%, var(--color-gradient1) 100%);
  color: var(--color-secondary-light);
  border: none;
  border-radius: var(--radius-small);
  padding: 12px 28px;
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.2s, color 0.19s;
  box-shadow: 0 2px 10px var(--color-shadow);
}
button:hover, .btn:hover, input[type="submit"]:hover {
  background: linear-gradient(90deg, var(--color-gradient1) 0%, var(--color-primary) 100%);
  color: var(--color-secondary);
}

/* =====================
    COOKIE BANNER
====================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: var(--color-bg);
  color: var(--color-primary);
  box-shadow: 0 -2px 18px var(--color-shadow);
  z-index: 500;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 24px 8vw 24px 8vw;
  transition: transform 0.4s, opacity 0.2s;
  opacity: 1;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(120%);
}
.cookie-banner p {
  color: var(--color-primary);
  font-size: 16px;
  font-family: var(--font-body);
  margin-bottom: 0;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-left: 26px;
}
.cookie-banner button {
  font-size: 15px;
  border-radius: var(--radius-small);
  padding: 10px 20px;
  border: none;
  box-shadow: 0 2px 6px var(--color-shadow);
  background: var(--color-accent-2);
  color: var(--color-secondary-light);
}
.cookie-banner button.cookie-settings {
  background: var(--color-gradient1);
  color: var(--color-bg);
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: var(--color-primary);
  color: var(--color-secondary-light);
}

/* Cookie Settings Modal */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.38);
  z-index: 1001;
  display: none;
  align-items: center;
  justify-content: center;
}
.cookie-modal-overlay.active {
  display: flex;
}
.cookie-modal {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 8px 48px rgba(0,95,115,0.15);
  max-width: 420px;
  width: 92vw;
  padding: 36px 24px 24px 24px;
  position: relative;
  z-index: 1010;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.cookie-modal h3 {
  font-size: 22px;
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 6px;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  margin-bottom: 12px;
  color: var(--color-primary);
}
.cookie-modal .modal-actions {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 12px;
}
.cookie-modal-close {
  position: absolute;
  top: 16px; right: 18px;
  font-size: 27px;
  color: var(--color-accent-2);
  background: var(--color-bg-alt);
  border-radius: 50%;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: none;
  transition: background 0.16s, color 0.18s;
  z-index: 1020;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--color-accent-2);
  color: var(--color-secondary-light);
}

/* ============================
     MEDIA QUERIES
============================ */
@media (max-width: 1020px) {
  .container {
    max-width: 900px;
  }
  .features-grid {
    gap: 18px;
  }
  footer .container {
    gap: 18px;
  }
}
@media (max-width: 850px) {
  .main-nav { gap: 14px; }
  footer .container { flex-direction: column; gap: 26px; align-items: flex-start; }
}
@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    gap: 7px;
    min-height: 60px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .cta-btn {
    margin-left: 0;
    margin-right: 0;
    font-size: 16px;
    padding: 10px 20px;
  }
  .container {
    padding: 0 10px;
  }
  .section {
    padding: 26px 8px 30px 8px;
    margin-bottom: 36px;
    gap: 18px;
  }
  .features-grid {
    flex-direction: column;
    gap: 16px;
  }
  .features-grid > div {
    min-width: 0;
    width: 100%;
    padding: 18px 12px 12px 12px;
  }
  .content-wrapper {
    gap: 17px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 10px;
  }
  .hero {
    min-height: 210px;
    padding: 0;
  }
  .hero .container {
    min-height: 210px;
  }
  .hero .content-wrapper {
    padding: 22px 10px 22px 14px;
    max-width: 98vw;
    border-radius: 12px;
  }
  .hero h1 { font-size: 28px; }
  .hero .subheadline { font-size: 16px; }
  h2 { font-size: 24px; }
  h3 { font-size: 17px; }
  footer .footer-brand img { width: 30px; height: 30px; }
  .footer-nav { gap: 6px; }
  .footer-contact { font-size: 14px; }
  .cookie-banner { flex-direction: column; gap: 18px; padding: 18px 12px 18px 12px; }
  .cookie-banner .cookie-actions { margin-left: 0; gap: 7px; }
}
@media (max-width: 540px) {
  .hero h1 { font-size: 21px; }
  h2 { font-size: 18px; }
  h3 { font-size: 16px; }
  .footer-nav {
    align-items: flex-start;
    font-size: 14px;
  }
  .footer-brand span { font-size: 12px; }
  .cookie-modal { padding: 16px 6px 16px 10px; }
}

/* ================
  UTILITIES
=================== */
.mt-32 { margin-top: 32px !important; }
.mb-32 { margin-bottom: 32px !important; }
.mt-16 { margin-top: 16px !important; }
.mb-16 { margin-bottom: 16px !important; }
.flex-row { display: flex; flex-direction: row; }
.flex-col { display: flex; flex-direction: column; }
.gap-24 { gap: 24px; }
.gap-16 { gap: 16px; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* Hide visually but keep accessible */
.visually-hidden {
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

/* ===========
MISC EXTRAS
============ */
::-webkit-scrollbar {
  width: 7px;
  background: var(--color-bg-alt);
}
::-webkit-scrollbar-thumb {
  background: var(--color-gradient1);
  border-radius: 7px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent-2);
}

/* Prevent content overlap & min gap */
section, .section, .card, .card-container, .testimonial-card, .features-grid > div {
  margin-bottom: 20px;
}

/* =====================
   ANIMATIONS & EFFECTS
===================== */
.card, .testimonial-card, .features-grid > div, .cookie-banner, .cta-btn, .cookie-modal {
  transition: box-shadow 0.18s, background 0.18s, color 0.17s, transform 0.18s;
}
.cta-btn, button, .btn {
  transition: background 0.18s, color 0.19s, box-shadow 0.22s, transform 0.17s;
}

/* ===========
JAVASCRIPT HOOKS (for .open & .active on mobile menu/cookies)
============ */
body.modal-open {
  overflow: hidden;
}
