/* ====================================================
   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.6;
  background: #fff;
  color: #181818;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}
button {
  font: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
*, *:before, *:after {
  box-sizing: inherit;
}

/* ====================================================
   ROOT VARIABLES: Monochrome + Brand Accents
==================================================== */
:root {
  --color-bg: #FAFAFA;
  --color-bg-dark: #181818;
  --color-bg-light: #ffffff;
  --color-border: #e3e3e8;
  --color-primary: #181818;
  --color-secondary: #777;
  --color-brand-blue: #20436A;
  --color-brand-gold: #E6B800;
  --color-accent: #F8F7F2;
  --color-white: #fff;
  --color-link: #20436A;
  --color-error: #C00;
  --shadow-card: 0 2px 16px rgba(24,24,24,0.07), 0 1.5px 6px rgba(24,24,24,0.04);
  --radius: 14px;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
}

/* ====================================================
   TYPOGRAPHY: Monochrome Sophisticated
==================================================== */
body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-primary);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.15;
  margin-bottom: 24px;
}
h2 {
  font-size: 1.75rem;
  line-height: 1.2;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.25rem;
  line-height: 1.22;
  margin-bottom: 12px;
}
h4 { font-size: 1.1rem; margin-bottom: 8px; }
h5, h6 { font-size: 1rem; margin-bottom: 8px; }

p, ul, ol, li {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-primary);
}
strong, b {
  font-weight: 600;
}
a {
  color: var(--color-link);
  transition: color 0.2s;
}
a:hover, a:focus {
  color: var(--color-brand-gold);
  text-decoration: underline;
  outline: none;
}

ul, ol {
  margin-left: 1.4em;
  margin-bottom: 1.2em;
}
ul li, ol li {
  margin-bottom: 5px;
  position: relative;
  padding-left: 0;
}
.text-section ul li {
  margin-left: 0.5em;
}

/* ====================================================
   GLOBAL LAYOUT & CONTAINERS
==================================================== */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
main {
  min-height: 60vh;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-bg-light);
  border-radius: var(--radius);
}

.content-wrapper {
  /* gives consistent spacing beneath headers */
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.card {
  margin-bottom: 20px;
  border-radius: var(--radius);
  background: var(--color-white);
  box-shadow: var(--shadow-card);
  position: relative;
  padding: 28px 24px;
  transition: box-shadow 0.18s;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.card:hover, .card:focus-within {
  box-shadow: 0 6px 24px rgba(24,24,24,0.12), 0 2.5px 10px rgba(24,24,24,0.09);
}

.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
 ****************/
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 10px;
}
.feature-item {
  flex: 1 1 240px;
  min-width: 260px;
  max-width: 320px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 32px 24px 24px 24px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s, border-color 0.2s;
  position: relative;
}
.feature-item img {
  width: 36px;
  height: 36px;
  margin-bottom: 10px;
  filter: grayscale(1) contrast(1.1);
}
.feature-item h3 {
  font-size: 1.18rem;
  margin-bottom: 4px;
}
.feature-item span {
  font-size: 1rem;
  color: var(--color-secondary);
  margin-top: 6px;
}
.feature-item:hover, .feature-item:focus-within {
  box-shadow: 0 6px 36px rgba(32,67,106,0.10);
  border-color: var(--color-brand-gold);
  z-index: 1;
}

/*********************
 * Testimonials
 *********************/
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #F7F7F9;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 20px 28px;
  margin-bottom: 20px;
  border: 1px solid #ececec;
  min-width: 250px;
  max-width: 520px;
  color: #1c1c1c;
  /* dark text on light background for accessibility */
}
.testimonial-card p {
  font-size: 1.05rem;
  color: #222;
  margin-bottom: 0;
}
.testimonial-card strong {
  color: var(--color-brand-blue);
  font-weight: 600;
}
.testimonial-card span {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--color-brand-gold);
  letter-spacing: 1px;
  margin-top: 4px;
}
.testimonial-card:hover {
  box-shadow: 0 6px 24px rgba(230,184,0,0.10);
  border-color: var(--color-brand-gold);
}

/*********************
 * CTA Buttons
 *********************/
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.07rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 13px 32px;
  border-radius: 36px;
  border: none;
  background: var(--color-brand-blue);
  color: #fff;
  transition: background 0.24s, color 0.18s, box-shadow 0.17s;
  box-shadow: 0 2px 14px rgba(32,67,106,0.07);
  margin-top: 12px;
  margin-bottom: 6px;
  cursor: pointer;
  outline: none;
  position: relative;
  z-index: 1;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--color-brand-gold);
  color: #181818;
  box-shadow: 0 4px 18px rgba(230,184,0,0.09); 
}

