/* RESET & NORMALIZE (MOBILE-FIRST) */
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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #fff;
  color: #2D3748;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a, button {
  outline: 0;
  border: 0;
  background: none;
  color: inherit;
  font-size: inherit;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: color .2s, background .2s, box-shadow .2s, border-color .2s;
}
ul, ol {
  list-style: none;
}

/* VARIABLES (FALLBACKS) */
:root {
  --primary: #C0391B;
  --primary-dark: #8A2410;
  --secondary: #2D3748;
  --secondary-light: #42506a;
  --background: #FFFFFF;
  --accent: #B08B36;
  --accent-light: #F9E6B7;
  --gray-100: #F4F4F8;
  --gray-200: #EAEAEA;
  --gray-300: #CFD3DC;
  --geometric-shape: polygon(0 20%,20% 0,80% 0,100% 20%,100% 80%,80% 100%,20% 100%,0 80%);
}

/* TYPOGRAPHY */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&family=Raleway:wght@700;900&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Raleway', Arial, Helvetica, sans-serif;
  font-weight: 900;
  color: var(--secondary);
  line-height: 1.12;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
}
h1 { font-size: 2.3rem; margin-bottom: 24px; text-transform: uppercase; }
h2 { font-size: 1.5rem; margin-bottom: 20px; text-transform: uppercase; }
h3 { font-size: 1.15rem; margin-bottom: 16px; text-transform: uppercase; }
p, ul, ol, blockquote, li, .legal-info {
  color: var(--secondary);
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 12px;
}
strong {
  font-weight: 700;
  color: var(--primary);
}

blockquote {
  font-style: italic;
  color: var(--secondary);
  border-left: 4px solid var(--accent);
  padding-left: 18px;
  margin: 0 0 12px 0;
}

/* CONTAINERS & LAYOUTS */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--gray-100);
  border-radius: 18px;
  box-shadow: 0 2px 12px 0 rgba(44, 55, 72, 0.04);
  padding: 32px 24px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.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 {
  background: var(--accent-light);
  border-radius: 21px;
  box-shadow: 0 3px 12px 0 rgba(44, 55, 72, 0.06);
  padding: 20px 28px;
  min-width: 0;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-accordion h3 {
  cursor: pointer;
  margin-bottom: 8px;
  font-size: 1.09rem;
  font-weight: 700;
}

.faq-accordion p {
  margin-bottom: 14px;
}

@media (max-width: 768px) {
  .content-wrapper, .content-grid, .card-container {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card, .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .container {
    padding: 0 12px;
  }
  .section {
    padding: 28px 10px;
    margin-bottom: 36px;
  }
  h1 {
    font-size: 1.42rem;
    margin-bottom: 15px;
  }
  h2 {
    font-size: 1.1rem;
    margin-bottom: 14px;
  }
}


/* HEADER, NAV & LOGO */
header {
  width: 100%;
  background: var(--background);
  box-shadow: 0 1px 0 var(--gray-200);
  position: relative;
  z-index: 30;
}
header .container {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: space-between;
  position: relative;
  min-height: 68px;
}
.logo img {
  height: 40px;
  width: auto;
}
nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
nav a {
  font-family: 'Raleway', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: var(--secondary);
  font-size: 1.06rem;
  padding: 5px 14px;
  border-radius: 8px;
  position: relative;
  transition: background .18s, color .18s;
}
nav a:hover, nav a:focus {
  background: var(--accent-light);
  color: var(--primary);
}
.btn-primary {
  font-family: 'Raleway', Arial, Helvetica, sans-serif;
  font-weight: 900;
  background: var(--primary);
  color: var(--secondary);
  padding: 12px 32px;
  border-radius: 32px 12px 32px 12px;
  font-size: 1.17rem;
  border: none;
  box-shadow: 0 2px 8px 0 rgba(192, 57, 27, 0.13);
  letter-spacing: 0.01em;
  transition: background .18s, color .18s, box-shadow .18s;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--primary-dark);
  color: var(--secondary);
  box-shadow: 0 4px 20px 0 rgba(192,57,27,0.19);
}
.btn-accent {
  font-family: 'Raleway', Arial, Helvetica, sans-serif;
  font-weight: 800;
  background: var(--accent);
  color: var(--secondary);
  padding: 12px 26px;
  border-radius: 12px 32px 12px 32px;
  font-size: 1.09rem;
  border: none;
  box-shadow: 0 2px 8px 0 rgba(176, 139, 54, 0.12);
  transition: background .18s, color .18s, box-shadow .18s;
}
.btn-accent:hover, .btn-accent:focus {
  background: #C8A24F;
  color: var(--secondary);
  box-shadow: 0 4px 16px 0 rgba(176,139,54,0.15);
}

/* MOBILE NAV */
.mobile-menu-toggle {
  display: none;
  background: var(--primary);
  color: #fff;
  font-size: 2rem;
  border-radius: 10px;
  padding: 6px 16px;
  margin-left: auto;
  z-index: 41;
  border: none;
  transition: background .18s;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: var(--primary-dark);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: var(--gray-100);
  transform: translateX(-100vw);
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: transform .35s cubic-bezier(.68,-0.6,.32,1.6), opacity .16s;
  box-shadow: 8px 0 28px -8px #d9a56b44;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  align-self: flex-end;
  background: var(--primary);
  border: none;
  color: #fff;
  font-size: 2rem;
  margin: 20px 22px 0 0;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 55;
  transition: background .18s;
}
.mobile-menu-close:active, .mobile-menu-close:focus {
  background: var(--primary-dark);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 34px 32px;
  gap: 26px;
}
.mobile-nav a {
  font-family: 'Raleway', Arial, Helvetica, sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--secondary);
  text-decoration: none;
  padding: 12px 6px 12px 6px;
  border-radius: 12px;
  width: 100%;
  transition: background .18s, color .18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--accent-light);
  color: var(--primary);
}

