/* ===== 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.5;
  min-height: 100vh;
  background: #FCFBFA;
  color: #3C1B32;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  overflow-x: hidden;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 16px;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  box-sizing: border-box;
}

/* ====== BRAND & PASTEL PALETTE ====== */
:root {
  --primary: #3C1B32;
  --secondary: #C3926C;
  --accent: #F5F5F2;
  --pastel-mauve: #F5EAFE;
  --pastel-blue: #DAEAF6;
  --pastel-green: #D2F8D2;
  --pastel-pink: #FFE8F3;
  --pastel-yellow: #FFF7DA;
  --pastel-lavender: #EAE6F8;
  --black: #272226;
  --white: #FFFFFF;
  --shadow: 0 2px 12px 0 rgba(60,27,50,0.06);
  --border-radius: 20px;
  --transition: all 0.18s cubic-bezier(.52,.01,.41,1);
  --section-space: 60px;
}

/* ==== TYPOGRAPHY SCALE ==== */
h1, .h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  font-size: 2.5rem;
  color: var(--primary);
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
h2, .h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}
h3, .h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 14px;
}
p, li, span, label, input, textarea {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: var(--black);
  line-height: 1.7;
}
strong {
  font-weight: 700;
  color: var(--primary);
}
em, i {
  color: var(--secondary);
}
blockquote {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  color: var(--primary);
  background: var(--pastel-lavender);
  border-left: 4px solid var(--secondary);
  padding: 18px 32px;
  margin-bottom: 24px;
  border-radius: 12px;
}

/* === GENERAL LAYOUT CONTAINERS === */
.container {
  width: 100%;
  max-width: 1020px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 26px 22px;
  min-width: 220px;
  flex: 1 1 250px;
}
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  border-radius: var(--border-radius);
  background: var(--pastel-blue);
  box-shadow: var(--shadow);
  color: var(--primary);
  margin-bottom: 20px;
  min-width: 240px;
  max-width: 410px;
  transition: box-shadow 0.2s, transform 0.13s;
}
.testimonial-card p {
  color: #222233;
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.testimonial-card span {
  color: var(--secondary);
  font-weight: 500;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
}
.testimonial-card:hover {
  box-shadow: 0 6px 30px 0 rgba(60,27,50,0.10);
  transform: translateY(-4px) scale(1.02);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--pastel-pink);
  border-radius: var(--border-radius);
  padding: 18px 24px;
  box-shadow: var(--shadow);
}

/* ===== HEADER ===== */
header {
  width: 100%;
  background: var(--pastel-mauve);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 14px 20px;
  box-shadow: 0 2px 10px 0 rgba(44,11,38,0.03);
  position: sticky;
  top: 0;
  z-index: 50;
}
header > a img {
  height: 40px;
  width: auto;
  display: block;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  color: var(--primary);
  font-size: 1.06rem;
  padding: 8px 12px;
  border-radius: 10px;
  transition: background 0.14s, color 0.12s;
  position: relative;
}
header nav a:hover,
header nav a:focus {
  background: var(--pastel-yellow);
  color: var(--secondary);
}
.cta-btn {
  background: linear-gradient(90deg, #EDE1F7 33%, #FFF7DA 100%);
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 16px;
  padding: 12px 26px;
  margin-left: 8px;
  box-shadow: 0 2px 8px 0 rgba(44,11,38,0.04);
  transition: var(--transition);
  outline: none;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 1;
}
.cta-btn:hover,
.cta-btn:focus {
  background: #FFF7DA;
  color: var(--secondary);
  transform: translateY(-2px) scale(1.03);
}
.mobile-menu-toggle {
  display: none;
  background: var(--secondary);
  color: var(--white);
  border: none;
  border-radius: 16px;
  padding: 8px 16px;
  font-size: 1.9rem;
  cursor: pointer;
  margin-left: 10px;
  transition: background 0.16s;
  z-index: 98;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--primary);
  color: var(--pastel-yellow);
}

/* === MOBILE NAVIGATION DRAWER === */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 94vw;
  max-width: 330px;
  height: 100vh;
  background: var(--accent);
  box-shadow: -2px 0 30px 0 rgba(60,27,50,0.08);
  z-index: 120;
  transform: translateX(110%);
  transition: transform 0.33s cubic-bezier(.69,.01,.27,1);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 18px 0 24px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 14px;
  right: 20px;
  background: transparent;
  border: none;
  color: var(--primary);
  font-size: 2.1rem;
  line-height: 1;
  cursor: pointer;
  z-index: 130;
  transition: color 0.18s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 64px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  color: var(--primary);
  font-size: 1.11rem;
  padding: 14px 12px;
  border-radius: 12px;
  transition: background 0.14s, color 0.12s;
  text-align: left;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--pastel-mauve);
  color: var(--secondary);
}

