/* =======================
   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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #FFF;
  color: #23232D;
}
ul, ol {
  list-style: none;
}
a {
  background: transparent;
  text-decoration: none;
  color: inherit;
}
img {
  display: block; max-width: 100%; height: auto;
}
:focus {
  outline: 2px dashed #A07236;
  outline-offset: 2px;
}

/* =======================
   BRAND COLOR VARIABLES
   ======================= */
:root {
  --primary: #28324D;
  --secondary: #A07236;
  --accent: #F7F1DF;
  --bg-playful1: #fffbe7;
  --bg-playful2: #ffe5f0;
  --accent2: #2bbfd6;
  --accent3: #fca13b;
  --error: #f85e5e;
  --success: #50c878;
  --text-main: #23232d;
  --text-dark: #111118;
  --text-light: #fff;
  --shadow: 0 4px 28px rgba(40,50,77,0.08);
  --shadow-deep: 0 8px 24px rgba(40,50,77,0.15);
  --radius-lg: 30px;
  --radius-md: 18px;
  --radius-sm: 8px;
  --gap: 20px;
  --font-display: 'Merriweather', serif;
  --font-body: 'Open Sans', Arial, sans-serif;
}

/* ===========================
   IMPORT FUN FONTS FROM GOOGLE
   =========================== */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@900&family=Fredoka:wght@700&family=Open+Sans:wght@400;700&display=swap');

/* =======================
   BODY & BASIC TYPE
   ======================= */
body {
  font-family: var(--font-body);
  background: var(--bg-playful1);
  color: var(--text-main);
  font-size: 16px;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Fredoka', var(--font-display), serif;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.02em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
  line-height: 1.1;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
  line-height: 1.1;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}
p {
  margin-bottom: 16px;
  font-size: 1rem;
  color: var(--primary);
}
strong {
  font-weight: bold;
}
ul, ol {
  margin-bottom: 18px;
  padding-left: 1em;
}
li {
  margin-bottom: 10px;
  font-size: 1rem;
}
.text-section ul {
  list-style: disc;
  margin-left: 20px;
}

/* =========================
   LINKS and BUTTONS
   ========================= */
a {
  transition: color 0.18s;
  cursor: pointer;
}
a:hover, a:focus {
  color: var(--secondary);
}
.btn-primary, .btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 38px;
  border-radius: var(--radius-lg);
  font-family: 'Fredoka', var(--font-display), serif;
  font-size: 1.1rem; font-weight: 600;
  letter-spacing: 0.01em;
  border: none; cursor: pointer;
  box-shadow: var(--shadow);
  margin-right: 20px;
  margin-bottom: 12px;
  transition: background 0.15s, color 0.17s, box-shadow 0.18s, transform 0.18s;
  text-align: center;
}
.btn-primary {
  background: var(--secondary);
  color: var(--accent);
  box-shadow: 0 6px 24px rgba(160, 114, 54, 0.15);
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--accent3);
  color: var(--primary);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 32px rgba(252,161,59,0.32);
}
.btn-secondary {
  background: var(--accent2);
  color: var(--text-light);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--primary);
  color: var(--accent);
  transform: translateY(-2px) scale(1.025);
  box-shadow: 0 10px 28px rgba(40,50,77,0.18);
}

/* =========================
   CONTAINER & SECTIONS
   ========================= */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* =========================
   HEADER/NAV
   ========================= */
header {
  background: var(--accent);
  box-shadow: 0 2px 12px rgba(40, 50, 77, 0.10);
  position: sticky;
  top: 0;
  z-index: 1000;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 20px;
}
.logo {
  margin-right: 24px;
  display: flex;
  align-items: center;
}
.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  font-family: 'Fredoka', var(--font-display), serif;
  font-size: 1.1rem;
  color: var(--primary);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  transition: background 0.13s, color 0.15s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--accent2);
  color: var(--accent);
}
.mobile-menu-toggle {
  background: var(--secondary);
  border: none;
  color: var(--accent);
  padding: 10px 16px;
  font-size: 2rem;
  border-radius: var(--radius-md);
  margin-left: 16px;
  cursor: pointer;
  display: none;
  transition: background 0.15s, color 0.15s, box-shadow 0.18s;
  box-shadow: 0 2px 10px rgba(160,114,54,0.08);
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--primary);
  color: var(--accent);
}

