/* 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: 'Roboto', Arial, sans-serif;
  color: #3a341f;
  background: #FEF9F2;
  line-height: 1.65;
  min-height: 100vh;
  font-size: 1rem;
  letter-spacing: 0.01em;
}
:root {
  --color-primary: #684D33;
  --color-secondary: #DEF2CC;
  --color-accent: #EBC077;
  --color-white: #fff;
  --color-dark: #3a341f;
  --color-success: #97DB4F;
  --color-error: #F26B7B;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 500;
}
a:hover,
a:focus {
  color: var(--color-accent);
}
ul, ol {
  padding-left: 1.2em;
  margin-bottom: 1.3em;
}
li + li {
  margin-top: 0.6em;
}
h1, h2, h3, h4 {
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5em;
  line-height: 1.2;
}
h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.25rem;
}
h4 {
  font-size: 1.1rem;
}
p {
  margin-bottom: 1.1em;
}
strong {
  font-weight: 700;
}

/* CONTAINER & LAYOUTS */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
  width: 100%;
  z-index: 1;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-secondary);
  border-radius: 28px;
  box-shadow: 0 4px 28px 0 rgba(160, 180, 120, 0.09);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.text-section {
  align-items: flex-start;
  max-width: 680px;
  margin: 0 auto;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 260px;
  background: var(--color-white);
  border-radius: 22px;
  box-shadow: 0 3px 16px 0 rgba(232, 188, 119, 0.18);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.22s, box-shadow 0.25s;
}
.card:hover {
  transform: translateY(-5px) rotate(-2deg) scale(1.025);
  box-shadow: 0 8px 36px 0 rgba(232, 188, 119, 0.25);
  z-index: 2;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 12px;
  justify-content: center;
}
.feature-grid > div {
  background: var(--color-white);
  border-radius: 22px;
  box-shadow: 0 2px 12px 0 rgba(212,128,99,0.08);
  flex: 1 1 210px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 18px;
  margin-bottom: 20px;
  min-width: 210px;
  min-height: 240px;
  transition: transform 0.23s, box-shadow 0.23s;
  position: relative;
  gap: 15px;
}
.feature-grid > div:hover {
  transform: rotateZ(1deg) scale(1.042);
  box-shadow: 0 8px 38px 0 rgba(232, 188, 119, 0.19);
  z-index: 2;
}
.feature-grid img {
  width: 54px;
  height: 54px;
  margin-bottom: 8px;
  animation: wiggle 1.7s infinite ease-in-out;
}
@keyframes wiggle {
  0%, 100% { transform: rotate(-5deg); }
  20% { transform: rotate(8deg); }
  80% { transform: rotate(-10deg); }
  50% { transform: rotate(4deg); }
}

.features, 
.services {
  background: var(--color-secondary);
  border-radius: 28px;
  margin-bottom: 48px;
  padding: 36px 18px;
}

/* TESTIMONIALS */
.testimonials {
  background: #FFFBEF;
  border-radius: 22px;
  padding: 38px 18px;
  margin-bottom: 60px;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 1px 10px 0 rgba(104,77,51,0.07);
  padding: 20px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 34px 0 rgba(155, 225, 112, 0.16);
}
.testimonial-card p {
  color: #3a341f;
  font-size: 1.12rem;
  font-style: italic;
  flex: 1 1 75%;
}
.testimonial-author {
  color: var(--color-primary);
  font-size: 1.05rem;
  font-weight: bold;
  align-self: flex-end;
}

/* BUTTONS & CALL TO ACTIONS */
.cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 13px 32px;
  background: var(--color-accent);
  color: var(--color-primary);
  border: none;
  border-radius: 99px;
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 13px 0 rgba(155,209,95,0.09);
  letter-spacing: 0.04em;
  transition: background 0.18s, color 0.18s, transform 0.18s;
  margin: 18px 0;
  position: relative;
  overflow: hidden;
}
.cta-btn:after {
  content: '';
  display: block;
  width: 4px; height: 4px;
  background: var(--color-success);
  border-radius: 50%;
  margin-left: 12px;
  animation: bounce-dot 1.4s infinite;
}
@keyframes bounce-dot {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
.cta-btn:hover,
.cta-btn:focus {
  background: var(--color-primary);
  color: #fff;
  transform: scale(1.05) rotate(-1deg);
}

button, .cta-btn {
  outline: none;
}
button:focus-visible, .cta-btn:focus-visible {
  outline: 2px dashed var(--color-primary);
  outline-offset: 2px;
}

/* HEADER & NAVIGATION */
header {
  width: 100%;
  padding: 0 0 0 0;
  background: var(--color-white);
  box-shadow: 0 1px 16px 0 rgba(210,188,93,0.09);
  position: sticky;
  top: 0;
  z-index: 30;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: 10px;
}
.logo {
  display: flex;
  align-items: center;
  margin-right: 18px;
}
.logo img {
  height: 52px;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  font-size: 1rem;
}
.main-nav a {
  color: var(--color-primary);
  padding: 8px 14px;
  border-radius: 14px;
  font-weight: 600;
  font-family: 'Roboto', Arial, sans-serif;
  position: relative;
  transition: background 0.16s, color 0.15s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-accent);
}
.mobile-menu-toggle {
  display: none;
  font-size: 2.2rem;
  color: var(--color-accent);
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 12px;
  z-index: 31;
  transition: color 0.18s, transform 0.12s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  color: var(--color-primary);
  transform: rotate(6deg) scale(1.08);
}

