/* =========================
  CSS RESET & NORMALIZE
========================= */
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  min-height: 100vh;
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  background-color: #f8f9fb;
  color: #222C3E;
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  background: none;
  border: none;
  outline: none;
}
ul, ol { list-style: none; }

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

/* ===============================
  BRAND VARIABLES (FALLBACKS)
=============================== */
:root {
  --color-primary: #222C3E;
  --color-secondary: #FFFFFF;
  --color-accent: #F7C873;
  --color-accent-dark: #b89642;
  --color-shadow: rgba(34,44,62,0.05);
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --shadow-elevate: 0 4px 24px 0 rgba(40,40,55,0.12);
  --shadow-soft: 0 2px 10px 0 rgba(40,40,55,0.08);
  --font-display: 'Playfair Display', serif;
  --font-body: 'Lato', Arial, Helvetica, sans-serif;
}

/* =========================
  LAYOUT & CONTAINERS
========================= */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
@media (max-width: 768px) {
  .section {
    padding: 28px 8px;
    margin-bottom: 40px;
  }
  .container { padding: 0 8px; }
}

/* =========================
  TYPOGRAPHY & HEADINGS
========================= */
h1, h2, h3, h4, .headline, .subheadline {
  font-family: var(--font-display);
  color: var(--color-primary);
  letter-spacing: 0.01em;
  margin-bottom: 12px;
  font-weight: 700;
}
h1 {
  font-size: 2.6rem;
  line-height: 1.18;
  margin-top: 12px;
}
h2 {
  font-size: 2rem;
  line-height: 1.22;
  margin-top: 24px;
}
h3 {
  font-size: 1.32rem;
  font-weight: 700;
  margin-top: 16px;
}
.subheadline {
  font-family: var(--font-body);
  font-size: 1.18rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
  color: #343e55;
}
p {
  margin-bottom: 18px;
  font-size: 1.07rem;
  color: #222C3E;
}
strong, b {
  font-weight: 700;
  color: var(--color-primary);
}

ul, ol {
  padding-left: 0;
  margin-bottom: 18px;
}
ul li, ol li {
  padding-left: 28px;
  margin-bottom: 10px;
  position: relative;
  color: #252933;
  font-size: 1rem;
}
ul li:before {
  content: '';
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--color-accent);
  position: absolute;
  left: 0; top: 7px;
}
ol li:before {
  display: none;
}
ol {
  counter-reset: customCounter;
}
ol li {
  counter-increment: customCounter;
}
ol li::before {
  content: counter(customCounter)'.';
  position: absolute;
  left: 0; top: 0;
  color: var(--color-accent);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
}
.examples {
  margin-top: -10px;
  color: #5c6080;
  font-style: italic;
}
.explanation {
  margin-bottom: 12px;
  font-weight: 500;
  color: #5B5673;
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.45rem; }
  h3 { font-size: 1.14rem; }
}

/* =========================
  HEADER & NAVIGATION
========================= */
header {
  background: var(--color-secondary);
  border-bottom: 1px solid #ececec;
  box-shadow: 0 2px 10px 0 rgba(34,44,62,0.03);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 99;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: 88px;
  gap: 0;
}
header img {
  height: 54px;
  width: auto;
}
header nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 22px;
}
header nav a {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-primary);
  position: relative;
  padding: 0 4px;
  font-weight: 500;
  transition: color .18s;
}
header nav a.cta {
  background: var(--color-accent);
  color: var(--color-primary);
  border-radius: var(--radius-md);
  padding: 10px 28px;
  font-weight: 700;
  letter-spacing: .01em;
  box-shadow: var(--shadow-soft);
  margin-left: 10px;
  border: none;
  transition: background .2s, color .2s, box-shadow .2s;
}
header nav a.cta:hover,
header nav a.cta:focus {
  background: var(--color-primary);
  color: var(--color-accent);
  box-shadow: 0 4px 22px 0 rgba(250, 215, 130, 0.18);
}
header nav a:not(.cta):after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  border-radius: 3px;
  margin-top: 3px;
  transition: width 0.18s;
}
header nav a:not(.cta):hover:after,
header nav a:not(.cta):focus:after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  background: var(--color-secondary);
  color: var(--color-primary);
  border: 1px solid #eee;
  border-radius: var(--radius-sm);
  font-size: 2rem;
  padding: 7px 12px;
  cursor: pointer;
  margin-left: 18px;
  transition: background .2s, color .2s;
  z-index: 130;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--color-primary);
  color: var(--color-accent);
  border-color: var(--color-accent);
}

