/* === CSS RESET & BASE STYLES === */

html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #1E3741;
  background: #FFFDF9;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  border-radius: 12px;
  display: block;
}
a {
  color: #1E3741;
  text-decoration: none;
  transition: color 0.15s;
}
a:hover,
a:focus {
  color: #995B1C;
  text-decoration: underline;
}

/* === BRAND COLORS & FONT FAMILIES === */
:root {
  --brand-primary: #1E3741;
  --brand-secondary: #A6B1B7;
  --brand-accent: #F4DFBA;
  --warm-yellow: #FFDDAA;
  --warm-orange: #FFBD7B;
  --warm-brown: #995B1C;
  --neutral-bg: #FFFDF9;
  --neutral-card: #FFFFFF;
  --neutral-footer: #F8F4EE;
  --shadow-soft: 0 2px 12px 0 rgba(200,120,35,0.06);
  --radius-base: 16px;
  --radius-card: 20px;
  --font-title: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
  --transition: all 0.27s cubic-bezier(.61,.09,.47,1.39);
}

/* === GENERAL LAYOUTS === */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
main {
  flex: 1 0 auto;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--neutral-card);
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

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

.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 18px;
}

.card {
  background: var(--neutral-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 260px;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 4px 22px 0 rgba(200,120,35,0.14);
}

.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;
  flex-direction: row;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 24px;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--warm-yellow);
  border-radius: 18px;
  box-shadow: 0 2px 10px 0 rgba(200,120,35,0.08);
  margin: 15px 0;
  min-width: 220px;
  max-width: 420px;
  color: #54330E;
  font-size: 1.1em;
}
.testimonial-card p {
  font-family: var(--font-body);
  font-style: italic;
  color: #332412;
  margin-bottom: 8px;
}
.testimonial-card span {
  font-size: 0.97em;
  color: #995B1C;
  letter-spacing: 0.05em;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5 {
  font-family: var(--font-title);
  font-weight: 700;
}
h1 { font-size: 2.6rem; margin-bottom: 14px; color: var(--brand-primary); }
h2 { font-size: 2rem; margin-bottom: 10px; color: var(--warm-brown); }
h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: 6px; color: var(--brand-primary); }
h4 { font-size: 1.1rem; }
h5 { font-size: 1rem; }
p, ul, ol, li, span {
  font-family: var(--font-body);
  font-size: 1.07em;
  color: var(--brand-primary);
  line-height: 1.7;
}
strong {
  color: var(--warm-brown);
}
ul, ol {
  margin: 0 0 0 22px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
li {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* === HEADER & LOGO === */
header {
  background: var(--neutral-card);
  border-bottom: 1.5px solid var(--brand-accent);
  box-shadow: 0 3px 16px -8px #f3cea1;
  padding: 0 0 0 0;
  z-index: 99;
  position: sticky;
  top: 0;
}
.logo {
  display: flex;
  align-items: center;
  height: 68px;
}
.logo img {
  height: 48px;
  margin-right: 8px;
  border-radius: 10px;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
}

.main-nav {
  display: flex;
  flex-direction: row;
  gap: 22px;
  align-items: center;
  font-family: var(--font-title);
  font-size: 1.05em;
}
.main-nav a {
  padding: 7px 14px;
  border-radius: 12px;
  transition: background 0.15s, color 0.15s;
  color: var(--brand-primary);
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--warm-yellow);
  color: var(--warm-brown);
}

.cta-button {
  background: var(--warm-orange);
  color: #fff;
  font-family: var(--font-title);
  font-weight: bold;
  font-size: 1.08em;
  padding: 11px 26px;
  border: none;
  border-radius: 22px;
  box-shadow: 0 2px 8px 0 rgba(255,178,54,0.10);
  cursor: pointer;
  margin-left: 18px;
  transition: var(--transition), box-shadow 0.19s;
  outline: none;
}
.cta-button:hover,
.cta-button:focus {
  background: var(--brand-primary);
  color: var(--warm-accent, #F4DFBA);
  box-shadow: 0 6px 22px 0 rgba(255,178,54,0.17);
}

/* === HERO STYLES === */
.hero {
  background: var(--brand-accent);
  border-radius: 0 0 var(--radius-base) var(--radius-base);
  box-shadow: 0 2px 25px 0 rgba(244,223,186,0.22);
  margin-bottom: 48px;
  padding: 58px 0 56px 0;
  display: flex;
  align-items: center;
}
.hero h1 {
  color: var(--brand-primary);
  font-size: 2.8rem;
  margin-bottom: 16px;
}
.hero p {
  font-size: 1.2em;
  color: var(--brand-primary);
  margin-bottom: 18px;
  max-width: 600px;
}

/* === LIST ICONS === */
li img {
  width: 22px;
  height: 22px;
  margin-right: 7px;
  filter: drop-shadow(0 1px 2px #e8d7bd);
}

/* === FOOTER === */
footer {
  background: var(--neutral-footer);
  padding: 36px 0 24px 0;
  border-top: 1px solid var(--brand-accent);
  margin-top: 54px;
  font-family: var(--font-body);
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.footer-nav a {
  color: var(--brand-primary);
  padding: 7px 11px;
  border-radius: 9px;
  font-size: 1em;
}
.footer-nav a:hover {
  background: var(--brand-accent);
}
.footer-contact {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  color: var(--brand-primary);
  font-size: 0.96em;
  align-items: center;
  justify-content: center;
  padding: 8px 0 0 0;
}

/* === MOBILE MENU === */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 18px;
  right: 24px;
  z-index: 1201;
  background: var(--warm-orange);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  font-size: 2em;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: var(--transition);
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--brand-primary);
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(252, 243, 232, 0.98);
  z-index: 2000;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(.77,.08,.47,1.02);
  box-shadow: 0 0 32px 4px rgba(244,223,186,0.16);
  will-change: transform;
  padding: 32px 24px 24px 24px;
  min-height: 100vh;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 20px; right: 24px;
  background: var(--brand-primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 1.6em;
  cursor: pointer;
  z-index: 2100;
  transition: var(--transition);
  box-shadow: 0 2px 8px 0 rgba(30,55,65,0.08);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  margin-top: 54px;
}
.mobile-nav a {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.25em;
  color: var(--brand-primary);
  padding: 12px 0;
  border-bottom: 1px solid #F4DFBA;
  width: 100%;
  text-align: center;
  border-radius: 12px;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover {
  background: var(--brand-accent);
  color: var(--warm-brown);
}

@media (max-width: 1160px) {
  .container {
    max-width: 95vw;
  }
}
@media (max-width: 900px) {
  .main-nav, .cta-button {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  header .container {
    gap: 0px;
  }
}
@media (max-width: 900px) {
  .footer-contact {
    gap: 12px;
    flex-direction: column;
  }
  .footer-nav {
    gap: 10px;
    flex-wrap: wrap;
  }
}

/* === RESPONSIVE FLEX LAYOUTS === */
@media (max-width: 850px) {
  .testimonial-card {
    min-width: 160px;
    max-width: 95vw;
  }
  .card {
    min-width: 170px;
  }
}
@media (max-width: 768px) {
  .container {
    max-width: 100vw;
    padding: 0 6vw;
  }
  .section {
    margin-bottom: 36px;
    padding: 18px 4.5vw;
    gap: 20px;
  }
  .hero {
    padding: 32px 0 32px 0;
    border-radius: 0 0 18px 18px;
    margin-bottom: 28px;
  }
  .hero h1 {
    font-size: 1.6rem;
  }
  .content-wrapper, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
  }
}
@media (max-width: 580px) {
  h1 { font-size: 1.2rem; }
  h2 { font-size: 1.08rem; }
  .cta-button { font-size: 0.99em; padding: 8px 16px; }
  .footer-contact { font-size: 0.92em; }
  .container { padding: 0 3vw; }
  .section { padding: 10px 2vw; }
}

/* === INTERACTIVE ELEMENTS === */
button,
.button {
  font-family: var(--font-title);
  cursor: pointer;
  border: none;
  outline: none;
  transition: var(--transition);
}
button:focus,
.button:focus {
  outline: 2px solid var(--brand-primary);
}

/* === CARD EFFECTS === */
.card {
  transition: box-shadow 0.19s, transform 0.19s;
}
.card:hover {
  transform: translateY(-5px) scale(1.016);
  box-shadow: 0 8px 32px 0 rgba(244,223,186,0.19);
}

/* === LISTS INSIDE .content-wrapper === */
.content-wrapper ul, .content-wrapper ol {
  margin-left: 0;
  padding-left: 0;
}
.content-wrapper ul li, .content-wrapper ol li {
  background: none;
  border-radius: 12px;
  padding: 5px 0 5px 3px;
  list-style: none;
  font-size: 1.04em;
}

/* === TABLES (if any) === */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 19px 0;
}
th, td {
  padding: 10px 12px;
  border: 1px solid var(--brand-accent);
}
th {
  background: var(--warm-yellow);
  font-family: var(--font-title);
}

/* === FORMS (for contact page, if form is added in the future) === */
input, textarea, select {
  font-family: var(--font-body);
  font-size: 1em;
  padding: 11px 15px;
  border: 1.5px solid var(--brand-accent);
  border-radius: 11px;
  background: #FFFDF9;
  margin-bottom: 18px;
  width: 100%;
  box-sizing: border-box;
  transition: border 0.16s, box-shadow 0.15s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 2px 8px 0 rgba(30,55,65,0.06);
  outline: none;
}
label {
  font-family: var(--font-title);
  font-weight: 600;
  margin-bottom: 7px;
  display: block;
  color: var(--brand-primary);
}

/* === COOKIE CONSENT BANNER === */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100vw;
  background: #fff5e3;
  color: #54330e;
  box-shadow: 0 -2px 32px 0 rgba(244,223,186,0.21);
  padding: 24px 18px 18px 18px;
  z-index: 2400;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 1em;
  border-radius: 18px 18px 0 0;
  animation: cookieBannerFadeIn 0.55s cubic-bezier(.19,1.04,.32,1) 1;
}
@keyframes cookieBannerFadeIn {
  from { transform: translateY(130%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-banner-text {
  flex: 1 1 auto;
  font-size: 1.05em;
  color: #54330e;
  margin-right: 18px;
}
.cookie-banner .cookie-button-group {
  display: flex;
  gap: 14px;
}
.cookie-banner button {
  padding: 10px 24px;
  border-radius: 15px;
  background: var(--warm-brown);
  color: #fff;
  font-weight: 600;
  font-family: var(--font-title);
  font-size: 1em;
  box-shadow: 0 2px 6px 0 rgba(244, 190, 111, 0.07);
  margin-bottom: 0;
  transition: var(--transition);
}
.cookie-banner button:hover,
.cookie-banner button:focus {
  background: var(--brand-primary);
  color: var(--warm-accent, #F4DFBA);
}
.cookie-settings-button {
  background: var(--warm-orange);
  color: #fff;
  border: none;
}

/* === COOKIE PREFERENCES MODAL === */
.cookie-modal {
  position: fixed;
  bottom: 0; left: 50%;
  transform: translate(-50%, 120%);
  min-width: 330px;
  max-width: 98vw;
  background: #fffefb;
  color: #432F12;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -8px 44px 0 rgba(244,223,186,0.22);
  z-index: 2600;
  opacity: 0;
  transition: transform 0.45s cubic-bezier(.57,.07,.52,1.42), opacity 0.25s;
  padding: 32px 22px 24px 22px;
  font-family: var(--font-body);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.cookie-modal.open {
  opacity: 1;
  transform: translate(-50%, 0);
}
.cookie-modal h2 {
  font-size: 1.35em;
  margin-bottom: 8px;
}
.cookie-modal .cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f4e3d1;
}
.cookie-modal .cookie-category:last-child{
  border-bottom: 0;
}
.cookie-category span {
  font-weight: bold;
  color: var(--warm-brown);
}
.toggle-switch {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}
.toggle-switch input[type="checkbox"] {
  appearance: none;
  width: 36px;
  height: 20px;
  background: #eee5d0;
  border-radius: 14px;
  position: relative;
  outline: none;
  transition: background 0.18s;
  margin-right: 8px;
}
.toggle-switch input[type="checkbox"]:checked {
  background: var(--warm-orange);
}
.toggle-switch input[type="checkbox"]:before {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: left 0.22s;
}
.toggle-switch input[type="checkbox"]:checked:before {
  left: 18px;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 13px;
}
.cookie-modal button {
  padding: 10px 24px;
  border-radius: 15px;
  background: var(--brand-primary);
  color: #fff;
  font-weight: 600;
  font-family: var(--font-title);
  font-size: 1em;
  box-shadow: 0 2px 6px 0 rgba(244, 190, 111, 0.07);
  margin-bottom: 0;
  transition: var(--transition);
}
.cookie-modal button.reject {
  background: var(--warm-orange);
}
.cookie-modal button:focus {
  outline: 2px solid var(--warm-brown);
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    font-size: 0.96em;
    padding: 14px 3vw 10px 3vw;
    border-radius: 13px 13px 0 0;
  }
  .cookie-modal {
    padding: 16px 4vw 10px 4vw;
    border-radius: 14px 14px 0 0;
  }
}

/* === THANK YOU PAGE BUTTON === */
.text-section .cta-button {
  margin-top: 20px;
  align-self: flex-start;
}

/* === ANIMATIONS === */
@media (prefers-reduced-motion: no-preference) {
  .cta-button {
    transition: box-shadow 0.19s, background 0.16s, color 0.16s, transform 0.16s;
  }
  .cta-button:hover {
    transform: scale(1.04);
  }
  .card, .testimonial-card {
    transition: box-shadow 0.17s, transform 0.17s;
  }
  .testimonial-card:hover {
    box-shadow: 0 8px 38px 0 rgba(255,189,123,0.13);
    transform: translateY(-2px) scale(1.013);
  }
}
