/* ============================================================
   Stormy Quest Style – Geometric Structured Design
   Responsive, accessible, mobile-first, no CSS grid, all flexbox
   ============================================================ */

/* === 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;
}
/* HTML5 display-role reset */
article, aside, details, figcaption, figure, 
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F2F5F7;
  color: #16223A;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*, *:before, *:after {
  box-sizing: inherit;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #12395D;
  text-decoration: underline;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #E4B243;
}
ul, ol {
  padding-left: 2em;
  margin-bottom: 1em;
}
li + li {
  margin-top: 0.5em;
}

/* === BRAND COLORS & TYPOGRAPHY === */
:root {
  --color-primary: #12395D;
  --color-secondary: #E4B243;
  --color-accent: #F2F5F7;
  --color-dark: #16223A;
  --color-light: #FFFFFF;
  --color-border: #DFE3E9;
  --color-shadow: rgba(18, 57, 93, 0.10);

  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
}

/* Typography (Geometric, Structured) */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-primary);
  line-height: 1.15;
}
h1 {
  font-size: 2.75rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
p, li, a {
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: 0.01em;
  font-size: 1rem;
  color: var(--color-dark);
}
strong, b {
  font-weight: 700;
  color: var(--color-primary);
}

/* === STRUCTURED CONTAINER & SPACING === */
.container {
  width: 100%;
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 18px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-light);
  border-radius: 16px;
  box-shadow: 0 4px 18px var(--color-shadow);
  position: relative;
}
main > section:not(:last-child) {
  margin-bottom: 60px;
}

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

.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 12px;
}

/* === FLEXBOX LAYOUTS === */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-light);
  border: 1.5px solid var(--color-border);
  border-radius: 14px;
  box-shadow: 0 4px 14px var(--color-shadow);
  padding: 32px 22px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 240px;
  flex: 1 1 260px;
  transition: box-shadow 0.2s, border-color 0.25s;
}
.card:hover, .card:focus-within {
  border-color: var(--color-secondary);
  box-shadow: 0 8px 30px rgba(18,57,93,0.18);
}

.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-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  /* Matches geometric/structured feel */
  justify-content: flex-start;
}
.feature {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--color-accent);
  border-radius: 14px;
  border: 1.5px solid var(--color-border);
  padding: 24px 18px;
  box-shadow: 0 2px 10px var(--color-shadow);
  min-width: 210px;
  flex: 1 1 220px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, border-color 0.18s;
}
.feature img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.feature:hover, .feature:focus-within {
  border-color: var(--color-secondary);
  box-shadow: 0 6px 24px rgba(18,57,93,0.17);
}

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

.tips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.tip {
  background: var(--color-light);
  border: 1.5px solid var(--color-border);
  border-radius: 12px;
  box-shadow: 0 2px 12px var(--color-shadow);
  padding: 20px 18px;
  min-width: 180px;
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.tip img {
  width: 38px;
  height: 38px;
}
.tip:hover, .tip:focus-within {
  border-color: var(--color-secondary);
  box-shadow: 0 6px 24px rgba(18,57,93,0.13);
}

.testimonial-card {
  background: var(--color-accent);
  color: #16223A;
  border-left: 6px solid var(--color-secondary);
  border-radius: 0 18px 18px 0;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 28px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px var(--color-shadow);
  font-size: 1.07rem;
  flex: 1 1 320px;
  position: relative;
}
.testimonial-card p {
  font-size: 1.07rem;
  font-style: italic;
  color: var(--color-dark);
  margin-bottom: 6px;
}
.testimonial-card span {
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 600;
}

.footer-logo {
  margin-bottom: 22px;
  display: flex;
  align-items: center;
}

/* === HEADER, NAVIGATION & CTA === */
header {
  background: var(--color-light);
  border-bottom: 2.5px solid var(--color-border);
  box-shadow: 0 2px 10px var(--color-shadow);
  position: sticky;
  top: 0;
  z-index: 40;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 16px;
  padding-bottom: 16px;
}
header nav {
  display: flex;
  gap: 22px;
}
header nav a {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--color-primary);
  font-size: 1rem;
  padding: 5px 2px;
  border-radius: 4px;
  transition: background 0.17s, color 0.18s;
  position: relative;
}
header nav a:hover, header nav a:focus {
  background: var(--color-secondary);
  color: var(--color-light);
}
header .btn-primary {
  margin-left: 22px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* --- Buttons ---  */
.btn, .btn-primary {
  appearance: none;
  border: none;
  outline: none;
  border-radius: 40px;
  padding: 13px 38px;
  font-family: var(--font-display);
  font-size: 1.07rem;
  font-weight: 700;
  background: var(--color-primary);
  color: var(--color-light);
  letter-spacing: 0.03em;
  cursor: pointer;
  box-shadow: 0 2px 10px var(--color-shadow);
  transition: background 0.15s, transform 0.15s, box-shadow 0.2s;
  text-align: center;
  text-decoration: none;
  display: inline-block;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
  transform: translateY(-3px) scale(1.03) skew(-2deg, 0deg);
  box-shadow: 0 8px 30px rgba(18,57,93,0.15);
}
.btn-secondary {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--color-primary);
  color: var(--color-secondary);
}

