/* ======================================================
   CSS RESET & BASE STYLES
   ====================================================== */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  min-height: 100vh;
  background: #FFFDF6;
  color: #2F5D62;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 400;
  line-height: 1.66;
}
:root {
  --primary: #2F5D62;
  --secondary: #C1CFC0;
  --accent: #FFFDF6;
  --brand-pink: #F76F8E;
  --brand-yellow: #FFCF56;
  --brand-violet: #845EC2;
  --brand-orange: #FF9671;
  --brand-turquoise: #30CFC0;
  --display-font: 'Montserrat', 'Roboto', Arial, sans-serif;
  --body-font: 'Roboto', Arial, sans-serif;
}

/* ======================================================
   TYPOGRAPHY (CREATIVE ARTISTIC)
   ====================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--display-font);
  color: var(--primary);
  margin-bottom: 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.625rem; /* 42px */
  line-height: 1.18;
  color: var(--brand-pink);
  text-shadow: 2px 4px 0 var(--brand-yellow), 1px 1px 14px var(--secondary)44;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  color: var(--brand-violet);
  margin-bottom: 16px;
}
h3 {
  font-size: 1.325rem;
  color: var(--brand-orange);
}
h4, h5, h6 {
  font-size: 1.125rem;
}

p, ul, ol, li {
  font-family: var(--body-font);
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 14px;
}
strong {
  color: var(--brand-turquoise);
}
a {
  text-decoration: none;
  color: var(--brand-pink);
  font-weight: 500;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: var(--brand-yellow);
}

/* List Spacing */
ul, ol {
  margin-left: 1.4em;
  margin-bottom: 12px;
}
li {
  margin-bottom: 8px;
}

/* For artistic feeling - Underline effect to headings */
h2::after, h3::after {
  content: '';
  display: block;
  width: 52px;
  height: 5px;
  background: var(--brand-yellow);
  border-radius: 6px;
  margin-top: 8px;
  margin-bottom: 12px;
  transform: rotate(-5deg);
}
h3::after {
  background: var(--brand-pink);
  width: 36px;
  height: 4px;
}

/* ======================================================
   LAYOUT WRAPPERS
   ====================================================== */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
}

/* CRITICAL CSS SPACING AND ALIGNMENT PATTERNS (DO NOT CHANGE) */
.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;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Gap for cards/sections */
.card, .testimonial-card, .text-section {
  margin-bottom: 20px;
}

/* Responsive spacing */
@media (max-width: 600px) {
  .section {
    padding: 24px 8px;
    margin-bottom: 32px;
  }
  .content-wrapper {
    gap: 18px;
  }
}


/* ======================================================
   HEADER + NAVIGATION
   ====================================================== */
header {
  width: 100%;
  box-shadow: 0 2px 16px rgba(47,93,98,0.06);
  background: var(--accent);
  position: sticky;
  top: 0;
  z-index: 50;
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 20px 18px;
}
nav > a > img {
  height: 40px;
  width: auto;
  margin-right: 18px;
}
nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  gap: 26px;
  margin: 0;
}
nav ul li a {
  font-family: var(--display-font);
  font-size: 1rem;
  color: var(--primary);
  padding: 8px 12px;
  border-radius: 8px;
  position: relative;
  transition: background 0.2s, color 0.18s;
}
nav ul li a:hover,
nav ul li a:focus {
  background: var(--brand-yellow);
  color: var(--brand-violet);
}
nav .cta-primary {
  background: var(--brand-pink);
  color: #fff;
  padding: 12px 26px;
  font-size: 1.1125rem;
  font-family: var(--display-font);
  border-radius: 32px;
  box-shadow: 0 2px 14px #f76f8e18;
  margin-left: 6px;
  font-weight: 700;
  transition: background 0.2s, color 0.2s, transform 0.25s;
  letter-spacing: 0.03em;
  border: none;
  cursor: pointer;
  outline: none;
  display: inline-block;
}
nav .cta-primary:hover,
nav .cta-primary:focus {
  background: var(--brand-violet);
  color: var(--brand-yellow);
  transform: translateY(-4px) scale(1.04) rotate(-1.5deg);
  box-shadow: 0 6px 24px #845ec222;
}