@media (max-width: 992px) {
  header nav, .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 993px) {
  .mobile-menu-toggle, .mobile-menu {
    display: none !important;
  }
}

/* MAIN SECTIONS & FLEX PATTERNS */
section {
  width: 100%;
  margin-bottom: 60px;
  padding: 40px 20px;
  position: relative;
  background: none;
}

section:nth-child(even) {
  background: var(--gray-100);
}

h2 {
  position: relative;
  margin-bottom: 18px;
  padding-left: 6px;
}
h2:after {
  content: '';
  position: absolute;
  left: 0; bottom: -7px;
  width: 44px; height: 4px;
  background: var(--accent);
  border-radius: 2px;
}

ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 1rem;
  padding: 4px 0;
  margin-bottom: 2px;
}
ul li img {
  margin-right: 8px;
  height: 24px;
  width: 24px;
}

.text-section ul li, .text-section ul {
  margin-bottom: 0;
}

/* BUTTONS & INTERACTIVE */
.btn-primary, .btn-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-variant: small-caps;
  letter-spacing: .02em;
  user-select: none;
  margin-top: 8px;
  box-shadow: 0 2px 7px 0 rgba(44,55,72,0.03);
  border-width: 0;
}
.btn-primary:active, .btn-accent:active {
  transform: scale(0.98);
}

.btn-primary svg, .btn-accent svg { margin-right: 10px; }

.btn-primary:focus-visible, .btn-accent:focus-visible {
  outline: 2px solid var(--primary-dark);
  outline-offset: 2px;
}

/* MICRO-INTERACTIONS */
.card, .testimonial-card, .feature-item, .faq-accordion h3 {
  transition: box-shadow .2s, transform .16s;
}
.card:hover, .testimonial-card:hover {
  box-shadow: 0 6px 36px -5px var(--primary);
  transform: translateY(-4px) scale(1.03);
  z-index: 2;
}
.faq-accordion h3:hover {
  color: var(--primary);
}

/* TESTIMONIALS: Color Contrast Awareness */
.testimonial-card {
  color: #1a202c;
  background: var(--accent-light);
  border: 1.5px solid var(--accent);
  box-shadow: 0 5px 24px -8px #e3bf7b2B;
}
.testimonial-card blockquote, .testimonial-card div {
  color: var(--secondary);
}

/* FOOTER */
footer {
  background: var(--gray-200);
  border-top: 2px solid var(--accent);
  padding: 32px 0 12px 0;
  margin-top: 36px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-nav {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
}
.footer-nav a {
  font-size: 1rem;
  color: var(--secondary);
  text-decoration: none;
  font-weight: 600;
  transition: color .17s;
}
.footer-nav a:hover {
  color: var(--primary);
}
footer img {
  height: 36px;
}
.legal-info {
  font-size: 0.94rem;
  color: #555;
  margin: 0;
}
@media (max-width: 768px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .footer-nav {
    gap: 10px;
  }
}

/* GEOMETRIC STRUCTURED SHAPES */
.card, .testimonial-card, .btn-primary, .btn-accent {
  /* Geometric shape hinting w/ asymmetric radii as visual motif */
  border-radius: 20px 40px 16px 36px;
}
.section, section {
  border-radius: 34px 16px 34px 24px;
}

/* Cookies Consent Banner */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #fff;
  box-shadow: 0 -3px 24px -10px #ad7b35a8;
  padding: 18px 20px;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  border-top: 3px solid var(--accent);
  font-size: 1rem;
  animation: slideUp 0.5s cubic-bezier(.49,1.81,.65,.86);
}
@keyframes slideUp {
  from {transform: translateY(100%);} to {transform: translateY(0);}
}
.cookie-consent-banner button {
  border: none;
  padding: 10px 22px;
  margin-left: 10px;
  border-radius: 12px 24px 12px 24px;
  font-family: 'Raleway', Arial, Helvetica, sans-serif;
  font-weight: 700;
  background: var(--gray-200);
  color: var(--secondary);
  box-shadow: 0 2px 6px 0 rgba(44,55,72,0.07);
  transition: background .18s, color .18s;
}
.cookie-consent-banner button.accept {
  background: var(--primary);
  color: var(--secondary);
}
.cookie-consent-banner button.reject {
  background: #fff4f2;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.cookie-consent-banner button.settings {
  background: var(--accent);
  color: var(--secondary);
}
.cookie-consent-banner button:hover, .cookie-consent-banner button:focus {
  background: var(--accent-light);
  color: var(--primary);
}

