/* ------------------------ CSS RESET & NORMALIZATION -------------------- */
html {
  box-sizing: border-box;
}
*, *::before, *::after {
  box-sizing: inherit;
}
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, blockquote, dl, dd, pre {
  margin: 0;
  padding: 0;
}
ul, ol {
  list-style: none;
}
img, video {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
  background: none;
}
button {
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  padding: 0;
}
input, select, textarea {
  font: inherit;
}
:focus {
  outline-color: #C7A156;
}

/* --------------------------- BRAND FONT IMPORTS -------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;700&family=Roboto:wght@400;500;700&display=swap');

/* ----------------------- CSS VARIABLES: COLORS & SPACING ----------------- */
:root {
  --color-primary: #123952;
  --color-secondary: #23976A;
  --color-accent: #F3F3F5;
  --color-gold: #C7A156;
  --color-gold-rgb: 199,161,86;
  --color-dark: #10141B;
  --color-light: #FFFFFF;
  --color-footer-bg: #181D25;
  --color-border: #E6E7EB;
  --color-shadow: rgba(18, 57, 82, 0.08);
  --color-card-bg: #FAFBFD;
  --color-table-header-bg: #EFF0F2;
  --gradient-gold: linear-gradient(90deg, #C7A156 0%, #E1C078 100%);

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

  --fz-xs: 14px;
  --fz-s: 16px;
  --fz-m: 18px;
  --fz-l: 24px;
  --fz-xl: 32px;
  --fz-xxl: 48px;

  --radius-s: 8px;
  --radius-m: 12px;
  --radius-l: 18px;
  --shadow: 0 4px 24px var(--color-shadow);
  --transition: all 0.25s cubic-bezier(.4,0,.2,1);

  --spacing-xs: 8px;
  --spacing-s: 16px;
  --spacing-m: 24px;
  --spacing-l: 32px;
  --spacing-xl: 40px;
  --spacing-xxl: 60px;
}

/* --------------------------------- GLOBAL BODY --------------------------- */
body {
  font-family: var(--font-body);
  background: var(--color-accent);
  color: var(--color-dark);
  font-size: var(--fz-s);
  line-height: 1.7;
  font-weight: 400;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ------------------- CONTAINER, SECTION, SPACING CLASSES ----------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-m);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.section {
  margin-bottom: var(--spacing-xxl);
  padding: var(--spacing-xl) var(--spacing-m);
  background: transparent;
}
/* CTA-Section subtle separation */
.cta-section {
  background: var(--color-primary);
  padding: var(--spacing-l) 0;
  margin-bottom: var(--spacing-xxl);
  border-radius: var(--radius-l);
}

/* ---------------------------- TYPOGRAPHY SYSTEM -------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: var(--spacing-s);
}
h1 {
  font-size: var(--fz-xxl);
}
h2 {
  font-size: var(--fz-xl);
  margin-top: var(--spacing-l);
}
h3 {
  font-size: var(--fz-l);
  margin-top: var(--spacing-m);
}
p, li {
  font-size: var(--fz-s);
}
strong {
  font-weight: 700;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-m);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-m);
}

/* --------------------------- NAVIGATION & HEADER -------------------------- */
header {
  background: var(--color-light);
  box-shadow: 0 2px 10px rgba(18,57,82,.07);
  position: relative;
  z-index: 1100;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-m);
  padding: var(--spacing-s) var(--spacing-m);
}
header img {
  width: 160px;
  max-width: 60vw;
}
nav.main-nav {
  display: flex;
  gap: var(--spacing-l);
  align-items: center;
}
.main-nav a {
  font-family: var(--font-body);
  font-size: var(--fz-s);
  color: var(--color-primary);
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
  padding: 2px 0;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--color-gold);
}
.main-nav a.active {
  color: var(--color-secondary);
  border-bottom: 2px solid var(--color-gold);
}
/* Mobile hamburger icon */
.mobile-menu-toggle {
  display: none;
  background: var(--gradient-gold);
  border-radius: var(--radius-s);
  font-size: 2rem;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  color: var(--color-primary);
  margin-left: var(--spacing-s);
  z-index: 1203;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--color-gold);
  color: var(--color-light);
}

