/* --- 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 {
  height: 100%;
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  font-family: 'Open Sans', Arial, sans-serif;
  background: #EDEBE4;
  color: #222;
  line-height: 1.6;
  font-size: 1rem;
  letter-spacing: 0.01em;
}
img {
  max-width: 100%;
  display: block;
}
a {
  text-decoration: none;
  color: #265C42;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #d53e3e;
}
ul, ol {
  padding-left: 24px;
  margin-bottom: 20px;
}
li {
  margin-bottom: 10px;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}
button {
  cursor: pointer;
}

/* --- BRAND FONTS & CSS VARIABLES --- */
@import url('https://fonts.googleapis.com/css?family=Roboto+Slab:700,400&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap');
:root {
  --clr-primary: #265C42;
  --clr-secondary: #D2B48C;
  --clr-accent: #EDEBE4;
  --clr-crimson: #d53e3e;
  --clr-yellow: #FFD814;
  --clr-bright-blue: #32b3fa;
  --clr-bright-green: #45e596;
  --clr-light: #fff;
  --clr-gray: #6c757d;
  --font-display: 'Roboto Slab', serif;
  --font-body: 'Open Sans', Arial, sans-serif;
  --radius-lg: 32px;
  --radius-md: 18px;
  --radius-sm: 10px;
  --shadow-base: 0 4px 24px rgba(38,92,66,0.07),0 1.5px 9px rgba(213,62,62,0.02);
  --shadow-fun: 0 8px 24px 0 rgba(50,179,250,0.10), 0 4px 18px 0 rgba(255,216,20,0.10);
  --shadow-card: 0 4px 16px 0 rgba(0,0,0,0.09);
  --shadow-pop: 0 15px 30px rgba(213,62,62,0.11),0 4px 30px 0 rgba(69,229,150,0.08);
}

/* --- TYPOGRAPHY SCALE --- */
h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 1.13;
  font-weight: 700;
  color: var(--clr-crimson);
  margin-bottom: 16px;
  letter-spacing: -0.03em;
  animation: fadein-top 1s cubic-bezier(.47,1.64,.41,.8);
}
h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--clr-primary);
  margin-bottom: 16px;
}
h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--clr-bright-blue);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--clr-crimson);
}
p, li, a, button {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: inherit;
}
strong, b {
  font-weight: 600;
  color: var(--clr-primary);
}