/* Cookie Settings Modal */
.cookie-modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(45,55,72,0.33);
  z-index: 1002;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity .22s;
}
.cookie-modal-backdrop.open {
  pointer-events: all;
  opacity: 1;
}
.cookie-modal {
  background: #fff;
  box-shadow: 0 8px 32px 0 rgba(176,139,54,0.22);
  border-radius: 30px 22px 38px 20px;
  min-width: 320px;
  max-width: 90vw;
  padding: 34px 30px 21px 30px;
  z-index: 1205;
  display: flex;
  flex-direction: column;
  gap: 21px;
  position: relative;
  animation: modalIn .29s cubic-bezier(.63,-0.6,.31,1.63);
}
@keyframes modalIn {
  from {transform: translateY(40px) scale(0.97);} to {transform: translateY(0) scale(1);}
}
.cookie-modal .modal-close {
  position: absolute; right: 21px; top: 20px;
  background: #fff;
  color: var(--secondary);
  border: none;
  font-size: 1.5rem;
  border-radius: 50%;
  width: 38px; height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .18s;
  cursor: pointer;
}
.cookie-modal .modal-close:hover, .cookie-modal .modal-close:focus {
  background: var(--gray-200);
}
.cookie-modal h3 {
  margin-bottom: 7px;
  font-size: 1.1rem;
  color: var(--primary);
  font-family: 'Raleway', Arial, Helvetica, sans-serif;
  font-weight: 800;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-200);
}
.cookie-modal .cookie-category:last-child {
  border-bottom: none;
}
.cookie-modal .cookie-switch {
  display: flex; align-items: center; gap: 7px;
}
.cookie-modal .switch {
  width: 34px; height: 20px;
  border-radius: 10px;
  background: var(--gray-300);
  position: relative;
  border: none; outline: none;
  cursor: pointer;
  transition: background .18s;
}
.cookie-modal .switch[aria-checked="true"], .cookie-modal .switch.enabled {
  background: var(--accent);
}
.cookie-modal .switch:before {
  content: '';
  display: block;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  left: 2px; top: 2px;
  transition: left .18s;
  box-shadow: 0 1px 4px 0 #ddc57b66;
}
.cookie-modal .switch[aria-checked="true"]:before, .cookie-modal .switch.enabled:before {
  left: 16px;
}
.cookie-modal .category-label {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: var(--secondary);
  font-size: 1rem;
}
.cookie-modal .category-desc {
  font-size: 0.96rem;
  color: #555;
  margin-left: 8px;
}

/* FORM ELEMENTS */
input, textarea, select {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  padding: 8px 10px;
  border: 1.5px solid var(--gray-300);
  border-radius: 8px;
  font-size: 1rem;
  transition: border .17s;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid var(--primary);
}

/* ACCESSIBLE FOCUS RING */
:focus-visible {
  outline: 2px solid var(--primary-dark);
  outline-offset: 2px;
}

/* SPACING BETWEEN COMPONENTS */
section + section,
.card + .card,
.testimonial-card + .testimonial-card {
  margin-top: 20px;
}
.content-wrapper > * + * {
  margin-top: 18px;
}

@media (max-width: 768px) {
  .cookie-modal {
    padding: 18px 10px 14px 10px;
    min-width: 0;
    max-width: 96vw;
  }
  .cookie-modal .modal-close {
    right: 12px;
    top: 10px;
    width: 33px;
    height: 33px;
    font-size: 1.28rem;
  }
}

/* VISUAL HIERARCHY & STRUCTURED SEPARATORS */
hr {
  border: none;
  border-top: 3px solid var(--gray-300);
  margin: 24px 0;
}

/* GEOMETRIC DECORATIONS (OPTIONAL, WITH ABSOLUTE ONLY FOR DECOR, NOT CONTENT) */
.section:before {
  content: '';
  position: absolute;
  top: 18px; right: 22px;
  width: 94px; height: 84px;
  background: var(--accent-light);
  clip-path: polygon(100% 0,100% 100%,52% 72%,34% 85%,0 67%,0 0);
  opacity: 0.11;
  z-index: 1;
  pointer-events: none;
}
@media (max-width: 768px) {
  .section:before { display: none; }
}

/* UTILITIES */
.d-flex {
  display: flex !important;
}
.align-center {
  align-items: center !important;
}
.flex-wrap {
  flex-wrap: wrap !important;
}
.justify-between {
  justify-content: space-between !important;
}

/* MISC */
.hidden, [hidden] { display: none !important; }

/* END */
