/* ===================================================
   CSS RESET & BASE
==================================================== */
html {
  box-sizing: border-box;
  font-size: 16px;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  min-height: 100vh;
  font-family: 'Roboto', Arial, sans-serif;
  background: #F6F8FB;
  color: #262626;
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}
img {
  display: block;
  max-width: 100%;
  border-radius: 16px;
}
a {
  color: #1E355E;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #B98C33;
  text-decoration: underline;
}
ul, ol {
  margin: 0 0 24px 24px;
  padding: 0;
}
li {
  margin-bottom: 8px;
}

/* Typography hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  color: #1E355E;
  line-height: 1.15;
  margin-bottom: 18px;
}
h1 { font-size: 2.5rem; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 18px; }
h3 { font-size: 1.35rem; margin-bottom: 14px; }
h4 { font-size: 1.16rem; margin-bottom: 10px; }

p { margin-bottom: 18px; }
strong, b { color: #1E355E; font-weight: 700; }

/* ==============
   BRAND COLORS
================ */
:root {
  --primary: #1E355E;
  --secondary: #D9B672;
  --accent: #F6F8FB;
  --dark: #222e3a;
  --light: #fff;
  --warm-bg: #fff7f0;
  --warm-shadow: rgba(217,182,114,0.08);
  --neutral: #f6f8fb;
  --danger: #e57373;
  --success: #61ba72;
}

/* ==============
   CONTAINERS/layout
================ */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Mandatory spacing and alignment patterns */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--light);
  border-radius: 28px;
  box-shadow: 0 2px 16px 0 var(--warm-shadow);
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--light);
  border-radius: 18px;
  box-shadow: 0 2px 16px 0 var(--warm-shadow);
  padding: 28px 22px;
  transition: box-shadow 0.2s;
}
.card:hover, .card:focus {
  box-shadow: 0 4px 32px 0 rgba(227,176,86,0.15);
}
.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;
  margin-bottom: 20px;
  background: var(--warm-bg);
  border-radius: 20px;
  color: #222e3a;
  box-shadow: 0 2px 16px 0 var(--warm-shadow);
  font-size: 1.05rem;
  transition: box-shadow 0.2s;
}
.testimonial-card:hover, .testimonial-card:focus {
  box-shadow: 0 6px 28px 0 rgba(227,176,86,0.15);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Responsive section spacing */
@media (max-width: 768px) {
  .section {
    margin-bottom: 36px;
    padding: 26px 8px;
  }
  .content-wrapper {
    gap: 10px;
  }
}

/* ==============
   HEADER & NAVIGATION
================ */
header {
  background: var(--light);
  border-bottom: 1px solid #e8e7e3;
  position: sticky;
  top: 0;
  z-index: 1002;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.logo {
  display: flex;
  align-items: center;
  height: 52px;
}
.logo img { height: 44px; }

/* Main nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.main-nav a {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  padding: 8px 15px;
  border-radius: 18px;
  color: #1E355E;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--accent);
  color: #B98C33;
}
.main-nav .btn-primary {
  font-size: 1rem;
  padding: 10px 24px;
  border-radius: 22px;
  background: var(--secondary);
  color: var(--primary);
  font-weight: 700;
  border: none;
  margin-left: 8px;
  box-shadow: 0 1px 7px 0 var(--warm-shadow);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.main-nav .btn-primary:hover, .main-nav .btn-primary:focus {
  background: #B98C33;
  color: var(--light);
  box-shadow: 0 4px 18px 0 rgba(227,176,86,0.26);
}

/* Hide mobile menu toggle on desktop */
.mobile-menu-toggle {
  display: none;
  background: var(--secondary);
  color: var(--primary);
  border: none;
  font-size: 2rem;
  border-radius: 12px;
  padding: 0 14px;
  height: 44px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 7px 0 var(--warm-shadow);
  margin-left: 18px;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #B98C33;
  color: var(--light);
}

/* ==============
   MOBILE MENU
================ */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(250,245,236, 0.93);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateX(100%);
  transition: opacity 0.33s cubic-bezier(.77,0,.18,1), transform 0.33s cubic-bezier(.77,0,.18,1);
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
  transform: translateX(0);
}
.mobile-menu-close {
  background: transparent;
  border: none;
  font-size: 2.2rem;
  color: #1E355E;
  align-self: flex-end;
  margin: 24px 24px 0 0;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 2001;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #B98C33;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
  margin: 56px 24px 0 24px;
}
.mobile-nav a {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.25rem;
  padding: 18px 0 18px 12px;
  color: #1E355E;
  border-radius: 12px;
  background: transparent;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--accent);
  color: #B98C33;
}
.mobile-nav .btn-primary {
  margin-top: 18px;
  background: var(--secondary);
  color: var(--primary);
  text-align: center;
  padding: 12px 0;
  border-radius: 24px;
}

