/* ============================== */
/*         RESET & NORMALIZE       */
/* ============================== */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  background: #F5F5F5;
  color: #23324D;
  font-family: 'Lato', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}
img, svg {
  max-width: 100%;
  vertical-align: middle;
  height: auto;
}
a {
  color: #7B1F28;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #164083;
  text-decoration: underline;
}
ul, ol {
  list-style: disc;
  margin: 0 0 1.5em 1.5em;
  padding: 0;
}
section, main, footer, header, nav, address {
  display: block;
}
button {
  cursor: pointer;
  font-family: inherit;
  background: none;
  border: none;
  outline: none;
  color: inherit;
  padding: 0;
  transition: all 0.2s;
}

/* ============================== */
/*        BRAND & LAYOUT VARS     */
/* ============================== */
:root {
  --primary: #7B1F28;
  --secondary: #F5F5F5;
  --white: #FFFFFF;
  --accent: #164083;
  --accent-dark: #23324D;
  --card-bg: #FFFFFF;
  --shadow: 0 8px 32px 0 rgba(123,31,40,0.08), 0 2px 8px 0 rgba(22,64,131,0.06);
  --radius: 20px;
  --radius-small: 10px;
  --gap: 24px;
}

/* Artistic hand-drawn effect on section backgrounds */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--secondary);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  overflow: visible;
}

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

/* ============================== */
/*        TYPOGRAPHY              */
/* ============================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Lato', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--primary);
}
h1 {
  font-size: 2.75rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.325rem;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1.08rem;
  margin-bottom: 10px;
}
p, blockquote {
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--accent-dark);
}
blockquote {
  font-family: 'Montserrat', serif;
  font-style: italic;
  background: #fff3f4;
  border-left: 5px solid var(--primary);
  padding: 18px 24px;
  margin: 0 0 8px 0;
  border-radius: var(--radius-small);
}
strong, b {
  color: var(--primary);
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Headline hand-drawn underline */
h1, h2 {
  position: relative;
}
h1:after, h2:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 80px;
  height: 6px;
  background: var(--accent);
  border-radius: 6px 20px 20px 6px/50% 40% 60% 50%;
  opacity: 0.20;
  pointer-events: none;
  z-index: 0;
}
h2:after {
  left: 0;
  width: 60px;
  height: 5px;
  background: var(--primary);
  opacity: 0.22;
}

/* ============================== */
/*         BUTTONS                */
/* ============================== */
.cta-primary, .cookie-banner button.accept, .cookie-modal .accept {
  display: inline-block;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 16px 36px;
  border-radius: 40px;
  border: none;
  box-shadow: 0 3px 12px 0 rgba(123,31,40,0.08);
  margin-top: 12px;
  transition: background 0.2s, box-shadow 0.2s;
}
.cta-primary:hover, .cta-primary:focus, .cookie-banner button.accept:hover, .cookie-banner button.accept:focus, .cookie-modal .accept:hover, .cookie-modal .accept:focus {
  background: linear-gradient(90deg, var(--accent) 0%, var(--primary) 100%);
  box-shadow: 0 6px 32px 0 rgba(22,64,131,0.15);
}
.button-secondary, .cookie-banner button.settings, .cookie-modal .settings {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 12px 24px;
  border-radius: 26px;
  font-size: 1rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  margin-left: 10px;
  transition: background 0.2s, color 0.2s;
}
.button-secondary:hover, .cookie-banner button.settings:hover, .cookie-modal .settings:hover {
  background: var(--primary);
  color: var(--white);
}
.button-reject, .cookie-banner button.reject, .cookie-modal .reject {
  background: var(--accent);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 26px;
  border: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-left: 10px;
  transition: background 0.18s, color 0.18s;
}
.button-reject:hover, .cookie-banner button.reject:hover, .cookie-modal .reject:hover {
  background: var(--primary);
  color: var(--white);
}