/* MOBILE MENU */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: var(--color-secondary);
  box-shadow: 0 0 134px 0 rgba(232, 188, 119, 0.12);
  z-index: 100;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(.77,.2,.23,1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
  box-shadow: 0 0 380px 0 rgba(104,77,51,0.22);
}
.mobile-menu-close {
  font-size: 2rem;
  color: var(--color-primary);
  background: none;
  border: none;
  margin: 25px 25px 0 14px;
  align-self: flex-end;
  cursor: pointer;
  z-index: 102;
  transition: color 0.13s, transform 0.11s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-error);
  transform: rotate(-7deg) scale(1.07);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 17px;
  padding: 22px 35px;
  margin-top: 12px;
}
.mobile-nav a {
  color: var(--color-primary);
  font-size: 1.18rem;
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 700;
  padding: 14px 0;
  border-radius: 14px;
  transition: background 0.16s, color 0.16s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--color-accent);
  color: #fff;
}
@media (max-width:1024px) {
  header .main-nav {
    gap: 12px;
  }
}
@media (max-width:900px) {
  header .main-nav {
    gap: 9px;
  }
  .feature-grid {
    gap:16px;
  }
}
@media (max-width: 768px) {
  header .main-nav, .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .container {
    padding-left:8px;padding-right:8px;
  }
  .feature-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .feature-grid > div {
    min-width: 0;
  }
  .section,
  .features, .services, .testimonials {
    padding: 25px 10px;
    margin-bottom: 34px;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 10px;
    padding: 13px 12px;
  }
  .card {
    padding: 16px 10px;
  }
  .content-wrapper {
    gap: 16px;
  }
  .cta-btn {
    font-size: 1.06rem;
    padding: 10px 19px;
  }
  .logo img {
    height: 38px;
  }
}
@media (max-width:560px) {
  h1 {
    font-size: 1.55rem;
  }
  h2 {
    font-size: 1.16rem;
  }
  .testimonial-card p {
    font-size: 1rem;
  }
}

/* HERO & CTA SECTIONS */
.hero {
  display: flex;
  align-items: center;
  background: var(--color-accent);
  padding: 68px 8px 58px 8px;
  border-radius: 0 0 24px 24px;
  margin-bottom: 62px;
}
.hero .content-wrapper {
  align-items: flex-start;
}
.cta {
  background: var(--color-success);
  border-radius: 24px;
  box-shadow: 0 6px 34px 0 rgba(155, 225, 112, 0.15);
  padding: 50px 16px 40px 16px;
  display: flex;
  margin-bottom: 0;
}
.cta .content-wrapper {
  align-items: flex-start;
  text-align: left;
}
@media (max-width: 768px) {
  .hero {
    padding: 28px 4px 32px 4px;
    border-radius: 0 0 14px 14px;
    margin-bottom: 34px;
  }
  .cta {
    border-radius: 14px;
    padding: 22px 7px 18px 7px;
  }
}

/* CARD & FEATURE ITEMS */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--color-secondary);
  padding: 24px;
  border-radius: 18px;
  margin-bottom: 20px;
}

/* TEXT/IMAGE SECTIONS FOR FLEX LAYOUTS */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width:768px){
  .text-image-section {
    flex-direction: column;
    gap: 15px;
  }
}

/* FOOTER */
footer {
  background: var(--color-white);
  border-top: 2px dashed var(--color-accent);
  margin-top: 62px;
  padding: 35px 0 7px 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: center;
}
.footer-nav, .footer-contact {
  display: flex;
  gap: 18px 30px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.footer-branding {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  color: var(--color-primary);
  font-size: 1rem;
}
.footer-branding img {
  height: 33px;
}
.footer-contact img {
  vertical-align: middle;
  height: 19px;
  margin-right: 6px;
}
@media (max-width:660px){
  .footer-nav, .footer-contact {
    flex-direction: column;
    gap: 10px;
  }
}

/* LEGAL PAGE STYLES */
.legal {
  background: #FFFBEF;
  border-radius: 18px;
  padding: 34px 14px;
  margin-bottom: 40px;
}

/* ACCESSIBILITY FOCUS */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--color-success);
  outline-offset: 2px;
}

