/* ============= 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%;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  background: #F4F1ED;
  color: #22405D;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
button {
  border: none;
  background: none;
  font: inherit;
  cursor: pointer;
  outline: none;
}

/* ================= BRAND COLORS ================= */
:root {
  --color-primary: #22405D;   /* Blue gray */
  --color-secondary: #DED295; /* Gold beige */
  --color-accent: #F4F1ED;   /* Light accent */
  --color-body: #22405D;
  --color-dark: #1A2A3C;
  --color-gray: #B8C3D1;
  --color-white: #fff;
  --color-testimonial-bg: #FDFDFD;
  --color-footer-bg: #223047;
  --shadow-card: 0 2px 12px 0 rgba(34,64,93,0.08);
  --shadow-focus: 0 2px 8px rgba(34,64,93,0.18);
}

/* ================== FONTS =================== */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@700&family=Open+Sans:wght@400;600;700&display=swap');
h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', serif;
  color: var(--color-primary);
  margin-bottom: 12px;
  font-weight: 700;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 18px;
  line-height: 1.18;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
  line-height: 1.22;
}
h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  line-height: 1.3;
}
h4, h5, h6 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
p, li, span, label {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: var(--color-body);
  margin-bottom: 12px;
}
strong {
  font-weight: 700;
}

/* SPACING & CONTAINERS */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* ========== HEADER & NAVIGATION ========== */
header {
  background: var(--color-white);
  box-shadow: 0 2px 12px 0 rgba(34,64,93,0.06);
  position: sticky;
  top: 0;
  z-index: 102;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  min-height: 72px;
}
header img {
  height: 52px;
  margin-right: 28px;
}

.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 26px;
  font-size: 1rem;
  flex: 1 0 auto;
}
.main-nav a {
  padding: 8px 4px;
  color: var(--color-primary);
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--color-accent);
  color: var(--color-secondary);
}
.main-nav .btn-primary {
  margin-left: 18px;
}

/* MOBILE BURGER ICON */
.mobile-menu-toggle {
  display: none;
  font-size: 2.1rem;
  padding: 8px 15px;
  color: var(--color-primary);
  background: var(--color-accent);
  border-radius: 6px;
  margin-left: 18px;
  transition: background 0.22s, color 0.18s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--color-secondary);
  color: var(--color-primary);
}

/* ========== BURGER MENU - MOBILE ONLY ========== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-primary);
  transform: translateX(-100%);
  transition: transform 0.38s cubic-bezier(0.77,0,0.175,1);
  display: flex;
  flex-direction: column;
  z-index: 3000;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 24px 26px 0 0;
  background: var(--color-secondary);
  color: var(--color-primary);
  font-size: 2rem;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: background 0.18s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--color-accent);
  color: var(--color-primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
  padding: 18px 38px;
  margin-top: 22px;
  flex: 1 1 auto;
}
.mobile-nav a {
  font-size: 1.2rem;
  color: var(--color-accent);
  font-weight: 600;
  padding: 8px 0;
  width: 100%;
  border-radius: 3px;
  transition: background 0.18s, color 0.16s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.mobile-nav .btn-primary, .mobile-nav a:last-child {
  color: var(--color-primary);
  background: var(--color-secondary);
  padding: 10px 18px;
  border-radius: 5px;
  font-size: 1.18rem;
  margin-top: 16px;
  border: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* MOBILE NAV OVERLAY ANIMATION */
.mobile-menu {
  will-change: transform;
}

/* Hide desktop nav on mobile, show burger */
@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 1025px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ================= BUTTONS ================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  background: var(--color-primary);
  color: var(--color-accent);
  border-radius: 7px;
  font-size: 1.08em;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 13px 29px;
  margin-top: 12px;
  box-shadow: var(--shadow-card);
  transition: background 0.13s, color 0.18s, transform 0.17s;
}
.btn-primary:hover,
.btn-primary:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
  transform: translateY(-2px) scale(1.03);
  box-shadow: var(--shadow-focus);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  background: var(--color-secondary);
  color: var(--color-primary);
  border-radius: 7px;
  font-size: 1em;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 12px 25px;
  margin-top: 10px;
  transition: background 0.14s, color 0.14s;
}
.btn-secondary:hover,
.btn-secondary:focus {
  background: var(--color-primary);
  color: var(--color-accent);
}