/********************
 * HEADER + NAVIGATION
 ********************/
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-bg-light);
  border-bottom: 1px solid var(--color-border);
  padding: 14px 24px 12px 24px;
  position: sticky;
  top: 0;
  z-index: 102;
}
header a img {
  height: 38px;
  margin-right: 20px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: 22px;
}
.main-nav a {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-primary);
  position: relative;
  padding: 3px 0;
  transition: color 0.16s;
}
.main-nav a::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  margin-top: 2px;
  background: var(--color-brand-gold);
  transition: width 0.22s;
}
.main-nav a:hover::after, .main-nav a:focus::after {
  width: 100%;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--color-brand-blue);
}
.header .cta-btn {
  margin-left: 38px;
}

/******************
 * MOBILE BURGER MENU
 ******************/
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  padding: 7px 13px;
  background: transparent;
  color: var(--color-brand-blue);
  border-radius: 7px;
  margin-left: 18px;
  border: none;
  transition: background 0.18s;
  z-index: 200;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #eee;
  color: var(--color-brand-gold);
  outline: none;
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(24,24,24,0.92);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 40px 32px;
  transform: translateX(-102vw);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.38s cubic-bezier(.5,1.7,.6,1), opacity 0.28s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.2rem;
  background: transparent;
  border: none;
  color: #fff;
  margin-bottom: 22px;
  border-radius: 8px;
  transition: background 0.18s;
  cursor: pointer;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: rgba(230,184,0,0.14);
  color: var(--color-brand-gold);
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  width: 100%;
  margin-top: 30px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.3rem;
  font-family: var(--font-display);
  font-weight: 600;
  padding: 10px 0;
  border-radius: 7px;
  transition: background 0.16s, color 0.15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-brand-gold);
  color: #181818;
  outline: none;
}

/* ====================================================
   FOOTER
==================================================== */
footer {
  background: #181818;
  color: #f7f7f7;
  padding: 34px 24px 22px 24px;
  margin-top: 60px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 21px;
  margin-bottom: 22px;
}
.footer-brand img {
  height: 36px;
}
.footer-brand span {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: #f7f7f7;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 10px;
}
.footer-nav a {
  color: #f7f7f7;
  font-size: 1rem;
  font-family: var(--font-body);
  opacity: 0.9;
  transition: color 0.13s, opacity 0.16s;
}
.footer-nav a:hover {
  color: var(--color-brand-gold);
  opacity: 1;
}
.footer-contact {
  margin-top: 7px;
  color: #bbb;
  font-size: 0.97rem;
  letter-spacing: 0.01em;
}
.footer-contact a {
  color: var(--color-brand-gold);
  text-decoration: underline;
  font-weight: 600;
  margin-left: 7px;
}