/* Responsive nav */
@media (max-width: 1000px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (max-width: 500px) {
  header .container {
    padding-left: 6px;
    padding-right: 6px;
    height: 56px;
  }
  .logo img { height: 32px; }
  .mobile-menu-close {
    margin-top: 10px;
    font-size: 2rem;
  }
}

/* ==============
   BUTTONS
================ */
.btn-primary, .btn-secondary {
  display: inline-block;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 12px 36px;
  border-radius: 26px;
  border: none;
  cursor: pointer;
  transition: box-shadow 0.18s, background 0.2s, color 0.2s, transform 0.13s;
  box-shadow: 0 3px 15px 0 var(--warm-shadow);
  margin-top: 18px;
  margin-bottom: 8px;
}
.btn-primary {
  background: var(--secondary);
  color: var(--primary);
}
.btn-primary:hover, .btn-primary:focus {
  background: #B98C33;
  color: var(--light);
  transform: translateY(-2px) scale(1.02);
}
.btn-secondary {
  background: var(--primary);
  color: var(--light);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #25498e;
  color: var(--secondary);
  transform: translateY(-2px) scale(1.02);
}

/* Links with .btn-* classes inside nav */
nav a.btn-primary, nav a.btn-secondary {
  margin-top: 0;
  margin-bottom: 0;
}

/* ==============
   HERO/HEADER SECTIONS
================ */
section:first-of-type {
  background: var(--warm-bg);
  box-shadow: 0 2px 14px 0 var(--warm-shadow);
  border-radius: 0 0 38px 38px;
}

.cta-banner {
  background: var(--secondary);
  border-radius: 32px;
  padding: 38px 25px;
  text-align: center;
  box-shadow: 0 6px 30px 0 var(--warm-shadow);
}
.cta-banner h2 {
  color: var(--primary);
}
.cta-banner p {
  color: #645622;
}
.cta-banner .btn-primary, .cta-banner .btn-secondary {
  margin-top: 30px;
}

/* ==============
   FEATURE GRID/STEPS
================ */
.feature-grid, .stepper, .testimonial-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 8px;
}
.feature-grid > div, .stepper > div, .testimonial-grid > .testimonial-card {
  flex: 1 1 250px;
  min-width: 220px;
  background: var(--warm-bg);
  padding: 24px 18px;
  border-radius: 18px;
  box-shadow: 0 1px 8px 0 var(--warm-shadow);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  transition: box-shadow 0.2s, transform 0.13s;
}
.feature-grid > div:hover,
.stepper > div:hover,
.testimonial-grid > .testimonial-card:hover {
  box-shadow: 0 4px 18px 0 rgba(227,176,86,0.18);
  transform: translateY(-2px) scale(1.018);
}
.feature-grid img,
.stepper img {
  width: 38px;
  height: 38px;
  margin-bottom: 6px;
}

.testimonial-grid {
  gap: 24px 24px;
}
.testimonial-grid > .testimonial-card {
  background: var(--warm-bg);
  color: #222e3a;
  min-width: 240px;
  font-size: 1.08rem;
  gap: 12px;
}

@media (max-width: 900px) {
  .feature-grid, .stepper, .testimonial-grid {
    flex-direction: column;
    gap: 18px;
  }
  .feature-grid > div, .stepper > div, .testimonial-grid > .testimonial-card {
    min-width: unset;
    width: 100%;
  }
}

/* ==============
   TESTIMONIALS
================ */
.testimonial-card span {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 600;
  color: var(--primary);
  font-size: 0.97rem;
}

.client-logos {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 22px;
}
.client-logos img {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: var(--light);
  box-shadow: 0 1px 7px 0 var(--warm-shadow);
}

/* ==============
   TEXT & IMAGE SECTION
================ */
.text-section {
  margin-bottom: 18px;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
}

/* ==============
   BLOG SEARCH / INPUTS
================ */
input[type="text"] {
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  padding: 12px 16px;
  border-radius: 18px;
  border: 1px solid #e4e4e4;
  background: var(--accent);
  margin-bottom: 18px;
  transition: border 0.2s;
}
input[type="text"]:focus {
  border-color: var(--secondary);
  outline: none;
}

