/* ==== 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, main, 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, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  outline: none;
}

/* ==== CSS VARIABLES (with solid color fallbacks) ==== */
:root {
  --color-primary: #4B3A2F;
  --color-secondary: #BFA87A;
  --color-accent: #F7F5F0;
  --color-white: #fff;
  --color-black: #231B14;
  --color-fun-yellow: #fee97d;
  --color-fun-blue: #58b4fa;
  --color-fun-pink: #ff86b7;
  --color-fun-mint: #8eedc2;
  --color-fun-salmon: #ffbe82;
  --fun-shadow: 0 4px 24px 0 rgba(120, 98, 53, 0.11);
  --radius-card: 22px;
  --radius-btn: 20px;
  --font-display: 'Playfair Display', serif;
  --font-body: 'Lato', Arial, sans-serif;
  --duration: 0.35s;
}


/* ==== BASE TYPOGRAPHY ==== */
html {
  font-size: 16px;
  /* Ensure accessibility */
}
body {
  font-family: var(--font-body);
  font-size: 16px;
  background: var(--color-accent);
  color: var(--color-primary);
  min-height: 100vh;
  overflow-x: hidden;
  letter-spacing: 0.05em;
  transition: background .3s;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.015em;
  color: var(--color-primary);
  margin-bottom: 14px;
  line-height: 1.1;
}

h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.375rem;
}
h4 {
  font-size: 1.125rem;
}
h5, h6 {
  font-size: 1rem;
}

p, ul, ol, li, dl, dt, dd, blockquote, cite, span {
  font-family: var(--font-body);
  font-weight: 400;
}
.subheadline {
  font-size: 1.25rem;
  color: var(--color-secondary);
  margin-bottom: 25px;
  font-family: var(--font-display);
  letter-spacing: 0.02em;
}

strong, b {
  font-weight: 700;
  color: var(--color-secondary);
}

/* ==== LINKS ==== */
a {
  color: var(--color-fun-blue);
  transition: color var(--duration);
}
a:hover, a:focus {
  color: var(--color-fun-pink);
}

/* ==== LAYOUT CONTAINER ==== */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 18px;
}

/* ==== FLEX LAYOUTS (MANDATORY PATTERNS) ==== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-accent);
  border-radius: var(--radius-card);
  box-shadow: var(--fun-shadow);
  position: relative;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--fun-shadow);
  padding: 28px 22px;
  min-width: 240px;
  flex: 1 1 230px;
  transition: transform .25s, box-shadow .25s;
  z-index: 1;
}
.card:hover {
  box-shadow: 0 8px 32px 0 rgba(224,152,68,0.13);
  transform: translateY(-4px) scale(1.025) rotate(-1deg);
}
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: var(--color-fun-mint);
  border-radius: var(--radius-card);
  box-shadow: 0 2px 16px 0 rgba(112, 102, 75, 0.12);
  min-width: 240px;
  margin-bottom: 24px;
  font-size: 1.08rem;
  color: var(--color-black);
}
.testimonial-card strong {
  color: var(--color-primary);
}
.testimonial-card span {
  color: #ffaf29;
  font-size: 1.23rem;
  margin-left: 14px;
  font-family: var(--font-display);
}

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

/*
--- HEADER, NAV, & MOBILE MENU ---
*/
header {
  background: var(--color-white);
  border-bottom: 3px solid var(--color-fun-mint);
  box-shadow: 0 2px 12px 0 rgba(232,156,84,0.06);
  position: sticky;
  top: 0;
  left: 0;
  z-index: 30;
}
header .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 22px;
}
.main-nav a {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--color-primary);
  font-size: 1.06rem;
  transition: color .2s;
  position: relative;
}
.main-nav a:hover,
.main-nav a:focus {
  color: var(--color-fun-blue);
}
.main-nav a::after {
  content: '';
  display: block;
  width: 0%;
  height: 3px;
  background: var(--color-fun-yellow);
  border-radius: 3px;
  position: absolute;
  left: 0; bottom: -6px;
  transition: width .26s cubic-bezier(.7,.2,.3,1);
}
.main-nav a:hover::after,
.main-nav a:focus::after {
  width: 80%;
}

.cta-btn {
  display: inline-block;
  padding: 13px 36px;
  background: var(--color-fun-pink);
  color: var(--color-primary);
  border-radius: var(--radius-btn);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  box-shadow: 0 2px 10px 0 rgba(255, 134, 183, 0.14);
  transition: background .18s, color .18s, transform .22s;
  cursor: pointer;
  border: 2px solid var(--color-secondary);
  margin-top: 10px;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--color-fun-yellow);
  color: var(--color-primary);
  transform: translateY(-2px) scale(1.04);
}

/* Mobile Menu button */
.mobile-menu-toggle {
  display: none;
  background: var(--color-secondary);
  color: var(--color-primary);
  border-radius: 50%;
  font-size: 2.1rem;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 101;
  box-shadow: 0 2px 10px 0 rgba(191,168,122,0.14);
  transition: background 0.22s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--color-fun-blue);
  color: #fff;
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-fun-salmon);
  transform: translateX(-100%);
  opacity: 0.97;
  z-index: 200;
  transition: transform .365s cubic-bezier(.7,.2,.3,1);
  display: flex;
  flex-direction: column;
  pointer-events: none;
}
.mobile-menu.active {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.3rem;
  background: var(--color-fun-blue);
  color: #fff;
  border-radius: 16px;
  margin: 26px 22px 13px 0;
  width: 44px; height: 44px;
  box-shadow: 0 2px 7px 0 rgba(88,180,250,0.15);
  transition: background .19s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-fun-yellow);
  color: var(--color-primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  padding-left: 38px;
}
.mobile-nav a {
  color: var(--color-primary);
  font-size: 1.18rem;
  font-weight: 700;
  padding: 15px 0;
  min-width: 180px;
  border-radius: 12px;
  transition: background .13s, color .16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-fun-blue);
  color: #fff;
}