@media (max-width: 1100px) {
  header .container {
    height: 78px;
  }
}
@media (max-width: 900px) {
  header nav { gap: 13px; }
}
@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    gap: 0;
    height: 60px;
  }
  header img { height: 36px; }
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* ======================
  MOBILE MENU OVERLAY
====================== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100vh;
  background: rgba(34,44,62,0.95);
  transition: transform .44s cubic-bezier(0.57,0.19,0.51,0.91);
  transform: translateX(-100%);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0;
  box-shadow: 0 6px 32px 0 rgba(34,44,62,0.35);
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2.1rem;
  color: var(--color-accent);
  background: none;
  border: none;
  align-self: flex-end;
  margin: 24px 22px 12px 0;
  cursor: pointer;
  transition: color .24s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--color-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 32px 38px 0 38px;
  width: 100%;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.18rem;
  color: var(--color-accent);
  font-weight: 600;
  padding: 16px 0;
  width: 100%;
  border-bottom: 1px solid rgba(247,200,115,0.11);
  transition: color .2s;
  display: block;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-secondary);
}

@media (min-width: 769px) {
  .mobile-menu, .mobile-menu-toggle { display: none !important; }
}

/* ===============================
  HERO & TEXT SECTIONS
=============================== */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  max-width: 700px;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
@media (max-width: 900px) {
  .content-grid {
    gap: 14px;
  }
}

/* ===============================
  FEATURES & CARD LAYOUTS
=============================== */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
}
.features-grid > div {
  flex: 1 1 248px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 28px 22px 24px 22px;
  background: var(--color-secondary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid #ece8e0;
  transition: box-shadow .23s, transform .18s;
  min-width: 220px;
  margin-bottom: 20px;
  position: relative;
}
.features-grid > div:hover {
  box-shadow: 0 8px 36px 0 rgba(34,44,62,0.11);
  transform: translateY(-3px) scale(1.03);
}
.features-grid img {
  width: 46px;
  height: 46px;
  margin-bottom: 2px;
}
.features-grid h3 {
  font-size: 1.13rem;
  color: var(--color-primary);
  margin-top: 0;
  font-family: var(--font-display);
}
.features-grid p {
  color: #464b61;
  font-size: 0.99rem;
  line-height: 1.6;
  margin-bottom: 5px;
}
.features-grid span {
  font-weight: 700;
  color: var(--color-accent);
  align-self: flex-end;
  font-size: 1rem;
  margin-top: 6px;
}
@media (max-width: 900px) {
  .features-grid {
    gap: 16px;
  }
  .features-grid > div {
    padding: 19px 10px 18px 14px;
    min-width: 140px;
  }
}
@media (max-width: 768px) {
  .features-grid {
    flex-direction: column;
    gap: 20px;
  }
  .features-grid > div {
    min-width: unset;
    width: 100%;
    padding: 15px 7px;
  }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-secondary);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  box-shadow: var(--shadow-elevate);
  padding: 32px 26px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: box-shadow .18s, transform .14s;
}
.card:hover {
  box-shadow: 0 8px 36px 0 rgba(34,44,62,0.10);
  transform: translateY(-4px) scale(1.025);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

/* ============================
  TESTIMONIAL Cards
============================= */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  border-left: 5px solid var(--color-accent);
  color: #1a202e;
}
.testimonial-card p {
  font-size: 1.09rem;
  font-family: var(--font-display);
  color: #29253c;
  margin-bottom: 0;
  font-style: italic;
}
.testimonial-card strong {
  font-family: var(--font-body);
  font-size: 0.97rem;
  color: #726158;
  margin-left: 12px;
}
@media (max-width: 768px) {
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 14px 8px;
  }
  .testimonial-card strong {
    margin-left: 0;
  }
}

/* ============================
  CONTACT INFO BLOCK
============================= */
.contact-info-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}
.contact-info-block span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.01rem;
  color: var(--color-primary);
  margin-bottom: 0;
}
.contact-info-block img {
  width: 19px;
  height: 19px;
  margin-right: 4px;
}
.privacy-notice p {
  font-size: 0.97rem;
  color: #789;
  line-height: 1.5;
  margin: 18px 0 0 0;
}
.privacy-notice a {
  color: var(--color-accent);
  border-bottom: 1px dotted var(--color-accent);
  transition: color .17s, border-color .20s;
}
.privacy-notice a:hover { color: var(--color-primary); border-bottom: 1px solid var(--color-primary); }