/* ========== NAVIGATION =========== */
header {
  background: var(--white);
  box-shadow: 0 4px 20px 0 rgba(22, 64, 131, 0.06);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 30;
}
header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-top: 12px;
  padding-bottom: 12px;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: center;
}
header nav a {
  color: var(--accent);
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  border-radius: 22px;
  padding: 8px 18px;
  position: relative;
  transition: background 0.18s, color 0.16s;
}
header nav a:hover, header nav a:focus {
  background: #f0e0e2;
  color: var(--primary);
}
header nav a.cta-primary {
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  border-radius: 36px;
  padding: 10px 30px;
  box-shadow: 0 3px 12px 0 rgba(123, 31, 40, 0.08);
  transition: background 0.2s;
}
header nav a.cta-primary:hover, header nav a.cta-primary:focus {
  background: var(--accent);
  color: var(--white);
}
.mobile-menu-toggle {
  display: none;
  font-size: 2.1rem;
  color: var(--primary);
  background: none;
  border: none;
  padding: 6px 14px;
  margin-left: 8px;
  border-radius: 18px;
  transition: background 0.18s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #f7e6e8;
}

/* ======================= */
/*    HERO SECTION         */
/* ======================= */
.hero {
  padding: 0;
  margin-bottom: 48px;
  background: linear-gradient(120deg, rgba(123,31,40,0.13) 0%, var(--secondary) 85%);
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
}
.hero .container {
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 40px 0 30px 0;
}
.hero h1 {
  color: var(--primary);
  margin-bottom: 10px;
}

