/* RESET & BASE TYPOGRAPHY --------------------------------------------------- */
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, 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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #442104;
  background: #FFF;
  min-height: 100vh;
}
ul, ol {
  list-style: none;
}
a {
  color: #7B321A;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #F4A300;
}
img {
  max-width: 100%;
  display: block;
}
button {
  font-family: inherit;
  font-size: 1rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* BRAND COLORS -------------------------------------------------------------- */
:root {
  --color-primary: #7B321A;
  --color-secondary: #F4A300;
  --color-accent: #FFFAF5;
  --color-dark: #442104;
  --color-light: #FFF;
  --color-bg-card: #FFF6EC;
  --color-success: #39A67B;
  --color-danger: #F45C4A;
  --color-gray: #757575;
}

/* TYPOGRAPHY --------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', serif;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.6rem;
  color: var(--color-primary);
  margin-bottom: 16px;
  line-height: 1.1;
}
h2 {
  font-size: 2rem;
  color: var(--color-secondary);
  margin-bottom: 24px;
  line-height: 1.15;
}
h3 {
  font-size: 1.3rem;
  color: var(--color-primary);
  margin-bottom: 12px;
  line-height: 1.2;
}
p, li, span, label, input, button {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
}
p {
  margin-bottom: 14px;
  color: var(--color-dark);
  line-height: 1.6;
}
strong {
  font-weight: bold;
}

/* LAYOUT UTILS ------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 768px) {
  .section {
    padding: 32px 8px;
    margin-bottom: 36px;
  }
  .container {
    padding: 0 10px;
  }
}

/* HEADER & NAV ------------------------------------------------------------- */
header {
  width: 100%;
  background: var(--color-accent);
  box-shadow: 0 4px 16px rgba(244,163,0,0.07);
  border-bottom: 3px solid var(--color-secondary);
  position: relative;
  z-index: 50;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 14px;
  padding-bottom: 14px;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}
header nav a {
  font-weight: 600;
  font-size: 1rem;
  padding: 8px 10px 8px 10px;
  color: var(--color-primary);
  border-radius: 5px;
  transition: background 0.15s, color 0.12s;
}
header nav a:hover,
header nav a:focus {
  background: var(--color-secondary);
  color: var(--color-light);
}
header .btn-primary {
  margin-left: 14px;
}
.mobile-menu-toggle {
  display: none;
  background: var(--color-secondary);
  color: var(--color-primary);
  border-radius: 50%;
  padding: 8px 14px;
  font-size: 2rem;
  margin-left: 10px;
  transition: background 0.2s;
  z-index: 1002;
  border: none;
}
.mobile-menu-toggle:focus {
  outline: 3px solid var(--color-primary);
}
@media (max-width: 950px) {
  header .container nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* MOBILE MENU -------------------------------------------------------------- */
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: 100vw;
  background: var(--color-accent);
  box-shadow: 2px 0 22px rgba(139,60,4,0.07);
  transform: translateX(-100%);
  transition: transform 0.47s cubic-bezier(.85,-0.01,.37,1.03);
  z-index: 9999;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 28px;
  background: var(--color-secondary);
  color: var(--color-primary);
  font-size: 2.2rem;
  border-radius: 50%;
  border: none;
  padding: 8px 17px 9px 17px;
  z-index: 10001;
  transition: background 0.15s, color 0.1s;
}
.mobile-menu-close:focus {
  outline: 3px solid var(--color-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-top: 98px;
  align-items: center;
}
.mobile-nav a {
  font-size: 1.3rem;
  color: var(--color-primary);
  font-weight: 700;
  background: var(--color-secondary);
  border-radius: 18px;
  padding: 12px 38px;
  box-shadow: 0 3px 18px 0 rgba(244, 163, 0, .12), 0 1.5px 3.5px #ffe7d2;
  transition: background 0.18s, color 0.11s, box-shadow 0.24s;
  margin-bottom: 3px;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 2px 10px 0 rgba(123,50,26,0.09), 0 1px 3px #f4a30033;
}
@media (min-width: 950px) {
  .mobile-menu {
    display: none !important;
  }
}

/* BUTTONS ------------------------------------------------------------------ */
.btn-primary {
  display: inline-block;
  font-family: 'Merriweather', serif;
  font-size: 1.15rem;
  padding: 10px 32px;
  background: var(--color-secondary);
  color: var(--color-primary);
  border-radius: 24px;
  text-align: center;
  font-weight: 700;
  box-shadow: 0 3px 16px rgba(248,184,53,0.13), 0 2px 9px #ffe7d2;
  border: none;
  cursor: pointer;
  transition: background 0.19s, color 0.11s, transform 0.12s, box-shadow 0.24s;
  margin-top: 10px;
}
.btn-primary:hover,
.btn-primary:focus {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-1px) scale(1.05) rotate(-1deg);
  box-shadow: 0 5px 21px rgba(123, 50, 26, 0.16), 0 1.5px 6px #f4a30022;
}

/* HERO & SECTION BASICS ---------------------------------------------------- */
section {
  background: #FFFAF5;
  border-radius: 22px;
  box-shadow: 0 4px 34px rgba(244,163,0,0.06), 0 1.5px 3.5px #ffe7d2;
  margin-bottom: 60px;
  min-width: 0;
}
section .container {
  padding-top: 0;
  padding-bottom: 0;
}
.text-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  background: none;
}