/* ===== HERO & MAJOR SECTIONS ===== */
main > section:first-child {
  background: var(--pastel-yellow);
  border-radius: var(--border-radius);
  margin-top: 18px;
}
main h2 + .content-wrapper, main h1 + .content-wrapper {
  margin-top: 0px;
}
section h1, section h2, section h3 {
  margin-top: 0;
}
/* Custom pastel backgrounds for main sections */
main section:nth-child(2n) {
  background: var(--pastel-lavender);
}
main section:nth-child(2n+1) {
  background: var(--accent);
}

/* Features + Services List */
ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
ul li {
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: 14px;
  padding: 16px 18px 16px 14px;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 60px;
  font-size: 1rem;
}
ul li img {
  height: 36px;
  width: 36px;
  object-fit: contain;
}
ul li strong {
  font-size: 1.09rem;
  margin-right: 5px;
}
.content-wrapper > ul {
  gap: 18px;
}

/* ==== CARDS & LISTS ==== */
.card {
  background: var(--pastel-pink);
  border: 1px solid var(--accent);
  color: var(--primary);
}

/* ==== CTA-LINK === */
.cta-link {
  font-family: 'Montserrat', Arial, sans-serif;
  background: transparent;
  color: var(--secondary);
  font-weight: 700;
  padding: 0 6px;
  border-bottom: 2px dashed var(--secondary);
  font-size: 1.07rem;
  transition: color 0.15s, border-color 0.15s;
}
.cta-link:hover, .cta-link:focus {
  color: var(--primary);
  border-color: var(--primary);
}

/* ====== BUTTONS & INPUTS ====== */
button, .cta-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.01em;
  border: none;
  cursor: pointer;
  border-radius: 16px;
  transition: var(--transition);
}
input[type="email"] {
  border: 1.3px solid var(--secondary);
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--white);
  font-size: 1rem;
  width: 220px;
  margin-right: 14px;
  color: var(--primary);
  margin-bottom: 8px;
}
input[type="email"]:focus {
  border: 1.8px solid var(--primary);
  background: var(--pastel-yellow);
}
input[type="email"]::placeholder {
  color: #929197;
}

main button:not(.cta-btn), section button, .newsletter button {
  background: var(--secondary);
  color: var(--white);
  padding: 11px 28px;
  font-size: 1rem;
  border-radius: 15px;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 2px 8px 0 rgba(44,11,38,0.05);
  margin-left: 6px;
}
main button:not(.cta-btn):hover,
main button:not(.cta-btn):focus {
  background: var(--primary);
  color: var(--pastel-yellow);
}

/* ====== FOOTER ====== */
footer {
  background: var(--pastel-mauve);
  padding: 44px 0 26px 0;
  width: 100%;
  border-top: 1px solid var(--accent);
}
footer .container {
  gap: 24px;
}
footer nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
footer nav a {
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.93;
  transition: color 0.13s, text-decoration 0.13s;
}
footer nav a:hover, footer nav a:focus {
  color: var(--secondary);
  text-decoration: underline;
}
footer .footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.96rem;
}
footer .footer-contact a {
  color: var(--secondary);
}
footer .footer-contact a:hover {
  text-decoration: underline;
}
footer span {
  display: block;
  margin-top: 16px;
  font-size: 0.96rem;
  color: #88808d;
  letter-spacing: 0.02em;
}