/* =============================
   MOBILE NAV OVERLAY
   ============================= */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; height: 100vh; width: 100vw;
  background: var(--accent);
  box-shadow: 0 8px 32px rgba(40,50,77,0.22);
  z-index: 1100;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(.77,0,.18,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 34px 22px 22px 22px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--error);
  color: var(--accent);
  border: none;
  border-radius: var(--radius-md);
  align-self: flex-end;
  font-size: 2rem;
  padding: 6px 18px;
  margin-bottom: 28px;
  cursor: pointer;
  transition: background 0.13s, color 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  margin-top: 10px;
}
.mobile-nav a {
  font-size: 1.45rem;
  font-family: 'Fredoka', var(--font-display), serif;
  color: var(--primary);
  padding: 14px 10px;
  border-radius: var(--radius-md);
  background: var(--accent2);  
  margin-bottom: 8px;
  transition: background 0.15s, color 0.15s, box-shadow 0.2s;
  box-shadow: 0 3px 14px rgba(43,191,214,0.10);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: var(--accent);
}

/* =============================
   HERO SECTION
   ============================= */
.hero {
  margin-bottom: 60px;
  padding: 64px 20px 60px 20px;
  background: var(--bg-playful2);
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
  box-shadow: var(--shadow-deep);
  animation: heroFloat 1.2s cubic-bezier(.5,.7,.1,1) 0.2s both;
}
@keyframes heroFloat {
  from{ opacity:0; transform: translateY(24px) scale(0.97); }
  to{ opacity:1; transform: translateY(0) scale(1); }
}

/* =============================
   FEATURES SECTION
   ============================= */
.features {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--accent);
  border-radius: 0 0 55px 55px;
  box-shadow: 0 4px 24px rgba(160,114,54,0.07);
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  justify-content: flex-start;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  box-shadow: var(--shadow);
  border-radius: var(--radius-lg);
  padding: 34px 32px 26px 32px;
  min-width: 210px;
  margin-bottom: 20px;
  transition: transform 0.2s, box-shadow 0.18s;
  position: relative;
  overflow: hidden;
  animation: popFloat 0.6s cubic-bezier(.36,1,.4,1) both;
}
.feature-item:hover, .feature-item:focus {
  transform: translateY(-8px) scale(1.025) rotate(-1deg);
  box-shadow: 0 8px 32px rgba(40,50,77,0.18);
}
.feature-item img {
  width: 48px;
  height: 48px;
  margin-bottom: 10px;
}
@keyframes popFloat {
  from { opacity:.65; transform: scale(0.93); }
  to { opacity:1; transform: scale(1); }
}

/* =============================
   CARDS & CARD-LIKE ELEMENTS
   ============================= */
.card-container, .card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  box-shadow: var(--shadow);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  position: relative;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 260px;
  transition: box-shadow 0.2s, transform 0.19s;
  z-index: 1;
}
.card:hover, .card:focus {
  box-shadow: 0 8px 36px rgba(160,114,54,0.16);
  transform: translateY(-6px) scale(1.015);
}
.service-card {
  background: var(--bg-playful2);
  box-shadow: var(--shadow);
  border-radius: var(--radius-md);
  padding: 28px 20px 18px 20px;
  margin-bottom: 20px;
  transition: transform 0.19s, box-shadow 0.18s;
}
.service-card:hover, .service-card:focus {
  box-shadow: 0 6px 22px rgba(43,191,214,0.09);
  transform: scale(1.025) rotate(2deg);
}

/* =============================
   TESTIMONIALS
   ============================= */
.testimonials {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--bg-playful1);
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  color: var(--text-main);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 20px 32px 22px 32px;
  margin-bottom: 20px;
  font-size: 1.08rem;
  position: relative;
  min-width: 220px;
  flex-wrap: wrap;
}
.testimonial-card p {
  color: var(--primary);
  font-family: var(--font-body);
  margin-bottom: 7px;
  font-style: italic;
  font-size: 1.08rem;
}
.testimonial-card span {
  font-size: 1rem;
  color: var(--secondary);
  font-family: 'Fredoka', var(--font-display), serif;
}

