/* =====================
   CSS RESET & NORMALIZATION
   ===================== */
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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.4;
  background: #f8fafd;
  color: #184257;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
*, *:before, *:after {
  box-sizing: inherit;
}

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

:root {
  --color-primary: #184257;
  --color-secondary: #D6E0E8;
  --color-accent: #F5C142;
  --color-bg-gradient-from: #f8fafd;
  --color-bg-gradient-to: #e4edf4;
  --color-bg-card: #fff;
  --color-bg-hero: #d6e0e8;
  --color-text-main: #184257;
  --color-text-dark: #183040;
  --color-text-light: #fff;
  --color-shadow: rgba(24,66,87,0.08);
  --radius: 18px;
  --shadow:
    0 6px 24px 0 var(--color-shadow),
    0 1.5px 4px 0 var(--color-shadow);
  --transition: .24s cubic-bezier(.47,1.64,.41,.8);
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
}

/* =====================
   LAYOUT: CONTAINERS
   ===================== */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: linear-gradient(120deg, var(--color-bg-gradient-from) 0%, var(--color-bg-gradient-to) 100%);
  border-radius: var(--radius);
}

/* =====================
   TYPOGRAPHY
   ===================== */
h1, h2, h3, h4, .btn-primary, .btn-secondary {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -.5px;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.15;
  margin: 0 0 16px 0;
}
h2 {
  font-size: 2rem;
  margin: 0 0 12px 0;
}
h3 {
  font-size: 1.3rem;
  margin: 0 0 8px 0;
}
h4 {
  font-size: 1.1rem;
}
p, li, strong {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text-main);
}
strong {
  font-weight: 600;
}

@media (max-width:480px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.16rem; }
  h3 { font-size: 1.02rem; }
}

/* =====================
   HEADER & MAIN NAVIGATION
   ===================== */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 12px 0 var(--color-shadow);
  position: relative;
  z-index: 100;
}
nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}
nav > a > img {
  height: 42px;
  width: auto;
}
nav ul {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-left: 32px;
}
nav ul li a {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
  padding: 8px 10px;
  border-radius: 8px;
  transition: background 0.16s, color 0.16s;
  position: relative;
}
nav ul li a:hover,
nav ul li a:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}
nav .btn-primary {
  margin-left: 40px;
}

/* =====================
   MOBILE BURGER MENU
   ===================== */
.mobile-menu-toggle {
  display: none;
  font-size: 2.1rem;
  color: var(--color-primary);
  background: none;
  border: none;
  position: absolute;
  top: 23px;
  right: 24px;
  cursor: pointer;
  z-index: 102;
  transition: color .18s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  color: var(--color-accent);
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(24,66,87, 0.95);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(.45,1.42,.42,.87);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  padding-top: 24px;
  padding-bottom: 24px;
  padding-right: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2rem;
  color: #fff;
  background: none;
  border: none;
  margin: 0 30px 24px 0;
  cursor: pointer;
  z-index: 1110;
  transition: color .18s;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  color: var(--color-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100vw;
  gap: 2px;
  padding-left: 36px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.18rem;
  color: #fff;
  padding: 18px 16px 18px 4px;
  border-radius: 0 36px 36px 0;
  width: max-content;
  margin-bottom: 5px;
  transition: background .18s, color .18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-accent);
  color: var(--color-primary);
}

