/* === 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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #fff;
  color: #20292F;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.15s;
}
img {
  border: none;
  max-width: 100%;
  display: block;
}
button {
  border: none;
  background: none;
  font: inherit;
  cursor: pointer;
  padding: 0;
}

/* === CSS VARIABLES === */
:root {
  --primary: #134F5C;
  --secondary: #F2B134;
  --background: #FFF;
  --surface: #F8F9FA;
  --border: #E7E9ED;
  --accent: #FFFFFF;
  --text: #1A252C;
  --muted: #6B7A87;
  --shadow: 0 2px 16px rgba(19,79,92,0.06);
  --shadow-hover: 0 4px 24px rgba(19,79,92,0.10);
  --radius: 14px;
  --radius-sm: 7px;
  --font-display: 'Roboto Slab', serif;
  --font-body: 'Open Sans', Arial, sans-serif;
}

/* === TYPOGRAPHY === */
html {
  font-size: 16px;
}
body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text);
  background: var(--background);
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--primary);
  font-weight: 700;
  line-height: 1.15;
}
h1 { font-size: 2.4rem; margin-bottom: 16px; }
h2 { font-size: 2rem; margin-bottom: 14px; }
h3 { font-size: 1.35rem; margin-bottom: 10px; }
h4 { font-size: 1.1rem; margin-bottom: 8px; }
p, ul, ol { margin-bottom: 16px; max-width: 800px; }
strong { font-weight: bold; color: var(--primary); }
small, .muted { color: var(--muted); font-size: 0.92em; }

/* === LAYOUT === */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--background);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* === FLEXBOX UTILITY CONTAINERS === */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 28px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.18s;
  min-width: 260px;
}
.card:hover {
  box-shadow: var(--shadow-hover);
}
.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;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  background: var(--surface);
  padding: 20px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  min-width: 230px;
  max-width: 420px;
  flex: 1 1 300px;
  color: var(--text);
}
.testimonial-card p {
  font-style: italic;
  font-family: var(--font-body);
  color: var(--primary);
  font-size: 1.06em;
  margin-bottom: 10px;
}
.testimonial-card span {
  color: var(--muted);
  font-size: 1em;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}
.footer-nav nav {
  display: flex;
  gap: 16px;
}
.footer-contact {
  margin-top: 16px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 1em;
}

/* === HEADER === */
header {
  background: var(--accent);
  border-bottom: 1px solid var(--border);
  padding: 0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 26px;
  min-height: 72px;
  position: relative;
}
.logo img {
  height: 42px;
  width: auto;
  display: block;
}
.main-nav {
  display: flex;
  gap: 22px;
  align-items: center;
  flex: 1 1 auto;
}
.main-nav a {
  color: var(--text);
  font-weight: 500;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: background 0.10s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--surface);
  color: var(--primary);
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  background: var(--primary);
  color: var(--accent);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .02em;
  padding: 10px 28px;
  border-radius: var(--radius-sm);
  border: none;
  outline: none;
  box-shadow: var(--shadow);
  margin-left: 12px;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--secondary);
  color: var(--primary);
  box-shadow: var(--shadow-hover);
}

/* === MOBILE MENU === */
.mobile-menu-toggle {
  display: none;
  background: var(--primary);
  color: var(--accent);
  font-size: 2rem;
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
  margin-left: auto;
  z-index: 105;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--secondary);
  color: var(--primary);
}
.mobile-menu {
  display: none;
  position: fixed;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: var(--primary);
  z-index: 110;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 46px 28px 32px 28px;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  box-shadow: 0 0 44px 0 rgba(0,0,0,0.15);
}
.mobile-menu.active {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--secondary);
  color: var(--primary);
  font-size: 2rem;
  border-radius: 50%;
  align-self: flex-end;
  transition: background 0.18s, color 0.18s;
  margin-bottom: 30px;
  z-index: 111;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--accent);
  color: var(--secondary);
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.mobile-nav a {
  color: var(--accent);
  font-size: 1.15rem;
  font-family: var(--font-body);
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  width: 100%;
  transition: background 0.12s, color 0.12s;
  border-radius: 0;
}
.mobile-nav a:active,
.mobile-nav a:hover {
  background: var(--secondary);
  color: var(--primary);
}

/* --- Show/hide nav on mobile --- */
@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}

@media (max-width: 600px) {
  .header .container {
    min-height: 54px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .logo img {
    height: 30px;
  }
}

/* === HERO + CONTENT === */
.hero, section > .container > .content-wrapper {
  justify-content: center;
  align-items: flex-start;
  gap: 32px;
}
@media (max-width: 768px) {
  section {
    padding: 28px 6px;
    margin-bottom: 36px;
  }
  .content-wrapper, .content-grid, .card-container {
    flex-direction: column !important;
    gap: 18px !important;
    align-items: stretch !important;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
  .footer-nav, .footer-nav nav {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
}

/* === CARDS, LISTS, FEATURE ITEMS === */
ul, ol {
  padding-left: 0;
}
ul > li, ol > li {
  margin-bottom: 20px;
  padding: 0 0 0 28px;
  position: relative;
  color: var(--text);
  font-size: 1.08rem;
}
ul > li::before {
  content: '';
  display: inline-block;
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 10px;
  height: 10px;
  background: var(--secondary);
  border-radius: 50%;
}
ul > li strong {
  margin-right: 6px;
}
/* Remove bullet for nested lists */
ul ul > li::before, ol ul > li::before {
  display: none;
}

ol {
  counter-reset: num;
}
ol > li {
  padding-left: 34px;
}
ol > li::before {
  counter-increment: num;
  content: counter(num) ".";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--secondary);
  font-weight: bold;
  font-family: var(--font-display);
  font-size: 1em;
}

/* == BUTTONS & LINKS == */
a, button {
  outline: none;
  transition: color 0.15s, background 0.14s, box-shadow 0.11s;
}
a:focus, button:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/* === FOOTER === */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  margin-top: 80px;
  font-size: 1em;
  color: var(--muted);
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 20px;
}
.footer-nav {
  margin-bottom: 8px;
}
.footer-nav img {
  height: 32px;
  width: auto;
  margin-right: 20px;
}
@media (max-width: 900px) {
  .footer-nav, .footer-nav nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

footer nav a {
  color: var(--primary);
  font-weight: 500;
  margin-right: 10px;
  border-radius: var(--radius-sm);
  padding: 4px 7px;
  transition: background 0.16s, color 0.16s;
}
footer nav a:hover, footer nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}

footer .footer-contact {
  margin-top: 0;
}
footer .container:last-child {
  border-top: 1px solid var(--border);
  font-size: 0.97em;
  padding-top: 8px;
  padding-bottom: 8px;
  color: var(--muted);
  justify-content: flex-start;
}

/* === CTAs, CARDS, MICROINTERACTIONS === */
.btn-primary, .btn-secondary {
  cursor: pointer;
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  background: transparent;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  font-size: 1rem;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  margin-left: 8px;
  box-shadow: none;
  transition: background 0.18s, color 0.18s, border 0.13s;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--secondary);
  color: var(--primary);
  border-color: var(--secondary);
}