/* Hide burger button on desktop */
.mobile-menu-toggle {
  display: none;
}

/* ================= MOBILE HEADER/ NAVIGATION ================ */
@media (max-width: 1024px) {
  nav ul {
    gap: 18px;
  }
}
@media (max-width: 900px) {
  nav ul {
    display: none;
  }
  nav .cta-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--brand-pink);
    padding: 8px 16px;
    cursor: pointer;
    margin-left: auto;
    z-index: 100;
    border-radius: 50%;
    transition: background 0.2s;
  }
  .mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
    background: var(--brand-yellow);
  }
}

/* ================= MOBILE MENU STYLES ================ */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 90vw;
  max-width: 340px;
  height: 100vh;
  background: #fffafc;
  box-shadow: -2px 0 30px 0 #2f5d6222;
  transform: translateX(110%);
  transition: transform 0.38s cubic-bezier(.51,.04,.38,1.17);
  z-index: 201;
  display: flex;
  flex-direction: column;
  padding: 0 0 0 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: all;
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: var(--brand-pink);
  margin: 18px 16px 10px 0;
  cursor: pointer;
  transition: color 0.18s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--brand-yellow);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 0;
  padding: 24px 28px 28px 28px;
}
.mobile-nav a {
  font-family: var(--display-font);
  font-size: 1.16rem;
  color: var(--primary);
  padding: 12px 18px;
  border-radius: 22px;
  transition: background 0.18s, color 0.16s;
  font-weight: 600;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--brand-yellow);
  color: var(--brand-pink);
}

/* Overlay for body when mobile-menu is open */
body.mobile-menu-open::before {
  content: '';
  position: fixed;
  inset: 0;
  background: #2f5d6299;
  z-index: 200;
  transition: opacity 0.4s;
  pointer-events: auto;
}

@media (max-width:600px) {
  .mobile-menu {
    width: 100vw;
    max-width: 100vw;
  }
  .mobile-nav {
    padding: 20px 16px 28px 16px;
  }
}

/* ======================================================
   SECTION / CARD DESIGN (CREATIVE ARTISTIC)
   ====================================================== */
section {
  width: 100%;
}
.card,
.category-grid > .text-section {
  background: #fff;
  border-radius: 22px 42px 22px 22px / 26px 38px 26px 26px;
  box-shadow: 0 4px 32px #2F5D6214, 0 1px 2px #C1CFC088;
  padding: 28px 22px;
  position: relative;
  overflow: hidden;
  min-width: 250px;
  min-height: 180px;
  z-index: 1;
}
.card:before, .category-grid > .text-section:before {
  /* Artistic paint splash decorative shape */
  content: '';
  position: absolute;
  top: -30px;
  right: -50px;
  width: 100px;
  height: 60px;
  background: var(--brand-yellow);
  opacity: 0.13;
  border-radius: 60px 120px 90px 40px;
  z-index: 0;
  pointer-events: none;
}

.card:hover, .category-grid > .text-section:hover {
  box-shadow: 0 8px 40px #845EC222, 0 2px 6px #F76F8E11;
  transform: translateY(-6px) scale(1.017) rotate(-1deg);
  transition: box-shadow 0.22s, transform 0.22s;
}

.category-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin: 24px 0 12px 0;
}
.category-grid > .text-section {
  flex: 1 1 220px;
  max-width: 290px;
  box-sizing: border-box;
  background: #fff9fb;
  border-left: 7px solid var(--brand-pink);
  border-bottom: 5px solid var(--brand-yellow);
}

