/* ====================== 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 {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  background: #F7FAFC;
  color: #2C3640;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  letter-spacing: 0.01em;
}
img, svg {
  max-width: 100%;
  display: block;
}
a {
  color: #D72638;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #FFD700;
  outline: none;
  text-decoration: underline;
}
ul, ol {
  list-style: none;
}
button {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  cursor: pointer;
}
:focus {
  outline: 2px solid #FFD700;
  outline-offset: 2px;
}

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

/* ===================== COLOR VARIABLES ===================== */
:root {
  --color-primary: #2C3640;
  --color-secondary: #D72638;
  --color-accent: #FFD700;
  --color-bg: #F7FAFC;
  --color-white: #fff;
  --color-dark: #2C3640;
  --color-text: #222;
  --color-gray: #ececec;
}

/* ===================== TYPOGRAPHY ===================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', 'Georgia', serif;
  font-weight: 900;
  color: var(--color-primary);
  letter-spacing: 0.01em;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.15;
}
h2 {
  font-size: 2rem;
  line-height: 1.2;
  color: var(--color-secondary);
}
h3 {
  font-size: 1.5rem;
  color: var(--color-primary);
}
h4, h5, h6 {
  font-size: 1.17rem;
  color: var(--color-secondary);
}
p, ul, ol {
  margin-bottom: 16px;
}
strong {
  font-weight: 700;
  color: var(--color-primary);
}
em {
  font-style: italic;
  color: var(--color-secondary);
}

/* ===================== LAYOUT & STRUCTURE ===================== */
.container {
  width: 100%;
  max-width: 1180px;
  padding: 0 20px;
  margin: 0 auto;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-white);
  border-radius: 28px;
  box-shadow: 0 4px 24px rgba(44, 54, 64, 0.06);
  position: relative;
}

@media (max-width: 768px) {
  .section {
    padding: 24px 8px;
    margin-bottom: 35px;
    border-radius: 16px;
  }
}

/* ===================== NAVIGATION HEADER ===================== */
header {
  background: var(--color-white);
  box-shadow: 0 2px 12px rgba(44,54,64,0.08);
  position: sticky;
  top: 0;
  z-index: 50;
}
header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  gap: 32px;
}
header nav > a img {
  height: 46px;
}
header nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
}
header nav ul li a {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1rem;
  color: var(--color-primary);
  font-weight: bold;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
header nav ul li a:hover, header nav ul li a:focus {
  background: var(--color-secondary);
  color: var(--color-white);
}
.cta-btn {
  background: var(--color-secondary);
  color: var(--color-white);
  font-family: 'Merriweather', Georgia, serif;
  font-weight: bold;
  padding: 12px 28px;
  border-radius: 30px;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  margin-left: 16px;
  box-shadow: 0 2px 8px rgba(215,38,56,0.08);
  border: 2px solid var(--color-secondary);
  transition: background 0.18s, color 0.18s, border 0.2s, box-shadow 0.2s;
  cursor: pointer;
  position: relative;
  z-index: 1;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--color-accent);
  color: var(--color-primary);
  border: 2px solid var(--color-accent);
  box-shadow: 0 2px 14px rgba(255, 215, 0, 0.10);
  text-decoration: none;
}

/* ===================== MOBILE NAV MENU ===================== */
.mobile-menu-toggle {
  display: none;
  font-size: 2.1rem;
  background: var(--color-secondary);
  color: var(--color-white);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
  z-index: 103;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--color-accent);
  color: var(--color-primary);
}
.mobile-menu {
  position: fixed;
  inset: 0 0 0 0;
  width: 100vw;
  height: 100vh;
  background: rgba(44, 54, 64, 0.97);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  transform: translateX(100%);
  transition: transform 0.33s cubic-bezier(.55,0,.1,1);
  z-index: 101;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 26px 30px 28px 0;
  font-size: 2.3rem;
  color: var(--color-accent);
  background: none;
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: var(--color-accent);
  color: var(--color-primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 84vw;
  max-width: 350px;
  margin: 0 auto;
  gap: 18px;
}
.mobile-nav a {
  display: block;
  color: var(--color-white);
  background: none;
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.2rem;
  font-weight: bold;
  padding: 16px 20px;
  border-radius: 12px;
  transition: background 0.19s, color 0.17s;
  margin-bottom: 0;
  text-align: left;
}
.mobile-nav a:active, .mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-accent);
  color: var(--color-primary);
  text-decoration: none;
}

