/* ---------------------- CSS RESET & NORMALIZE ------------------------ */
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;
}
html {
  scroll-behavior: smooth;
}
article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  font-family: 'Roboto', Arial, sans-serif;
  background: #F8F8F6;
  color: #203A43;
  min-height: 100vh;
  font-size: 16px;
}
a {
  color: #E28A1C;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #ad670f;
}
ul,
ol {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
}
button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
}
:focus {
  outline: 2px solid #E28A1C;
  outline-offset: 2px;
}

/* ------------------------ VARIABLES & BASE TYPOGRAPHY ------------------- */
:root {
  --color-primary: #203A43;
  --color-secondary: #F8F8F6;
  --color-accent: #E28A1C;
  --color-neutral: #fff;
  --color-grey: #eee9e3;
  --color-text: #203A43;
  --color-body: #444;
  --shadow-soft: 0 2px 16px rgba(34, 32, 25, 0.06);
  --border-radius: 18px;
  --transition: 0.24s cubic-bezier(.3,.9,.42,1);
  --header-height: 70px;
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}
body {
  font-family: var(--font-body);
  color: var(--color-body);
  background: var(--color-secondary);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  margin-bottom: 16px;
  font-weight: 700;
}
h1 { font-size: 2.5em; line-height: 1.18; }
h2 { font-size: 2em; margin-bottom: 18px; }
h3 { font-size: 1.25em; margin-bottom: 10px; }

p, li, label {
  font-size: 1em;
  color: var(--color-body);
  margin-bottom: 0.6em;
}
strong, b {color: var(--color-primary); font-weight: 600;}
em { color: var(--color-accent); font-style: italic; }

@media (max-width: 768px) {
  h1 { font-size: 2em; }
  h2 { font-size: 1.4em; }
}