/* Inputs */
input[type="search"] {
  font-family: var(--body-font);
  font-size: 1rem;
  padding: 12px 20px 12px 40px;
  border-radius: 24px;
  background: #fff;
  border: 2px solid var(--brand-pink);
  outline: none;
  margin-bottom: 8px;
  transition: border 0.18s, box-shadow 0.18s;
  box-shadow: 0 1px 6px #2f5d6210;
  color: var(--primary);
  position: relative;
}
input[type="search"]:focus {
  border: 2px solid var(--brand-violet);
  box-shadow: 0 1px 18px #845EC218;
}

/* Add creative left icon for search inputs */
input[type="search"] {
  background-image: url('../assets/icons/icon-search.svg');
  background-position: 12px 50%;
  background-repeat: no-repeat;
  background-size: 22px 22px;
}

/* Hide icon if asset not found gracefully on mobile */
@media (max-width:600px) {
  input[type="search"] {
    padding-left: 38px;
    font-size: 15px;
  }
}


/* ======================================================
   BUTTONS / CTA
   ====================================================== */
.cta-primary, .cta-primary:visited {
  background: var(--brand-pink);
  color: #fff;
  padding: 13px 32px;
  font-size: 1.15rem;
  font-family: var(--display-font);
  border-radius: 36px;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: background 0.14s, color 0.13s, transform 0.26s, box-shadow 0.16s;
  border: none;
  outline: none;
  cursor: pointer;
  box-shadow: 0 2px 14px #f76f8e15;
  margin-top: 14px;
  display: inline-block;
  text-align: center;
  min-width: 180px;
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--brand-yellow);
  color: var(--brand-pink);
  box-shadow: 0 8px 24px #FFCF5612;
  transform: translateY(-3px) scale(1.022) rotate(-2deg);
}

/* Artistic squiggle as accent on hovered CTAs */
.cta-primary:hover::after, .cta-primary:focus::after {
  content: '';
  display: block;
  width: 38px;
  height: 7px;
  background: url('../assets/icons/icon-squiggle.svg') no-repeat center/contain;
  margin: 7px auto -4px auto;
}

/* ======================================================
   TESTIMONIAL CARDS
   ====================================================== */
.testimonial-card {
  background: #fff;
  border-radius: 22px;
  border-left: 8px solid var(--brand-turquoise);
  box-shadow: 0 2px 16px #2F5D6212;
  margin-bottom: 20px;
  align-items: flex-start;
  gap: 20px;
  min-width: 240px;
  max-width: 600px;
}
.testimonial-card p {
  font-family: var(--display-font);
  font-size: 1.18rem;
  color: #232424;
  margin-bottom: 4px;
  font-weight: 400;
  line-height: 1.42;
}
.testimonial-card span {
  color: var(--brand-violet);
  font-family: var(--body-font);
  font-size: 0.995rem;
  opacity: 0.92;
  margin-left: 4px;
}

.testimonial-card::before {
  /* Artistic curly-quote */
  content: '\201C';
  font-family: var(--display-font);
  font-size: 2.4em;
  color: var(--brand-yellow);
  margin-right: 14px;
  line-height: 0.2;
  vertical-align: baseline;
  align-self: flex-start;
  opacity: 0.60;
}

@media (max-width: 600px) {
  .testimonial-card {
    flex-direction: column;
    gap: 8px;
    padding: 16px 14px;
    font-size: 1em;
    max-width: 98vw;
  }
}

/* Contrast for testimonials on light bg */
.testimonial-card p, .testimonial-card span {
  color: #232424;
}


/* ======================================================
   FOOTER
   ====================================================== */