@media (max-width: 1024px) {
  header nav ul {
    gap: 12px;
  }
}

@media (max-width: 900px) {
  header nav ul li {
    margin-bottom: 0;
  }
  .cta-btn {
    padding: 10px 20px;
    margin-left: 10px;
  }
}
@media (max-width: 768px) {
  header nav ul,
  .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  header nav {
    gap: 12px;
    padding: 14px 10px;
  }
}

/* ===================== MAIN CONTENT STRUCTURE & SECTIONS ===================== */
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  justify-content: flex-start;
}
@media (min-width: 768px) {
  .text-image-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
  }
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 20px;
  }
}

ul, ol {
  padding-left: 0;
}
.content-wrapper ul,
.text-section ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-left: 0;
  margin: 0 0 16px 0;
}
.content-wrapper li {
  font-size: 1.07rem;
  line-height: 1.6;
  padding-left: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.content-wrapper li img, .text-section li img {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  background: var(--color-accent);
  border-radius: 50%;
  padding: 4px;
  margin-right: 8px;
}

/* ===================== CARDS, FEATURE ITEMS & FLEX CONTAINERS ===================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-white);
  border-radius: 22px;
  box-shadow: 0 2px 14px rgba(44,54,64,0.09);
  margin-bottom: 20px;
  padding: 32px 24px;
  transition: box-shadow 0.21s, transform 0.17s;
  position: relative;
  min-width: 260px;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 28px rgba(44,54,64,0.17);
  transform: translateY(-6px) scale(1.02);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--color-gray);
  border-radius: 18px;
  padding: 22px 18px;
  margin-bottom: 20px;
  box-shadow: 0 1px 4px rgba(44,54,64,0.06);
}

@media (max-width: 768px) {
  .card-container, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .card {
    min-width: 0;
    width: 100%;
    padding: 22px 10px;
  }
  .feature-item {
    padding: 16px 8px;
    border-radius: 10px;
  }
}

/* ===================== TESTIMONIAL CARDS ===================== */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: var(--color-accent);
  color: var(--color-dark);
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(44,54,64,0.07);
  min-width: 240px;
  max-width: 540px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1.09rem;
  transition: box-shadow 0.22s, transform 0.18s;
}
.testimonial-card p {
  color: var(--color-dark);
  margin-bottom: 0;
  font-weight: 700;
  font-size: 1.09rem;
}
.testimonial-card strong {
  font-size: 0.98rem;
  color: var(--color-primary);
  font-weight: bold;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 6px 22px rgba(215,38,56,0.12);
  transform: translateY(-2px) scale(1.015);
}
@media (max-width: 900px) {
  .testimonial-card {
    max-width: 99%;
  }
}

/* ===================== FOOTER ===================== */
footer {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 32px 0 18px 0;
  position: relative;
  font-size: 1rem;
  margin-top: 30px;
}
footer nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
}
footer ul {
  display: flex;
  gap: 24px;
}
footer ul li a {
  color: var(--color-accent);
  font-family: 'Merriweather', Georgia, serif;
  font-weight: bold;
  font-size: 1rem;
  border-radius: 6px;
  padding: 6px 10px;
}
footer ul li a:hover, footer ul li a:focus {
  background: var(--color-accent);
  color: var(--color-primary);
}
footer .text-section {
  color: var(--color-white);
  text-align: center;
  margin: 0 auto 16px auto;
  gap: 8px;
}
footer small {
  color: var(--color-accent);
  letter-spacing: 0.03em;
}
@media (max-width: 768px) {
  footer nav, footer ul {
    flex-direction: column;
    gap: 13px;
  }
  footer {
    padding: 22px 0 12px 0;
    font-size: 0.98rem;
  }
}