/* ==== MAIN SECTION STYLING ==== */
main {
  padding-bottom: 60px;
}
.content-wrapper {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* ==== UL, OL LISTS ==== */
ul, ol {
  margin: 0 0 17px 0;
}
ul li, ol li {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 10px;
  font-size: 1.08rem;
  padding-left: 0.5em;
}
ul li img {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 50%;
  background: var(--color-fun-yellow);
  box-shadow: 0 1px 5px 0 #ece1c6b0;
}

/* ==== BLOCKQUOTE & CITATION ==== */
blockquote {
  background: var(--color-fun-blue);
  color: var(--color-primary);
  border-radius: 16px;
  padding: 22px 30px;
  font-size: 1.17rem;
  font-family: var(--font-display);
  margin: 30px 0 12px 0;
  box-shadow: var(--fun-shadow);
  font-style: italic;
}
cite {
  display: block;
  margin-top: 10px;
  color: var(--color-secondary);
  font-family: var(--font-body);
  font-size: 1.0rem;
  font-style: normal;
}

.text-section {
  font-size: 1.07rem;
  background: var(--color-fun-yellow);
  color: var(--color-primary);
  padding: 18px 24px;
  border-radius: 14px;
  margin-bottom: 14px;
}

/* ==== MAP PLACEHOLDER ==== */
.map-placeholder {
  display: flex;
  align-items: center;
  background: var(--color-fun-mint);
  border-radius: 16px;
  padding: 13px 24px;
  margin-top: 18px;
  font-size: 1.08rem;
  color: var(--color-primary);
  box-shadow: 0 1px 8px 0 rgba(112,102,75,0.10);
  gap: 13px;
}

/* ==== FAQ ==== */
dt {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: var(--color-primary);
}
dd {
  margin-left: 0px;
  margin-bottom: 17px;
  color: var(--color-primary);
}

/* ==== FOOTER ==== */
footer {
  padding: 0;
  background: var(--color-primary);
  color: var(--color-accent);
  box-shadow: 0 -3px 18px 0 rgba(120, 98, 53, 0.12);
  font-size: 1rem;
}
footer .container {
  padding: 32px 18px;
}
footer .content-wrapper {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 145px;
}
.footer-nav a {
  color: var(--color-fun-yellow);
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 500;
  transition: color .19s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-fun-blue);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: .98rem;
}
.footer-contact img {
  width: 24px;
  height: 24px;
  margin-right: 7px;
  vertical-align: middle;
}
.footer-branding {
  margin-top: 16px;
  font-size: 0.94rem;
  color: var(--color-fun-mint);
}
footer .cta-btn {
  margin-top: 13px;
  margin-bottom: 8px;
  font-size: 1.02rem;
  padding: 10px 24px;
}

/* ==== BUTTONS ==== */
button, .cta-btn {
  font-family: var(--font-display);
  transition: background .18s, color .18s, box-shadow .21s, transform .23s;
}

/* ==== RESPONSIVE ==== */
@media (max-width: 1024px) {
  .content-wrapper {
    max-width: 95vw;
  }
  footer .content-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}
@media (max-width: 820px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (max-width: 768px) {
  h1 {
    font-size: 1.8rem;
  }
  h2 {
    font-size: 1.33rem;
  }
  .section {
    margin-bottom: 34px;
    padding: 26px 8px;
  }
  .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .card-container {
    flex-direction: column;
    gap: 16px;
  }
  .card {
    min-width: unset;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card {
    font-size: 1rem;
    padding: 14px;
  }
  .footer-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
  }
  .footer-contact {
    font-size: 0.97rem;
  }
}
@media (max-width: 480px) {
  .container {
    padding-left: 4px;
    padding-right: 4px;
  }
  .testimonial-card {
    padding: 9px 5px;
    font-size: 0.96rem;
  }
  .card {
    padding: 15px 6px;
  }
  header .container {
    gap: 7px;
  }
}

/* ==== MICRO-INTERACTIONS & PLAYFUL DYNAMIC EFFECTS ==== */
.cta-btn, button, .card, .main-nav a, .footer-nav a {
  transition: background .19s, color .19s, box-shadow .23s, transform .14s;
}
.card {
  overflow: hidden;
  position: relative;
  background: var(--color-white);
  box-shadow: var(--fun-shadow);
  border: 3.5px dashed var(--color-fun-blue);
}
.card:after {
  content: '';
  display: block;
  position: absolute;
  right: -36px;
  bottom: -36px;
  width: 82px; height: 82px;
  background: var(--color-fun-salmon);
  opacity: 0.14;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.22s;
}
.card:hover:after {
  opacity: 0.29;
}

/* Fun floating animation for accent elements */
@keyframes float-playful {
  0% {transform: translateY(0) rotate(-3deg);}
  50% {transform: translateY(-9px) rotate(1deg);}
  100% {transform: translateY(0) rotate(-3deg);}
}
.cta-btn, .card {
  animation: float-playful 3.2s infinite ease-in-out;
  animation-delay: .5s;
}

/* Move .cta-btn on hover for more energy */
.cta-btn:hover, .cta-btn:focus {
  animation: none;
}