/* =============================
   CONTACT & CTA SECTIONS
   ============================= */
.contact, .contact-details, .map, .confirmation {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--bg-playful2);
  border-radius: 0 0 45px 45px;
  box-shadow: var(--shadow);
}
.text-section, .call-to-action {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 18px;
}
.contact-details p {
  color: var(--primary);
}
.call-to-action {
  margin-top: 20px;
  align-items: flex-start;
}

/* =============================
   LAYOUT HELPERS
   ============================= */
.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;
}

/* =============================
   FOOTER
   ============================= */
footer {
  background: var(--primary);
  color: var(--accent);
  position: relative;
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
}
footer .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 26px 20px 30px 20px;
  gap: 18px 26px;
  flex-wrap: wrap;
}
.footer-nav, .footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: flex-start;
}
.footer-nav a, .footer-menu a {
  color: var(--accent);
  font-family: 'Fredoka', var(--font-display), serif;
  font-size: 1rem;
  padding: 7px 11px;
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.14s;
}
.footer-nav a:hover, .footer-menu a:hover {
  background: var(--accent2);
  color: var(--primary);
}
.footer-branding {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
}
.footer-branding img {
  width: 38px; min-width:38px;
  height: 38px; min-height:38px;
  border-radius: 50%;
  background: #fff;
}
.footer-branding span {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--accent);
}
footer .btn-primary {
  margin-right: 0;
}

/* =============================
   LEGAL / TEXTUAL SECTIONS
   ============================= */
.legal {
  padding: 40px 20px;
  margin-bottom: 60px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

/* =============================
   COOKIE CONSENT BANNER & POPUP
   ============================= */
#cookie-banner {
  position: fixed;
  left:0; right:0;
  bottom: 0;
  background: var(--primary);
  color: var(--accent);
  z-index: 2000;
  width: 100vw;
  padding: 28px 16px 22px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 -4px 24px rgba(40,50,77,0.12);
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
  animation: cookieSlideUp 0.4s cubic-bezier(.5,.9,.3,1) both;
  gap: 18px;
}
@keyframes cookieSlideUp {
  from { transform: translateY(100px); opacity: 0.2; }
  to { transform: translateY(0); opacity: 1; }
}
#cookie-banner p {
  color: var(--accent);
  font-size: 1.08rem;
  margin-bottom: 8px;
  text-align: center;
}
.cookie-btns {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.cookie-accept, .cookie-reject, .cookie-settings {
  padding: 12px 28px;
  font-family: 'Fredoka', var(--font-display), serif;
  font-size: 1rem;
  border: none;
  border-radius: var(--radius-md);
  margin-bottom: 3px;
  cursor: pointer;
  transition: background 0.15s, color 0.14s;
}
.cookie-accept {
  background: var(--success);
  color: #fff;
}
.cookie-accept:hover, .cookie-accept:focus {
  background: var(--secondary);
  color: var(--accent);
}
.cookie-reject {
  background: var(--error);
  color: #fff;
}
.cookie-reject:hover, .cookie-reject:focus {
  background: var(--primary);
}
.cookie-settings {
  background: var(--accent2);
  color: #fff;
}
.cookie-settings:hover, .cookie-settings:focus {
  background: var(--primary);
}

/* Cookie Modal Overlay */
#cookie-modal {
  display: none;
  position: fixed;
  z-index: 3000;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(40,50,77,0.45);
  justify-content: center;
  align-items: center;
  overflow-y: auto;
  animation: modalFadeIn 0.5s;
}
#cookie-modal.open { display: flex; }
@keyframes modalFadeIn {
  from { opacity:0; }
  to { opacity:1; }
}
.cookie-modal-dialog {
  background: var(--bg-playful2);
  color: var(--primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-deep);
  max-width: 410px;
  padding: 36px 32px 26px 32px;
  animation: popFloat 0.3s cubic-bezier(.47,1.64,.41,.8) both;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.cookie-modal-dialog h2 {
  margin: 0 0 18px 0;
  font-size: 1.5rem;
  color: var(--secondary);
  font-family: 'Fredoka', var(--font-display), serif;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.cookie-category label {
  font-family: var(--font-body);
  color: var(--primary);
  font-size: 1rem;
}
.cookie-category .toggle-switch {
  display: inline-flex;
  align-items: center;
  position: relative;
  width: 42px; height: 22px;
}
.toggle-switch input { display: none; }
.toggle-slider {
  background: #dae0ed;
  border-radius: 40px;
  height: 22px; width: 42px;
  position: relative;
  transition: background 0.18s;
}
.toggle-switch input:checked + .toggle-slider {
  background: var(--accent2);
}
.toggle-slider::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.16s cubic-bezier(.6,.5,.4,1.4);
}
.toggle-switch input:checked + .toggle-slider::after {
  left: 23px;
  background: var(--accent2);
}

.cookie-modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}
.cookie-modal-close {
  background: none;
  border: none;
  color: var(--error);
  font-size: 1.7rem;
  position: absolute;
  top: 12px; right: 24px;
  cursor: pointer;
}

