/* CSS RESET & BASELINE */
html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
  border: 0;
}
:root {
  --brand-primary: #243050;
  --brand-secondary: #8C4E3D;
  --brand-accent: #F4EEDC;
  --neutral-white: #FFFFFF;
  --neutral-grey: #F6F6F2;
  --neutral-light: #ECE7DF;
  --neutral-border: #E1DED6;
  --text-main: #25313B;
  --text-dark: #243050;
  --text-light: #7A7367;
  --focus-outline: #8C4E3D;
}
html {
  font-size: 100%;
  scroll-behavior: smooth;
}
body {
  background: var(--neutral-grey);
  color: var(--text-main);
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.01em;
  transition: background 0.3s;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', 'Georgia', serif;
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.2;
}
h1 { font-size: 2.25rem; margin-bottom: 16px; }
h2 { font-size: 1.75rem; margin-bottom: 12px; }
h3 { font-size: 1.3rem; margin-bottom: 10px; }
h4 { font-size: 1.1rem; margin-bottom: 8px; }

p, ul, ol {
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--text-main);
}
strong { font-weight: 600; }
a {
  color: var(--brand-secondary);
  text-underline-offset: 2px;
  transition: color 0.2s;
  text-decoration-thickness: 1.5px;
}
a:hover, a:focus {
  color: var(--brand-primary);
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--neutral-white);
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(36,48,80,.06);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 auto;
  width: 100%;
  align-items: flex-start;
}
.text-section {
  background: none !important;
  box-shadow: none !important;
  padding: 0 0 24px 0 !important;
}

.subheadline {
  font-size: 1.13rem;
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--text-light);
  margin-bottom: 14px;
  font-weight: 400;
}

/* FLEX & SPACING PATTERNS */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
  margin: 32px 0 0 0;
  padding: 0;
}
.features-grid > li {
  background: var(--brand-accent);
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(36,48,80,0.025);
  padding: 28px 24px;
  flex: 1 1 230px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 220px;
  gap: 10px;
  margin-bottom: 20px; /* mandatory */
  transition: box-shadow 0.2s, transform 0.2s;
}
.features-grid > li:hover {
  box-shadow: 0 6px 22px rgba(36,48,80,.11);
  transform: translateY(-4px) scale(1.012);
}
.features-grid img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  margin-bottom: 10px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--neutral-white);
  box-shadow: 0 2px 12px rgba(36,48,80,.05);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  flex: 1 1 240px;
  min-width: 210px;
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 22px;
  gap: 12px;
}

.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;
  margin-bottom: 32px;
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--neutral-white);
  border-left: 4px solid var(--brand-secondary);
  box-shadow: 0 2px 12px rgba(36,48,80,.08);
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 1rem;
  color: var(--text-main);
  max-width: 640px;
  transition: box-shadow 0.18s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 22px rgba(36,48,80,.16);
}
.testimonial-card blockquote {
  font-family: 'Merriweather', serif;
  color: var(--text-dark);
  font-size: 1.05rem;
  line-height: 1.5;
  border: none;
  background: none;
  margin: 0;
  font-style: italic;
  font-weight: 500;
}
.testimonial-card cite {
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--brand-secondary);
  font-size: 0.97rem;
  margin-left: 18px;
  font-style: normal;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

/* HEADER & NAVIGATION */
header {
  background: var(--neutral-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  border-bottom: 1px solid var(--neutral-border);
  padding: 16px 0;
  box-shadow: 0 1px 8px rgba(36,48,80,.05);
  position: relative;
  z-index: 11;
}
header img {
  height: 44px;
  margin-bottom: 10px;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 0;
  justify-content: center;
  align-items: center;
}
.main-nav a {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.07rem;
  color: var(--brand-primary);
  text-decoration: none;
  padding: 8px 6px;
  border-radius: 6px;
  transition: background 0.18s, color 0.18s;
  font-weight: 500;
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--brand-accent);
  color: var(--brand-secondary);
  outline: none;
}