/* --- UNIVERSAL SPACING SYSTEM --- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 12px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: flex-start;
  align-items: flex-start;
}

/* --- FLEXBOX PATTERNS --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--clr-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  position: relative;
  padding: 28px 24px 24px 24px;
  transition: transform 0.2s cubic-bezier(.56,1.34,.52,.91), box-shadow 0.2s;
  flex: 1 1 275px;
}
.card:hover {
  transform: translateY(-6px) scale(1.025) rotate(-3deg);
  box-shadow: var(--shadow-fun);
  z-index: 2;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: stretch;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: var(--clr-accent);
  color: #24221d;
  padding: 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-base);
  min-width: 230px;
  min-height: 160px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, background 0.2s;
  position: relative;
}
.testimonial-card p {
  color: #222;
  font-size: 1.12rem;
  font-style: italic;
}
.testimonial-card span {
  font-size: 0.98rem;
  color: var(--clr-crimson);
  font-weight: 700;
}
.testimonial-card:hover {
  background: #fffbe8;
  box-shadow: var(--shadow-pop);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--clr-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 24px 20px 22px;
  margin-bottom: 20px;
  min-width: 220px;
  max-width: 300px;
  transition: box-shadow 0.18s cubic-bezier(.26,1.45,.64,.97), transform 0.16s;
  border-bottom: 4px solid var(--clr-bright-blue);
}
.feature-item img {
  width: 42px;
  height: 42px;
  filter: drop-shadow(0 1.5px 7px #ffd81470);
}
.feature-item:hover {
  box-shadow: var(--shadow-fun);
  transform: translateY(-8px) scale(1.04) rotate(-2deg);
  border-bottom: 4px solid var(--clr-crimson);
  background: #fdedef;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}

/* --- HERO SECTION --- */
.hero {
  background: linear-gradient(90deg, #f8e9ef 0%, #e7fdeb 100%);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-base);
  padding-top: 50px;
  padding-bottom: 28px;
  margin-bottom: 56px;
  animation: fadein-top 1.1s cubic-bezier(.52,1.22,.18,.98);
}
.hero h1 {
  color: var(--clr-crimson);
  text-shadow: 2px 2px 0 #ffd81433, 0 2px 14px #32b3fa13;
}
.hero p {
  font-size: 1.22rem;
  color: var(--clr-primary);
  margin-bottom: 20px;
}

/* --- CTA BUTTONS --- */
.cta {
  display: inline-block;
  margin-top: 10px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 700;
  padding: 15px 36px;
  font-size: 1.22rem;
  letter-spacing: 0.05em;
  transition: background 0.2s, color 0.2s, transform 0.18s;
  box-shadow: 0 7px 24px 0 rgba(50,179,250,0.10);
  border-bottom: 4px solid #32b3fa;
}
.cta.primary {
  background: var(--clr-crimson);
  color: #fff;
  border: none;
  border-bottom: 4px solid var(--clr-yellow);
}
.cta.primary:hover, .cta.primary:focus {
  background: var(--clr-yellow);
  color: var(--clr-primary);
  transform: scale(1.05) rotate(-2deg);
  box-shadow: 0 0 24px rgba(255,216,20,0.23);
  border-bottom: 4px solid var(--clr-crimson);
}
.cta.secondary {
  background: var(--clr-bright-blue);
  color: #fff;
  border-bottom: 4px solid var(--clr-bright-green);
  margin-left: 24px;
}
.cta.secondary:hover, .cta.secondary:focus {
  background: var(--clr-bright-green);
  color: var(--clr-primary);
  transform: scale(1.06) rotate(2deg);
  border-bottom: 4px solid var(--clr-bright-blue);
  box-shadow: 0 0 24px rgba(69,229,150,0.12);
}

/* --- HEADER NAVIGATION --- */
header {
  width: 100%;
  background: var(--clr-light);
  box-shadow: 0 0 22px 0 #D2B48C11;
  z-index: 101;
  position: sticky;
  top: 0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  gap: 14px;
}
header img {
  height: 48px;
  width: auto;
  margin-right: 18px;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 1.08rem;
}
header nav a {
  color: var(--clr-primary);
  font-weight: 600;
  position: relative;
  transition: color 0.18s;
}
header nav a:after {
  content: "";
  display: block;
  width: 100%;
  height: 4px;
  background: #d53e3e44;
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.22s cubic-bezier(.61,1.4,.91,1.01);
  position: absolute;
  bottom: -4px;
  left: 0;
}
header nav a:hover:after, header nav a:focus:after {
  transform: scaleX(1);
  background: var(--clr-crimson);
}
.cta.primary {
  margin-left: 24px;
}

/* --- FOOTER --- */
footer {
  background: var(--clr-primary);
  color: #fff;
  padding: 48px 0 38px 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: 0 -6px 20px 0 #d2b48c38;
  margin-top: 70px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 40px;
  justify-content: space-between;
}
footer img {
  height: 56px;
}
footer nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
footer nav a {
  color: #fff;
  font-weight: 500;
  font-size: 1.02rem;
  margin-bottom: 4px;
  opacity: 0.90;
  transition: color 0.16s, opacity 0.2s;
}
footer nav a:hover {
  color: var(--clr-yellow);
  opacity: 1;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.footer-contact a {
  color: var(--clr-yellow);
  text-decoration: underline;
  font-weight: 700;
}

/* --- ABOUT & LEGAL --- */
.legal, .about, .values, .services, .contact, .about-preview, .thanks {
  margin-bottom: 50px;
  padding: 36px 0;
  background: #fefcfb;
  border-radius: var(--radius-md);
  box-shadow: 0 1px 12px 0 #265c4220;
}
.legal h1, .about h2, .values h2, .services h2, .thanks h1, .contact h2 {
  margin-bottom: 16px;
}
.legal ul, .values ul, .services ul, .contact ul {
  margin-bottom: 10px;
}
.text-section {
  margin-bottom: 10px;
}

/* --- CTA SECTION --- */
section.cta {
  background: linear-gradient(80deg, #fde0e4 10%, #e1fded 99%);
  margin-bottom: 0;
  margin-top: 28px;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 32px 0 #265c420b;
  padding-bottom: 32px;
}
section.cta .content-wrapper {
  flex-direction: row;
  align-items: center;
  gap: 30px;
}
section.cta h2 {
  color: var(--clr-crimson);
  margin-right: 18px;
}

/* --- THANK YOU PAGE --- */
section.thanks .content-wrapper {
  align-items: center;
  justify-content: center;
  text-align: center;
}
section.thanks h1 {
  color: var(--clr-primary);
}
section.thanks a.cta.primary {
  margin-top: 32px;
}

/* --- MOBILE MENU --- */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 18px;
  right: 17px;
  z-index: 800;
  width: 48px;
  height: 48px;
  background: var(--clr-crimson);
  color: #fff;
  border-radius: 50%;
  font-size: 2.25rem;
  border: none;
  box-shadow: 0 5px 12px rgba(213,62,62,.16);
  transition: background 0.16s, box-shadow 0.3s, transform 0.1s;
  justify-content: center;
  align-items: center;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: var(--clr-yellow);
  color: var(--clr-primary);
  box-shadow: 0 6px 18px #ffd81442;
  outline: 2px solid var(--clr-yellow);
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(120deg, #fde0e4 30%, #e1fded 100%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transform: translateX(-110vw);
  transition: transform 0.45s cubic-bezier(.56,1.62,.44,.98);
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: all;
  opacity: 1;
}
.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 28px;
  font-size: 2.35rem;
  background: var(--clr-bright-blue);
  color: #fff;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  border: none;
  box-shadow: 0 4px 12px #32b3fa65;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1011;
  transition: background 0.18s, color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--clr-crimson);
  color: #fff;
}
.mobile-nav {
  margin-top: 88px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 28px;
  justify-content: flex-start;
  align-items: center;
}
.mobile-nav a {
  color: var(--clr-primary);
  font-size: 1.28rem;
  font-family: var(--font-display);
  padding: 20px 38px;
  border-radius: var(--radius-md);
  background: #fff;
  margin: 0 20px;
  box-shadow: 0 1px 12px #d2b48c63;
  transition: background 0.18s, color 0.18s, box-shadow 0.16s;
  min-width: 220px;
  text-align: center;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--clr-bright-green);
  color: var(--clr-crimson);
  box-shadow: 0 4px 16px #45e59655;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, #fffbe8 0%, #d2b48c17 100%);
  color: #1e1d1b;
  padding: 24px 18px 22px 18px;
  box-shadow: 0 -2px 22px 0 #d2b48c42, 0 -4px 24px #fffbe880;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  animation: slideup 0.8s cubic-bezier(.21,1.12,.63,.97);
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.cookie-banner button {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  border-radius: var(--radius-sm);
  padding: 11px 25px;
  border: none;
  margin: 0 2px;
  box-shadow: var(--shadow-card);
  transition: background 0.2s, color 0.23s;
}
.cookie-banner .accept {
  background: var(--clr-bright-blue);
  color: #fff;
}
.cookie-banner .accept:hover {
  background: var(--clr-crimson);
}
.cookie-banner .reject {
  background: #fff;
  color: var(--clr-crimson);
  border-bottom: 3px solid var(--clr-crimson);
}
.cookie-banner .reject:hover {
  background: var(--clr-crimson);
  color: #fff;
}
.cookie-banner .settings {
  background: var(--clr-yellow);
  color: #222;
}
.cookie-banner .settings:hover {
  background: var(--clr-primary);
  color: #fff;
}

/* --- COOKIE MODAL --- */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(38,92,66,0.24);
  z-index: 2500;
  display: none;
  align-items: center;
  justify-content: center;
  transition: background 0.25s;
}
.cookie-modal-overlay.active {
  display: flex;
}
.cookie-modal {
  background: #fffde6;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
  padding: 42px 34px 30px 34px;
  min-width: 290px;
  max-width: 95vw;
  width: 420px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: slideinpop 0.7s cubic-bezier(.36,1.28,.62,.96);
}
.cookie-modal h3 {
  margin-bottom: 6px;
  color: var(--clr-primary);
}
.cookie-modal .cookie-cat {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #f6f6fe;
  padding: 13px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 7px;
}
.cookie-modal .toggle {
  margin-left: auto;
  background: #e8e8e8;
  border-radius: 12px;
  width: 44px;
  height: 24px;
  position: relative;
  transition: background 0.16s;
  display: flex;
  align-items: center;
}
.cookie-modal .toggle input[type=checkbox] {
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.cookie-modal .toggle span {
  display: block;
  width: 22px;
  height: 22px;
  background: var(--clr-gray);
  position: absolute;
  left: 1px;
  top: 1px;
  border-radius: 50%;
  transition: left 0.2s, background 0.18s;
}
.cookie-modal .toggle input:checked + span {
  left: 21px;
  background: var(--clr-bright-green);
}
.cookie-modal .toggle.disabled, .cookie-modal .toggle[aria-disabled='true'] {
  background: #ccc;
}
.cookie-modal .toggle input:disabled + span {
  background: #fff0c0;
  border: 1px solid #ffe98b;
}
.cookie-modal .cookie-buttons {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}
.cookie-modal .close-btn {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 1.8rem;
  color: var(--clr-gray);
  background: #fff;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  display: flex;
  border: 1px solid #eee;
  transition: background 0.12s, color 0.14s;
}
.cookie-modal .close-btn:hover, .cookie-modal .close-btn:focus {
  background: var(--clr-crimson);
  color: #fff;
}

/* --- ANIMATIONS --- */
@keyframes fadein-top {
  from { opacity:0; transform: translateY(-50px); }
  to   { opacity:1; transform: translateY(0);   }
}
@keyframes slideup {
  from { transform: translateY(160px); opacity: 0; }
  to   { transform: translateY(0);     opacity:1;  }
}
@keyframes slideinpop {
  from { transform: translateY(110px) scale(0.93); opacity:0; }
  to   { transform: translateY(0) scale(1); opacity:1; }
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1150px) {
  .container { max-width: 970px; }
  .feature-item, .testimonial-card { max-width: 380px; }
}
@media (max-width: 900px) {
  header .container, footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    height: unset;
  }
  .feature-item { max-width: 98vw; min-width: unset; }
}
@media (max-width: 768px) {
  .container { padding: 0 8px; }
  .section { padding: 28px 4.5vw; margin-bottom: 34px; }
  .card-container, .feature-grid, .content-grid {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .feature-item { margin-bottom: 0; }
  .hero, section.cta { padding: 33px 4vw 30px 4vw; }
  section.cta .content-wrapper, .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
    text-align: center;
  }
  .testimonial-card, .feature-item { max-width: 98vw; }
  h1 { font-size: 2.05rem; }
  h2 { font-size: 1.45rem; }
  h3 { font-size: 1.16rem; }
}
@media (max-width: 600px) {
  html { font-size: 15px; }
  header .container { height: unset; }
  header nav { display: none; }
  .cta.primary { margin-left: 0; }
  .mobile-menu-toggle {
    display: flex;
  }
  .content-wrapper { gap: 16px; }
  .feature-grid { gap: 14px; }
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
  }
}
@media (max-width: 400px) {
  .cookie-modal { padding: 14px 7px 12px 7px; }
}