/* === ANIMATION & HOVER EFFECTS === */
section, .card, .testimonial-card, .btn-primary, .btn-secondary, .mobile-menu, .mobile-menu-close, .mobile-menu-toggle {
  transition: box-shadow 0.16s, background 0.16s, color 0.16s, transform 0.18s;
}

/* === RESPONSIVE TYPOGRAPHY SCALE === */
@media (max-width: 768px) {
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1.1rem; }
}

@media (max-width: 500px) {
  h1 { font-size: 1.15rem; }
  h2 { font-size: 1.06rem; }
}

/* === COOKIE CONSENT BANNER === */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  width: 100vw;
  z-index: 9999;
  background: var(--primary);
  color: var(--accent);
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 22px 20px;
  box-shadow: 0 -5px 18px rgba(0,0,0,0.07);
  gap: 18px;
  font-size: 1em;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.27s, transform 0.33s;
}
.cookie-banner.hide {
  opacity: 0;
  transform: translateY(130%);
  pointer-events: none;
}
.cookie-banner button {
  margin-left: 8px;
  font-size: 1em;
}
.cookie-banner .btn-consent {
  background: var(--secondary);
  color: var(--primary);
  border-radius: var(--radius-sm);
  font-weight: 700;
  padding: 8px 18px;
  box-shadow: var(--shadow);
  margin-right: 8px;
}
.cookie-banner .btn-consent:hover,
.cookie-banner .btn-consent:focus {
  background: var(--accent);
  color: var(--primary);
}
.cookie-banner .btn-settings {
  background: var(--accent);
  color: var(--primary);
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--secondary);
  font-weight: 600;
  padding: 8px 16px;
  margin-left: 6px;
  box-shadow: none;
}
.cookie-banner .btn-settings:hover {
  background: var(--secondary);
  color: var(--primary);
}

/* === COOKIE MODAL === */
.cookie-modal-backdrop {
  position: fixed;
  z-index: 10000;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(19,79,92,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.2s;
}
.cookie-modal-backdrop.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: var(--accent);
  color: var(--primary);
  border-radius: var(--radius);
  width: 96vw;
  max-width: 390px;
  box-shadow: var(--shadow-hover);
  padding: 32px 26px 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: modalin 0.30s cubic-bezier(0.65, 0, 0.35, 1);
}
@keyframes modalin {
  from { opacity: 0; transform: translateY(50px) scale(.95); }
  to   { opacity: 1; transform: none; }
}
.cookie-modal h3 {
  font-size: 1.13em;
  color: var(--primary);
  margin-bottom: 8px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
  font-size: 1em;
}
.cookie-category input[type='checkbox'] {
  accent-color: var(--secondary);
  width: 20px;
  height: 20px;
}
.cookie-category input[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}
.cookie-modal .modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}
.cookie-modal .btn-consent {
  background: var(--primary);
  color: var(--accent);
  font-weight: 700;
  border-radius: var(--radius-sm);
}
.cookie-modal .btn-consent:hover {
  background: var(--secondary);
  color: var(--primary);
}

/* === ACCESSIBILITY & FOCUS === */
:focus-visible {
  outline: 2.5px solid var(--secondary);
  outline-offset: 2px;
}

/* === HELPERS for SPACING, WHITE SPACE === */
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 6px !important; }
.mb-2 { margin-bottom: 12px !important; }
.mb-3 { margin-bottom: 18px !important; }
.mt-2 { margin-top: 12px !important; }
.mt-3 { margin-top: 18px !important; }
.gap-8 { gap: 8px !important; }
.gap-16 { gap: 16px !important; }
.gap-24 { gap: 24px !important; }

/* === OTHER === */
dialog { display: none; }

/* --- Hide scrollbars in mobile-menu --- */
.mobile-menu {
  overflow-y: auto;
}

/* === SUBTLE SHADOWS & HOVER EFFECTS === */
.card, .testimonial-card, .btn-primary, .cookie-banner, .cookie-modal {
  box-shadow: var(--shadow);
}
.card:hover, .testimonial-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px) scale(1.01);
}

/* === PRINT OVERRIDE === */
@media print {
  header, footer, .cookie-banner, .mobile-menu {
    display: none !important;
  }
  section {
    padding: 0 !important;
    margin-bottom: 18px !important;
  }
}

/* === END === */
