/* ===============================
   CSS Reset & Base Styles
   =============================== */

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
}

body {
  background-color: #F7F4EC;
  color: #1A2B32;
  font-family: 'Lato', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 8px;
}
a {
  color: #456680;
  text-decoration: none;
  transition: color 0.18s;
}
a:hover,
a:focus {
  color: #B89B5A;
}
ul, ol {
  padding-left: 1.2em;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'EB Garamond', serif;
  font-weight: 600;
  color: #2C3A30;
  line-height: 1.15;
  margin-bottom: 14px;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 18px; }
h3 { font-size: 1.3rem; margin-bottom: 12px; }
h4 { font-size: 1.1rem; }
p { margin-bottom: 16px; }
strong { font-weight: 700; }

/* Pastel Accents for Softness */
:root {
  --primary: #1A2B32;
  --secondary: #B89B5A;
  --accent: #F7F4EC;
  --pastel-blue: #dbeafe;
  --pastel-green: #dbf4e2;
  --pastel-rose: #ffe6ec;
  --pastel-yellow: #fffbe2;
  --pastel-mauve: #ece2fa;
  --shadow: 0 2px 16px rgba(186,186,192,0.10);
  --border-radius: 18px;
  --transition: 0.28s cubic-bezier(.46,.03,.52,.96);
}

/* Container & Wrapper Layouts */
.container {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--accent);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.main {
  flex: 1;
}

/* ===============================
   Header & Navigation
   =============================== */
