/* ===========================
   CSS RESET & BASE STYLES
   =========================== */
html {
  box-sizing: border-box;
  font-size: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  min-height: 100vh;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  color: #21295C;
  background: #fff;
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
}
img, video, svg {
  max-width: 100%;
  height: auto;
  display: block;
}
button, input, select, textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
ul, ol {
  list-style: none;
}

/* ===========================
   COLOR VARIABLES
   =========================== */
:root {
  --primary: #21295C;
  --secondary: #A7C7E7;
  --accent: #F5B700;
  --bg: #fff;
  --gray: #F6F7FB;
  --card-bg: #fff;
  --shadow: 0 2px 12px rgba(50,50,93,0.06);
  --text: #21295C;
  --heading: #21295C;
  --muted: #657098;
  --link: #21295C;
  --footer: #F6F7FB;
}

/* ===========================
   TYPOGRAPHY
   =========================== */
h1, .hero h1 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.18;
  color: var(--heading);
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}
@media (min-width: 700px) {
  h1, .hero h1 {
    font-size: 3rem;
  }
}
h2 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 20px;
}
h3 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.18rem;
  font-weight: 500;
  color: var(--heading);
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--heading);
  margin-bottom: 12px;
}
p, ul, ol {
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--text);
}
strong {
  font-weight: 600;
  color: var(--primary);
}

ul, ol {
  list-style: disc inside;
  margin-bottom: 16px;
}
ul li, ol li {
  padding-left: 1em;
  margin-bottom: 8px;
  color: var(--text);
}

@media (min-width: 900px) {
  h1, .hero h1 { font-size: 3rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.25rem; }
}

/* ===========================
   LAYOUT & CONTAINER
   =========================== */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

main {
  flex: 1 0 auto;
}

.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

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

@media (min-width: 900px) {
  .content-wrapper {
    gap: 32px;
  }
}

/* Flex Utility Patterns */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.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;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--gray);
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  transition: box-shadow 0.2s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 16px 0 rgba(33,41,92,0.09);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: none;
}

/* Special Grids for Features & Testimonials */
.features-grid, .testimonials-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
}
.features-grid .feature,
.testimonials-grid .testimonial-card {
  flex: 1 1 260px;
  min-width: 250px;
}
.services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.services-list .service-block {
  flex: 1 1 300px;
  min-width: 250px;
  background: var(--card-bg);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 28px 22px;
  margin-bottom: 20px;
  transition: box-shadow .2s;
}
.services-list .service-block:hover {
  box-shadow: 0 8px 30px rgba(33,41,92,0.08);
}

.contact-section {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: flex-start;
}
.text-section {
  flex: 2 1 320px;
}
.map-snippet {
  flex: 1 1 220px;
  background: var(--gray);
  border-radius: 10px;
  padding: 22px;
  box-shadow: var(--shadow);
  text-align: left;
}
.pricing-overview {
  margin-top: 30px;
  font-size: 1rem;
  color: var(--muted);
  background: var(--gray);
  border-radius: 10px;
  padding: 20px 18px;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .features-grid, .testimonials-grid, .services-list {
    flex-direction: column;
    gap: 20px;
  }
  .feature,
  .services-list .service-block,
  .testimonial-card {
    min-width: 0;
    width: 100%;
  }
  .contact-section {
    flex-direction: column;
    gap: 24px;
    align-items: stretch;
  }
  .map-snippet { margin-top: 8px; }
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .container {
    padding: 0 10px;
  }
  .section, section {
    padding: 28px 10px;
  }
}

/* ===========================
   HEADER & NAVIGATION
   =========================== */
header {
  background: var(--bg);
  border-bottom: 1px solid var(--gray);
  box-shadow: 0 2px 8px rgba(50,50,93, .04);
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
}
header img {
  height: 44px;
  width: auto;
}
.main-nav {
  display: flex;
  gap: 28px;
  margin: 0 22px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: var(--primary);
  padding: 4px 0;
  opacity: 0.96;
  border-bottom: 2px solid transparent;
  transition: color .16s, border-color .18s;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  outline: none;
}
.button-primary {
  display: flex;
  align-items: center;
  background: var(--primary);
  color: #fff;
  padding: 12px 28px;
  border-radius: 25px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 2px 16px rgba(33,41,92,0.09);
  transition: background 0.13s, box-shadow 0.2s, color 0.2s;
  border: none;
  outline: none;
  cursor: pointer;
}
.button-primary:hover, .button-primary:focus {
  background: var(--accent);
  color: var(--primary);
  box-shadow: 0 4px 28px rgba(33,41,92,0.12);
}