/* ====== COOKIE CONSENT BANNER ====== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: var(--pastel-yellow);
  color: var(--primary);
  box-shadow: 0 -1px 15px 0 rgba(70,40,50,0.16);
  z-index: 2000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 20px 30px;
  gap: 20px;
  font-size: 1rem;
  animation: cookieBannerAppear 0.7s 0.2s both cubic-bezier(.62,1.35,.41,1);
}
@keyframes cookieBannerAppear {
  0% { opacity:0; transform:translateY(40px); }
  100% { opacity:1; transform:translateY(0); }
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 12px;
}
.cookie-banner button {
  min-width: 110px;
  padding: 10px 18px;
  border-radius: 12px;
  border: none;
  font-weight: 600;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.98rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 8px 0 rgba(44,11,38,0.08);
}
.cookie-banner .cookie-accept {
  background: var(--secondary);
  color: var(--white);
}
.cookie-banner .cookie-accept:hover,
.cookie-banner .cookie-accept:focus {
  background: var(--primary);
  color: var(--pastel-yellow);
}
.cookie-banner .cookie-reject {
  background: var(--pastel-pink);
  color: var(--primary);
}
.cookie-banner .cookie-reject:hover,
.cookie-banner .cookie-reject:focus {
  background: var(--pastel-yellow);
  color: var(--secondary);
}
.cookie-banner .cookie-settings {
  background: var(--pastel-mauve);
  color: var(--primary);
}
.cookie-banner .cookie-settings:hover,
.cookie-banner .cookie-settings:focus {
  background: var(--pastel-blue);
  color: var(--primary);
}

/* ==== COOKIE SETTINGS MODAL ==== */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(60,27,50,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2100;
  transition: opacity 0.23s;
  opacity: 1;
  pointer-events: all;
  animation: cookieModalShow 0.3s cubic-bezier(.68,-0.01,.25,1.14);
}
@keyframes cookieModalShow {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-content {
  background: var(--accent);
  border-radius: 22px;
  box-shadow: 0 2px 32px 0 rgba(60,27,50,0.14);
  padding: 32px 28px 30px 28px;
  width: 96%;
  max-width: 410px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  animation: cookieModalPopupAppear 0.4s cubic-bezier(.66,1.45,.14,.98);
}
@keyframes cookieModalPopupAppear {
  0% { transform: translateY(70px) scale(.93); opacity:0; }
  100% { transform: translateY(0) scale(1); opacity:1; }
}
.cookie-modal-content h2 {
  font-size: 1.32rem;
  color: var(--primary);
  margin-bottom: 7px;
}
.cookie-modal-content .cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  margin: 12px 0;
}
.cookie-modal-content .cookie-category label {
  font-weight: 500;
}
.cookie-modal-content .cookie-category input[type=checkbox] {
  accent-color: var(--secondary);
  width: 18px;
  height: 18px;
}
.cookie-modal-close {
  position: absolute;
  top: 15px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: var(--primary);
  cursor: pointer;
}
.cookie-modal-close:hover {
  color: var(--secondary);
}
.cookie-modal-actions {
  margin-top: 12px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
.cookie-modal-actions button {
  min-width: 90px;
}

/* ======= MICROS / EFFECTS ======= */
a, button {
  transition: color 0.15s, background 0.15s, box-shadow 0.14s, transform 0.12s;
}
.card, .testimonial-card, .feature-item, ul li {
  transition: box-shadow 0.19s, transform 0.13s;
}
ul li:hover, .feature-item:hover, .card:hover {
  box-shadow: 0 4px 16px 0 rgba(60,27,50,0.12);
  transform: scale(1.015);
}

/* ==== RESPONSIVE DESIGN ==== */
@media (max-width: 1040px) {
  .container { max-width: 100%; }
}
@media (max-width: 900px) {
  .container { max-width: 98vw; }
  header { flex-wrap: wrap; }
}
@media (max-width: 768px) {
  body { font-size: 15px; }
  
  header nav {
    display: none;
  }
  .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
  .container { padding: 0 7vw; }
  main > section, .section {
    padding: 26px 5vw;
  }
  .content-wrapper { gap: 14px; }
  h1, .h1 { font-size: 2rem; }
  h2, .h2 { font-size: 1.45rem; }
  h3, .h3 { font-size: 1.05rem; }
  .text-image-section, .content-grid, .card-container {
    flex-direction: column !important;
    gap: 18px !important;
  }
  .testimonial-card { min-width: 0; max-width: 98vw; }
  .cookie-banner { flex-direction: column; align-items: flex-start; gap: 14px; padding: 17px 6vw; }
}
@media (max-width: 500px) {
  h1, .h1 { font-size: 1.39rem; }
  h2, .h2 { font-size: 1.09rem; }
  h3, .h3 { font-size: 1em; }
  .cookie-modal-content { padding: 16px 6vw 20px 6vw; }
  blockquote { padding: 11px 12px; }
}

/* ==== SPACING ADJUSTMENTS (CRITICAL ALIGNMENT) ==== */
main > section, .section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container, .content-grid, .text-image-section, .testimonial-card, .feature-item {
  gap: 20px;
}
.card { margin-bottom: 20px; }

/* ==== VISIBILITY UTILS FOR COOKIE/CLOSE ===== */
.hide {
  display: none !important;
}

/* ==== Z-INDEX UTILS ==== */
header, .mobile-menu { z-index: 80; }
.cookie-banner, .cookie-modal { z-index: 2100; }

/* ==== ACCESSIBLE FOCUS OUTLINE ==== */
a:focus, button:focus, .cta-btn:focus, input:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/* ===== MISC ===== */
body .newsletter button {
  margin: 0 0 0 12px;
}

/* ==== SPECIAL: HIDE MOBILE DRAWER WHEN NOT OPEN ==== */
.mobile-menu {
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  pointer-events: auto;
  opacity: 1;
}
