/* -----------------------
   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, 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;
}
html {
  scroll-behavior: smooth;
}
body {
  line-height: 1.5;
  background: #FFFDF6;
  color: #212139;
  font-family: 'Lato', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  letter-spacing: 0.01em;
}
img, picture, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
a { color: inherit; text-decoration: none; transition: color 0.18s; }
ul, ol { list-style: none; }
*:focus { outline: none; }
button {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
}
table { border-collapse: collapse; width: 100%; }
th, td { padding: 12px 16px; text-align: left; }

/* -----------------------
   CUSTOM PROPERTIES
-------------------------*/
:root {
  --primary: #223058;
  --secondary: #C4B6FF;
  --accent: #FFD864;
  --light-bg: #FFFDF6;
  --mid-bg: #F3F1FA;
  --highlight-pink: #FF78A3;
  --highlight-blue: #49A1F6;
  --success: #46DEA3;
  --danger: #F56C6C;
  --dark-text: #212139;
  --light-text: #F7F8FC;
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 10px;
  --shadow-1: 0 3px 18px rgba(72, 26, 114, 0.12);
  --shadow-2: 0 6px 20px rgba(34, 48, 88, 0.17);
  --font-display: 'Playfair Display', serif;
  --font-body: 'Lato', Arial, sans-serif;
}

/* -----------------------
   TYPOGRAPHY
-------------------------*/
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--primary);
  margin-bottom: 14px;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.11;
  margin-bottom: 20px;
  animation: pop-fade-in 0.6s ease;
}
h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 10px;
}
h4, h5 {
  font-size: 1.07rem;
  font-weight: 500;
}
p, ul, ol {
  font-family: var(--font-body);
  font-size: 1rem;
  margin-bottom: 14px;
}
.subheadline {
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 18px;
  line-height: 1.4;
}
strong, b {
  font-weight: 700;
}
 
.text-section a {
  font-weight: 600;
  text-decoration: underline;
  color: var(--highlight-pink);
}
.text-section a:hover {
  color: var(--highlight-blue);
}

/* PLAYFUL FONTS FOR FUN EFFECTS */
span, .price, .cta-secondary {
  font-family: 'Playfair Display', serif;
  letter-spacing: 0.02em;
}

/* -----------------------
   CONTAINER & SPACING
-------------------------*/
.container {
  width: 100%;
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  width: 100%;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 30px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--mid-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-1);
  padding: 28px 22px;
  min-width: 250px;
  max-width: 360px;
  flex: 1 1 280px;
  transition: box-shadow 0.22s, transform 0.18s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
}
.card:hover {
  box-shadow: var(--shadow-2);
  transform: translateY(-5px) scale(1.022);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 13px;
}
.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(--accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  margin-bottom: 20px;
  position: relative;
  min-width: 220px;
  max-width: 600px;
  min-height: 90px;
}
.testimonial-card p {
  font-size: 1.07rem;
  color: var(--primary);
  margin-bottom: 0;
  font-style: italic;
  flex: 1 1 0%;
}
.testimonial-card strong {
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 600;
  margin-left: auto;
}
.testimonial-card span {
  margin-left: 10px;
  font-size: 1.10rem;
  color: #F79E1B;
  letter-spacing: 2px;
  font-family: 'Playfair Display', serif;
}

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

/* TABLE STYLING */
table {
  background: var(--mid-bg);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  margin-bottom: 24px;
}
thead {
  background: var(--accent);
  color: var(--primary);
  font-weight: 700;
}
th, td {
  font-size: 1rem;
  border-bottom: 1px solid #ece5fc;
}
tbody tr:last-child td {
  border-bottom: none;
}

ol, ul {
  padding-left: 20px;
  margin-bottom: 18px;
}
ul li, ol li {
  margin-bottom: 6px;
  line-height: 1.5;
  position: relative;
  padding-left: 16px;
}
ul li::before {
  content: '*';
  color: var(--highlight-pink);
  font-weight: bold;
  position: absolute;
  left: 0;
  font-size: 1.1em;
}
ol li::before {
  display: none;
}