/* --- Lists & Geometric Bullets --- */
ul {
  list-style: none;
  margin-bottom: 16px;
}
ul li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 0.7em;
  font-family: var(--font-body);
  font-size: 1rem;
}
ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 14px;
  height: 14px;
  background: var(--color-secondary);
  border-radius: 3px;
  transform: rotate(45deg);
}

ol {
  list-style: none;
  counter-reset: custom-counter;
  margin-bottom: 16px;
}
ol li {
  counter-increment: custom-counter;
  position: relative;
  padding-left: 36px;
  margin-bottom: 0.7em;
  font-family: var(--font-body);
  font-size: 1rem;
}
ol li::before {
  content: counter(custom-counter);
  position: absolute;
  left: 0;
  top: 2px;
  width: 24px;
  height: 24px;
  background: var(--color-primary);
  color: var(--color-light);
  font-family: var(--font-display);
  font-weight: bold;
  font-size: 1.1em;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  box-shadow: 0 2px 4px var(--color-shadow);
}

/* --- Footer --- */
footer {
  background: var(--color-primary);
  color: var(--color-light);
  padding: 48px 0 20px 0;
  margin-top: 60px;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
footer nav a {
  color: var(--color-secondary);
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: underline;
  font-size: 1rem;
  transition: color 0.18s, text-decoration 0.15s;
}
footer nav a:hover, footer nav a:focus {
  color: #fff;
  text-decoration: none;
}
footer p {
  color: var(--color-accent);
  font-size: 0.96rem;
  text-align: center;
}

/* === MOBILE NAVIGATION (HAMBURGER & SLIDE MENU) === */
.mobile-menu-toggle {
  display: none;
  background: var(--color-secondary);
  color: var(--color-primary);
  border: none;
  font-size: 2.2rem;
  border-radius: 10px;
  padding: 6px 17px 6px 13px;
  margin-left: 14px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  box-shadow: 0 2px 8px var(--color-shadow);
  z-index: 52;
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--color-secondary);
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-light);
  box-shadow: 0 4px 50px rgba(18,57,93,0.20);
  z-index: 99;
  transform: translateX(-110%);
  transition: transform 0.33s cubic-bezier(.77,0,.18,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px 28px 24px 30px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: transparent;
  border: none;
  color: var(--color-primary);
  font-size: 2.5rem;
  align-self: flex-end;
  margin-bottom: 28px;
  cursor: pointer;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-primary);
  font-size: 1.25rem;
  text-decoration: none;
  padding: 10px 4px;
  border-radius: 6px;
  transition: background 0.14s, color 0.14s;
  width: 100%;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-light);
}

/* === COOKIE CONSENT BANNER & MODAL === */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  z-index: 88;
  background: var(--color-accent);
  color: var(--color-dark);
  box-shadow: 0 -2px 18px rgba(18,57,93,0.15);
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
  padding: 26px 22px 22px 22px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: transform 0.25s ease;
}
.cookie-banner.hide {
  transform: translateY(140%);
}
.cookie-banner__text {
  flex: 2 1 260px;
  margin-right: 12px;
}
.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.cookie-btn {
  padding: 11px 26px;
  border-radius: 30px;
  border: none;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px var(--color-shadow);
  transition: background 0.13s, color 0.13s;
}
.cookie-btn.accept {
  background: var(--color-primary);
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: var(--color-secondary);
  color: var(--color-primary)
}
.cookie-btn.reject {
  background: #fff;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #FDEEDE;
  color: var(--color-dark);
}
.cookie-btn.settings {
  background: var(--color-secondary);
  color: var(--color-primary);
  border: 1.5px solid var(--color-secondary);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--color-primary);
  color: var(--color-secondary);
}