/* CARDS & FLEX CONTAINERS -------------------------------------------------- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  position: relative;
  background: var(--color-bg-card);
  border-radius: 18px;
  box-shadow: 0 3px 20px rgba(244,163,0,0.10), 0 2px 7px #ffe7d2;
  margin-bottom: 20px;
  padding: 32px 26px;
  min-width: 210px;
  flex: 1 1 290px;
  transition: transform 0.17s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-7px) scale(1.035) rotate(-2deg);
  box-shadow: 0 7px 32px rgba(123,50,26,0.14), 0 4px 18px #f4a30029;
  z-index: 3;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.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;
}
@media (max-width: 900px) {
  .card-container,
  .content-grid,
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
}
@media (max-width: 600px) {
  .card,
  .testimonial-card {
    padding: 20px 10px;
    font-size: 0.96rem;
  }
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* FEATURES & LIST ICONS ---------------------------------------------------- */
section ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}
section ul li {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--color-dark);
  font-size: 1.08rem;
  padding: 8px 0 8px 0;
  border-radius: 8px;
  font-weight: 500;
  transition: background 0.16s, color 0.07s, transform 0.13s;
}
section ul li img {
  width: 32px;
  margin-right: 6px;
  filter: drop-shadow(0px 2px 6px #ffe7d2);
}
section ul li:hover {
  background: var(--color-secondary);
  color: #fff;
  transform: scale(1.03) rotate(-1deg);
}

/* TESTIMONIAL CARDS -------------------------------------------------------- */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 3px 20px rgba(244,163,0,0.13), 0 1.5px 3.5px #ffe7d2;
  margin-bottom: 20px;
  min-width: 220px;
  color: var(--color-dark);
  font-family: 'Open Sans', Arial, sans-serif;
  transition: box-shadow 0.17s, transform 0.11s;
}
.testimonial-card span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 600;
}
.testimonial-card img {
  width: 24px;
  height: 24px;
  margin-left: 2px;
}
.testimonial-card:hover {
  box-shadow: 0 6px 32px #f4a30032, 0 4px 14px #ffe7d211;
  transform: scale(1.02) rotate(1deg);
  background: #FFFAF5;
}

/* CONTACT INFO ------------------------------------------------------------- */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--color-dark);
  font-size: 0.99rem;
  margin-top: 8px;
}
.contact-info span {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0;
}
.contact-info img {
  width: 20px;
  filter: none;
  margin-right: 3px;
  vertical-align: middle;
}

/* FOOTER ------------------------------------------------------------------- */
footer {
  background: var(--color-accent);
  box-shadow: 0 -4px 24px 0 #f4a30009, 0 px 1px #ffe7d2;
  padding: 32px 0 0 0;
  border-top: 3px solid var(--color-secondary);
  margin-top: 40px;
}
footer .container {
  padding-bottom: 0;
}
footer .content-wrapper {
  display: flex;
  flex-direction: row;
  gap: 28px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
footer nav a {
  color: var(--color-primary);
  font-size: 1rem;
  font-weight: 500;
  padding: 4px 0;
  transition: color 0.11s;
}
footer nav a:hover,
footer nav a:focus {
  color: var(--color-secondary);
}
footer img {
  width: 82px;
  margin-bottom: 10px;
  margin-right: 18px;
}
footer small {
  display: block;
  color: #9C6652;
  text-align: center;
  margin: 26px 0 8px 0;
  font-size: 0.93rem;
}
@media (max-width: 780px) {
  footer .content-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 12px;
  }
  footer img {
    margin-bottom: 12px;
    margin-right: 0;
  }
}