/* --------------------
   BUTTONS, C-T-As
---------------------*/
.cta-primary, .cta-secondary, .mobile-nav a.cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  border-radius: var(--radius-md);
  padding: 13px 32px;
  font-family: var(--font-display);
  font-size: 1.17rem;
  font-weight: 700;
  box-shadow: var(--shadow-1);
  cursor: pointer;
  border: none;
  margin: 8px 0;
  transition: background 0.19s, box-shadow 0.19s, transform 0.18s;
  position: relative;
}
.cta-primary, .mobile-nav a.cta-primary {
  background: var(--secondary);
  color: var(--primary);
}
.cta-primary:hover, .mobile-nav a.cta-primary:hover {
  background: var(--highlight-pink);
  color: #fff;
  box-shadow: var(--shadow-2);
  transform: scale(1.04);
}
.cta-secondary {
  background: var(--accent);
  color: var(--primary);
  border: 2px solid var(--primary);
}
.cta-secondary:hover {
  background: var(--highlight-blue);
  color: #fff;
  border-color: var(--highlight-blue);
  box-shadow: var(--shadow-2);
}
button:focus, a:focus-visible {
  outline: 2px dashed var(--accent);
  outline-offset: 3px;
}

/* -------------------
   HEADER & NAVIGATION
----------------------*/
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 16px rgba(34,48,88,0.07);
  position: relative;
  z-index: 30;
  padding: 0 0 0 0;
}
.logo {
  display: flex;
  align-items: center;
  height: 70px;
  padding: 9px 0 9px 0;
  transition: transform 0.15s;
}
.logo img {
  height: 55px;
  width: auto;
  filter: drop-shadow(0 6px 13px rgba(34,48,88,0.055));
}
.logo:hover {
  transform: scale(1.07) rotate(-3deg);
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  height: 70px;
}
.main-nav a {
  padding: 0 12px;
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: var(--primary);
  transition: color 0.18s;
  border-radius: 9px;
}
.main-nav a:hover {
  color: var(--highlight-pink);
  background: var(--mid-bg);
}
.main-nav a.cta-primary {
  background: var(--accent);
  color: var(--primary);
  font-weight: 700;
  margin-left: 16px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-1);
  border: 2px solid transparent;
  padding: 10px 27px;
}
.main-nav a.cta-primary:hover {
  background: var(--highlight-blue);
  color: #fff;
}

/* Hamburger menu button */
.mobile-menu-toggle {
  display: none;
  position: relative;
  background: var(--highlight-pink);
  color: #fff;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  margin-left: 24px;
  transition: background 0.16s;
  align-items: center;
  justify-content: center;
  z-index: 32;
  border: 0;
}
.mobile-menu-toggle:hover {
  background: var(--highlight-blue);
}