/* --- Cookie Modal --- */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%,190%);
  min-width: 335px;
  max-width: 95vw;
  background: var(--color-light);
  border-radius: 16px;
  box-shadow: 0 14px 60px rgba(18,57,93,0.25);
  z-index: 101;
  display: flex;
  flex-direction: column;
  padding: 38px 36px 32px 36px;
  transition: transform 0.33s cubic-bezier(.6,0,.18,1);
}
.cookie-modal.show {
  transform: translate(-50%, -50%);
  animation: cookie_modal_in 0.33s cubic-bezier(.7,0,.26,1);
}
@keyframes cookie_modal_in {
  0% {transform: translate(-50%, 50%); opacity: 0;}
  100%{transform: translate(-50%,-50%); opacity: 1;}
}
.cookie-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.cookie-modal__header h2 {
  font-size: 1.45rem;
}
.cookie-modal__close {
  background: transparent;
  border: none;
  color: var(--color-primary);
  font-size: 2rem;
  cursor: pointer;
}
.cookie-modal__content {
  font-size: 1.05rem;
  margin-bottom: 24px;
  color: var(--color-dark);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1.5px dashed #DFE3E9;
}
.cookie-category:last-child {
  border-bottom: none;
}
.cookie-category label {
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 0;
  cursor: pointer;
  color: var(--color-primary);
}
.cookie-category input[type='checkbox'] {
  accent-color: var(--color-secondary);
  width: 20px; height: 20px;
  border-radius: 5px;
}
.cookie-category .mandatory {
  background: var(--color-secondary);
  color: var(--color-primary);
  font-size: 0.88rem;
  border-radius: 5px;
  padding: 3px 10px;
  margin-left: 5px;
  font-family: var(--font-display);
  font-weight: 700;
}

.cookie-modal__actions {
  margin-top: 12px;
  display: flex;
  gap: 14px;
  justify-content: flex-end;
}

/* ========== Responsive (Mobile-First) ========== */
@media (max-width: 1140px) {
  .container { max-width: 960px; }
  .feature-grid, .card-container, .tips-grid { gap: 18px; }
}
@media (max-width: 900px) {
  .container { max-width: 95vw; }
  .feature-grid, .card-container, .tips-grid { gap: 13px; }
}
@media (max-width: 768px) {
  header .container {
    gap: 10px;
  }
  .section {
    padding: 28px 6px;
    margin-bottom: 40px;
    border-radius: 8px;
  }
  .content-wrapper, .card-container, .feature-grid, .tips-grid {
    flex-direction: column;
    gap: 16px;
  }
  .testimonial-card, .card, .feature, .tip {
    flex: 1 1 100%;
    min-width: unset;
    max-width: 100%;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .footer-logo {
    margin-bottom: 15px;
    justify-content: center;
  }
  footer .container {
    gap: 14px;
    padding: 8px 4px;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
  header nav, header .btn-primary {
    display: none;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 22px 10px 18px 10px;
    font-size: 0.98rem;
  }
}

/* === Utility Classes === */
.fw-bold { font-weight: 600 !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }
.d-flex { display: flex !important; }
.flex-col { flex-direction: column !important; }
.justify-center { justify-content: center !important; }
.align-center { align-items: center !important; }
.mt-3 { margin-top: 18px !important; }
.mb-3 { margin-bottom: 18px !important; }

/* --- Forms (for possible contact forms) --- */
input, textarea {
  border: 1.5px solid var(--color-border);
  border-radius: 7px;
  padding: 12px 14px;
  font-size: 1rem;
  font-family: var(--font-body);
  margin-bottom: 12px;
  background: var(--color-accent);
  outline: none;
  transition: border-color 0.18s, box-shadow 0.12s;
}
input:focus, textarea:focus {
  border-color: var(--color-secondary);
}

/* === Animations / Micro-interactions === */
.card, .feature, .tip, .testimonial-card {
  transition: box-shadow 0.22s, border-color 0.18s, transform 0.12s;
}
.card:hover, .feature:hover, .tip:hover {
  transform: translateY(-5px) scale(1.015);
}
.btn, .btn-primary, .btn-secondary, .cookie-btn {
  transition: background 0.15s, color 0.13s, transform 0.09s, box-shadow 0.18s;
}
.btn:active, .cookie-btn:active {
  transform: scale(0.98) skew(-3deg, 0deg);
}

/* === Focus & Accessibility Enhancements === */
a:focus, button:focus {
  outline: 2px dashed var(--color-secondary);
  outline-offset: 3px;
}

/* === Geometric/Structured Section Borders for Emphasis === */
.section {
  border: 2.5px solid var(--color-accent);
  box-shadow: 0 6px 28px rgba(18,57,93,0.10);
}

/* === Hide Mobile Menu by Default, Show on Open === */
.mobile-menu {
  display: flex;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  pointer-events: auto;
  opacity: 1;
}

/* === Z-Index Fixes for Overlays === */
.mobile-menu { z-index: 99; }
.cookie-modal { z-index: 101; }
.cookie-banner { z-index: 88; }


/* === Print & A11y === */
@media print {
  header, .mobile-menu, .cookie-banner, .cookie-modal, footer {display: none !important;}
  a {text-decoration: underline; color: #000;}
}

/* ===== END / Stormy Quest Geometric Structured CSS ===== */