/* ---------------------- CORE LAYOUT -------------------------- */
.container {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 0px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-neutral);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  padding: 30px 26px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: 0 8px 28px rgba(226,138,28,0.10);
  transform: translateY(-2px) scale(1.02);
}
.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: 12px;
  background: #fff9f5;
  border-radius: var(--border-radius);
  padding: 20px;
  box-shadow: 0 2px 10px rgba(32,58,67,0.04);
  margin-bottom: 20px;
  max-width: 370px;
  min-width: 200px;
  min-height: 120px;
  color: #20221d;
}
.testimonial-card p {
  color: #203A43;
  font-size: 1.05em;
  margin-bottom: 8px;
}
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --------------------- HEADER & NAVIGATION ------------------- */
header {
  width: 100%;
  background: var(--color-neutral);
  border-bottom: 1px solid #eee9e3;
  position: sticky;
  top: 0;
  z-index: 32;
  box-shadow: 0 1px 7px rgba(32, 58, 67, 0.04);
  min-height: var(--header-height);
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 16px;
}
.logo img {
  height: 48px;
  transition: filter 0.4s;
}
.logo:focus img, .logo:hover img {
  filter: brightness(0.95) drop-shadow(0 3px 7px #e7ad5b33);
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 22px;
}
.main-nav a {
  padding: 7px 7px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.07em;
  letter-spacing: 0.01em;
  color: var(--color-primary);
  border-radius: 10px;
  transition: background var(--transition), color var(--transition);
  position: relative;
}
.main-nav a.cta-btn {
  background-color: var(--color-accent);
  color: #fff;
  border-radius: 12px;
  padding: 8px 22px;
  margin-left: 10px;
  font-weight: 600;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  box-shadow: 0 3px 12px rgba(226,138,28,0.09);
}
.main-nav a.cta-btn:hover, .main-nav a.cta-btn:focus {
  background: #203A43;
  color: #fff;
}
.main-nav a:not(.cta-btn):hover, .main-nav a:not(.cta-btn):focus {
  background-color: #f6efdd;
  color: var(--color-accent);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  color: var(--color-accent);
  border: none;
  font-size: 2.1em;
  margin-left: 24px;
  border-radius: 10px;
  padding: 2px 10px;
  transition: background 0.15s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #ffeee2;
}

/* ---------- MOBILE NAV ----------- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(32,58,67,0.96);
  z-index: 300;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.32,.98,.43,1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  padding: 0;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  margin: 32px 26px 12px 0;
  font-size: 2.2rem;
  color: #fff;
  background: none;
  border-radius: 8px;
  padding: 2px 11px;
  transition: background 0.13s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #e28a1c55;
  color: var(--color-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 85vw;
  max-width: 340px;
  background: #fff9f6;
  border-radius: 0 0 0 22px;
  padding: 34px 28px 30px 28px;
  margin-top: 35px;
  margin-right: 0;
  box-shadow: -2px 7px 35px rgba(32,58,67,0.13);
}
.mobile-nav a {
  color: var(--color-primary);
  padding: 12px 5px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 520;
  font-size: 1.19em;
  transition: background var(--transition), color var(--transition);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #fbe8d2;
  color: #E28A1C;
}

@media (max-width: 991px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 992px) {
  .mobile-menu {
    display: none !important;
  }
  .main-nav {
    display: flex !important;
  }
}

/* ---------------------- HERO SECTION ----------------------- */
.hero-section {
  display: flex;
  background: linear-gradient(90deg, #FFF9F6 65%, #ffeedf 100%);
  border-bottom: 1.5px solid #ffe1b9;
  padding: 54px 0 42px 0;
}
.hero-section .container {
  align-items: flex-start;
}
.hero-section .content-wrapper {
  align-items: flex-start;
  padding: 0;
  gap: 18px;
}
.hero-section h1 {
  font-size: 2.5em;
  color: #E28A1C;
  letter-spacing: .005em;
  margin-bottom: 3px;
}
.hero-section p {
  color: #555;
  font-size: 1.18em;
  margin-bottom: 12px;
}
@media (max-width: 768px) {
  .hero-section {
    padding: 34px 0 26px 0;
  }
  .hero-section h1 { font-size: 1.6em; }
}

/* --------------------- BUTTONS / CTA ------------------- */
.cta-btn {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.08em;
  font-weight: 600;
  border-radius: 13px;
  padding: 13px 32px;
  box-shadow: 0 3px 12px rgba(226,138,28,0.08);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  border: none;
  margin-top: 8px;
  margin-bottom: 8px;
  text-align: center;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 5px 18px rgba(32, 58, 67, .10);
  transform: translateY(-1.5px) scale(1.017);
}

/* ------------------- FEATURE LISTS & SERVICES ------------------- */
.feature-list, .feature-grid, .service-list, .blog-preview-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 10px;
  margin-bottom: 8px;
}
.feature-list li, .feature-grid li, .service-list li, .blog-preview-list li {
  flex: 1 1 240px;
  min-width: 220px;
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 20px;
  transition: box-shadow var(--transition), transform var(--transition);
  border-left: 4px solid #ffe2b7;
}
.feature-list li:hover, .feature-grid li:hover,
.service-list li:hover, .blog-preview-list li:hover {
  box-shadow: 0 7px 22px #e28a1c18;
  transform: translateY(-3px) scale(1.018);
  border-left: 4px solid var(--color-accent);
}
.feature-list img, .feature-grid img {
  width: 38px;
  height: 38px;
  margin-bottom: 7px;
  filter: drop-shadow(0 2px 13px #e28a1c22);
}
.feature-list strong, .feature-grid strong {
  font-size: 1.12em;
}
.service-list .service-price {
  font-size: 0.99em;
  background: #ffe7c2;
  color: var(--color-primary);
  border-radius: 11px;
  padding: 2px 11px;
  font-weight: 520;
  margin-left: 6px;
}

/* ------------------- LEGAL SECTION ------------------ */
.legal-section {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: 0 1px 9px rgba(32,58,67,0.10);
  padding: 38px 0 38px 0;
  margin-bottom: 60px;
}
.legal-section .content-wrapper {
  gap: 18px;
}
.legal-section .text-section ul {
  margin-left: 18px;
  margin-bottom: 12px;
  list-style: disc inside;
}
.legal-section .text-section ul li {
  background: none;
  margin-bottom: 3px;
}
.legal-section .text-section a {
  color: var(--color-accent);
  text-decoration: underline;
}
@media (max-width: 768px) {
  .legal-section {
    padding: 12px 0 20px 0;
  }
}

/* --------------------- CARD DESIGN --------------------- */
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5em;
}

/* ---------------------- BLOG CATEGORIES ------------------- */
.blog-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 6px;
}
.blog-categories span {
  background: #ffe1b9;
  color: #E28A1C;
  border-radius: 9px;
  padding: 3px 11px;
  font-size: 0.98em;
  letter-spacing: .01em;
  margin-right: 3px;
}

/* -------------------------- FOOTER -------------------------- */
footer {
  background: var(--color-neutral);
  padding: 28px 0 18px 0;
  box-shadow: 0 -1px 24px rgba(32, 58, 67, 0.05);
  font-size: 0.99em;
  border-top: 1.5px solid #ffe0b1;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding-top: 0;
  padding-bottom: 0;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.13em;
  color: var(--color-primary);
  font-weight: 500;
}
.footer-brand img {
  height: 32px;
  width: auto;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
}
.footer-nav a {
  color: #444;
  font-size: 1em;
  transition: color .13s;
  border-radius: 7px;
  padding: 3px 7px;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-accent);
  background: #faf2e7;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #555;
  font-size: 0.98em;
}
.footer-contact a {
  color: var(--color-accent);
  text-decoration: underline;
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    gap: 13px;
    align-items: flex-start;
  }
}

/* -------------- MISC & UTILITY -------------- */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
ol {
  list-style: decimal inside;
  margin-left: 10px;
  margin-bottom: 15px;
}

