/* ==== 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%; vertical-align: baseline; box-sizing: border-box;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section { display: block; }
body { line-height: 1; }
ol, ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; border: 0; }
table { border-collapse: collapse; border-spacing: 0; }

:root {
  --brand-primary: #254460;
  --brand-secondary: #E7E4DE;
  --brand-accent: #A47551;
  --brand-accent2: #FFCA3A;
  --brand-fun1: #3797F0;
  --brand-fun2: #5BEC8F;
  --brand-fun3: #FF7070;
  --brand-fun4: #FFD259;
  --gray-dark: #31333A;
  --gray-light: #FAFAFA;
  --white: #FFF;
  --shadow-main: 0 2px 8px 0 rgba(39,55,74,0.09), 0 1.5px 7px 0 rgba(164,117,81,0.08);
  --radius-main: 18px;
  --radius-round: 32px;
  --transition-main: all 0.22s cubic-bezier(.75,.04,.39,1.1);
  --font-display: 'Montserrat', 'Arial Rounded MT Bold', Arial, sans-serif;
  --font-body: 'Roboto', 'Montserrat', Arial, sans-serif;
}

body {
  font-family: var(--font-body);
  background: var(--gray-light);
  color: var(--brand-primary);
  font-size: 16px;
  line-height: 1.56;
  padding-bottom: 60px;
}

/* ==== LINKS & TYPOGRAPHY ==== */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--brand-primary);
  margin-bottom: 12px;
}
h1 {
  font-size: 2.6rem;
  margin-bottom: 18px;
  letter-spacing: -1.5px;
  text-shadow: 0 2px 0 #FFCA3A1a, 0 2px 8px #A4755110;
  animation: slideDown 0.8s cubic-bezier(.77,.11,.87,1.05);
}
h2 {
  font-size: 2rem;
  margin-bottom: 12px;
  letter-spacing: -1px;
  animation: popUp 0.8s cubic-bezier(.77,.11,.87,1.05) 0.1s 1 both;
}
h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: var(--brand-accent);
}

p, li, blockquote {
  font-size: 1rem;
  color: var(--gray-dark);
}

.subheadline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--brand-accent2);
  margin-bottom: 24px;
  letter-spacing: 0.8px;
  text-shadow: 0 2px 0 #E7E4DE90;
  animation: fadeIn 0.7s .2s both;
}

blockquote {
  font-size: 1.15rem;
  color: var(--brand-fun3);
  font-family: var(--font-display);
  position: relative;
  padding-left: 18px;
}
blockquote:before {
  content: '\201C'; color: var(--brand-accent2);
  font-size: 2.3rem; position: absolute; left: 0; top: -12px;
  opacity: 0.67;
}

strong {
  font-weight: 700;
}

.text-section {
  margin-bottom: 16px;
}

ol { margin-left: 24px; }
ol li { list-style-type: decimal; margin-bottom: 6px; }

/* ==== CONTAINER & SECTIONS ==== */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--white);
  border-radius: var(--radius-main);
  box-shadow: var(--shadow-main);
}

main > section {
  margin-bottom: 60px;
}

.content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.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;
  background: var(--brand-secondary);
  border-radius: var(--radius-main);
  box-shadow: 0 3px 10px 0 #8799a82a;
  margin-bottom: 20px;
  min-width: 260px;
  max-width: 98%;
  transition: box-shadow 0.28s cubic-bezier(.25,.1,.2,1);
  position: relative;
}
.testimonial-card:hover {
  box-shadow: 0 8px 22px 0 #A4755140, 0 2px 5px #FFCA3A80;
  background: #fffbe6;
}
.testimonial-author {
  font-family: var(--font-display);
  color: var(--brand-fun1);
  font-size: 1rem;
  margin-left: 12px;
}

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

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  min-width: 230px;
  background: var(--brand-fun2);
  border-radius: var(--radius-main);
  box-shadow: var(--shadow-main);
  padding: 20px;
  margin-bottom: 20px;
  position: relative;
  transition: transform 0.16s, box-shadow 0.24s;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-4px) scale(1.03) rotate(-1deg);
  box-shadow: 0 10px 30px 0 #3797F045, 0 2px 7px #A4755130;
  background: var(--brand-accent2);
}

