/* === 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,
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;
}
body {
  line-height: 1.6;
  background: #fff;
  color: #402616;
}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}
img {
  max-width: 100%;
  height: auto;
  display: inline-block;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
ul, ol {
  list-style: none;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  box-shadow: none;
  appearance: none;
  padding: 0;
  margin: 0;
}

/* === VARIABLES / ROOT === */
:root {
  --brand-primary: #17375e;
  --brand-secondary: #eaf0f7;
  --brand-accent: #c74820;
  --warm-bg: #fffaf6;
  --warm-card: #fff8f3;
  --warm-shadow: 0 2px 14px 0 rgba(203, 112, 41, 0.10);
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
  --text-main: #402616;
  --text-light: #816055;
  --cta-bg: #c74820;
  --cta-hover: #a53712;
  --border-radius: 17px;
  --input-radius: 11px;
  --shadow-btn: 0 2px 10px 0 rgba(199,72,32, 0.06);
  --shadow-card: 0 4px 24px 0 rgba(45,20,10,0.10);
  --space-xs: 8px;
  --space-s: 16px;
  --space-m: 24px;
  --space-l: 32px;
  --space-xl: 48px;
  --mobile-break: 768px;
  --footer-bg: #faf2ea;
  --success-bg: #f8fcee;
  --error-bg: #fff5f2;
}

/* === TYPOGRAPHY === */
body {
  font-family: var(--font-body);
  font-size: 16px;
  background: var(--warm-bg);
  color: var(--text-main);
}
h1, .display, .hero-section h1 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--brand-primary);
  margin-bottom: var(--space-m);
}
h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--brand-primary);
  margin-bottom: var(--space-s);
}
h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--brand-accent);
  margin-bottom: var(--space-xs);
}
h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--brand-primary);
}
p, li, blockquote, cite {
  font-size: 1rem;
  color: var(--text-main);
}
blockquote {
  font-style: italic;
  color: var(--brand-primary);
  background: #fff2e8;
  border-left: 5px solid var(--brand-accent);
  padding: 12px 22px 12px 18px;
  margin-bottom: 9px;
  border-radius: var(--border-radius);
}
cite {
  display: block;
  margin-top: 8px;
  color: var(--brand-accent);
  font-style: normal;
  font-size: 0.97rem;
}
a {
  color: var(--brand-accent);
  text-decoration: underline;
  transition: color 0.18s;
}
a:hover, a:focus {
  color: var(--cta-hover);
  text-decoration: underline;
}
strong, b {
  color: var(--brand-primary);
}

/* === LAYOUT CONTAINERS === */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-m);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: var(--warm-card);
  position: relative;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  padding: var(--space-m);
  transition: box-shadow 0.16s, transform 0.16s;
}
.card:hover {
  box-shadow: 0 8px 28px 0 rgba(199, 72, 32, 0.14), var(--shadow-card);
  transform: translateY(-2px) scale(1.015);
}
.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: #fff8f3;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  transition: box-shadow 0.2s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 28px 0 rgba(199, 72,32, 0.13), var(--shadow-card);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* === HEADER & NAVIGATION === */
header {
  background: #fff;
  box-shadow: 0 2px 12px 0 rgba(23,55,94, 0.06);
  position: sticky;
  top: 0;
  z-index: 22;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  padding: 18px 0 14px 0;
}
.main-nav img {
  height: 38px;
  margin-right: var(--space-m);
  flex-shrink: 0;
}
.main-nav a {
  font-family: var(--font-display);
  font-size: 1rem;
  padding: 7px 13px;
  border-radius: var(--input-radius);
  color: var(--brand-primary);
  transition: background 0.2s, color 0.2s;
  font-weight: 500;
}
.main-nav a.cta {
  background: var(--cta-bg);
  color: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-btn);
  padding: 9px 24px;
  font-weight: 600;
  margin-left: var(--space-s);
  transition: background 0.22s, transform 0.1s;
}
.main-nav a.cta:hover,
.main-nav a.cta:focus {
  background: var(--cta-hover);
  color: #fff;
  transform: scale(1.05);
}
.main-nav a:hover, .main-nav a:focus {
  background: #f6e8e2;
  color: var(--brand-accent);
}

/* === HERO SECTIONS === */
.hero-section {
  align-items: flex-start;
  background: linear-gradient(90deg, #fff7ef 65%, #f6e9ff 100%);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  padding: var(--space-xl) var(--space-l);
  margin-bottom: var(--space-xl);
  position: relative;
  gap: var(--space-s);
}
.hero-section h1 {
  font-size: 2.5rem;
  color: var(--brand-accent);
}
.hero-section p {
  color: var(--text-light);
  font-size: 1.12rem;
}

/* === BUTTONS, CTA === */
.cta, .btn, .cookie-banner .btn, .cookie-modal .btn {
  background: var(--cta-bg);
  color: #fff;
  border-radius: var(--border-radius);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  padding: 11px 28px;
  display: inline-block;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: background 0.22s, color 0.13s, box-shadow 0.15s, transform 0.12s;
}
.cta:hover, .btn:hover, .cookie-banner .btn:hover, .cookie-modal .btn:hover,
.cta:focus, .btn:focus, .cookie-banner .btn:focus, .cookie-modal .btn:focus {
  background: var(--cta-hover);
  color: #fff;
  box-shadow: 0 2px 18px 0 rgba(199,72,32, 0.14);
  transform: translateY(-2px) scale(1.04);
}
/* Secondary Button for cookie settings */
.btn-secondary {
  background: #fff7ef;
  color: var(--cta-bg);
  border: 2px solid var(--cta-bg);
  font-size: 1rem;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--cta-bg);
  color: #fff;
}