/* --------- CONTACT DETAILS / CTA SECTIONS ---------- */
.contact-cta, .cta-section, .confirmation-section {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
}
.contact-cta .container, .cta-section .container, .confirmation-section .container {
  align-items: center;
}
.confirmation-section .content-wrapper {
  align-items: center;
}
@media (max-width: 768px) {
  .contact-cta, .cta-section, .confirmation-section {
    border-radius: 11px;
  }
}

/* --------------- RESPONSIVE FLEX LAYOUTS -------------- */
@media (max-width: 991px) {
  .content-grid, .card-container, .testimonial-slider, .feature-list, .feature-grid, .service-list, .blog-preview-list, .footer-nav {
    flex-direction: column;
    gap: 20px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
}
@media (max-width: 576px) {
  .container { padding: 0 7px; }
  .card, .feature-list li, .feature-grid li, .service-list li, .blog-preview-list li, .testimonial-card {
    padding: 17px 7px;
  }
}

/* ---------------- COOKIE CONSENT BANNER --------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 500;
  background: #fff9ef;
  border-top: 1.5px solid #ffe1b9;
  box-shadow: 0 -2px 24px rgba(32,58,67,0.11);
  padding: 26px 14px 21px 18px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 23px;
}
.cookie-banner .cookie-banner-text {
  color: #222;
  font-size: 1em;
  max-width: 550px;
}
.cookie-banner .cookie-banner-buttons {
  display: flex; flex-direction: row; gap: 12px;
  align-items: center;
}
.cookie-btn, .cookie-settings-btn {
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 1em;
  padding: 8px 22px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  box-shadow: 0 2px 6px rgba(226,138,28,0.11);
}
.cookie-btn:hover, .cookie-btn:focus, .cookie-settings-btn:hover, .cookie-settings-btn:focus {
  background: var(--color-primary);
  color: #fff;
}
.cookie-btn.reject {
  background: #dedede;
  color: #203A43;
  font-weight: 500;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #bbb;
  color: #203A43;
}
.cookie-settings-btn {
  background: #ffe7c2;
  color: #E28A1C;
  border: 1px solid #edd5a0;
  font-weight: 510;
}
.cookie-settings-btn:hover, .cookie-settings-btn:focus {
  background: #E28A1C;
  color: #fff;
  border-color: #E28A1C;
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 15px 6px 15px 10px;
  }
  .cookie-banner-buttons {
    justify-content: flex-start;
  }
}

/* ----------- COOKIE MODAL (hidden by default) ----------- */
.cookie-modal-overlay {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(32,58,67,0.58);
  z-index: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s;
}
.cookie-modal-overlay.open {
  pointer-events: auto;
  opacity: 1;
}
.cookie-modal {
  background: #fff9ef;
  border-radius: var(--border-radius);
  box-shadow: 0 7px 44px rgba(32,58,67,0.14);
  max-width: 420px;
  width: 93vw;
  padding: 30px 26px 18px 26px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 19px;
  animation: fadeInModal 0.23s cubic-bezier(.25,.79,.29,1.01);
}
@keyframes fadeInModal {
  from {transform: translateY(44px) scale(.97); opacity: 0;}
  to {transform: none; opacity: 1;}
}
.cookie-modal-close {
  position: absolute;
  top: 15px; right: 18px;
  font-size: 1.55em;
  color: #E28A1C;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  padding: 0px 7px;
  transition: background 0.15s;
}
.cookie-modal-close:hover {
  background: #ffe7c26c;
}
.cookie-modal h3 {
  font-size: 1.23em;
  color: var(--color-primary);
  font-family: var(--font-display);
  margin-bottom: 12px;
}
.cookie-modal .cookie-form {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.cookie-option {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 10px 0;
}
.cookie-option input[type="checkbox"]:not(:disabled) {
  accent-color: #E28A1C;
}
.cookie-option input[type="checkbox"] {
  width: 19px; height: 19px;
  border-radius: 6px;
  margin: 0;
}
.cookie-option label, .cookie-option {
  color: #203A43;
  font-size: 1.06em;
  user-select: none;
}
.cookie-option input[disabled] {
  opacity: 0.6;
}

/* ------------- ANIMATIONS & MICROINTERACTIONS --------------- */
.card, .testimonial-card, .feature-list li, .service-list li, .feature-grid li, .blog-preview-list li {
  transition: box-shadow 0.21s cubic-bezier(.2,.9,.47,1), transform 0.18s cubic-bezier(.31,.77,.38,1);
}
.cta-btn, .cookie-btn, .cookie-settings-btn {
  transition: background 0.22s cubic-bezier(.32,.88,.45,1), color 0.18s, box-shadow 0.24s;
}

/* ------------- ACCESSIBILITY HELPERS --------------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* --------------- SPACING & GAP CONSISTENCY (MANDATORY) ----------------- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ---- Utility classes for spacing ---- */
.mt-2 { margin-top: 2px; }
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.gap-12 { gap: 12px; }
.gap-20 { gap: 20px; }

/* -------- Ensuring no overlapping and good spacing ------- */
section, .section, .content-wrapper, .container {
  margin-bottom: 0;
}

/* ----------- END STYLES ----------- */