@media (max-width: 1024px) {
  nav > ul {
    display: none;
  }
  .btn-primary {
    margin-left: 0 !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (max-width: 600px) {
  nav > a > img {
    height: 34px;
  }
}

/* =====================
   HERO SECTION
   ===================== */
.hero {
  background: linear-gradient(100deg, var(--color-bg-hero) 0%, #fafeff 99%);
  padding: 0 !important;
  margin-bottom: 60px;
  border-radius: 0 0 32px 32px;
}
.hero .container {
  padding-top: 58px;
  padding-bottom: 58px;
  align-items: center;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}
.hero h1 {
  color: var(--color-primary);
}
.hero p {
  color: #465e70;
  max-width: 600px;
}
@media (max-width: 600px) {
  .hero .container {
    padding-top: 30px;
    padding-bottom: 30px;
  }
}

/* =====================
   BUTTONS
   ===================== */
.btn-primary,
.btn-primary:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(90deg, var(--color-primary) 0%, #335d74 100%);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.14rem;
  padding: 13px 34px;
  border-radius: 32px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px 0 var(--color-shadow);
  transition: background 0.22s, transform 0.16s, box-shadow 0.21s;
  text-shadow: 0 1px 2px rgba(24,66,87,0.09);
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(90deg, #27597a 0%, var(--color-accent) 100%);
  color: var(--color-primary);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 20px 0 rgba(214,224,232,0.14);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, var(--color-accent) 0%, #ffe296 100%);
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 1rem;
  padding: 11px 24px;
  border-radius: 28px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  margin-left: 12px;
  transition: background 0.18s, color 0.16s;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: linear-gradient(90deg, #ffe296 0%, var(--color-accent) 100%);
  color: #184257;
}

/* =====================
   FEATURE & CARD GRIDS
   ===================== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  justify-content: space-between;
  margin: 28px 0 8px 0;
}
.feature-grid > div {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 22px 26px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: 210px;
  max-width: 320px;
  flex: 1 1 220px;
  transition: transform .17s, box-shadow .17s;
  margin-bottom: 20px;
}
.feature-grid > div:hover {
  transform: translateY(-4px) scale(1.035);
  box-shadow: 0 14px 24px 0 rgba(24,66,87,0.10);
}
.feature-grid img {
  height: 36px;
  width: 36px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 22px 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: stretch;
}
.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: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 22px 0 18px 0;
}
.testimonial-card > div {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: none;
  padding: 18px 22px 16px 18px;
  flex: 1 1 230px;
  color: var(--color-text-dark);
}
.testimonial-card p {
  font-size: 1.04rem;
  color: var(--color-text-dark);
  margin-bottom: 8px;
}
.testimonial-card strong {
  color: var(--color-primary);
  margin-top: 6px;
  display: block;
}
.star-rating {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-bottom: 4px;
}
.star-rating img {
  width: 22px; height: 22px;
}

/* =====================
   VISUAL ELEMENTS
   ===================== */
.theme-highlights, .howto-snippets {
  background: var(--color-secondary);
  border-radius: var(--radius);
  padding: 20px 18px 18px 18px;
  margin-top: 18px;
  color: var(--color-primary);
}
.theme-highlights h3, .howto-snippets h3 {
  margin-bottom: 12px;
}

ul, ol {
  margin-left: 18px;
  margin-bottom: 8px;
}
ul > li, ol > li {
  margin-bottom: 10px;
  font-size: 1rem;
  line-height: 1.63;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.text-section {
  margin-bottom: 18px;
  line-height: 1.58;
}

.footer-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 36px 0 24px 0;
}
footer nav {
  flex-direction: row;
  gap: 10px;
  align-items: center;
  background: none;
  min-height: 0;
}
footer .footer-contact {
  font-size: 0.96rem;
  color: var(--color-primary);
  margin-bottom: 10px;
}
footer .footer-contact img {
  vertical-align: middle;
  margin-right: 5px;
  height: 20px;
  width: 20px;
}
.social-media {
  display: flex;
  gap: 15px;
  margin-top: 8px;
}
.social-media a {
  background: var(--color-secondary);
  border-radius: 50%;
  width: 38px; height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.social-media a:hover, .social-media a:focus {
  background: var(--color-accent);
}
.social-media img {
  width: 20px; height: 20px;
}

footer {
  background: linear-gradient(90deg, var(--color-secondary) 0%, #f8fafd 80%);
  border-radius: 16px 16px 0 0;
  margin-top: 60px;
  width: 100%;
}
footer .copyright {
  text-align: center;
  color: #7a94a7;
  font-size: .97rem;
  margin-top: 10px;
  margin-bottom: 8px;
}

/* =====================
   COOKIE CONSENT BANNER
   ===================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1200;
  background: linear-gradient(90deg, #fff 60%, var(--color-secondary) 100%);
  box-shadow: 0 -2px 30px 0 rgba(24,66,87,0.09);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px 18px;
  gap: 24px;
  border-radius: 28px 28px 0 0;
  animation: banner-fadein .6s cubic-bezier(.45,1.52,.42,.98);
}
@keyframes banner-fadein {
  0% { opacity: 0; transform: translateY(60px); }
  100% { opacity: 1; transform: translateY(0); }
}
.cookie-banner-message {
  font-size: 1rem;
  color: var(--color-text-main);
  max-width: 500px;
}
.cookie-banner-actions {
  display: flex;
  gap: 10px;
}
.cookie-banner .btn-primary {
  padding: 8px 22px;
  font-size: 0.97rem;
  min-width: 108px;
}
.cookie-banner .btn-secondary {
  padding: 8px 20px;
  font-size: 0.97rem;
  background: #fff;
  border: 2px solid var(--color-accent);
  color: var(--color-primary);
}
.cookie-banner .btn-secondary:hover {
  background: var(--color-accent);
  color: var(--color-primary);
}

/* COOKIE SETTINGS MODAL */
.cookie-modal-overlay {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: 1400;
  background: rgba(24,66,87, 0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modal-overlay-fade .4s;
}
@keyframes modal-overlay-fade {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 28px;
  padding: 30px 24px 24px 24px;
  max-width: 470px;
  width: 92vw;
  box-shadow: 0 16px 48px 0 rgba(24,66,87,0.20);
  animation: modal-in .29s cubic-bezier(.45,1.64,.42,.78);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
@keyframes modal-in {
  0% { opacity: 0; transform: scale(.92) translateY(20px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.cookie-modal h2 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}
.cookie-category-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.cookie-category-row strong {
  font-size: 1rem;
}
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.switch-slider {
  position: absolute;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background: var(--color-secondary);
  border-radius: 24px;
  transition: background 0.2s;
}
.switch input:checked + .switch-slider {
  background: var(--color-accent);
}
.switch-slider:before {
  position: absolute;
  content: '';
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
  box-shadow: 0 1.5px 4px 0 rgba(24,66,87,0.14);
}
.switch input:checked + .switch-slider:before {
  transform: translateX(20px);
}
.cookie-modal .btn-primary, .cookie-modal .btn-secondary {
  margin-top: 10px;
}
.cookie-modal .modal-close {
  background: none;
  border: none;
  position: absolute;
  top: 16px;
  right: 22px;
  font-size: 1.6rem;
  color: var(--color-primary);
  cursor: pointer;
}
.cookie-modal .modal-close:hover, .cookie-modal .modal-close:focus {
  color: var(--color-accent);
}

/* =====================
   RESPONSIVE FLEX LAYOUTS
   ===================== */
@media (max-width:1024px) {
  .feature-grid {
    gap: 24px;
  }
  .footer-wrapper {
    flex-wrap: wrap;
    gap: 16px;
    justify-content: flex-start;
  }
}
@media (max-width:900px) {
  .feature-grid > div {
    min-width: 180px;
    padding: 22px 12px 18px 12px;
  }
}
@media (max-width:768px) {
  .section {
    padding: 30px 3vw;
    margin-bottom: 40px;
  }
  .hero {
    border-radius: 0 0 18px 18px;
    margin-bottom: 32px;
  }
  .container {
    padding: 0 8px;
  }
  .feature-grid {
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 18px;
  }
  .feature-grid > div {
    max-width: none;
    width: 100%;
    margin-bottom: 20px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px 8px 18px 8px;
  }
  .footer-wrapper {
    flex-direction: column;
    gap: 16px;
    padding: 22px 0 16px 0;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}
@media (max-width:600px) {
  .section {
    padding: 18px 1vw;
    margin-bottom: 28px;
  }
  .hero .container {
    padding-top: 16px;
    padding-bottom: 16px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 18px 8px;
  }
}
@media (max-width:400px) {
  .cookie-modal {
    padding: 10vw 3vw 6vw 3vw;
  }
  .btn-primary, .btn-secondary {
    padding: 9px 12px;
    font-size: .9rem;
  }
}

/* =====================
   MISC/UTILITY CLASSES
   ===================== */
.mb-0 { margin-bottom: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.mt-18 { margin-top: 18px !important; }
.mb-18 { margin-bottom: 18px !important; }
.mt-32 { margin-top: 32px !important; }

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-light { color: var(--color-text-light); }

.rounded { border-radius: var(--radius); }
.shadow { box-shadow: var(--shadow); }

/* =====================
   MICRO-INTERACTIONS
   ===================== */
a, button, .btn-primary, .btn-secondary, .mobile-menu-toggle, .mobile-menu-close {
  transition: background .17s, color .16s, box-shadow .19s, transform .16s;
}
section, .section, .hero, .feature-grid > div, .card, .testimonial-card, .cookie-modal, .cookie-banner {
  transition: box-shadow .20s, background .18s, border-radius .16s;
}

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