/* ------------------------ MOBILE MENU OVERLAY & ANIMATION ------------------ */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(17,25,39,.92);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  padding-top: var(--spacing-xl);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.5,0,0.2,1);
  z-index: 1202;
  width: 100vw;
  min-height: 100vh;
  visibility: hidden;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}
.mobile-menu-close {
  font-size: 2.2rem;
  color: var(--color-light);
  background: transparent;
  margin: var(--spacing-m) var(--spacing-l) 0 0;
  align-self: flex-end;
  border: none;
  cursor: pointer;
  z-index: 1203;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-l);
  align-items: flex-end;
  margin: var(--spacing-l) var(--spacing-l) 0 0;
}
.mobile-nav a {
  color: var(--color-gold);
  font-family: var(--font-display);
  font-size: var(--fz-l);
  font-weight: 700;
  padding: var(--spacing-xs) 0;
  transition: color 0.18s;
}
.mobile-nav a:focus,
.mobile-nav a:hover {
  color: var(--color-light);
}

/* ----------------------------- HERO SECTION ------------------------------ */
.hero {
  background: var(--color-card-bg);
  border-radius: var(--radius-m);
  box-shadow: 0 8px 48px -12px var(--color-shadow);
  margin-bottom: var(--spacing-xxl);
  padding-top: var(--spacing-xl);
}
.hero .container {
  align-items: center;
  justify-content: center;
  min-height: 180px;
}
.hero h1 {
  color: var(--color-primary);
  font-size: var(--fz-xxl);
  margin-bottom: var(--spacing-s);
}
.hero p {
  color: var(--color-secondary);
  font-size: var(--fz-m);
}
.hero .btn {
  margin-top: var(--spacing-m);
}

/* ---------------------------- BUTTONS & CTA ------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: var(--fz-m);
  font-weight: 700;
  padding: 12px 36px;
  border-radius: var(--radius-m);
  background: var(--color-light);
  border: 2px solid var(--color-gold);
  color: var(--color-primary);
  box-shadow: 0 2px 10px rgba(18,57,82,.04);
  transition: var(--transition);
  position: relative;
  margin-top: var(--spacing-s);
}
.btn:focus {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}
.btn:hover, .btn:active {
  border-color: var(--color-secondary);
  color: var(--color-secondary);
  box-shadow: 0 4px 16px rgba(34,78,67,.09);
}
.btn.primary {
  background: var(--gradient-gold);
  color: var(--color-primary);
  border: 2px solid var(--color-gold);
  box-shadow: 0 8px 48px -12px var(--color-shadow);
  transition: var(--transition);
}
.btn.primary:hover, .btn.primary:active {
  color: var(--color-light);
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  box-shadow: 0 8px 48px -6px rgba(var(--color-gold-rgb), 0.28);
}

.cta-section .btn.primary {
  margin-top: 0;
  font-size: var(--fz-l);
}
.cta-section .content-wrapper {
  align-items: center;
}

/* --------------------- FLEXBOX SPACING/ALIGNMENT PATTERNS ---------------- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  padding: var(--spacing-m);
  position: relative;
  min-width: 280px;
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-s);
  transition: box-shadow 0.22s;
}
.card:hover {
  box-shadow: 0 8px 32px -4px var(--color-shadow);
  border-color: var(--color-gold);
}
.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: flex-start;
  gap: 20px;
  padding: 20px;
  background: var(--color-light);
  border-radius: var(--radius-m);
  margin-bottom: 24px;
  box-shadow: 0 2px 10px rgba(18,57,82,.08);
  border-left: 5px solid var(--color-gold);
  max-width: 600px;
}
.testimonial-card p {
  color: var(--color-dark);
  font-size: var(--fz-m);
  font-style: italic;
}
.testimonial-card span {
  color: var(--color-primary);
  font-size: var(--fz-s);
  font-weight: 500;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ------------------------ CARD / SECTION SPACING ------------------------- */
section,
.section {
  margin-bottom: var(--spacing-xxl) !important;
  padding: var(--spacing-xl) var(--spacing-m);
}
.card + .card, .testimonial-card + .testimonial-card {
  margin-left: var(--spacing-m);
}

/* Ensure min 20px margin between all section content cards */
.card, .testimonial-card, .feature-item, .content-wrapper > * {
  margin-bottom: 20px;
}