/* ==== HEADER / NAV ==== */
header {
  width: 100%;
  background: var(--brand-primary);
  box-shadow: 0 2px 8px #25446015;
  padding: 0;
  margin-bottom: 24px;
  position: sticky; z-index: 50; top: 0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  padding: 12px 16px;
  gap: 20px;
}
header a img { height: 38px; margin-right: 6px; }

.main-nav {
  display: flex;
  gap: 18px;
}
.main-nav a {
  font-family: var(--font-display);
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.4px;
  border-radius: 14px;
  padding: 8px 16px;
  transition: background 0.12s, color 0.15s;
  background: transparent;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--brand-accent);
  color: var(--white);
  box-shadow: 0 1.5px 7px 0 #A4755113;
}

.mobile-menu-toggle {
  display: none;
  background: var(--brand-accent2);
  color: var(--brand-primary);
  border: none;
  font-size: 2.1rem;
  padding: 6px 16px 6px 10px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.15s;
  z-index: 101;
  outline: none;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--brand-fun3);
  color: var(--white);
}

/* ==== MOBILE MENU ==== */
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0;
  right: 0;
  width: 90vw;
  max-width: 340px;
  height: 100vh;
  background: var(--white);
  box-shadow: -2px 0 28px 0 #25446040;
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(.68,-0.55,.27,1.55);
  padding: 40px 20px 20px 32px;
  overflow-y: auto;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: transparent;
  border: none;
  font-size: 2.1rem;
  color: var(--brand-primary);
  cursor: pointer;
  margin-bottom: 32px;
  transition: color 0.13s;
  z-index: 210;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--brand-fun3);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}
.mobile-nav a {
  font-family: var(--font-display);
  color: var(--brand-primary);
  font-size: 1.15rem;
  font-weight: 600;
  padding: 12px;
  border-radius: 12px;
  transition: background 0.14s, color 0.18s;
  background: transparent;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--brand-accent2);
  color: var(--brand-primary);
}

/* ---- Hide Desktop Nav on Mobile ---- */
@media (max-width: 975px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: block; }
}
@media (min-width: 976px) {
  .mobile-menu { display: none !important; }
}

/* ==== BUTTONS ==== */
.cta-button {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.17rem;
  font-weight: 700;
  background: var(--brand-fun4);
  color: var(--brand-primary);
  border: 2px solid var(--brand-accent2);
  border-radius: var(--radius-round);
  padding: 14px 36px;
  letter-spacing: 1px;
  margin: 8px 8px 20px 0;
  box-shadow: 0 2px 10px 0 #FFCA3A24;
  transition: background 0.14s, color 0.15s, transform 0.16s;
  position: relative;
  cursor: pointer;
  text-align: center;
  outline: none;
}
.cta-button:hover, .cta-button:focus {
  background: var(--brand-fun3);
  color: var(--white);
  border-color: var(--brand-fun3);
  transform: scale(1.03) rotate(-1deg);
}

button, input[type="submit"] {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  padding: 8px 26px;
  border: none;
  border-radius: var(--radius-round);
  background: var(--brand-accent2);
  color: var(--brand-primary);
  cursor: pointer;
  transition: background 0.13s, color 0.1s, box-shadow 0.17s;
  outline: none;
}
button:hover, button:focus, input[type="submit"]:hover, input[type="submit"]:focus {
  background: var(--brand-fun2);
  color: var(--brand-primary);
  box-shadow: 0 2px 7px #5BEC8F80;
}

/* ==== UL/LI LISTS ==== */
ul {
  list-style: none;
  padding-left: 0;
}
ul li {
  margin-bottom: 10px;
  padding-left: 38px;
  position: relative;
  font-size: 1rem;
  color: var(--brand-primary);
  font-family: var(--font-body);
  background: none;
}
ul li img {
  width: 23px;
  position: absolute;
  left: 0; top: 3px;
  background: none;
}

ul li:before {
  content: '';
  display: none;
}

/* ==== FOOTER ==== */
footer {
  width: 100%;
  background: var(--brand-secondary);
  color: var(--brand-primary);
  border-top: 1px solid #f5e7d7;
  font-size: 1rem;
  position: relative;
  margin-top: 60px;
  padding: 32px 0 0 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}