/* ============== HERO SECTION ============== */
.hero-section {
  background: linear-gradient(85deg, var(--color-accent) 85%, var(--color-secondary) 100%);
  padding-top: 52px;
  padding-bottom: 52px;
  margin-bottom: 60px;
}
.hero-section .container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.hero-section .content-wrapper {
  align-items: flex-start;
  gap: 22px;
  max-width: 610px;
  text-align: left;
}
.hero-section h1 {
  color: var(--color-primary);
  margin-bottom: 10px;
}
.hero-section p {
  color: var(--color-dark);
  margin-bottom: 14px;
}

/* =============== FEATURES GRID =============== */
.feature-section .content-wrapper {
  align-items: flex-start;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: flex-start;
  gap: 28px;
  margin-top: 24px;
}
.feature-grid li {
  background: var(--color-white);
  box-shadow: var(--shadow-card);
  border-radius: 12px;
  flex: 1 1 300px;
  min-width: 260px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 28px 20px 22px 22px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.19s, transform 0.15s;
}
.feature-grid li:hover,
.feature-grid li:focus-within {
  box-shadow: 0 4px 18px 0 rgba(34,64,93,0.15);
  transform: translateY(-1px) scale(1.01);
}
.feature-grid img {
  height: 48px;
  margin-bottom: 6px;
}
.feature-grid h3 {
  font-size: 1.19rem;
}

/* ============= TESTIMONIALS =============== */
.testimonial-section {
  background: var(--color-accent);
  padding: 40px 0;
  margin-bottom: 60px;
}
.testimonial-section .content-wrapper {
  align-items: flex-start;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  background: var(--color-testimonial-bg);
  border-left: 6px solid var(--color-secondary);
  box-shadow: var(--shadow-card);
  padding: 20px 30px 18px 28px;
  border-radius: 9px;
  margin-bottom: 20px;
  transition: box-shadow 0.17s, background 0.13s;
  color: var(--color-primary);
}
.testimonial-card p {
  font-size: 1.12rem;
  color: var(--color-dark);
  margin-bottom: 5px;
}
.testimonial-card span {
  font-weight: 600;
  color: var(--color-primary);
  font-size: 1rem;
  margin-bottom: 0;
}
.testimonial-card:hover,
.testimonial-card:focus-within {
  box-shadow: 0 4px 22px 0 rgba(34,64,93,0.14);
  background: var(--color-secondary);
  color: var(--color-primary);
}