/* ============== FLEX LAYOUTS =============== */

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 40px;
}
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  margin-bottom: 20px;
  position: relative;
  min-width: 240px;
  flex: 1 1 320px;
  transition: box-shadow 0.22s, transform 0.22s;
}
.card:hover {
  box-shadow: 0 12px 30px 0 rgba(22,64,131,0.15);
  transform: translateY(-3px) scale(1.03) rotate(-0.7deg);
  z-index: 2;
}
.content-grid, .feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.feature-grid > div {
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 340px;
  background: var(--white);
  border-radius: var(--radius-small);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  margin-bottom: 20px;
  transition: box-shadow 0.20s, transform 0.18s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.feature-grid > div:hover {
  box-shadow: 0 8px 40px 0 rgba(123,31,40,0.10);
  transform: translateY(-4px) scale(1.015) rotate(-1.25deg);
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff9f1;
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px 0 rgba(22,64,131,0.06);
  flex: 1 1 340px;
  transition: box-shadow 0.16s, transform 0.14s;
}
.testimonial-card:hover {
  transform: scale(1.02) skewY(-0.8deg);
  box-shadow: 0 6px 28px 0 rgba(123,31,40,0.14);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

/* Ensure minimum spacing between all cards */
.card, .feature-grid > div, .testimonial-card {
  margin-right: 12px;
  margin-left: 0;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* List stylization */
ul li, ol li {
  margin-bottom: 10px;
  font-size: 1rem;
  color: var(--accent-dark);
}
ul {
  padding-left: 24px;
}

/* ============================== */
/*     TESTIMONIAL CONTRAST       */
/* ============================== */
.testimonial-card {
  background: #fff9f1;
  color: #23324D;
}
.testimonial-card blockquote {
  color: #23324D;
  font-size: 1.11rem;
  background: #f9ecec;
  border-left: 5px solid var(--primary);
}
.testimonial-card strong {
  color: var(--primary);
  font-size: 1rem;
}
.testimonial-card img {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #eee;
  padding: 0;
}

/* ============================== */
/*           FOOTER               */
/* ============================== */
footer {
  margin-top: 70px;
  background: #21181A;
  color: #fff5f5;
  padding: 40px 0 10px 0;
  border-radius: var(--radius) var(--radius) 0 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  text-align: center;
}
.footer-menu {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 8px;
}
.footer-menu a {
  color: #fdebee;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  padding: 6px 12px;
  border-radius: 14px;
  transition: background 0.17s, color 0.17s;
}
.footer-menu a:hover, .footer-menu a:focus {
  background: #7B1F28;
  color: #fff;
}
footer address {
  font-style: normal;
  color: #d1bed8;
  font-size: 0.98rem;
}
footer .footer-brand img {
  width: 58px;
  height: auto;
  margin: 0 auto;
  display: block;
}
footer small {
  font-size: 0.89rem;
  color: #D89292;
}

/* ============================== */
/*      MOBILE MENU OVERLAY       */
/* ============================== */
.mobile-menu {
  position: fixed;
  width: 100vw;
  height: 100vh;
  top: 0; left: 0;
  background: rgba(123,31,40,0.90);
  z-index: 120;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(.77,0,.18,1), opacity 0.22s;
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  padding-top: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
}
.mobile-menu-close {
  background: none;
  color: #fff;
  font-size: 2.1rem;
  border: none;
  border-radius: 30px;
  padding: 18px 24px 10px 20px;
  margin: 18px 14px 0 0;
  box-shadow: none;
  align-self: flex-end;
  transition: background 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: rgba(255,255,255,0.15);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: flex-start;
  align-items: flex-end;
  margin-top: 26px;
  width: 100%;
  padding-right: 42px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.31rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  border-radius: 26px;
  padding: 12px 45px 12px 20px;
  margin-right: 0;
  margin-bottom: 6px;
  background: none;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #fff3f7;
  color: var(--primary);
}
/* Hide main nav on mobile, show burger */
@media (max-width: 900px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 901px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ============================== */
/*     RESPONSIVE: Mobile first   */
/* ============================== */
@media (max-width: 1020px) {
  .container {
    max-width: 96vw;
    padding-right: 8px;
    padding-left: 8px;
  }
  .feature-grid, .content-grid {
    gap: 14px;
  }
  .feature-grid > div, .card {
    min-width: 170px;
  }
}
@media (max-width: 768px) {
  .section {
    margin-bottom: 36px;
    padding: 18px 8px;
    border-radius: 12px;
  }
  .hero .container {
    min-height: unset;
    padding: 14px 0;
  }
  .hero .content-wrapper {
    padding: 20px 0 14px 0;
  }
  h1 {
    font-size: 1.85rem;
  }
  h2 {
    font-size: 1.35rem;
  }
  .feature-grid, .content-grid, .card-container {
    flex-direction: column;
    gap: 16px;
  }
  .feature-grid > div, .card {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
  }
  header .container {
    gap: 8px;
    padding-top: 5px;
    padding-bottom: 4px;
  }
  .footer-menu {
    gap: 10px;
  }
}

/* Make sure cards, testimonials never overlap and have spacing on small screens */
@media (max-width: 480px) {
  .section, .card, .feature-grid > div, .testimonial-card {
    padding: 12px 5px !important;
  }
  .footer-brand img {
    width: 48px;
  }
  footer {
    padding: 25px 0 6px 0;
  }
}

/* ============================== */
/*      COOKIE CONSENT BANNER     */
/* ============================== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff8f7;
  color: #2b1617;
  z-index: 9999;
  box-shadow: 0 -2px 16px 0 rgba(123,31,40,0.08);
  border-radius: 18px 18px 0 0;
  padding: 18px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 1rem;
  animation: cookiebanner-appear 0.4s ease;
}
@keyframes cookiebanner-appear {
  0% { transform: translateY(100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  flex: 1 1 180px;
  color: #2b1617;
  margin: 0;
  font-weight: 500;
}
.cookie-banner .banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-left: auto;
}
.cookie-banner button {
  margin-bottom: 0;
}

/* COOKIE MODAL (popup) */
.cookie-modal-bg {
  display: none;
  position: fixed;
  z-index: 10011;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(34,19,21,0.48);
  align-items: center;
  justify-content: center;
}
.cookie-modal-bg.open {
  display: flex;
  animation: cookiebg-fadein 0.2s;
}
@keyframes cookiebg-fadein {
  0% { opacity: 0; }
  100% { opacity: 1;}
}
.cookie-modal {
  background: #fff;
  color: #141021;
  border-radius: var(--radius);
  box-shadow: 0 8px 44px 0 rgba(123,31,40,0.18);
  max-width: 410px;
  width: 95vw;
  padding: 30px 28px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  animation: modal-popup 0.25s ease;
}
@keyframes modal-popup {
  0% { opacity: 0; transform: scale(0.85); }
  100% { opacity: 1; transform: scale(1); }
}
.cookie-modal h3 {
  font-size: 1.28rem;
  color: var(--primary);
  margin-bottom: 6px;
}
.cookie-modal .modal-close {
  position: absolute;
  top: 11px; right: 10px;
  font-size: 1.65rem;
  color: #9f2d3f;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 30px;
  padding: 2px 8px 2px 6px;
  transition: background 0.14s;
}
.cookie-modal .modal-close:hover, .cookie-modal .modal-close:focus {
  background: #fde9ed;
}
.cookie-modal ul {
  padding-left: 20px;
}
.cookie-modal label {
  font-size: 1rem;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
  font-weight: 500;
}
.cookie-modal input[type='checkbox'] {
  accent-color: var(--primary);
  width: 17px;
  height: 17px;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 9px;
  justify-content: flex-end;
  margin-top: 12px;
}
.cookie-modal .essential label {
  color: #555;
  font-weight: 400;
  opacity: 0.67;
}
.cookie-modal .essential input {
  pointer-events: none;
  opacity: 0.48;
}

/* ====================== */
/*    MICRO-INTERACTIONS  */
/* ====================== */
.card, .feature-grid > div, .testimonial-card, .button, .cta-primary, .button-secondary, .mobile-menu, .mobile-menu-toggle {
  transition: box-shadow .2s, transform .19s, background .16s, color .14s;
}

/* ====================== */
/*     ARTISTIC ACCENTS   */
/* ====================== */
.feature-grid > div:before {
  content: '';
  position: absolute;
  left: -15px; top: -15px;
  width: 46px; height: 46px;
  background: rgba(123,31,40,0.09);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
  box-shadow: 0 2px 8px 0 #fbe8e9;
  filter: blur(2.5px);
  opacity: 0.6;
}
.feature-grid > div {
  position: relative;
  overflow: visible;
}

/* ====================== */
/*   ICON STYLING         */
/* ====================== */
.feature-grid img,
.text-section img,
.testimonial-card img {
  margin-bottom: 12px;
  width: 38px;
  height: 38px;
  filter: drop-shadow(2px 4px 7px #e6cad2);
}
.text-section img {
  width: 28px;
  height: 28px;
  margin-right: 6px;
}
@media (max-width: 450px) {
  .cookie-banner p {
    font-size: 0.95rem;
    text-align: left;
  }
  .cookie-banner .banner-actions {
    gap: 4px;
  }
  .cookie-modal {
    padding: 12px 6px 10px 10px;
    font-size: 0.98rem;
  }
}

/* =============================== */
/*       VISUAL HIERARCHY          */
/* =============================== */
.cta-primary, .feature-grid > div, .card, .testimonial-card {
  box-shadow: var(--shadow);
}
.section, .feature-grid, .testimonial-card, .card-container {
  margin-bottom: 40px;
}
.card-container, .content-grid, .feature-grid {
  gap: 24px;
}
.card-container > *, .feature-grid > div, .testimonial-card {
  margin-bottom: 20px;
}

/* Ensure cards do not overlap even if content is long */
.card, .feature-grid > div, .testimonial-card {
  min-width: 0;
  max-width: 100%;
}

/* =============================== */
/*          ACCESSIBILITY          */
/* =============================== */
:focus {
  outline: 2px solid var(--accent);
  outline-offset: 0.1em;
}

/* End of style.css */