/* HAMBURGER & MOBILE NAV */
.mobile-menu-toggle {
  display: none;
  background: none;
  color: var(--brand-primary);
  font-size: 2.1rem;
  cursor: pointer;
  border-radius: 7px;
  padding: 5px 12px;
  margin-left: 14px;
  transition: background 0.2s;
  z-index: 102;
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--focus-outline);
  background: var(--brand-accent);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--neutral-white);
  box-shadow: 0 4px 34px rgba(36,48,80,0.30);
  z-index: 111;
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.34s cubic-bezier(.7,0,.24,1), opacity 0.25s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  color: var(--brand-primary);
  font-size: 2.0rem;
  border: none;
  align-self: flex-end;
  margin: 22px 22px 0 0;
  cursor: pointer;
  transition: color 0.2s;
}
.mobile-menu-close:focus {
  outline: 2px solid var(--focus-outline);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 21px;
  width: 100%;
  align-items: flex-start;
  margin: 36px 0 0 28px;
}
.mobile-nav a {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.23rem;
  color: var(--brand-secondary);
  text-decoration: none;
  padding: 10px 4px;
  border-radius: 6px;
  transition: background 0.16s, color 0.16s;
  font-weight: 500;
  width: fit-content;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--brand-accent);
  color: var(--brand-primary);
  outline: none;
}

/* CTA BUTTONS & LINKS */
.cta-button {
  background: var(--brand-primary);
  color: var(--neutral-white);
  font-family: 'Merriweather', serif;
  font-size: 1.13rem;
  border-radius: 10px;
  padding: 14px 32px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background 0.19s, box-shadow 0.19s, transform 0.19s;
  box-shadow: 0 2px 12px rgba(36,48,80,.10);
  margin: 18px 0 0 0;
  display: inline-block;
}
.cta-button:hover, .cta-button:focus {
  background: var(--brand-secondary);
  color: var(--neutral-white);
  box-shadow: 0 6px 22px rgba(140,78,61,0.19);
  transform: translateY(-2px) scale(1.032);
  outline: 2px solid var(--focus-outline);
}

/* LISTS & OL */
ul, ol {
  padding-left: 24px;
  margin-bottom: 18px;
  color: var(--text-main);
}
ul li, ol li {
  margin-bottom: 10px;
  line-height: 1.6;
}