/* =============== CTA SECTION =============== */
.cta-section {
  background: var(--color-primary);
  color: var(--color-accent);
  border-radius: 18px;
  margin-bottom: 60px;
  box-shadow: 0 2px 16px 0 rgba(34,64,93,0.11);
  padding: 34px 20px 32px 20px;
  display: flex;
  align-items: center;
  flex-direction: column;
}
.cta-section p {
  color: var(--color-accent);
  margin-bottom: 12px;
  font-size: 1.16rem;
  font-weight: 600;
}
.cta-section .btn-primary {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.cta-section .btn-primary:hover,
.cta-section .btn-primary:focus {
  background: var(--color-accent);
  color: var(--color-primary);
}

/* ============= TEXT & IMAGE SECTIONS ============== */
.text-section {
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.text-section ul,
.text-section ol {
  margin-left: 16px;
  margin-bottom: 8px;
}
.text-section ul li,
.text-section ol li {
  margin-bottom: 7px;
  position: relative;
  padding-left: 1.2em;
}
.text-section ul li:before {
  content: '•';
  color: var(--color-secondary);
  position: absolute;
  left: 0;
  font-size: 1em;
}
.text-section ol li {
  counter-increment: sectionlist;
}
.text-section ol li:before {
  content: counter(sectionlist) '.';
  color: var(--color-secondary);
  position: absolute;
  left: 0;
  font-weight: 700;
}
.text-section h2 {
  font-size: 1.36rem;
  margin-bottom: 6px;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}
.text-image-section img {
  max-width: 390px;
  flex: 1 1 40%;
  border-radius: 12px;
  box-shadow: 0 2px 16px 0 rgba(34,64,93,0.12);
}
.text-image-section .text-content {
  flex: 1 1 60%;
}

/* ============= CARD GRIDS & CONTAINERS ============== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-white);
  border-radius: 10px;
  box-shadow: var(--shadow-card);
  padding: 24px 18px 18px 20px;
  transition: box-shadow 0.18s, transform 0.15s;
}
.card:hover,
.card:focus-within {
  box-shadow: 0 4px 18px 0 rgba(34,64,93,0.13);
  transform: scale(1.012);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
}

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

/* ================= FOOTER ================== */
footer {
  background: var(--color-footer-bg);
  color: var(--color-accent);
  padding-top: 32px;
  margin-top: 60px;
  font-size: 1rem;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  padding-bottom: 18px;
}
.footer-contact,
.footer-links {
  min-width: 230px;
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.footer-contact h3,
.footer-links h3 {
  font-size: 1.13rem;
  color: var(--color-secondary);
  margin-bottom: 7px;
}
.footer-contact p,
.footer-links nav a,
.footer-bottom p {
  color: var(--color-accent);
  font-size: 1rem;
  margin-bottom: 3px;
}
.footer-contact img {
  height: 17px;
  vertical-align: -3px;
  margin-right: 6px;
}
.footer-links nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-links nav a {
  color: var(--color-accent);
  opacity: 0.8;
  transition: color 0.13s, opacity 0.14s;
  border-radius: 2px;
  padding: 3px 7px;
}
.footer-links nav a:hover,
.footer-links nav a:focus {
  color: var(--color-secondary);
  opacity: 1;
  background: var(--color-primary);
}
.footer-bottom {
  border-top: 1px solid #364057;
  text-align: center;
  padding: 12px 0 10px 0;
  margin-top: 0;
  color: var(--color-gray);
  font-size: 0.92rem;
}

/* ================= COOKIE CONSENT BANNER ================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 3200;
  background: var(--color-white);
  color: var(--color-primary);
  box-shadow: 0 -4px 18px 0 rgba(34,64,93,0.09);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 32px 22px 32px 24px;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  font-size: 1rem;
  transition: transform 0.36s cubic-bezier(0.77,0,0.175,1);
}
.cookie-banner.hide {
  transform: translateY(110%);
}
.cookie-banner__text {
  max-width: 600px;
  margin-bottom: 0;
}
.cookie-banner__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.cookie-banner__btn,
.cookie-modal__close {
  font-size: 1rem;
  font-weight: 700;
  border-radius: 6px;
  padding: 10px 21px;
  background: var(--color-secondary);
  color: var(--color-primary);
  margin-bottom: 0;
  transition: background 0.19s, color 0.14s, box-shadow 0.17s;
  box-shadow: 0 1px 8px rgba(34,64,93,0.09);
}
.cookie-banner__btn:hover, .cookie-banner__btn:focus {
  background: var(--color-primary);
  color: var(--color-accent);
}
.cookie-banner__settings-btn {
  background: var(--color-primary);
  color: var(--color-accent);
}
.cookie-banner__settings-btn:hover,
.cookie-banner__settings-btn:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}

/* === COOKIE MODAL POPUP === */
.cookie-modal {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(34,64,93,0.57);
  z-index: 3500;
  align-items: center;
  justify-content: center;
}
.cookie-modal.active {
  display: flex;
  animation: fadeIn 0.20s linear 1;
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal__dialog {
  background: var(--color-white);
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(34,64,93,0.13);
  min-width: 310px;
  max-width: 95vw;
  padding: 32px 26px 28px 26px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  position: relative;
}
.cookie-modal__close {
  position: absolute;
  top: 15px; right: 13px;
  background: var(--color-secondary);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--color-primary);
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  box-shadow: 0 2px 7px rgba(0,0,0,0.07);
}
.cookie-modal__close:hover,
.cookie-modal__close:focus {
  background: var(--color-primary);
  color: var(--color-accent);
}
.cookie-modal__title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary);
}
.cookie-modal__cat-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}
.cookie-cat {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  width: 100%;
}
.cookie-cat__label {
  font-size: 1.05rem;
  flex: 1 1 150px;
}
.cookie-cat__toggle {
  width: 40px;
  height: 22px;
  background: var(--color-gray);
  border-radius: 11px;
  position: relative;
  transition: background 0.17s;
  flex-shrink: 0;
  margin-left: 12px;
}
.cookie-cat__toggle[data-checked="true"] {
  background: var(--color-secondary);
}
.cookie-cat__toggle input[type="checkbox"] {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-cat__slider {
  position: absolute;
  top: 2px; left: 2px;
  width: 18px;
  height: 18px;
  background: var(--color-white);
  border-radius: 50%;
  transition: transform 0.18s cubic-bezier(0.77,0,0.175,1);
}
.cookie-cat__toggle[data-checked="true"] .cookie-cat__slider {
  transform: translateX(18px);
  background: var(--color-primary);
}
.cookie-modal__footer {
  width: 100%;
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}
.cookie-modal__footer .btn-primary,
.cookie-modal__footer .btn-secondary {
  min-width: 96px;
  font-size: 1.03rem;
}

/* ================ RESPONSIVENESS (MOBILE FIRST) ================ */
@media (max-width: 900px) {
  .feature-grid {
    flex-direction: column;
    gap: 22px;
  }
  .card-container {
    flex-direction: column;
    gap: 22px;
  }
  .footer-grid {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.3rem; }
  .section, .hero-section {
    padding: 28px 8px 36px 8px;
    margin-bottom: 40px;
  }
  .feature-grid li,
  .card {
    min-width: 0;
    max-width: 100%;
    padding: 20px 12px 14px 12px;
  }
  .hero-section .container {
    padding: 0 8px;
  }
  .footer-contact{
    gap: 5px;
  }
  .footer-grid {
    gap: 8px;
  }
  .cta-section {
    padding: 22px 8px 22px 8px;
    border-radius: 9px;
  }
  .testimonial-section {
    padding: 20px 0 29px 0;
  }
  .testimonial-card {
    padding: 14px 16px 12px 16px;
  }
  .content-wrapper {
    gap: 17px;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 18px;
    padding: 22px 9px 22px 12px;
    border-radius: 9px 9px 0 0;
    font-size: 0.97rem;
    align-items: flex-start;
  }
}
@media (max-width: 600px) {
  .content-wrapper {
    padding: 0;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  .feature-grid {
    gap: 18px;
  }
  .cookie-modal__dialog {
    padding: 18px 6px 16px 6px;
    border-radius: 8px;
    min-width: 0;
  }
  footer {
    font-size: 0.96rem;
  }
}

/* ===================== UTILITIES & MICRO-INTERACTIONS ===================== */
::-webkit-input-placeholder { color: #7D8FAB; opacity: 1; }
::-moz-placeholder { color: #7D8FAB; opacity:1; }
:-ms-input-placeholder { color: #7D8FAB; opacity:1; }
::placeholder { color: #7D8FAB; opacity:1; }

[tabindex]:focus, a:focus, button:focus, .btn-primary:focus, .btn-secondary:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 1px;
}

.fadein {
  animation: fade-in 0.7s cubic-bezier(0.77,0,0.175,1);
}
@keyframes fade-in {
  from { opacity:0; }
  to   { opacity:1; }
}

/* Spacing fix for content below header */
body { padding-top: 0; }
header.fixed {
  position: fixed;
  width: 100%;
}

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