/* ====================================================
   SPECIAL ELEMENTS
==================================================== */
.map-placeholder {
  background: linear-gradient(115deg, #ececec 0%, #e5e5e5 100%);
  color: #888;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.08rem;
  padding: 25px;
  border-radius: var(--radius);
  margin-top: 10px;
  margin-bottom: 10px;
}

.text-section {
  width: 100%;
}
.text-section ul {
  margin-top: 5px;
  margin-bottom: 18px;
}
.text-section h3 {
  margin-top: 20px;
}

/***********************
   COOKIE CONSENT BANNER
************************/
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  background: #222;
  color: #fff;
  box-shadow: 0 -3px 18px rgba(32,67,106,0.08);
  padding: 22px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.cookie-banner p {
  margin-bottom: 4px;
  font-size: 1rem;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 6px;
}
.cookie-banner .cookie-btn {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 30px;
  border: none;
  padding: 8px 24px;
  margin-bottom: 3px;
  background: var(--color-brand-gold);
  color: #181818;
  transition: background 0.17s, color 0.15s;
  cursor: pointer;
}
.cookie-banner .cookie-btn.reject {
  background: #2c2c2c;
  color: #fff;
  border: 1.5px solid #555;
}
.cookie-banner .cookie-btn.settings {
  background: var(--color-brand-blue);
  color: #fff;
  border: none;
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: #fff;
  color: var(--color-brand-blue);
  outline: none;
}
.cookie-banner .cookie-btn.reject:hover, .cookie-banner .cookie-btn.reject:focus {
  background: #444;
  color: #fff;
}
.cookie-banner .cookie-btn.settings:hover, .cookie-banner .cookie-btn.settings:focus {
  background: var(--color-brand-gold);
  color: #181818;
}

/**************************
 * COOKIE MODAL
 *************************/
.cookie-modal {
  position: fixed;
  top: 0; left: 0; right:0; bottom:0;
  width: 100vw;
  height: 100vh;
  background: rgba(18,18,18,0.86);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.29s;
  opacity: 0; pointer-events: none;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal-content {
  background: #FAFAFA;
  color: #1c1c1c;
  border-radius: var(--radius);
  padding: 40px 30px 30px 30px;
  min-width: 310px;
  max-width: 92vw;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.cookie-modal-content h2 {
  font-size: 1.43rem;
  margin-bottom: 10px;
  color: var(--color-brand-blue);
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 14px 0 0 0;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cookie-category .cookie-switch {
  display: inline-flex;
  align-items: center;
}
.cookie-switch input {
  width: 0; height: 0; opacity: 0; position: absolute;
}
.cookie-switch span {
  display: inline-block;
  width: 38px; height: 22px;
  border-radius: 14px;
  background: #ddd;
  position: relative;
  transition: background 0.21s;
}
.cookie-switch input:checked + span {
  background: var(--color-brand-gold);
}
.cookie-switch span:after {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.18s;
}
.cookie-switch input:checked + span:after {
  left: 19px;
}
.cookie-modal-actions {
  margin-top: 18px;
  display: flex;
  gap: 16px;
}
.cookie-modal-close {
  position: absolute;
  top: 18px; right: 24px;
  background: transparent;
  border: none;
  color: #888;
  font-size: 2rem;
  transition: color 0.17s;
  cursor: pointer;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--color-brand-blue);
  outline: none;
}

/*************************************
   TRANSITIONS & MICROINTERACTIONS
**************************************/
.section, .feature-item, .cta-btn, .card, .testimonial-card {
  transition-property: box-shadow, background, border-color, color;
  transition-duration: 0.17s;
}

a, button, [tabindex] {
  outline: none;
  transition: outline 0.14s, box-shadow 0.11s;
}
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--color-brand-gold);
}

/***************************************
   RESPONSIVE
****************************************/
@media (max-width: 1200px) {
  .container {
    max-width: 95vw;
  }
}
@media (max-width: 990px) {
  .feature-grid {
    gap: 20px;
    justify-content: flex-start;
  }
  .feature-item {
    min-width: 220px;
    max-width: 100%;
    padding: 28px 16px 16px 16px;
  }
}
@media (max-width: 820px) {
  header {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 12px 12px 10px 12px;
  }
  .main-nav {
    gap: 18px;
    margin-left: 9px;
  }
  .card, .feature-item, .testimonial-card {
    padding-left: 14px;
    padding-right: 14px;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .feature-grid, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .content-wrapper {
    gap: 16px;
  }
  .section {
    padding: 32px 6px;
    margin-bottom: 40px;
  }
  footer {
    margin-top: 40px;
    padding-left: 12px; padding-right: 12px;
  }
  .footer-nav {
    gap: 13px;
  }
  .footer-brand {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  .feature-item {
    min-width: 100%;
    max-width: 100%;
  }
  .testimonial-card {
    max-width: 99vw;
    padding: 16px 11px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
}
@media (max-width: 500px) {
  h1 {
    font-size: 1.8rem;
  }
  h2 {
    font-size: 1.27rem;
    margin-bottom: 13px;
  }
  h3 {
    font-size: 1.08rem;
  }
  .cta-btn {
    width: 100%;
    font-size: 1rem;
    padding: 12px;
  }
  .footer-brand img {
    height: 30px;
  }
  .cookie-modal-content {
    padding-left: 12px; padding-right: 12px;
  }
}

/****************************
   MINIMUM SPACING ENFORCEMENT
*****************************/
.section, .card, .card-container, .content-grid, .testimonial-card, .feature-item, .footer-nav, .footer-brand, .footer-contact, .content-wrapper {
  margin-bottom: 20px;
}
.card-container, .feature-grid, .content-grid, .footer-nav {
  gap: 20px;
}

/*********************************
   PREVENT OVERLAPPING
**********************************/
.card, .testimonial-card, .feature-item {
  margin-bottom: 20px;
}

/*********************************
   UTILITIES
**********************************/
.bg-dark {
  background: var(--color-bg-dark);
  color: #f5f5f5;
  border-radius: var(--radius);
}
.text-center {
  text-align: center;
}

/***********************************
   HIDE ON DESKTOP, SHOW ON MOBILE
************************************/
@media (min-width: 769px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}

/*************
 CUSTOM SCROLLBAR
**************/
body {
  scrollbar-color: #bbb var(--color-bg-light);
  scrollbar-width: thin;
}
body::-webkit-scrollbar {
  width: 10px;
  background: #ececec;
}
body::-webkit-scrollbar-thumb {
  background: #bbb;
  border-radius: 8px;
}

/* =============== END STYLES =============== */