/* FOOTER */
footer {
  background: var(--brand-accent);
  border-top: 1px solid var(--neutral-border);
  padding: 36px 0 18px 0;
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.footer-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.footer-nav a {
  color: var(--brand-secondary);
  font-size: 1.02rem;
  font-family: 'Roboto', Arial, sans-serif;
  text-decoration: none;
  transition: color 0.15s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--brand-primary);
  text-decoration: underline;
  outline: none;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  font-size: 0.98rem;
  color: var(--brand-primary);
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: var(--neutral-white);
  color: var(--text-main);
  box-shadow: 0 -1px 18px rgba(36,48,80,0.10);
  border-top: 1px solid var(--neutral-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 24px 14px 18px 14px;
  z-index: 1201;
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
  transition: opacity 0.28s, transform 0.28s;
  font-size: 1rem;
}
.cookie-banner.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.cookie-banner-btns {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.cookie-btn {
  background: var(--brand-primary);
  color: var(--neutral-white);
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 8px;
  padding: 10px 22px;
  border: none;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.cookie-btn.secondary {
  background: var(--brand-accent);
  color: var(--brand-primary);
}
.cookie-btn.settings {
  background: var(--brand-secondary);
  color: var(--neutral-white);
}
.cookie-btn:hover, .cookie-btn:focus {
  opacity: 0.9;
  box-shadow: 0 2px 10px rgba(140,78,61,0.10);
  outline: 2px solid var(--focus-outline);
}

/* COOKIE MODAL */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(36,48,80,0.26);
  z-index: 1220;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s;
}
.cookie-modal-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: var(--neutral-white);
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(36,48,80,.17);
  padding: 34px 32px;
  min-width: 340px;
  max-width: 97vw;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.cookie-modal h2 {
  font-size: 1.27rem;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.cookie-switch {
  position: relative;
  width: 44px;
  height: 24px;
}
.cookie-switch input[type="checkbox"] {
  opacity: 0;
  width: 44px;
  height: 24px;
  position: absolute;
  left: 0;
  top: 0;
  margin: 0;
  cursor: pointer;
  z-index: 1;
}
.cookie-switch .slider {
  position: absolute;
  left: 0; top: 0;
  width: 44px;
  height: 24px;
  background: var(--neutral-grey);
  border-radius: 16px;
  transition: background 0.23s;
  box-shadow: 0 2px 6px rgba(36,48,80,.08);
}
.cookie-switch input[type="checkbox"]:checked + .slider {
  background: var(--brand-primary);
}
.cookie-switch .slider:before {
  content: "";
  position: absolute;
  height: 18px; width: 18px;
  left: 3px; top: 3px;
  background: var(--neutral-white);
  border-radius: 50%;
  transition: transform 0.23s;
  box-shadow: 0 2px 6px rgba(36,48,80,.16);
}
.cookie-switch input[type="checkbox"]:checked + .slider:before {
  transform: translateX(20px);
}
.cookie-modal .close-modal {
  position: absolute;
  right: 20px;
  top: 16px;
  font-size: 2rem;
  background: none;
  color: var(--brand-primary);
  border: none;
  cursor: pointer;
}
.cookie-modal .close-modal:focus {
  outline: 2px solid var(--focus-outline);
}

/* FORMS (if added in blog/contact) */
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid var(--neutral-border);
  padding: 10px 12px;
  background: var(--neutral-white);
  margin-bottom: 16px;
  width: 100%;
  transition: border 0.2s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border: 1.5px solid var(--brand-secondary);
  background: var(--brand-accent);
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
  .container  {
    padding-left: 10px;
    padding-right: 10px;
  }
  .features-grid > li {
    min-width: 180px;
    padding: 18px 12px;
  }
}
@media (max-width: 870px) {
  header img { height: 34px; }
  .features-grid { gap: 18px; }
  .features-grid > li { font-size: 0.96rem; }
  .section { padding: 32px 8px; }
  .testimonial-card { max-width: 98vw; }
  .footer-nav { gap: 12px; }
}
@media (max-width: 768px) {
  .container, .content-wrapper, .text-section {
    max-width: 100vw;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    position: absolute;
    top: 12px;
    right: 16px;
  }
  .features-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .features-grid > li, .card {
    min-width: unset;
    width: 100%;
  }
  .section {
    padding: 20px 6px;
    margin-bottom: 40px;
  }
  .text-image-section {
    flex-direction: column !important;
    gap: 18px;
    margin-bottom: 18px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 10px;
    font-size: 0.98rem;
  }
  .cta-button {
    width: 100%;
    font-size: 1.09rem;
    padding: 13px 0;
    text-align: center;
  }
}
@media (max-width: 490px) {
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.13rem; }
  .section { border-radius: 8px; }
  .testimonial-card { border-radius: 8px; }
  .cookie-modal { min-width: 95vw; padding: 18px 7px; font-size: 0.98rem; }
  .cookie-banner { font-size: 0.97rem; padding: 13px 2px 9px 2px; }
}

/* FOCUS & ACCESSIBILITY */
a:focus-visible, .cta-button:focus-visible, .mobile-menu-toggle:focus-visible, .mobile-nav a:focus-visible {
  outline: 2.5px solid var(--focus-outline) !important;
  outline-offset: 1.5px;
}

/* MICRO ANIMATIONS */
.cta-button, .cookie-btn, .features-grid > li, .card, .testimonial-card {
  transition: box-shadow 0.18s, background 0.17s, transform 0.17s, color 0.14s;
}

/* SCROLLBAR STYLING */
body::-webkit-scrollbar {
  width: 8px;
  background: var(--neutral-grey);
}
body::-webkit-scrollbar-thumb {
  background: var(--brand-accent);
  border-radius: 6px;
}

/* MISC */
::-webkit-input-placeholder { color: var(--text-light); }
::-moz-placeholder { color: var(--text-light); }
:-ms-input-placeholder { color: var(--text-light); }
::placeholder { color: var(--text-light); }

/* Hide visually off-screen (for a11y) */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
section {
  padding: 15px;
}