/* ===================== BUTTONS & INTERACTIONS ===================== */
button, .cta-btn {
  transition: box-shadow 0.19s, color 0.16s, background 0.19s, border 0.18s;
}
button:active, .cta-btn:active {
  box-shadow: 0 1px 6px rgba(44,54,64,0.08);
  transform: scale(0.98);
}

/* ===================== COOKIE CONSENT BANNER ===================== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 24px 14px 24px 18px;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 -6px 32px rgba(44,54,64,0.13);
  gap: 18px;
  animation: fadeInUp 0.37s cubic-bezier(.55,0,.1,1);
}
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(60px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.cookie-banner p {
  margin-bottom: 0;
  margin-top: 0;
  text-align: center;
  font-size: 1.1rem;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}
.cookie-btn {
  padding: 11px 30px;
  border-radius: 26px;
  font-size: 1rem;
  font-weight: bold;
  font-family: 'Merriweather', Georgia, serif;
  border: none;
  transition: background 0.19s, color 0.18s, box-shadow 0.13s;
  margin: 2px 2px;
  min-width: 102px;
  outline: none;
}
.cookie-btn.accept {
  background: var(--color-accent);
  color: var(--color-primary);
  border: 2px solid var(--color-accent);
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: var(--color-secondary);
  color: var(--color-white);
  border: 2px solid var(--color-secondary);
}
.cookie-btn.reject {
  background: var(--color-gray);
  color: var(--color-primary);
  border: 2px solid var(--color-gray);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: var(--color-secondary);
  color: var(--color-white);
  border: 2px solid var(--color-secondary);
}
.cookie-btn.settings {
  background: var(--color-primary);
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--color-accent);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

/* ===== Cookie Preference Modal ===== */
.cookie-modal {
  position: fixed;
  inset: 0 0 0 0;
  background: rgba(44,54,64,0.83);
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal-content {
  background: var(--color-white);
  color: var(--color-primary);
  border-radius: 26px;
  padding: 34px 24px 22px 24px;
  min-width: 320px;
  max-width: 90vw;
  box-shadow: 0 6px 48px rgba(44,54,64,0.23);
  animation: modalIn 0.34s cubic-bezier(.8,-0.2,.15,1.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  position: relative;
}
@keyframes modalIn {
  0% {
    opacity: 0;
    transform: scale(0.90) translateY(30px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.cookie-modal-content h3 {
  margin-bottom: 8px;
  color: var(--color-secondary);
  font-size: 1.4rem;
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 900;
}
.cookie-category {
  width: 100%;
  background: var(--color-gray);
  border-radius: 13px;
  padding: 13px 14px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  font-size: 1.09rem;
}
.cookie-category .cookie-toggle {
  margin-left: auto;
  cursor: pointer;
}
.cookie-toggle {
  width: 40px;
  height: 24px;
  border-radius: 12px;
  background: var(--color-primary);
  position: relative;
  transition: background 0.18s;
  border: 2px solid var(--color-secondary);
  display: inline-block;
}
.cookie-toggle input[type="checkbox"] {
  width: 0;
  height: 0;
  opacity: 0;
  position: absolute;
  pointer-events: none;
}
.cookie-toggle::before {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  background: var(--color-white);
  border-radius: 50%;
  position: absolute;
  top: 1px;
  left: 1px;
  transition: left 0.17s;
}
.cookie-toggle input[type="checkbox"]:checked + .cookie-toggle-slider {
  background: var(--color-accent);
}
.cookie-toggle input[type="checkbox"]:checked ~ .cookie-toggle-slider::before {
  left: 19px;
  background: var(--color-accent);
}
.cookie-toggle-slider {
  display: block;
  width: 36px;
  height: 18px;
  border-radius: 9px;
  background: var(--color-primary);
  position: relative;
  transition: background 0.18s;
}
.cookie-toggle-slider::before {
  content: '';
  display: block;
  width: 16px;
  height: 16px;
  background: var(--color-white);
  border-radius: 50%;
  position: absolute;
  left: 1px;
  top: 1px;
  transition: left 0.18s, background 0.17s;
}
input[type="checkbox"]:checked + .cookie-toggle-slider {
  background: var(--color-accent);
}
input[type="checkbox"]:checked + .cookie-toggle-slider::before {
  left: 19px;
  background: var(--color-accent);
}
.cookie-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  color: var(--color-secondary);
  font-size: 1.5rem;
  padding: 3px 8px;
  border-radius: 50%;
  transition: background 0.18s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--color-accent);
  color: var(--color-primary);
}

@media (max-width: 480px) {
  .cookie-modal-content {
    min-width: 0;
    width: 95vw;
    padding: 20px 5vw 20px 5vw;
  }
}

/* =============== VISUALS & DECORATIVE GEOMETRIC ELEMENTS (optional) =============== */
.section::before {
  content: '';
  display: block;
  position: absolute;
  top: -35px;
  left: -35px;
  width: 60px;
  height: 60px;
  background: var(--color-accent);
  border-radius: 16px 40px 35px 17px / 15px 34px 40px 42px;
  opacity: 0.13;
  z-index: 0;
}
.section::after {
  content: '';
  display: block;
  position: absolute;
  bottom: -20px;
  right: -30px;
  width: 48px;
  height: 48px;
  background: var(--color-secondary);
  border-radius: 16px 35px 16px 46px / 12px 54px 16px 48px;
  opacity: 0.09;
  z-index: 0;
}
@media (max-width: 768px) {
  .section::before, .section::after {
    display: none;
  }
}

/* ===================== FORM ELEMENTS (if any) ===================== */
input[type='text'], input[type='email'], textarea {
  border: 2px solid var(--color-gray);
  border-radius: 9px;
  padding: 10px 14px;
  font-size: 1.05rem;
  font-family: 'Open Sans', Arial, sans-serif;
  margin-bottom: 12px;
  outline: none;
  transition: border 0.19s;
}
input[type='text']:focus, input[type='email']:focus, textarea:focus {
  border: 2px solid var(--color-secondary);
}

/* ===================== SPACING RULES & FLEX GAPS ===================== */
main, .container, .content-wrapper, .section, .testimonial-card, .card, .feature-item {
  margin-bottom: 0;
  /* real margins set in section/card/feature */
}
.section + .section {
  margin-top: 8px;
}
/* Application of minimum spacing between content cards/sections */
.section > .container > .content-wrapper > * + * {
  margin-top: 20px;
}

/* Prevent overlap */
.section, .card, .feature-item {
  position: relative;
  z-index: 1;
}

/* ===================== HIDING REDUNDANT CLASSES ON MOBILE ===================== */
@media (max-width: 500px) {
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.07rem; }
  h3 { font-size: 1rem; }
  .cta-btn {
    padding: 11px 10px;
    font-size: 0.97rem;
  }
  .testimonial-card, .card {
    padding: 14px 8px;
    border-radius: 11px;
  }
  .cookie-modal-content { padding: 8vw 5vw; }
  .section { padding: 16px 2px; }
}

/* ===================== SMALL ANIMATIONS & EFFECTS ===================== */
.cta-btn, .cookie-btn, .mobile-menu-toggle {
  transition: background 0.18s, color 0.17s, box-shadow 0.20s;
}

.cta-btn:active, .cookie-btn:active, .mobile-menu-toggle:active {
  transform: scale(0.98);
  box-shadow: 0 1px 7px rgba(44,54,64,0.07);
}

.card, .testimonial-card {
  transition: box-shadow 0.20s, transform 0.17s;
}
.card:hover, .testimonial-card:hover {
  box-shadow: 0 8px 24px rgba(215,38,56,0.10);
  transform: translateY(-2px) scale(1.012);
}

/* ========== GENERAL UTILITY CLASSES ========== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0!important; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.mt-32 { margin-top: 32px; }
.mb-32 { margin-bottom: 32px; }

/* Hide visually but keep for screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