/* Mobile nav overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  z-index: 40;
  background: rgba(34,48,88,0.97);
  transform: translateX(105vw);
  transition: transform 0.38s cubic-bezier(.84,.04,.12,.98);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 0 0 0 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--accent);
  color: var(--primary);
  font-size: 2rem;
  margin: 25px 30px 0 0;
  border-radius: var(--radius-lg);
  padding: 10px 15px;
  box-shadow: var(--shadow-2);
  border: none;
  transition: background 0.15s, color 0.15s;
  z-index: 100;
}
.mobile-menu-close:hover {
  background: var(--highlight-pink);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 35px 40px 30px 44px;
  width: 100%;
  margin-top: 60px;
  align-items: flex-start;
}
.mobile-nav a {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.33rem;
  font-weight: 600;
  border-radius: 10px;
  padding: 10px 12px;
  background: none;
  transition: background 0.18s, color 0.17s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--highlight-blue);
  color: #fff;
}
.mobile-nav a.cta-primary {
  background: var(--secondary);
  color: var(--primary);
  margin-top: 18px;
  font-size: 1.17rem;
  border-radius: var(--radius-md);
  transition: background 0.18s, color 0.17s;
  box-shadow: var(--shadow-1);
}
.mobile-nav a.cta-primary:hover {
  background: var(--highlight-pink);
  color: #fff;
}

/* Hide main nav and show hamburger on mobile */
@media (max-width: 1023px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 1024px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* ----------------------
   FOOTER
------------------------*/
footer {
  background: var(--primary);
  color: var(--light-text);
  width: 100%;
  padding: 0;
}
footer .container {
  padding-top: 36px;
  padding-bottom: 16px;
}
footer .content-wrapper {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 38px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 10px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
footer nav a {
  color: var(--secondary);
  font-family: var(--font-display);
  font-size: 1rem;
  transition: color 0.15s;
  margin-bottom: 2px;
}
footer nav a:hover {
  color: var(--accent);
}
footer .text-section {
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
footer .text-section a {
  color: var(--accent);
  text-decoration: underline;
}
footer .text-section a:hover {
  color: var(--highlight-pink);
}
footer img {
  display: block;
  margin-bottom: 8px;
  max-width: 92px;
  height: auto;
}
footer .text-section > div {
  display: flex;
  flex-direction: row;
  gap: 17px;
  align-items: center;
}
footer .text-section > div a {
  background: var(--secondary);
  border-radius: 50%;
  padding: 6px;
  margin: 0 3px;
  display: flex;
  align-items: center;
  transition: background 0.15s, transform 0.2s;
}
footer .text-section > div a:hover {
  background: var(--highlight-blue);
  transform: scale(1.12) rotate(-5deg);
}
footer p {
  color: var(--light-text);
  font-size: 0.91rem;
}

/* ---------------------
   COOKIE CONSENT BANNER
------------------------*/
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--primary);
  color: var(--light-text);
  z-index: 9999;
  box-shadow: 0 -2px 22px rgba(34,48,88,0.13);
  padding: 18px 10px 18px 16px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 26px;
  transition: bottom 0.37s;
  font-size: 1rem;
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
}
.cookie-banner.hide {
  bottom: -140px;
}
.cookie-banner p {
  color: var(--light-text);
  margin: 0;
  flex: 1;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  align-items: center;
}
.cookie-banner button {
  padding: 10px 22px;
  border-radius: var(--radius-md);
  border: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  margin: 0 2px;
  box-shadow: var(--shadow-1);
  transition: background 0.14s, color 0.14s, transform 0.16s;
}
.cookie-banner .accept {
  background: var(--success);
  color: #fff;
}
.cookie-banner .accept:hover {
  background: var(--highlight-blue);
}
.cookie-banner .reject {
  background: var(--danger);
  color: #fff;
}
.cookie-banner .reject:hover {
  background: var(--primary);
}
.cookie-banner .settings {
  background: var(--accent);
  color: var(--primary);
}
.cookie-banner .settings:hover {
  background: var(--highlight-pink);
  color: #fff;
}

/* Cookie modal */
.cookie-modal {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(28,24,42,0.62);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal-content {
  background: #fff;
  color: var(--primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
  padding: 36px 23px 28px 28px;
  max-width: 390px;
  min-width: 270px;
  display: flex;
  flex-direction: column;
  gap: 17px;
  position: relative;
  animation: pop-fade-in 0.33s cubic-bezier(.84,.04,.12,.98);
}
.cookie-modal-content h2 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.cookie-category label {
  flex: 1;
  font-weight: 600;
}
.cookie-modal-content .close-modal-btn {
  position: absolute;
  top: 13px;
  right: 19px;
  background: var(--accent);
  color: var(--primary);
  font-size: 1.5rem;
  border-radius: var(--radius-md);
  padding: 5px 12px;
  border: none;
  transition: background 0.18s, color 0.16s;
}
.cookie-modal-content .close-modal-btn:hover {
  background: var(--danger);
  color: #fff;
}
.cookie-switch {
  appearance: none;
  width: 36px;
  height: 22px;
  background: var(--mid-bg);
  border-radius: 20px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.14s;
  margin-right: 0;
}
.cookie-switch:checked {
  background: var(--success);
}
.cookie-switch:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.cookie-switch::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  transition: transform 0.16s;
}
.cookie-switch:checked::before {
  transform: translateX(14px);
}

/* ----------------------------
   ANIMATIONS & MICROINTERACTIONS
------------------------------*/
@keyframes pop-fade-in {
  0% { opacity: 0; transform: scale(0.86) translateY(32px); }
  65% { opacity: .6; transform: scale(1.03) translateY(-7px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.card, .testimonial-card, .cta-primary, .cta-secondary {
  animation: pop-fade-in 0.6s cubic-bezier(.83,.04,.12,.89);
}

.cta-primary, .cta-secondary, .card, .testimonial-card {
  transition: box-shadow 0.17s, background 0.19s, color 0.2s, transform 0.19s;
}

.cta-primary:active, .cta-secondary:active {
  transform: scale(0.98);
}
.card:active {
  transform: scale(0.991);
}

/* Add playful floating effect for cards */
@media (hover: none) {
  .card:hover { transform: none; }
}

/* --------------
   UTILITIES
----------------*/
.gap-16 { gap: 16px !important; }
.mt-24 { margin-top: 24px !important; }
.mb-24 { margin-bottom: 24px !important; }

/* --------------
   RESPONSIVE DESIGN & FLEXBOX LAYOUTS
----------------*/
@media (max-width: 1160px) {
  .container { padding-left: 12px; padding-right: 12px; }
}
@media (max-width: 900px) {
  .footer .content-wrapper { gap: 18px; }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.32rem; }
  .container { padding-left: 6px; padding-right: 6px; }
  .section { padding: 30px 5px; margin-bottom: 38px; }
  .content-wrapper, .footer .content-wrapper {
    flex-direction: column;
    gap: 21px;
    align-items: flex-start;
  }
  .content-grid, .card-container {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .text-image-section {
    flex-direction: column;
    gap: 17px;
    align-items: flex-start;
  }
  .footer .content-wrapper { gap: 24px; }
  .testimonial-card {
    max-width: 99vw;
    font-size: 1rem;
  }
  .main-nav {
    display: none !important;
  }
}
@media (max-width: 480px) {
  h1 { font-size: 1.4rem; }
  .section { padding: 16px 0; }
}

/* ----------
   FORM ELEMENTS
-------------*/
input, select, textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--secondary);
  background: var(--mid-bg);
  margin-bottom: 13px;
  width: 100%;
  box-sizing: border-box;
  transition: border 0.15s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--highlight-pink);
}
label {
  color: var(--primary);
  font-size: 1rem;
  font-weight: 600;
  display: block;
  margin-bottom: 7px;
  letter-spacing: 0.01em;
}

/* --------
   MISC
-----------*/
::-webkit-scrollbar {
  width: 7px;
  background: var(--secondary);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
}

/* --------
   Z-INDEX
-----------*/
header { z-index: 30; }
footer { z-index: 20; }
.mobile-menu { z-index: 60; }
.cookie-banner { z-index: 120; }

/* Force spacing between cards and sections */
.card + .card, .testimonial-card + .testimonial-card {
  margin-left: 0;
  margin-top: 20px;
}
.section + .section {
  margin-top: 48px;
}

/* Prevent overlap of cards on wrap */
.card-container, .content-grid {
  align-items: stretch;
}

/* Hide scroll on mobile menu */
body.mobile-menu-open {
  overflow: hidden;
}

/* ---------------
   ACCESSIBILITY
----------------*/
@media (max-width: 400px) {
  .logo img { height: 34px; }
  .mobile-menu-close { font-size: 1.3rem; padding: 6px 10px; }
}

/* ---------------
   PRINT
----------------*/
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  .container { max-width: 100vw; padding: 0; }
}