/* ===========================
   ANIMATIONS
   =========================== */
a, button, .btn-primary, .btn-secondary, .cookie-btns button {
  transition: background 0.14s, color 0.13s, box-shadow 0.21s, outline 0.13s, transform 0.16s;
}
.feature-item, .card, .service-card, .testimonial-card {
  transition: box-shadow 0.18s, transform 0.17s, background 0.15s;
}

/* ===========================
   SPACING UTILITIES
   =========================== */
.mb-8 { margin-bottom: 8px !important; }
.mb-16 { margin-bottom: 16px !important; }
.mb-24 { margin-bottom: 24px !important; }
.mt-24 { margin-top: 24px !important; }
.pt-16 { padding-top: 16px !important; }
.pb-16 { padding-bottom: 16px !important; }

/* ===========================
   RESPONSIVE MEDIA QUERIES
   =========================== */
@media (max-width: 1080px) {
  .container {
    max-width: 97vw;
    padding: 0 12px;
  }
  .footer-branding span { font-size: 0.91rem; }
}
@media (max-width: 900px) {
  .feature-grid {
    gap: 20px;
    flex-wrap: wrap;
  }
  .feature-item {
    min-width: 155px;
    padding: 22px;
  }
  .footer-branding span { font-size: 0.85rem; }
  .content-wrapper { gap: 13px; }
}
@media (max-width: 820px) {
  .main-nav { gap: 13px; }
  .footer-nav, .footer-menu { gap: 10px; }
  .container { padding: 0 8px; }
}
@media (max-width: 730px) {
  .features, .testimonials, .contact, .services, .services-detail, .legal, .hero, .confirmation {
    padding: 28px 6px !important;
    border-radius: 0 0 28px 28px;
  }
  .footer-branding span { display: none; }
}
@media (max-width: 600px) {
  .container {
    padding: 0 2vw;
  }
  main { padding:0; }
  h1 { font-size: 1.48rem; }
  h2 { font-size: 1.18rem; }
  header .container {
    flex-direction: row;
    gap: 9px;
    padding-top: 11px; padding-bottom: 11px;
  }
  .main-nav { display: none !important; }
  .mobile-menu-toggle { display: block !important; }
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    min-height: 80px;
    gap: 11px;
    padding: 11px 9px 20px 9px;
  }
  .footer-nav, .footer-menu { flex-direction: column; gap: 9px; }
}
@media (max-width: 480px) {
  .feature-grid, .content-grid, .card-container, .card-grid {
    flex-direction: column;
    gap: 11px !important;
  }
  .feature-item, .card, .service-card, .testimonial-card {
    min-width: 0 !important;
    padding: 19px 9px 13px 13px;
  }
  .cookie-modal-dialog {
    border-radius: var(--radius-md);
    padding: 13px 9px 13px 9px;
    min-width: 0;
  }
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 19px;
  }
}

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

/* ========== END ========== */