header {
  width: 100%;
  background: linear-gradient(90deg, #f6eefc 0%, #e4f9fd 50%, #fffbe2 100%);
  box-shadow: 0 1px 8px rgba(185,183,200,0.05);
  position: sticky;
  top: 0;
  z-index: 1102;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  gap: 28px;
}
header img {
  height: 48px;
  width: auto;
}
nav {
  display: flex;
  gap: 32px;
}
nav a {
  font-family: 'Lato', sans-serif;
  font-size: 1.08rem;
  color: var(--primary);
  padding: 7px 0;
  position: relative;
  transition: color var(--transition);
}
nav a:after {
  content: '';
  display: block;
  width: 0%;
  height: 2px;
  background: var(--secondary);
  border-radius: 1px;
  transition: width 220ms;
  position: absolute;
  left: 0; bottom: -3px;
}
nav a:hover:after, nav a:focus:after { width: 100%; }
nav a.active, nav a:focus { color: var(--secondary); }

.cta {
  background: linear-gradient(92deg, #fbc2ec 0%, #cfd9fa 100%);
  color: var(--primary);
  font-family: 'EB Garamond', serif;
  font-size: 1.13rem;
  border: none;
  border-radius: 24px;
  padding: 10px 34px;
  box-shadow: 0 4px 20px rgba(183, 156, 208, .13);
  cursor: pointer;
  transition: background var(--transition), color 0.2s, box-shadow .26s;
  margin-left: 20px;
  font-weight: 500;
  letter-spacing: 0.01em;
  outline: none;
  text-align: center;
  text-shadow: 0 2px 6px #fff9;
}
.cta:hover, .cta:focus {
  background: linear-gradient(92deg, #b3eaf5 0%, #ffd6e5 100%);
  color: var(--secondary);
  box-shadow: 0 6px 24px rgba(183, 156, 208, .22);
}

/* ===============================
   Mobile Navigation
   =============================== */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 2.1rem;
  color: var(--primary);
  position: fixed;
  top: 21px;
  right: 20px;
  z-index: 1201;
  cursor: pointer;
  transition: color .18s;
  padding: 4px 8px;
  border-radius: 10px;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  color: var(--secondary);
  background: #f3efe0;
}

.mobile-menu {
  position: fixed;
  top: 0; right: 0;
  height: 100vh;
  width: 88vw;
  max-width: 350px;
  background: linear-gradient(160deg, #fffbe2 30%, #e4f9fd 100%);
  box-shadow: -3px 0 32px rgba(172,170,198,0.23);
  transform: translateX(105%);
  transition: transform .4s cubic-bezier(.49,.94,.65,1.06);
  z-index: 1202;
  display: flex;
  flex-direction: column;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: var(--primary);
  margin: 22px 18px 6px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 8px;
  transition: background .16s, color .14s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #eee5fa;
  color: #B89B5A;
}
.mobile-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 15px 36px 20px 24px;
  gap: 20px;
}
.mobile-nav a {
  display: block;
  color: var(--primary);
  font-family: 'EB Garamond', serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.015em;
  padding: 12px 0 6px 0;
  border-bottom: 1px dotted #bdbdd5;
  width: 100%;
  transition: color .17s, background .20s;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #B89B5A;
  background: #dbeafe55;
  border-radius: 12px;
}

/* ===============================
   Responsive - Hide Desktop Nav on Mobile
   =============================== */
@media (max-width: 980px) {
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .cta {
    margin-left: 0;
  }
  .header .container {
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .mobile-menu {
    width: 100vw;
    max-width: 100vw;
  }
}

/* ===============================
   Hero, Sections, Cards, Features
   =============================== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  background: #fffbe2;
}
.hero {
  background: linear-gradient(110deg, #ece2fa 0%, #ffe6ec 80%);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  border-radius: 0 0 54px 54px;
  box-shadow: 0 8px 36px rgba(172,150,208,0.11);
}

.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}
.features-grid > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  min-width: 250px;
  flex: 1 1 200px;
  background: var(--pastel-blue);
  border-radius: var(--border-radius);
  padding: 26px 20px 22px;
  box-shadow: 0 3px 16px rgba(155,170,210,0.10);
  transition: box-shadow .19s, background .18s;
  margin-bottom: 20px;
}
.features-grid > div:hover {
  background: var(--pastel-mauve);
  box-shadow: 0 8px 32px rgba(209,183,244,0.15);
}
.features-grid img {
  height: 48px;
  width: auto;
  margin-bottom: 10px;
  filter: drop-shadow(0 3px 9px #fff7);
}

.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.service-item {
  background: var(--pastel-green);
  border-radius: var(--border-radius);
  padding: 20px 20px 22px 20px;
  flex: 1 1 240px;
  min-width: 200px;
  box-shadow: 0 2px 16px rgba(180,220,186,0.10);
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  transition: box-shadow .19s;
}
.service-item:hover {
  background: #fbfaf6;
  box-shadow: 0 7px 32px rgba(155,200,225,0.13);
}

.testimonial-slider, .testimonial-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  min-width: 220px;
  max-width: 430px;
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 36px rgba(185,185,196, .10);
  margin-bottom: 20px;
  border-left: 5px solid #dbeafe;
  transition: box-shadow .14s, border-color .13s;
}
.testimonial-card:hover {
  border-left-color: #B89B5A;
  box-shadow: 0 8px 38px rgba(220,176,238,.12);
}
.testimonial-card p {
  font-size: 1.13rem;
  font-style: italic;
  color: #1A2B32;
  line-height: 1.6;
  margin-bottom: 4px;
}
.testimonial-card strong {
  color: #4e6074;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 17px;
  align-items: flex-start;
  margin-bottom: 10px;
  padding-left: 5px;
}
.text-section ul, .text-section ol {
  margin-bottom: 10px;
}

.pricing-table {
  margin: 20px 0 16px 0;
  background: var(--pastel-yellow);
  border-radius: 14px;
  box-shadow: 0 1px 8px #e7dcfc44;
  padding: 15px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pricing-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

/* ===============================
   Cards, Card Container, Content Grid
   =============================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 16px rgba(186,186,192,0.10);
  padding: 22px 18px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 220px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ===============================
   Forms (Optical Only, No Native Forms Present)
   =============================== */
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  padding: 11px 14px;
  border: 1px solid #d2cee7;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(220,210,255,0.09);
  margin-bottom: 15px;
  transition: border-color .13s;
}
input:focus, textarea:focus, select:focus {
  border-color: #B89B5A;
  outline: none;
}

/* ===============================
   Footer
   =============================== */
footer {
  background: linear-gradient(90deg, #e8eafa 20%, #fffbe2 100%);
  padding: 30px 0 16px;
  border-top-left-radius: 30px;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
}
.footer-menu {
  display: flex;
  gap: 22px;
  margin-bottom: 8px;
}
.footer-menu a {
  color: #7a8299;
  font-size: 0.98rem;
  font-family: 'Lato', sans-serif;
  transition: color .16s;
}
.footer-menu a:hover, .footer-menu a:focus {
  color: #B89B5A;
}
.legal-info {
  color: #A8A39C;
  font-size: 0.95rem;
  margin-top: 6px;
}

/* ===============================
   Cookie Banner & Modal
   =============================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  background: linear-gradient(90deg,#fffbe2 73%,#e4f9fd 100%);
  color: #1A2B32;
  box-shadow: 0 -5px 24px rgba(186,194,205,0.18);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 20px 12px 18px 12px;
  z-index: 10000;
  animation: cookie-fadein .65s cubic-bezier(.45,.97,.3,1.09) 1;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}
@keyframes cookie-fadein {
  from { transform: translateY(100%); opacity: 0.6; }
  to   { transform: translateY(0); opacity: 1;   }
}
.cookie-banner p {
  max-width: 340px;
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 13px;
}
.cookie-banner button {
  border: none;
  border-radius: 13px;
  font-size: 1.04rem;
  font-family: 'Lato', sans-serif;
  padding: 8px 22px;
  margin: 0;
  cursor: pointer;
  transition: background .18s, color .14s, box-shadow .16s;
  box-shadow: 0 1px 8px #eee6ee44;
  font-weight: 500;
}
.cookie-banner .accept-btn {
  background: linear-gradient(91deg, #dbf4e2 50%, #b3eaf5 100%);
  color: var(--primary);
}
.cookie-banner .accept-btn:hover,
.cookie-banner .accept-btn:focus {
  background: linear-gradient(95deg, #ffe6ec 50%, #B89B5A 100%);
  color: #1A2B32;
}
.cookie-banner .reject-btn {
  background: #fff;
  color: #B89B5A;
  border: 1.5px solid #dbd7cf;
}
.cookie-banner .reject-btn:hover,
.cookie-banner .reject-btn:focus {
  background: #ffe6ec;
  color: #b87171;
}
.cookie-banner .settings-btn {
  background: linear-gradient(101deg, #ece2fa 5%, #dbeafe 100%);
  color: #3a3a51;
}
.cookie-banner .settings-btn:hover,
.cookie-banner .settings-btn:focus {
  background: #f3efe0;
  color: #7a8299;
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(35, 40, 54, 0.38);
  z-index: 15000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookie-modal-fadein .45s cubic-bezier(.42,.97,.52,.99) 1;
}
@keyframes cookie-modal-fadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal {
  background: #fffbe2;
  border-radius: 26px;
  padding: 40px 32px 28px 32px;
  max-width: 400px;
  width: 95vw;
  box-shadow: 0 12px 52px rgba(205,200,214,.20);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.cookie-modal h2 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-radius: 13px;
  padding: 10px 16px;
  margin-bottom: 11px;
  font-size: 1.01rem;
  box-shadow: 0 1px 5px rgba(186,194,205,0.11);
}
.cookie-category .toggle-switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 20px;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background: #dbeafe;
  border-radius: 10px;
  transition: .25s;
}
.toggle-switch input:checked + .toggle-slider {
  background: #B89B5A;
}
.toggle-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 2px #b89b5a33;
  transition: .24s;
}
.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(18px);
  background: #ece2fa;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  margin-top: 10px;
}

/* ===============================
   Animations / Micro-interactions
   =============================== */
.card, .testimonial-card, .features-grid > div, .service-item {
  transition: box-shadow .19s, background .18s, transform .13s;
}
.card:hover, .service-item:hover, .features-grid > div:hover {
  transform: translateY(-4px) scale(1.013);
  box-shadow: 0 8px 32px rgba(184,155,255,0.10);
}

.cta, .cookie-banner button {
  transition: background .18s, color .18s, box-shadow .16s, transform .16s;
}
.cta:active, .cookie-banner button:active {
  transform: scale(0.98);
}

/* ===============================
   Typography & Details
   =============================== */
@media (min-width: 769px) {
  h1 { font-size: 2.8rem; }
  h2 { font-size: 2.2rem; }
  h3 { font-size: 1.33rem; }
}

/* ===============================
   Responsive Design (Mobile First)
   =============================== */
@media (max-width: 900px) {
  .container { max-width: 98vw; padding: 0 6vw; }
  .features-grid, .service-list, .testimonial-slider, .testimonial-grid {
    flex-direction: column;
    gap: 15px;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 15px;
  }
}
@media (max-width: 768px) {
  .container { padding: 0 10px; }
  .section { padding: 26px 8px; margin-bottom: 38px; }
  header .container {
    padding: 0 12px;
    gap: 13px;
  }
  .content-wrapper { gap: 16px; }
  .features-grid, .service-list, .testimonial-slider, .testimonial-grid {
    flex-direction: column;
    gap: 13px;
  }
  .text-image-section { flex-direction: column; gap: 14px; }
}
@media (max-width: 580px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.3rem; }
  .footer-menu { flex-direction: column; gap: 10px; }
  footer .container { gap: 8px; }
  .cookie-banner {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
    padding: 15px 7px 12px 7px;
  }
  .cookie-banner p { max-width: 96vw; }
}

/* ===============================
   Utility Classes & Spacing
   =============================== */
.mt-16 { margin-top: 16px !important; }
.mb-24 { margin-bottom: 24px !important; }
.text-center { text-align: center; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.gap-8  { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }

/* ===============================
   Visual Accents (Soft Pastel Dots/Lines)
   =============================== */
.pastel-dot {
  width: 16px; height: 16px; border-radius: 50%;
  display: inline-block;
  background: linear-gradient(135deg,#ffe6ec 40%, #ece2fa 100%);
  margin-right: 7px;
  border: 2px solid #fffbe2;
  box-shadow: 0 2px 8px #dbeafe66;
}

/* ===============================
   Accessibility & Focus
   =============================== */
a, button, .cta, .mobile-menu-toggle, .mobile-menu-close, .cookie-banner button {
  outline-color: #B89B5A;
  outline-width: 2px;
}

/* ===============================
   Special Layouts
   =============================== */

/* Justify testimonial-grid children to avoid center-bias on large screens */
.testimonial-grid {
  justify-content: flex-start;
}

/* Hide on screens if not present in HTML for single testimonials */
@media (max-width: 750px) {
  .features-grid > div,
  .service-item,
  .testimonial-card,
  .card {
    min-width: unset;
    max-width: 100%;
    width: 100%;
  }
}

/* ===============================
   Print-friendly tweaks
   =============================== */
@media print {
  header, nav, .mobile-menu-toggle, .mobile-menu, .cta, footer, .cookie-banner, .cookie-modal-overlay { display: none !important; }
  body { background: #fff; color: #1A2B32; }
}

/* ===== Ensure proper stacking of cookies, nav, overlay ===== */
.mobile-menu, .mobile-menu-toggle, .mobile-menu-close, .cookie-banner, .cookie-modal-overlay { z-index: 10000 !important; }