@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  .button-primary {
    display: none;
  }
}

/* Hamburger menu button */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 2rem;
  margin-left: auto;
  margin-right: 10px;
  cursor: pointer;
  z-index: 1002;
  transition: color 0.16s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--accent);
}
@media (min-width: 901px) {
  .mobile-menu-toggle {
    display: none;
  }
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: #fff;
  z-index: 1200;
  transform: translateX(-100vw);
  opacity: 0;
  transition: transform 0.28s cubic-bezier(.8,.2,.2,1), opacity 0.15s;
  box-shadow: 0 8px 32px rgba(33,41,92,0.13);
  padding: 40px 24px 24px 24px;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 30px;
  cursor: pointer;
  z-index: 1202;
  transition: color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--accent);
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.2rem;
  color: var(--primary);
  font-weight: 500;
  padding: 8px 2px;
  border-radius: 7px;
  transition: background 0.15s, color 0.15s;
}
.mobile-nav a:active, .mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}

/* When mobile menu is open, prevent scrolling */
body.menu-open {
  overflow: hidden;
}

/* ===========================
   HERO / MAIN CALLS
   =========================== */
.hero, .content-wrapper > h1 {
  margin-top: 6px;
}
.hero p, .content-wrapper > p {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 26px;
}

/* ===========================
   FEATURE & SERVICE CARDS
   =========================== */
.feature, .features-grid .feature {
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 32px 26px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 220px;
  transition: box-shadow 0.19s;
  position: relative;
}
.feature img {
  width: 48px;
  height: 48px;
  margin-bottom: 4px;
}
.feature-price {
  color: var(--accent);
  font-weight: 700;
  margin-top: auto;
  font-size: 1rem;
  letter-spacing: 0.02em;
}
.feature:hover {
  box-shadow: 0 8px 30px 0 rgba(33,41,92,0.11);
}

/* ===========================
   TESTIMONIALS
   =========================== */
.testimonial-card {
  background: var(--gray);
  color: var(--text);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  min-width: 220px;
  max-width: 460px;
}
.testimonial-card p {
  font-size: 1.08rem;
  color: var(--text);
  margin-bottom: 0;
}
.testimonial-info {
  color: var(--muted);
  font-size: 0.98rem;
  font-style: italic;
  margin-top: 2px;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
}
.testimonial-info span {
  font-weight: 600;
  color: var(--primary);
}

@media (max-width: 600px) {
  .testimonial-card {
    max-width: 100%;
    padding: 18px;
  }
}

/* ===========================
   FOOTER
   =========================== */
footer {
  background: var(--footer);
  border-top: 1px solid var(--gray);
  padding-top: 32px;
  padding-bottom: 32px;
}
footer .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 12px;
}
.footer-nav a {
  font-size: 0.97rem;
  color: var(--muted);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  transition: color 0.14s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--primary);
}
.footer-info {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.97rem;
}
.footer-info img {
  width: 28px;
  height: 28px;
}

@media (max-width: 700px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .footer-info {
    gap: 10px;
  }
}

/* ===========================
   LINKS, LISTS, MICRO-UX
   =========================== */
a {
  color: var(--link);
  transition: color .18s, border-bottom-color .14s;
}
a:focus {
  outline: 2px solid var(--accent);
  border-radius: 3px;
}
a:hover {
  color: var(--accent);
}

ul li::marker, ol li::marker {
  color: var(--accent);
}

::-webkit-input-placeholder {
  color: var(--muted);
}
::-moz-placeholder {
  color: var(--muted);
}
:-ms-input-placeholder {
  color: var(--muted);
}
::placeholder {
  color: var(--muted);
}

/* ===========================
   FORMS (if they exist)
   =========================== */