/* HIDE MOBILE BUTTON ON DESKTOP */
@media (min-width: 601px) {
  .mobile-menu, .mobile-menu-toggle { display: none !important; }
  header nav { display: flex; }
}

/* --- PLAYFUL MICROS & DECOR --- */
.feature-item img, .testimonial-card:before {
  animation: playful-bounce 2.4s infinite cubic-bezier(.48,1.2,.54,0.98);
}
@keyframes playful-bounce {
  0% { transform: translateY(0) scale(1); filter: brightness(1); }
  20% { transform: translateY(-7px) scale(1.12); filter: brightness(1.12); }
  40% { transform: translateY(0) scale(1); }
  100% { transform: translateY(0) scale(1); }
}
.cta.primary, .cta.secondary {
  animation: btn-pop 1.2s cubic-bezier(.57,1.17,.44,.97);
}
@keyframes btn-pop {
  0% { transform: scale(0.92); }
  80% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

/* SCROLLBAR STYLES FOR PLAYFUL FEEL */
::-webkit-scrollbar {
  height: 14px; width: 14px;
  background: #fde0e4;
  border-radius: var(--radius-lg);
}
::-webkit-scrollbar-thumb {
  background: #d53e3e70;
  border-radius: var(--radius-lg);
  border: 5px solid #fde0e4;
}
::-webkit-scrollbar-thumb:hover {
  background: #265C42;
}

/* --- UTILITY CLASSES & FIXES --- */
.hide { display: none !important; }
.visible { display: block !important; }
.mt-2 { margin-top: 16px; }
.space-top-lg { margin-top: 42px; }
.space-btm-lg { margin-bottom: 38px; }

/* --- FOCUS STATE FOR ACCESSIBILITY --- */
a:focus, button:focus, .cta:focus, .mobile-menu-close:focus {
  outline: 3px dashed var(--clr-crimson);
  outline-offset: 2px;
  background: #f7e9e5;
}

/* ENSURE BUTTONS HAVE PROPER SIZE ON MOBILE */
@media (max-width: 500px) {
  .cta, .cookie-banner button, .cookie-modal .cookie-buttons button {
    font-size: 1rem;
    padding: 13px 15vw;
    min-width: 140px;
  }
}