/* ------------- TABLE DESIGN (Comparison Tables, Data) -------------------- */
table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius-m);
  overflow-x: auto;
  background: var(--color-light);
  box-shadow: var(--shadow);
  margin-bottom: var(--spacing-l);
}
thead {
  background: var(--color-table-header-bg);
}
th, td {
  font-family: var(--font-body);
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--color-accent);
  font-size: var(--fz-s);
}
th {
  color: var(--color-primary);
  font-size: var(--fz-m);
  font-weight: 700;
}
tr:last-child td {
  border-bottom: none;
}
tbody tr:hover {
  background: rgba(var(--color-gold-rgb), 0.05);
  transition: background 0.2s;
}

/* -------------------- LISTS, ICON-LISTS, CONTACT DETAILS ----------------- */
ul {
  padding-left: 0;
  margin-bottom: var(--spacing-m);
}
ul li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: var(--spacing-xs);
  font-size: var(--fz-s);
}
ul li img {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-s);
  margin-top: var(--spacing-m);
}
.contact-details p {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: var(--fz-m);
  margin-bottom: var(--spacing-xs);
}

/* ----------------------------- FOOTER ----------------------------------- */
footer {
  background: var(--color-footer-bg);
  padding: var(--spacing-xl) 0 var(--spacing-l) 0;
  color: var(--color-light);
  font-size: var(--fz-s);
  margin-top: var(--spacing-xxl);
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  gap: var(--spacing-xl);
  flex-wrap: wrap;
}
.footer-logo img {
  width: 52px;
  height: auto;
  margin-bottom: var(--spacing-m);
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-s);
}
.footer-nav a {
  color: var(--color-gold);
  font-size: var(--fz-m);
  margin-bottom: var(--spacing-xs);
  transition: color .15s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-secondary);
}
.footer-info {
  font-size: var(--fz-s);
  color: #D3D8E2;
}
.footer-info a {
  color: var(--color-gold);
  border-bottom: 1px dotted var(--color-gold);
  transition: color .15s;
}
.footer-info a:hover {
  color: var(--color-secondary);
}

/* --------------- COOKIE CONSENT BANNER & MODAL STYLING -------------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--color-light);
  color: var(--color-primary);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-m);
  padding: var(--spacing-m) var(--spacing-xl);
  box-shadow: 0 -2px 24px rgba(28,32,48,0.13);
  z-index: 1500;
  font-size: var(--fz-m);
  animation: banner-slidein 0.6s cubic-bezier(.4,0,.2,1);
}
@keyframes banner-slidein {
  from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; }
}
.cookie-banner__buttons {
  display: flex;
  align-items: center;
  gap: var(--spacing-s);
}
.cookie-banner .btn {
  padding: 10px 26px;
  font-size: var(--fz-s);
  margin-top: 0;
}
.cookie-banner .btn:not(:last-child) {
  margin-right: var(--spacing-s);
}
.cookie-banner .btn.settings {
  background: var(--color-accent);
  color: var(--color-primary);
  border: 1.5px solid var(--color-gold);
}
.cookie-banner .btn.settings:hover {
  border-color: var(--color-secondary);
  color: var(--color-secondary);
}
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 96vw;
  max-width: 440px;
  transform: translate(-50%,-54%);
  background: var(--color-light);
  border-radius: var(--radius-l);
  box-shadow: 0 8px 48px -12px var(--color-shadow);
  padding: var(--spacing-xl);
  z-index: 1510;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-l);
  animation: modal-popin 0.35s cubic-bezier(.4,0,.2,1);
}
@keyframes modal-popin {
  from { opacity: 0; transform: translate(-50%,-60%) scale(0.92); }
  to { opacity: 1; transform: translate(-50%,-54%) scale(1); }
}
.cookie-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-s);
}
.cookie-modal__header h3 {
  color: var(--color-primary);
  font-size: var(--fz-l);
  margin: 0;
}
.cookie-modal__close {
  font-size: 1.8rem;
  color: var(--color-gold);
  background: none;
  border: none;
  cursor: pointer;
  margin-left: var(--spacing-s);
}
.cookie-modal__categories {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-s);
}
.cookie-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-xs) 0;
}
.cookie-toggle-label {
  font-size: var(--fz-m);
  color: var(--color-primary);
  font-weight: 500;
}
.cookie-toggle {
  width: 44px;
  height: 26px;
  border-radius: 13px;
  background: #E2E2E9;
  position: relative;
  transition: background 0.22s;
  margin-left: var(--spacing-s);
  flex-shrink: 0;
}
.cookie-toggle[aria-checked="true"] {
  background: var(--color-gold);
}
.cookie-toggle-knob {
  position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--color-light);
  box-shadow: 0 1px 3px rgba(0,0,0,.16);
  transition: left 0.2s;
}
.cookie-toggle[aria-checked="true"] .cookie-toggle-knob {
  left: 21px;
}
.cookie-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: var(--spacing-s);
}
.cookie-modal .btn {
  font-size: var(--fz-s);
  margin-top: 0;
}

.cookie-modal__category-desc {
  font-size: var(--fz-xs);
  color: var(--color-secondary);
  margin-left: var(--spacing-m);
}

.cookie-modal-bg {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(17,25,39,0.45);
  z-index: 1505;
  animation: fadeinbg .23s;
}
@keyframes fadeinbg {
  from {opacity: 0;} to {opacity: 1;}
}

/* --- Hide cookie modal & banner by default; show via JS by toggling class --- */
.cookie-banner.hidden {
  display: none;
}
.cookie-modal-bg.hidden,
.cookie-modal.hidden {
  display: none;
}