/* === ICONS IN LISTS === */
ul li > img {
  width: 27px;
  height: 27px;
  margin-right: 12px;
  vertical-align: middle;
  border-radius: 9px;
  background: #fce6d6;
  padding: 4px;
  box-shadow: 0 1px 3px 0 rgba(199,72,32, 0.05);
}
li {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: var(--space-xs);
}

ul {
  padding-left: 0;
  margin-bottom: var(--space-s);
  gap: 8px;
  flex-direction: column;
}

/* === FOOTER === */
footer {
  background: var(--footer-bg);
  padding: var(--space-xl) 0 var(--space-l) 0;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  box-shadow: 0 -2px 30px 0 rgba(23,55,94, 0.06);
  margin-top: var(--space-xl);
}
footer .container {
  padding-left: var(--space-m);
  padding-right: var(--space-m);
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
}
.footer-contact {
  min-width: 230px;
}
.footer-links, .footer-legal {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-links a, .footer-legal a {
  color: var(--brand-primary);
  font-size: 1rem;
  letter-spacing: 0.01em;
  font-family: var(--font-body);
  opacity: .92;
  padding: 2px 0;
  border-radius: var(--input-radius);
  transition: background 0.15s, color 0.16s;
}
.footer-links a:hover, .footer-legal a:hover {
  background: #f6e8e2;
  color: var(--brand-accent);
}
.social-links {
  display: flex;
  gap: 20px;
  align-items: center;
}
.social-links a {
  background: #fee8e3;
  padding: 8px;
  border-radius: 50%;
  display: inline-flex;
  transition: background 0.14s, box-shadow 0.13s;
  box-shadow: 0 1px 4px 0 rgba(199,72,32, 0.07);
}
.social-links a:hover {
  background: var(--cta-bg);
}
.social-links img {
  width: 22px;
  height: 22px;
}
/* Footer Contact Details */
.footer-contact img {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  margin-right: 5px;
}

/* === TEXT SECTIONS === */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: var(--space-m);
}
.text-section p {
  color: var(--text-main);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* === TESTIMONIALS === */
.testimonial-card blockquote {
  font-size: 1.16rem;
  color: var(--brand-primary);
  border: none;
  background: none;
  padding: 0;
}
.testimonial-card cite {
  color: var(--brand-accent);
  font-size: 0.97rem;
  font-style: normal;
}

/* === SPACING BETWEEN SECTIONS === */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* === MOBILE NAVIGATION === */
.mobile-menu-toggle {
  display: none;
  background: var(--brand-accent);
  color: #fff;
  border-radius: var(--input-radius);
  border: none;
  font-size: 2.2rem;
  padding: 4px 16px 6px 16px;
  cursor: pointer;
  position: absolute;
  right: 18px;
  top: 16px;
  z-index: 31;
  box-shadow: var(--shadow-btn);
  transition: background 0.19s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--cta-hover);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(250,242,234,0.99);
  z-index: 1100;
  transform: translateX(-102vw);
  transition: transform 0.4s cubic-bezier(0.69,0,0.31,1);
  box-shadow: 0 0 60px 0 rgba(199,72,32, 0.09);
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--brand-primary);
  font-size: 2.2rem;
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 1111;
  padding: 8px 14px;
  border-radius: var(--border-radius);
  transition: background .16s, color .14s;
  cursor: pointer;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #fbeadc;
  color: var(--cta-bg);
}
.mobile-nav {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: center;
  align-items: center;
  margin-top: 100px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 600;
  color: var(--brand-accent);
  padding: 11px 37px;
  border-radius: var(--border-radius);
  transition: background 0.15s, color 0.22s, transform 0.09s;
  background: #fff6f0;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--brand-accent);
  color: #fff;
  transform: scale(1.04);
}

/* === COOKIE CONSENT BANNER === */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100vw;
  z-index: 2000;
  background: #fff8f3;
  box-shadow: 0 -2px 30px 0 rgba(199,72,32, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 19px 4vw 22px 4vw;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  transform: translateY(105%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.68,0,0.32,1), opacity 0.18s;
  font-family: var(--font-body);
}
.cookie-banner.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cookie-banner .btn {
  margin-right: 12px;
  font-size: 1rem;
  border-radius: var(--input-radius);
}
.cookie-banner .btn:last-child { margin-right: 0; }
.cookie-banner .btn-secondary {
  margin-left: 8px;
}
@media (max-width: 500px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; gap: 11px; padding-left: 3vw; padding-right: 3vw;}
  .cookie-banner .btn { margin-bottom: 7px; }
}