/* RESPONSIVE TYPE SCALE ---------------------------------------------------- */
@media (max-width: 700px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.32rem; }
  h3 { font-size: 1.11rem; }
}

/* PLAYFUL ANIMATIONS & MICRO-INTERACTIONS ---------------------------------- */
.btn-primary,
.mobile-menu-toggle,
.mobile-menu-close,
section ul li,
.card,
.testimonial-card {
  transition: box-shadow 0.2s, background 0.17s, color 0.13s, transform 0.14s;
}
.btn-primary:active {
  transform: scale(0.97) translateY(1px);
}
.card:active, .testimonial-card:active {
  transform: scale(0.98) translateY(0.7px);
}

/* FUN & PLAYFUL FONTS (FALLBACKS)------------------------------------------- */
@import url('https://fonts.googleapis.com/css?family=Merriweather:700,900|Open+Sans:400,700&display=swap');

body {
  background: var(--color-accent);
}

/* COOKIE CONSENT BANNER & MODAL -------------------------------------------- */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  z-index: 10020;
  background: #fff6ec;
  color: var(--color-dark);
  box-shadow: 0 -4px 18px #f4a30019, 0 2px 9px #ffe7d238;
  border-top: 3px solid var(--color-secondary);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: 18px 10vw 18px 10vw;
  font-size: 1rem;
  animation: cookie-slide-in 0.6s cubic-bezier(.68,-0.55,.27,1.55);
}
.cookie-consent-banner p {
  margin: 0;
  color: var(--color-dark);
}
.cookie-consent-banner .cookie-btn {
  margin-left: 13px;
  padding: 8px 23px;
  border-radius: 18px;
  font-family: 'Merriweather', serif;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  background: var(--color-secondary);
  color: var(--color-primary);
  box-shadow: 0 2px 9px #ffe7d2;
  transition: background 0.16s, color 0.09s, transform 0.13s;
}
.cookie-consent-banner .cookie-btn.accept {
  background: var(--color-success);
  color: #fff;
}
.cookie-consent-banner .cookie-btn.reject {
  background: var(--color-danger);
  color: #fff;
}
.cookie-consent-banner .cookie-btn.settings {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.cookie-consent-banner .cookie-btn:hover {
  filter: brightness(1.03) contrast(1.06);
  transform: translateY(-1.5px) scale(1.07);
}
@media (max-width: 768px) {
  .cookie-consent-banner {
    flex-direction: column;
    gap: 13px;
    font-size: 0.97rem;
    padding: 14px 16px;
    align-items: flex-start;
  }
  .cookie-consent-banner .cookie-btn {
    margin-left: 0;
    margin-right: 10px;
    padding: 8px 18px;
    font-size: 0.96rem;
  }
}

@keyframes cookie-slide-in {
  from { transform: translateY(80px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* COOKIE MODAL ------------------------------------------------------------- */
.cookie-modal-overlay {
  position: fixed;
  top: 0; bottom: 0; left: 0; right: 0;
  z-index: 10050;
  background: rgba(255, 251, 245, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.28s;
}
.cookie-modal-overlay.active {
  pointer-events: auto;
  opacity: 1;
}
.cookie-modal {
  background: #fff6ec;
  border: 3px solid var(--color-secondary);
  border-radius: 17px;
  box-shadow: 0 6px 40px #f4a30036, 0 2px 9px #ffe7d259;
  max-width: 95vw;
  width: 410px;
  padding: 32px 28px 18px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 19px;
  font-size: 1.05rem;
  color: var(--color-dark);
  animation: modal-in 0.44s cubic-bezier(.68,-0.4,.27,1.55);
  z-index: 10051;
}
@keyframes modal-in {
  from { transform: translateY(70px) scale(0.92); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal h3 {
  font-family: 'Merriweather', serif;
  color: var(--color-primary);
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 10px;
}
.cookie-modal .cookie-toggle {
  width: 44px;
  height: 24px;
  background: var(--color-gray);
  border-radius: 16px;
  position: relative;
  margin-right: 8px;
  cursor: pointer;
  transition: background 0.16s;
  display: flex;
  align-items: center;
}
.cookie-modal .cookie-toggle[data-on='true'] {
  background: var(--color-success);
}
.cookie-modal .cookie-toggle .switch {
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 1px; left: 1px;
  transition: left 0.22s;
}
.cookie-modal .cookie-toggle[data-on='true'] .switch {
  left: 21px;
  background: var(--color-success);
}
.cookie-modal .category-desc {
  font-size: 0.97rem;
  color: var(--color-gray);
  margin-bottom: 3px;
}
.cookie-modal .category-label {
  font-size: 1rem;
  color: var(--color-primary);
  font-weight: 600;
}
.cookie-modal .toggle-disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.cookie-modal .modal-actions {
  display: flex;
  flex-direction: row;
  gap: 18px;
  justify-content: flex-end;
  width: 100%;
  margin-top: 16px;
}
.cookie-modal .modal-actions .cookie-btn {
  margin-left: 0;
}

/* ENSURE SPACING BETWEEN FLEX CHILDREN ------------------------------------- */
section .content-wrapper,
.card-container,
.content-grid,
.text-image-section,
footer .content-wrapper {
  gap: 20px; /* for .content-grid gap: 20px, as mandated */
}

/* ADDITIONAL: SCROLLBAR + BODY BG PLAYFUL ---------------------------------- */
body {
  scrollbar-width: thin;
  scrollbar-color: var(--color-secondary) var(--color-accent);
}
body::-webkit-scrollbar { width: 11px; }
body::-webkit-scrollbar-thumb {
  background: var(--color-secondary);
  border-radius: 8px;
}
body::-webkit-scrollbar-track {
  background: var(--color-accent);
  border-radius: 8px;
}

/* MISCELLANEOUS ------------------------------------------------------------ */
::-webkit-input-placeholder { color: #ad7b68; }
::-moz-placeholder { color: #ad7b68; }
:-ms-input-placeholder { color: #ad7b68; }
::placeholder { color: #ad7b68; }

hr {
  border: 0;
  border-top: 2px solid var(--color-secondary);
  margin: 48px 0 28px 0;
}

/* FUN SPECIAL EFFECTS FOR PLAYFUL DYNAMIC ---------------------------------- */
.card, .testimonial-card {
  animation: floatUp 1.1s cubic-bezier(.23,1.19,.70,1.08);
}
@keyframes floatUp {
  from { opacity: 0; transform: translateY(40px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

section h2 {
  position: relative;
}
section h2:after {
  content: "";
  display: block;
  width: 32px;
  height: 6px;
  border-radius: 5px;
  background: var(--color-secondary);
  margin-top: 10px;
  animation: bounce-marker 0.8s 0.26s cubic-bezier(.2,1.1,.66,1.04);
}
@keyframes bounce-marker {
  0% { width: 0; }
  50% { width: 44px; }
  80% { width: 35px; }
  100% { width: 32px; }
}

/* INPUTS & FORMS (for possible contact forms) ------------------------------ */
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  padding: 9px 16px;
  border: 2px solid var(--color-secondary);
  border-radius: 13px;
  margin-bottom: 12px;
  background: #fff6ec;
  color: var(--color-dark);
  box-shadow: 0 2px 7px #ffe7d2;
  outline: none;
  transition: border-color 0.12s, background 0.17s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-primary);
  background: #fffaf3;
}

/* HIDE/SHOW UTILITIES ------------------------------------------------------ */
.hide {
  display: none !important;
}
.visible {
  display: block !important;
}

/* PRINT STYLES ------------------------------------------------------------- */
@media print {
  header, footer, .mobile-menu, .cookie-consent-banner, .cookie-modal-overlay {
    display: none !important;
  }
  body, section, .container {
    background: #fff !important;
    color: #222;
    box-shadow: none !important;
  }
}