footer {
  background: var(--primary);
  color: var(--accent);
  padding: 50px 0 20px 0;
}
footer .container {
  max-width: 1240px;
  padding: 0 18px;
}
footer .content-wrapper {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 34px;
  flex-wrap: wrap;
  justify-content: space-between;
}
footer a {
  color: #fff;
  font-family: var(--display-font);
  font-weight: 600;
}
footer a:hover, footer a:focus {
  color: var(--brand-yellow);
}
footer ul {
  display: flex;
  align-items: flex-start;
  gap: 18px 42px;
  flex-wrap: wrap;
  list-style: none;
}
footer ul li {
  margin-bottom: 3px;
}
footer > .container > .content-wrapper > a > img {
  height: 38px;
  margin-bottom: 14px;
}
footer div img {
  height: 18px; vertical-align: middle;
  margin-right: 7px;
}
footer div {
  font-size: 0.98rem;
  margin-top: 7px;
}
@media (max-width: 900px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
  }
  footer ul {
    gap: 15px 22px;
  }
}

/* ======================================================
   ARTISTIC DECORATIVE ELEMENTS
   ====================================================== */
section {
  position: relative;
  overflow-x: clip;
}
section::before {
  /* Abstract rounded shape top-left */
  content: '';
  position: absolute;
  left: -50px;
  top: -40px;
  width: 140px;
  height: 60px;
  background: var(--brand-yellow);
  opacity: 0.13;
  border-radius: 80px 30px 90px 120px;
  pointer-events: none;
  z-index: 0;
}
section:nth-child(even)::before { /* alternate colors */
  background: var(--brand-pink);
  opacity: 0.09;
}
section::after {
  /* Small confetti dots bottom right */
  content: '';
  position: absolute;
  right: -15px;
  bottom: 6px;
  width: 48px;
  height: 24px;
  background: radial-gradient(var(--brand-yellow) 40%, transparent 60%),
              radial-gradient(var(--brand-pink) 40%, transparent 60%);
  background-size: 18px 18px, 18px 18px;
  background-position: 6px 12px, 28px 5px;
  background-repeat: no-repeat;
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}

/* Hide section shapes on mobile */
@media (max-width:700px) {
  section::before, section::after {
    display: none;
  }
}

/* ======================================================
   TEXT/IMAGE FLEX SECTIONS
   ====================================================== */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.text-image-section > * {
  flex: 1 1 260px;
  min-width: 220px;
}
@media (max-width:768px) {
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
}

/* ======================================================
   RESPONSIVE LAYOUTS & BREAKPOINTS (MOBILE-FIRST)
   ====================================================== */
@media (max-width: 820px) {
  .container {
    max-width: 98vw;
    padding: 0 4vw;
  }
}

@media (max-width:700px) {
  h1 {
    font-size: 1.7rem;
    margin-bottom: 14px;
  }
  h2 {
    font-size: 1.26rem;
  }
  nav > a > img,
  footer .content-wrapper > a > img {
    height: 25px;
    margin-bottom: 0px;
  }
}

/* ======================================================
   COOKIE CONSENT BANNER (FIXED BOTTOM, ALL BUTTONS)
   ====================================================== */
#cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #fff;
  border-top: 6px solid var(--brand-yellow);
  box-shadow: 0 -2px 15px #2f5d6235;
  z-index: 1001;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 28px 16px 22px 16px;
  gap: 34px;
  flex-wrap: wrap;
  font-family: var(--body-font);
  font-size: 1rem;
  color: var(--primary);
  transition: transform 0.35s cubic-bezier(.34,.89,.59,1.11), opacity 0.25s;
}
#cookie-consent-banner.hide {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
#cookie-consent-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.cookie-btn, .cookie-btn:visited {
  border-radius: 22px;
  padding: 10px 24px;
  font-size: 1.07rem;
  font-family: var(--display-font);
  font-weight: 600;
  outline: none;
  border: none;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  margin-right: 8px;
}
.cookie-btn.accept {
  background: var(--brand-pink);
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: var(--brand-violet);
  color: var(--brand-yellow);
  box-shadow: 0 2px 16px #f76f8e23;
}
.cookie-btn.reject {
  background: #fff;
  color: var(--brand-pink);
  border: 2px solid var(--brand-pink);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: var(--brand-pink);
  color: #fff;
}
.cookie-btn.settings {
  background: var(--brand-yellow);
  color: var(--brand-violet);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #fff;
  color: var(--brand-yellow);
  border: 2px solid var(--brand-yellow);
}
@media (max-width:700px) {
  #cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 22px 8px 15px 8px;
    font-size: 0.97em;
  }
}