/* ==========================
  BUTTONS & CTAS
========================== */
.cta {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.11rem;
  font-weight: 700;
  background: var(--color-accent);
  color: var(--color-primary);
  border: none;
  border-radius: var(--radius-md);
  padding: 13px 36px;
  margin-top: 8px;
  box-shadow: var(--shadow-soft);
  letter-spacing: 0.02em;
  cursor: pointer;
  text-align: center;
  transition: background .2s, color .2s, box-shadow .2s, transform .17s;
  position: relative;
  outline: none;
}
.cta:hover, .cta:focus {
  background: var(--color-primary);
  color: var(--color-accent);
  box-shadow: 0 8px 30px 0 rgba(247,200,115,0.25);
  transform: translateY(-2px) scale(1.03);
}
.cta.secondary {
  background: var(--color-secondary);
  color: var(--color-primary);
  border: 2px solid var(--color-accent);
}
.cta.secondary:hover, .cta.secondary:focus {
  background: var(--color-accent);
  color: var(--color-primary);
}
button.cta, input[type="submit"].cta, button.cta.secondary {
  min-width: 180px;
}

/* ==========================
  FOOTER
========================== */
footer {
  background: var(--color-primary);
  padding: 45px 0 21px 0;
  color: var(--color-accent);
  font-family: var(--font-body);
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  box-shadow: 0 -4px 30px 0 rgba(34,44,62,0.045);
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
footer nav {
  display: flex;
  flex-direction: row;
  gap: 23px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
footer nav a {
  color: var(--color-accent);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 1px 6px;
  font-weight: 500;
  transition: color .19s, border-bottom-color .18s;
  border-bottom: 1px dotted transparent;
}
footer nav a:hover, footer nav a:focus {
  color: var(--color-secondary);
  border-bottom: 1px dotted var(--color-secondary);
}
footer img {
  width: 66px; height: 66px; margin-bottom: 11px;
}
footer p {
  color: #e1bc7c;
  font-size: 0.96rem;
  text-align: center;
}
@media (max-width: 768px) {
  footer {
    padding: 30px 0 14px 0;
  }
  footer .container { gap: 10px; }
  footer img { width: 40px; height: 40px; }
  footer nav { gap: 10px; }
}

/* ==========================
  COOKIE CONSENT BANNER
========================== */
.cookie-consent-banner {
  position: fixed;
  bottom: 0; left: 0;
  width: 100vw;
  background: #fffffffa;
  color: var(--color-primary);
  border-top: 2px solid var(--color-accent);
  box-shadow: 0 -2px 16px 0 rgba(34,44,62,0.11);
  z-index: 3200;
  padding: 24px 16px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 32px;
  font-size: 1.02rem;
  animation: cookieSlideIn .6s cubic-bezier(0.57,0.19,0.51,0.91);
}
@keyframes cookieSlideIn {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.cookie-consent-banner p {
  margin: 0;
  color: var(--color-primary);
  max-width: 550px;
  font-size: 1.03rem;
}
.cookie-consent-banner .cookie-buttons {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-left: 8px;
}
.cookie-consent-banner button {
  background: var(--color-accent);
  color: var(--color-primary);
  font-weight: 700;
  border: none;
  border-radius: var(--radius-sm);
  padding: 11px 21px;
  margin-left: 0;
  min-width: 116px;
  font-size: 1rem;
  cursor: pointer;
  transition: background .17s, color .16s, box-shadow .19s;
  box-shadow: 0 1px 8px 0 rgba(34,44,62,0.07);
}
.cookie-consent-banner button:hover {
  background: var(--color-primary);
  color: var(--color-accent);
}
.cookie-consent-banner .settings-btn {
  background: var(--color-secondary);
  color: var(--color-primary);
  border: 1.5px solid var(--color-accent);
}
.cookie-consent-banner .settings-btn:hover {
  background: var(--color-accent);
  color: var(--color-primary);
}
@media (max-width: 900px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    font-size: 0.98rem;
    padding: 22px 10px;
  }
  .cookie-consent-banner .cookie-buttons {
    margin-left: 0;
  }
}

/* ==========================
  COOKIE BANNER / MODAL
========================== */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(34,44,62,0.34);
  z-index: 3300;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn .3s cubic-bezier(.44,.12,.52,.82);
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: var(--color-secondary);
  color: var(--color-primary);
  border-radius: var(--radius-lg);
  box-shadow: 0 6px 40px 0 rgba(34,44,62,0.18);
  padding: 36px 38px;
  max-width: 450px; width: 94vw;
  animation: zoomIn .32s cubic-bezier(.19,.7,.38,1.54);
  display: flex;
  flex-direction: column;
  gap: 26px;
  position: relative;
}
@keyframes zoomIn {
  from { transform: scale(.82); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.cookie-modal h3 {
  font-family: var(--font-display);
  font-size: 1.27rem;
  color: var(--color-primary);
  margin-bottom: 9px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0px;
}
.cookie-category input[type='checkbox'] {
  width: 22px; height: 22px;
  accent-color: var(--color-accent);
  border-radius: 5px;
  cursor: pointer;
}
.cookie-category label {
  font-size: 1.01rem;
}
.cookie-category .cookie-essential {
  font-weight: 700;
  color: var(--color-accent);
}
.cookie-modal .cookie-modal-buttons {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-top: 13px;
}
.cookie-modal button,
.cookie-modal .cookie-modal-buttons button {
  background: var(--color-accent);
  color: var(--color-primary);
  font-weight: 700;
  border: none;
  border-radius: var(--radius-sm);
  padding: 11px 21px;
  margin-left: 0;
  min-width: 116px;
  font-size: 1rem;
  cursor: pointer;
  transition: background .17s, color .16s, box-shadow .13s;
}
.cookie-modal button:hover {
  background: var(--color-primary);
  color: var(--color-accent);
}
.cookie-modal .modal-close {
  position: absolute;
  top: 15px;
  right: 19px;
  background: none;
  border: none;
  font-size: 1.49rem;
  color: var(--color-primary);
  cursor: pointer;
  transition: color .16s;
}
.cookie-modal .modal-close:hover {
  color: var(--color-accent);
}

@media (max-width: 600px) {
  .cookie-modal {
    padding: 16px 8px;
    max-width: 98vw;
  }
}

/* ===============
  RESPONSIVE
================ */
@media (max-width: 1100px) {
  .container { max-width: 97vw; }
}
@media (max-width: 800px) {
  .container { max-width: 760px; }
}
@media (max-width: 768px) {
  body { font-size: 15px; }
  .content-wrapper, .text-section { gap: 15px; }
  .section { margin-bottom: 30px; }
}

/* Extra spacing for main wrapper to prevent Cookie Banner overlap */
@media (max-width: 600px) {
  main { padding-bottom: 65px; }
}

/* ===============
  MICRO-INTERACTIONS
================ */
.button-pulse {
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(247,200,115, 0.57); }
  70% { box-shadow: 0 0 0 16px rgba(247,200,115, 0); }
  100% { box-shadow: 0 0 0 0 rgba(247,200,115, 0); }
}

/* ===============
  REFINED DETAILS
================ */
.features-grid > div:after {
  content: '';
  position: absolute;
  bottom: 9px;
  right: 15px;
  width: 34px;
  height: 2.5px;
  border-radius: 3px;
  background: var(--color-accent);
  opacity: 0.18;
}
.features-grid > div:hover:after {
  opacity: 0.33;
}

/* Prevent unintentional overlap of elements */
.card, .features-grid > div, .testimonial-card {
  z-index: 1;
}
.header, .footer, .cookie-consent-banner, .mobile-menu, .cookie-modal-overlay { z-index: 99; }

/* Hide scroll on mobile menu active */
body.mobile-menu-open { overflow: hidden; }

/* ===============
  UTILITY CLASSES
================ */
.hide { display: none !important; }
.text-center { text-align: center; }
.mb-2 { margin-bottom: 16px !important; }
.mb-3 { margin-bottom: 28px !important; }
.mt-2 { margin-top: 20px !important; }
.gap-20 { gap: 20px !important; }

/* ===============
  VISUAL ACCESSIBILITY
================ */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  z-index: 5;
}
::-webkit-input-placeholder { color: #9093a7; }
::-moz-placeholder { color: #9093a7; }
:-ms-input-placeholder { color: #9093a7; }
::placeholder { color: #9093a7; }

/* ===============
  PRINT FRIENDLY
================ */
@media print {
  .cookie-consent-banner, .mobile-menu, .mobile-menu-toggle { display: none !important; }
  body { background: #fff; color: #111 !important; }
  a { color: #111 !important; text-decoration: underline !important; }
}