/* COOKIE CONSENT BANNER */
#cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  z-index: 2000;
  width: 100%;
  background: #fffbe9;
  border-top: 2px solid var(--color-accent);
  box-shadow: 0 -2px 22px 0 rgba(232,188,119,0.07);
  padding: 23px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  transition: transform 0.32s cubic-bezier(.56,.13,.04,.99);
  transform: translateY(0);
  font-size: 1.08rem;
  animation: banner-in 0.65s cubic-bezier(.5,.84,.54,1) 0.1s;
}
@keyframes banner-in {
  from { transform: translateY(100%); opacity:0; }
  to { transform: translateY(0); opacity:1; }
}
#cookie-banner.hide {
  transform: translateY(140%);
}
#cookie-banner .cookie-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.cookie-accept {
  background: var(--color-success);
  color: var(--color-primary); 
}
.cookie-reject {
  background: var(--color-error);
  color: #fff;
}
.cookie-settings {
  background: var(--color-accent);
  color: var(--color-primary);
}
.cookie-accept, .cookie-reject, .cookie-settings {
  border: none;
  padding: 10px 21px;
  border-radius: 20px;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.04rem;
  box-shadow: 0 1px 6px rgba(230,200,100,0.08);
  cursor: pointer;
  margin-left: 0px;
  transition: background 0.18s, color 0.14s, transform 0.13s;
}
.cookie-accept:hover, .cookie-accept:focus {
  background: #72bF35;
  color: #fff;
}
.cookie-reject:hover, .cookie-reject:focus {
  background: #d84753;
  color: #fff;
}
.cookie-settings:hover, .cookie-settings:focus {
  background: var(--color-primary);
  color: #fff;
}

/* COOKIE PREFERENCES MODAL */
#cookie-modal {
  position: fixed;
  top: 0; left: 0; right:0; bottom:0;
  z-index: 4000;
  background: rgba(96,76,51,0.09);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.27s;
  opacity: 1;
}
#cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-content {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 8px 44px 0 rgba(232,188,119,0.23);
  padding: 36px 28px 28px 28px;
  min-width: 335px;
  max-width: 98vw;
  display: flex;
  flex-direction: column;
  gap: 19px;
  align-items: flex-start;
  font-size: 1.1rem;
  animation: modal-in 0.55s cubic-bezier(.4,.95,.54,1) 0.07s;
}
@keyframes modal-in {
  from { transform: scale(0.8) translateY(55px); opacity:0; }
  to { transform: scale(1) translateY(0); opacity:1; }
}
.cookie-modal-content h3 {
  margin-bottom: 5px;
  font-size:1.2rem;
  color: var(--color-primary);
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 9px;
}
.cookie-toggle {
  width: 38px; height: 22px;
  border-radius: 16px;
  background: #ecd6a2;
  border: none;
  position: relative;
  cursor: pointer;
  transition: background 0.18s;
  flex-shrink: 0;
}
.cookie-toggle[aria-checked="true"] {
  background: var(--color-success);
}
.cookie-toggle::after {
  content: '';
  position: absolute;
  left: 3px; top: 3px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px #cdb98872;
  transition: left 0.18s, background 0.17s;
}
.cookie-toggle[aria-checked="true"]::after {
  left: 19px;
  background: #fff;
}
.cookie-category label {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: var(--color-dark);
}
.cookie-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 9px;
}
.cookie-modal-actions button {
  font-family: inherit;
  padding: 9px 18px;
  border-radius: 16px;
  border: none;
  font-weight: 700;
  background: var(--color-accent);
  color: var(--color-primary);
  cursor: pointer;
  font-size: 1.01rem;
  transition: background 0.17s;
}
.cookie-modal-actions button:hover, .cookie-modal-actions button:focus {
  background: var(--color-primary);
  color: #fff;
}
@media (max-width:550px){
  .cookie-modal-content {
    min-width: 220px;
    padding: 19px 6vw 19px 6vw;
  }
}

/* SPACING ENFORCEMENT */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.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 { display: flex; align-items: center; gap: 20px; padding: 20px; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* VISUAL PLAYFUL DYNAMIC ELEMENTS */
section, .card, .feature-item, .testimonials, .features, .services, .cta {
  box-shadow: 0 1px 10px rgba(232,188,119,0.08), 0 2px 18px rgba(222,242,204,0.06);
}
.feature-grid > div, .card, .testimonials, .features {
  animation: floaty 4.7s ease-in-out infinite alternate;
}
@keyframes floaty {
  0% { transform: translateY(0); }
  100% { transform: translateY(-7px); }
}

/* FUN, ENERGETIC FONTS */
h1, h2, .cta-btn, .mobile-nav a {
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 800;
}

/* MISC. */
::-webkit-scrollbar {
  width: 8px;
  background: var(--color-secondary);
}
::-webkit-scrollbar-thumb {
  background: var(--color-accent);
  border-radius: 6px;
}

/* ENSURE FLEXBOX ONLY (no grid/columns) */
/* CRITICAL: No display: grid, no grid-* props used above! */