/* ==============
   FOOTER
================ */
footer {
  background: #fff7f0;
  padding: 38px 0 22px 0;
  border-top: 1px solid #e8e7e3;
  margin-top: 60px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.footer-nav {
  display: flex;
  gap: 22px;
  margin-bottom: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.footer-nav a {
  font-size: 1rem;
  color: #7a6c46;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  opacity: 0.87;
  transition: color 0.18s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--primary);
  opacity: 1;
}
.footer-contact p {
  font-size: 0.97rem;
  color: #99897a;
  line-height: 1.5;
  margin-bottom: 3px;
}
@media (max-width: 650px) {
  .footer-nav {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
  }
  .footer-contact {
    text-align: center;
  }
  footer .container {
    padding: 0 4px;
  }
}

/* ==============
   COOKIE CONSENT BANNER
================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: var(--warm-bg);
  color: #1E355E;
  box-shadow: 0 -4px 28px 0 rgba(210,180,75,0.16);
  z-index: 3000;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  padding: 26px 12px 26px 24px;
  border-radius: 18px 18px 0 0;
}
.cookie-banner__message {
  flex: 1 1 auto;
  font-size: 1.02rem;
  font-family: 'Roboto', Arial, sans-serif;
}
.cookie-banner__actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.cookie-btn, .cookie-banner__actions button {
  font-size: 0.99rem;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  background: var(--secondary);
  color: var(--primary);
  border: none;
  border-radius: 16px;
  padding: 8px 18px;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 1px 8px 0 var(--warm-shadow);
  transition: background 0.18s, color 0.16s, transform 0.13s;
}
.cookie-btn.accept {
  background: var(--success);
  color: var(--light);
}
.cookie-btn.reject {
  background: var(--danger);
  color: var(--light);
}
.cookie-btn.settings {
  background: var(--primary);
  color: var(--light);
}
.cookie-btn:hover, .cookie-btn:focus {
  transform: scale(1.03);
  background: #B98C33;
  color: var(--light);
}
.cookie-banner__close {
  background: none;
  border: none;
  color: #7a6642;
  font-size: 1.6rem;
  margin-left: 10px;
  margin-right: 0;
  cursor: pointer;
  transition: color 0.15s;
}
.cookie-banner__close:hover { color: #1E355E; }

@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 8px 16px 12px;
    font-size: 0.98rem;
  }
  .cookie-banner__actions {
    gap: 7px;
  }
}

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 96vw;
  max-width: 400px;
  background: var(--light);
  box-shadow: 0 2px 44px 0 rgba(215,180,55,0.18);
  border-radius: 22px;
  z-index: 4100;
  transform: translate(-50%, -50%) scale(0.94);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.22s;
  padding: 32px 22px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%, -50%) scale(1.0);
}
.cookie-modal h2 {
  color: var(--primary);
  font-size: 1.28rem;
}
.cookie-category-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cookie-category input[type=checkbox] {
  appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid var(--secondary);
  border-radius: 50%;
  margin-right: 8px;
  transition: background 0.13s, border 0.13s;
  position: relative;
  background: var(--accent);
}
.cookie-category input[type=checkbox]:checked {
  background: var(--success);
  border-color: var(--success);
}
.cookie-category.locked label:after {
  content: '🔒';
  font-size: 1.1rem;
  margin-left: 6px;
}
.cookie-modal__actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
}

@media (max-width: 420px) {
  .cookie-modal {
    max-width: 98vw;
    padding: 18px 6px 16px 6px;
  }
  .cookie-modal__actions {
    flex-direction: column;
    gap: 6px;
  }
}

/* ==============
   RESPONSIVE DESIGN
================ */
@media (max-width: 900px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.12rem; }
}
@media (max-width: 650px) {
  .container, section .container { padding-left: 4px; padding-right: 4px; }
  h1 { font-size: 1.5rem; }
}

/* ==============
   UTILITIES
================ */
.rounded {
  border-radius: 16px;
}
.shadow {
  box-shadow: 0 2px 16px 0 var(--warm-shadow);
}
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Spacing helpers */
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.pt-2 { padding-top: 16px; }
.pb-2 { padding-bottom: 16px; }

/* Misc */
::-webkit-scrollbar {
  width: 10px;
  background: var(--accent);
}
::-webkit-scrollbar-thumb {
  background: #eddab9;
  border-radius: 8px;
}

/* =====================
   HIGH CONTRAST for testimonials & reviews
===================== */
.testimonial-card,
.testimonial-grid > .testimonial-card {
  background: #fff7f0;
  color: #16213e;
  border: 1.5px solid #ffe2ba;
}
.testimonial-card strong,
.testimonial-grid strong {
  color: #784b1e;
}

/* ==============
   SPECIAL: THANK YOU PAGE
================ */
.text-section a.btn-primary {
  margin-top: 20px;
  display: inline-block;
}

/* ===========================
   CRITICAL: NO GRID, NO ABSOLUTE 
   Only flex layouts
=========================== */