footer nav a {
  color: var(--brand-primary);
  padding: 2px 0;
  font-size: 1rem;
  font-family: var(--font-body);
  border-radius: 6px;
  transition: background 0.12s;
}
footer nav a:hover, footer nav a:focus { background: var(--brand-accent2); color: var(--brand-primary); }

footer img[alt*="logo"] { margin-bottom: 10px; }

footer .text-section { max-width: 330px; }

/* ==== COOKIE CONSENT BANNER ==== */
#cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  width: 100vw;
  background: var(--brand-fun4);
  color: var(--brand-primary);
  padding: 22px 16px 18px 16px;
  box-shadow: 0 -1.5px 16px #88613a24;
  display: none;
  align-items: flex-start;
  justify-content: center;
  z-index: 500;
  gap: 26px;
  font-size: 1rem;
  font-family: var(--font-body);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.21s, transform 0.28s;
  border-top-left-radius: var(--radius-main);
  border-top-right-radius: var(--radius-main);
}
#cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(105%);
}
#cookie-banner .cookie-text { max-width: 650px; }
#cookie-banner .cookie-actions {
  display: flex;
  gap: 14px;
}
.cookie-actions button {
  font-size: 1rem;
  font-family: var(--font-display);
  border-radius: 30px;
  padding: 8px 22px;
  background: var(--brand-accent2);
  border: 2px solid var(--brand-accent2);
  color: var(--brand-primary);
  font-weight: 600;
  margin-right: 0;
}
.cookie-actions button:hover, .cookie-actions button:focus {
  background: var(--brand-fun3);
  border-color: var(--brand-fun3);
  color: #fff;
}
.cookie-actions .cookie-settings-btn {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}
.cookie-actions .cookie-settings-btn:hover {
  background: var(--brand-fun2);
  color: var(--brand-primary);
}

/* ==== COOKIE MODAL ==== */
#cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(30,45,64,0.26);
  z-index: 600;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  transition: opacity 0.21s;
  pointer-events: all;
}
#cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-content {
  background: var(--white);
  color: var(--brand-primary);
  padding: 38px 28px 28px 28px;
  border-radius: var(--radius-main);
  min-width: 320px;
  min-height: 100px;
  box-shadow: 0 6px 32px #25446025;
  display: flex;
  flex-direction: column;
  gap: 26px;
  max-width: 94vw;
}
.cookie-modal-content h2 {
  color: var(--brand-accent);
  font-size: 1.25rem;
  margin-bottom: 8px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  margin-bottom: 10px;
}
.cookie-category label {
  cursor: pointer;
  font-weight: 500;
}

.cookie-toggle {
  width: 36px;
  height: 20px;
  background: #DDD;
  border-radius: 14px;
  position: relative;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}
.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-slider {
  position: absolute;
  top: 2px; left: 3px;
  width: 16px; height: 16px;
  background: var(--brand-primary);
  border-radius: 50%;
  transition: 0.19s;
}
.cookie-toggle input:checked + .cookie-slider {
  background: var(--brand-fun2);
  left: 17px;
}

.cookie-modal-actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 12px;
}