input[type="text"], input[type="email"], textarea {
  border: 1px solid var(--gray);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 1rem;
  width: 100%;
  background: #fff;
  margin-bottom: 14px;
  transition: border-color 0.15s, box-shadow 0.13s;
}
input:focus, textarea:focus {
  border-color: var(--secondary);
  box-shadow: 0 2px 12px rgba(165,199,231,0.11);
}
button, input[type="submit"], .button-primary {
  cursor: pointer;
  transition: background 0.15s, color 0.13s, box-shadow .17s;
}

/* ===========================
   COOKIE CONSENT BANNER
   =========================== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  background: var(--footer);
  border-top: 1px solid var(--gray);
  box-shadow: 0 -2px 16px rgba(33,41,92,0.09);
  padding: 24px 16px 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  animation: cb-slidein-btm 0.35s cubic-bezier(.7,.2,.2,1);
}
@keyframes cb-slidein-btm {
  0% { transform: translateY(180px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 10px;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
}
.cookie-btn {
  border-radius: 22px;
  font-size: 1rem;
  padding: 8px 18px;
  border: none;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.13s, color 0.12s, box-shadow 0.13s;
}
.cookie-btn.accept {
  background: var(--primary);
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: var(--accent);
  color: var(--primary);
}
.cookie-btn.reject {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--gray);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  border-color: var(--accent);
  background: var(--gray);
  color: var(--accent);
}
.cookie-btn.settings {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--accent);
  color: var(--primary);
}

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 2100;
  height: 100vh;
  width: 100vw;
  background: rgba(33,41,92,0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cb-fadein 0.25s cubic-bezier(.6,.2,.2,1);
}
@keyframes cb-fadein {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal-content {
  background: var(--footer);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(33,41,92,.16);
  padding: 34px 22px 22px 22px;
  width: 98%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  animation: cb-modalin 0.24s cubic-bezier(.65,.24,.26,1.08);
}
@keyframes cb-modalin {
  0% { transform: translateY(100px) scale(0.96); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 1.3rem;
  color: var(--primary);
  background: none;
  border: none;
  cursor: pointer;
}
.cookie-modal-close:focus { outline: 2px solid var(--accent); border-radius: 5px; }
.cookie-modal h2 {
  font-size: 1.18rem;
  margin-bottom: 2px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  margin: 10px 0 10px 0;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--accent);
  width: 18px;
  height: 18px;
}
.cookie-category label {
  font-size: 1rem;
  color: var(--primary);
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
}
.cookie-modal .cookie-actions {
  margin-top: 8px;
  justify-content: flex-end;
  gap: 10px;
}

.cookie-category.essential input {
  accent-color: var(--secondary);
}
.cookie-category.essential label {
  color: var(--muted);
  font-style: italic;
}
.cookie-category.essential input[disabled] {
  cursor: not-allowed;
}

/* ===========================
   MISC: DIFF SECTIONS
   =========================== */
.map-snippet img {
  width: 38px;
  height: 38px;
  margin-bottom: 7px;
}

.pricing-overview strong {
  color: var(--accent);
}

/* ===========================
   SPACING & VISUAL HIERARCHY
   =========================== */
section:not(:last-of-type) {
  margin-bottom: 60px;
}
.features-grid .feature,
.services-list .service-block,
.testimonials-grid .testimonial-card,
.card-container .card {
  margin-bottom: 20px;
}

/* ===========================
   ANIMATIONS FOR BUTTONS & CARDS
   =========================== */
.button-primary,
.cookie-btn {
  transition: background 0.18s, color 0.15s, box-shadow .2s, transform .11s;
}
.button-primary:active,
.cookie-btn:active {
  transform: scale(0.97);
  box-shadow: 0 0 0 transparent;
}
.feature, .service-block, .testimonial-card {
  transition: box-shadow 0.17s, transform 0.11s;
}
.feature:active, .service-block:active, .testimonial-card:active {
  transform: translateY(2px) scale(0.99);
}

/* ===========================
   SCROLLBAR MINIMALISM
   =========================== */
::-webkit-scrollbar {
  width: 8px;
  background: var(--footer);
}
::-webkit-scrollbar-thumb {
  background: var(--gray);
  border-radius: 5px;
}

/* ===========================
   PRINT SUPPORT
   =========================== */
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  body { color: #000 !important; background: #fff !important; }
}