/* COOKIE MODAL POPUP */
.cookie-modal-backdrop {
  position: fixed;
  top:0; left:0; right:0; bottom:0;
  background: rgba(36,22,18, 0.25);
  z-index: 2500;
  display: none;
  justify-content: center;
  align-items: center;
}
.cookie-modal-backdrop.open {
  display: flex;
}
.cookie-modal {
  background: #fff8f3;
  box-shadow: 0 5px 32px 0 rgba(199,72,32,.19);
  border-radius: var(--border-radius);
  max-width: 96vw;
  min-width: 310px;
  max-width: 410px;
  width: 90vw;
  padding: 32px 30px 29px 30px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: fade-in .24s cubic-bezier(0.63,0,0.37,1);
  font-family: var(--font-body);
}
.cookie-modal h3 {
  font-family: var(--font-display);
  color: var(--brand-primary);
  font-size: 1.38rem;
  margin-bottom: var(--space-xs);
  font-weight: 600;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0 4px 0;
}
.cookie-modal .cookie-category label {
  font-size: 1rem;
  color: var(--brand-primary);
  cursor: pointer;
}
.cookie-modal .toggle-switch {
  position: relative;
  width: 41px;
  height: 23px;
  background: #f7e2d6;
  border-radius: 12px;
  transition: background 0.18s;
}
.cookie-modal .toggle-switch input { display: none; }
.cookie-modal .toggle-switch span {
  display: block;
  width: 20px;
  height: 20px;
  background: var(--brand-accent);
  border-radius: 50%;
  position: absolute;
  left: 2px; top: 1.5px;
  transition: left 0.20s cubic-bezier(0.66,0,0.34,1), background 0.14s;
}
.cookie-modal .toggle-switch input:checked + span {
  left: 19px;
  background: #13bc79;
}
.cookie-modal .cookie-category.essential .toggle-switch {
  opacity: 0.7;
}
.cookie-modal .cookie-category.essential label {
  opacity: 0.7;
  font-style: italic;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}
.cookie-modal .btn { min-width: 90px; }
.cookie-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.65rem;
  color: var(--brand-accent);
  cursor: pointer;
  border-radius: var(--border-radius);
  padding: 3px 10px;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #fee8e3;
}
@keyframes fade-in { from { opacity:0; transform: translateY(20px);} to {opacity:1; transform:none;} }

/* === RESPONSIVE DESIGN === */
@media (max-width: 1180px) {
  .container { max-width: 98vw; }
  .hero-section {
    padding: var(--space-l) var(--space-s);
  }
  .footer .content-wrapper {
    gap: 18px;
  }
}
@media (max-width: 900px) {
  .container { padding-left: var(--space-s); padding-right: var(--space-s); }
  .footer .content-wrapper { gap: 12px; }
  .content-grid, .card-container { gap: 14px; }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .footer .content-wrapper,
  footer .content-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 26px;
  }
  .container { padding-left: var(--space-xs); padding-right: var(--space-xs); }
  .hero-section { padding: var(--space-m); margin-bottom: var(--space-m); }
  .section, section {
    margin-bottom: 32px;
    padding: 24px 10px;
  }
  .testimonial-card { flex-direction: column; gap: 10px; }
  .content-grid, .card-container { flex-direction: column; gap: 11px; }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}
@media (max-width: 520px) {
  .hero-section h1 { font-size: 1.45rem; }
  h1 { font-size: 1.12rem; }
  h2 { font-size: 1.1rem; }
  .hero-section { padding: var(--space-s); }
}

/* === MISCELLANEOUS UI POLISH === */
::-webkit-scrollbar {
  width: 9px;
  background: #f6e8e2;
}
::-webkit-scrollbar-thumb {
  background: #e4dede;
  border-radius: 8px;
}

/* Fieldset, Input, Form Elements (in case present later) */
input, textarea, select {
  background: #fff;
  border: 1.5px solid #f0e2dd;
  border-radius: var(--input-radius);
  font-size: 1rem;
  padding: 10px 14px;
  margin-bottom: 13px;
  width: 100%;
  box-shadow: 0 0 0 rgba(0,0,0,0);
  transition: border 0.16s, box-shadow 0.15s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--cta-bg);
  box-shadow: 0 0 1px 2px #fee8e3;
}
label { font-size: 1rem; color: var(--brand-primary); margin-bottom: 6px; display: block; }

/* Additional micro-interactions */
.card,
.cta, .btn, .main-nav a, .footer-links a, .footer-legal a, .social-links a,
.mobile-nav a, .mobile-menu-toggle, .cookie-banner .btn, .cookie-modal .btn  {
  transition: background 0.18s, color 0.16s, box-shadow 0.13s, transform 0.12s;
}

/* === A11Y: REDUCED-MOTION === */
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { transition: none !important; animation-duration: 0.01ms !important; }
}

/* === HELPER CLASSES === */
.hide { display: none !important; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }

/* === Remove unwanted tap highlight on mobile === */
html { -webkit-tap-highlight-color: rgba(0,0,0,0); }