/* ==== ANIMATIONS ==== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes popUp {
  0% { transform: scale(0.8) translateY(30px); opacity: 0;}
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
@keyframes slideDown {
  from {transform: translateY(-46px); opacity: 0;}
  to {transform: translateY(0); opacity: 1;}
}

/* ==== MISC/UTILITIES ==== */
::-webkit-scrollbar { width: 8px; background: #eaeaea; }
::-webkit-scrollbar-thumb { background: #C5C5C5; border-radius: 6px;}
::-webkit-input-placeholder { color: #81818170; }
::-moz-placeholder { color: #81818170; }
:-ms-input-placeholder { color: #81818170; }
::placeholder { color: #81818170; }

/* ==== RESPONSIVE (MOBILE FIRST) ==== */
@media (max-width: 968px) {
  .content-wrapper, .content-grid, .card-container {
    flex-direction: column;
    gap: 20px;
  }
  .footer .content-wrapper {
    gap: 24px;
  }
  .section {
    padding: 24px 8px;
  }
  .testimonial-card { min-width: 0; width: 98vw; }
  .card { min-width: 0; width: 98vw; }
}
@media (max-width: 650px) {
  h1 { font-size: 1.5rem;} h2 { font-size: 1.15rem; }
  body { font-size: 15px; padding-bottom: 92px; }
  .container { padding-left: 6px; padding-right: 6px; }
  .section { padding: 18px 0; }
  .footer .content-wrapper { flex-direction: column; }
  #cookie-banner { flex-direction: column; align-items: stretch; gap: 10px;}
  .cookie-modal-content { padding: 20px 6px 23px 6px; }
}
@media (max-width: 420px) {
  .cta-button, button, input[type=submit] { padding: 9px 17px; font-size: 1rem; }
  .cookie-modal-content { min-width: unset; }
}

/* ==== PLAYFUL DYNAMIC VISUALS ==== */
.cta-button {
  box-shadow: 0 2px 16px #FFCA3A17;
  position: relative;
  overflow: visible;
}
.cta-button:after {
  content: '';
  display: block;
  position: absolute;
  bottom: -6px; left: 50%;
  width: 80%; height: 10px;
  background: radial-gradient(ellipse at center, #ffca3a38 55%, transparent 85%);
  filter: blur(1.4px);
  border-radius: 8px;
  z-index: -1;
  transform: translateX(-50%);
}

/* Random fun dots as deco (only on desktop) */
@media (min-width: 1024px) {
  body:after {
    content: '';
    position: fixed;
    right: 9vw; bottom: 8vh;
    width: 56px; height: 56px;
    background: radial-gradient(circle,#5bec8f 38%, #ffca3a 68%,#ff707020 100%);
    opacity: 0.19; border-radius: 100%;
    pointer-events: none;
    z-index: 1;
  }
}

.testimonial-card {
  box-shadow: 0 2px 12px #FFCA3A22;
  border: 2px dashed #FFCA3A33;
  position: relative;
  overflow: visible;
}
.testimonial-card:before {
  content: '';
  position: absolute;
  top: -10px; left: -18px;
  width: 32px; height: 32px;
  background: radial-gradient(circle,#5bec8f 70%, transparent 100%);
  opacity: .49;
  filter: blur(0.5px);
  border-radius: 50%;
  z-index: 1;
}
.testimonial-card:after {
  content: '';
  position: absolute;
  bottom: -13px; right: -13px;
  width: 36px; height: 36px;
  background: radial-gradient(circle,#ff7070 75%, transparent 100%);
  opacity: .38;
  filter: blur(1px);
  border-radius: 50%;
  z-index: 1;
}

/* ==== PLAYFUL FONTS: HEADINGS ==== */
h1, h2, h3, .cta-button, .mobile-menu-toggle, .mobile-nav a {
  font-family: var(--font-display);
  letter-spacing: 0.5px;
}

/* ==== INTERACTIVE MICRO-ANIMATIONS ==== */
.cta-button, button, input[type=submit], .main-nav a, .mobile-nav a {
  transition: var(--transition-main), background 0.14s, color 0.15s;
}
.cta-button:active { transform: scale(0.98) rotate(1deg); }

input, textarea {
  border-radius: 12px;
  padding: 8px 18px;
  border: 1.5px solid #E7E4DE;
  font-size: 1rem;
  font-family: var(--font-body);
  margin-bottom: 11px;
}
input:focus, textarea:focus {
  border-color: var(--brand-fun3);
  outline: none;
}

/* ==== COLORS AND ACCESSIBILITY ==== */
.testimonial-card, .testimonial-card blockquote {
  color: #30303e;
  background: var(--brand-secondary);
}

/* ==== SPACING FIXES (NEVER OVERLAP) ==== */
.section:not(:last-child) { margin-bottom: 60px; }
.card:not(:last-child), .testimonial-card:not(:last-child) { margin-bottom: 24px; }
.text-section:not(:last-child) { margin-bottom: 18px; }
.content-wrapper > * { margin-bottom: 0; }

/* ==== VISIBILITY & FOCUS ==== */
:focus { outline: 2px dashed var(--brand-accent) !important; outline-offset: 2px; }

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