/* ===== COOKIE PREFERENCES MODAL (SIMPLE FLEX LAYOUT) ===== */
#cookie-preferences-modal {
  display: none;
  position: fixed;
  z-index: 2001;
  left: 0; top: 0;right: 0;bottom: 0;
  background: rgba(47,93,98,0.70);
  justify-content: center;
  align-items: center;
  transition: opacity 0.25s;
}
#cookie-preferences-modal.open {
  display: flex;
}
.cookie-modal-content {
  background: #fff;
  border-radius: 22px 44px 22px 22px / 25px 34px 27px 24px;
  max-width: 400px;
  width: 97vw;
  box-shadow: 0 8px 50px #845ec22a;
  padding: 38px 26px 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  position: relative;
  color: var(--primary);
  font-family: var(--body-font);
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 13px;
  width: 100%;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 12px;
  padding: 7px 10px;
}
.cookie-category.essential label {
  font-weight: 700;
  color: var(--primary);
  opacity: 0.8;
}
.cookie-toggle {
  width: 40px;
  height: 22px;
  border-radius: 12px;
  background: var(--secondary);
  position: relative;
  margin-right: 7px;
  flex-shrink: 0;
  transition: background 0.18s;
  cursor: pointer;
  border: 2px solid var(--brand-yellow);
}
.cookie-toggle.on {
  background: var(--brand-pink);
}
.cookie-toggle-bar {
  position: absolute;
  left: 2px;
  top: 2px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.18s;
}
.cookie-toggle.on .cookie-toggle-bar {
  left: 18px;
  background: var(--brand-yellow);
}
.cookie-modal-content .cookie-btn {
  margin-top: 12px;
  padding: 10px 30px;
}
.cookie-modal-close {
  position: absolute;
  right: 18px;
  top: 16px;
  font-size: 1.7rem;
  color: var(--brand-pink);
  background: none;
  border: none;
  cursor: pointer;
}
.cookie-modal-close:hover,.cookie-modal-close:focus {
  color: var(--brand-yellow);
}

@media (max-width:600px) {
  .cookie-modal-content {
    padding: 24px 7px 18px 12px;
    min-width: 0;
    max-width: 97vw;
  }
}

/* ======================================================
   MISCELLANEOUS
   ====================================================== */
small {
  font-size: 0.95em;
  color: #969696;
  font-family: var(--body-font);
}

hr {
  border: 0;
  border-top: 1.5px dashed var(--secondary);
  margin: 24px 0;
}

::-webkit-scrollbar {
  width: 10px;
  background: var(--secondary);
}
::-webkit-scrollbar-thumb {
  background: var(--brand-yellow);
  border-radius: 6px;
}

img, svg {
  max-width: 100%;
  display: inline-block;
}

/* Easy highlight for search field focus state */
input[type="search"]:focus {
  background-color: #fff8e7;
}

/* Accessibility outline for focus on all buttons/links */
a:focus, button:focus, .cta-primary:focus, .cookie-btn:focus, .mobile-menu-toggle:focus {
  outline: 2px dashed var(--brand-yellow);
  outline-offset: 3px;
}

/* Ensures MINIMUM 20px margin between major cards/sections (critical) */
.section, .card-container, .testimonial-card, .card, .content-grid, .feature-item, .text-image-section, .category-grid > .text-section, .text-section {
  margin-bottom: 20px; /* Will be overriden for .section where needed */
}

/**** Hide empty margins at final child ****/
.content-wrapper > :last-child, .content-grid > :last-child, .card-container > :last-child {
  margin-bottom: 0 !important;
}

/**** Utility Classes ****/
.hide { display: none !important; }
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

/* ========================== END OF CSS ========================== */