/* ---------------------- RESPONSIVE DESIGN (MOBILE-FIRST) ------------------------ */
@media (max-width: 1024px) {
  .main-nav {
    gap: var(--spacing-m);
  }
  .footer-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--spacing-m);
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 96vw;
  }
  .content-grid, .card-container {
    gap: 16px;
  }
  .footer-nav {
    gap: var(--spacing-s);
  }
}
@media (max-width: 768px) {
  /* Mobile nav */
  nav.main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  header .container {
    gap: var(--spacing-s);
    padding-top: 14px;
    padding-bottom: 14px;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .container {
    padding: 0 var(--spacing-s);
    max-width: 100vw;
  }
  .section,
  section {
    padding-left: var(--spacing-s);
    padding-right: var(--spacing-s);
    margin-bottom: var(--spacing-xl) !important;
  }
  .cta-section {
    border-radius: var(--radius-s);
    padding: var(--spacing-m) 0;
  }
  .footer-logo img {
    width: 42px;
    margin-bottom: var(--spacing-s);
  }
  .footer-nav, .footer-info {
    font-size: var(--fz-s);
  }
}
@media (max-width: 600px) {
  h1 {
    font-size: 1.6rem;
  }
  h2 {
    font-size: 1.25rem;
  }
  .btn, .btn.primary {
    padding: 10px 20px;
    font-size: var(--fz-s);
  }
  .testimonial-card {
    padding: var(--spacing-m);
    max-width: 100%;
  }
  table, th, td {
    font-size: var(--fz-xs);
    padding: 10px 6px;
  }
  .section, section {
    padding: var(--spacing-m) var(--spacing-xs);
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-s);
    padding: var(--spacing-m) var(--spacing-m);
    font-size: var(--fz-s);
  }
}
@media (max-width: 500px) {
  .footer-nav {
    flex-direction: column;
    gap: var(--spacing-xs);
  }
}

/* Switch text-image sections on mobile */
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: var(--spacing-m);
  }
}

/* ------------------- UTILITY: HIDE, SHOW, SIMPLE STYLES ------------------- */
.hidden { display: none !important; }
.text-center { text-align: center !important; }

/* ---------------------- SMOOTH ANIMATIONS && MICROINTERACTIONS ---------------- */
.btn, .main-nav a, .footer-nav a {
  transition: var(--transition);
}
tbody tr, .card, .testimonial-card {
  transition: box-shadow 0.16s, border-color 0.19s, background 0.16s;
}
.btn:active { transform: scale(0.98); }

/* ---------------- ADVANCED BUTTON FOCUS/ACCESSIBILITY STATE ------------------- */
.btn:focus-visible,
.mobile-menu-toggle:focus-visible,
.mobile-menu-close:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

/* -------------------------- END OF CSS ---------------------------- */
