/* ===== 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;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
  background: #F4F1EE;
}
body {
  line-height: 1.5;
  color: #233D4D;
  background: #F4F1EE;
  font-family: 'Open Sans', Arial, sans-serif;
  min-height: 100vh;
}
a {
  text-decoration: none;
  color: #233D4D;
  transition: color 0.2s;
}
a:hover,
a:focus {
  color: #5C7C8A;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
button {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  background: none;
  border: none;
  cursor: pointer;
}
ul, ol {
  margin-left: 1.5em;
}
table {
  border-collapse: collapse;
  width: 100%;
}
th, td {
  padding: 0.75em 1em;
  text-align: left;
}
th {
  background: #DFEEF9;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
}
td {
  background: #F8F8FA;
}

/* ===== FONT IMPORTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Open+Sans:wght@400;600&display=swap');

/* ===== COLORS: Soft Pastel Palette ===== */
:root {
  --brand-primary: #233D4D;
  --brand-secondary: #819595;
  --brand-accent: #F4F1EE;
  --pastel-blue: #DFEEF9;
  --pastel-mint: #B7E4D7;
  --pastel-pink: #F6D6DF;
  --pastel-lavender: #E4E2F4;
  --pastel-yellow: #FFF5D6;
  --pastel-purple: #D6DFFF;
  --text-dark: #1B2230;
  --text-body: #233D4D;
  --white: #fff;
}

/* ===== LAYOUT UTILITIES ===== */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--brand-accent);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(100,120,150,0.06), 0 2px 10px rgba(180,170,225,0.04);
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, .cta-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--brand-primary);
  font-weight: 700;
}
h1 {
  font-size: 2.8rem;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
  line-height: 1.2;
}
h2 {
  font-size: 2.1rem;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
h3 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 8px;
}
p, li, td, th {
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
  color: var(--text-body);
}
strong, b {
  font-weight: 600;
}
.text-section {
  margin-bottom: 20px;
}
.hero p,
.features-grid p,
.text-section p {
  color: var(--brand-secondary);
  opacity: 0.98;
  font-size: 1.1rem;
  line-height: 1.6;
}
.price {
  font-weight: 700;
  color: var(--brand-primary);
  background: var(--pastel-mint);
  border-radius: 18px;
  padding: 4px 15px 4px 10px;
  margin-top: 7px;
  display: inline-block;
  font-size: 1.1rem;
}

@media (max-width: 600px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1rem; }
  p, li, td, th { font-size: 0.98rem; }
}

/* ===== HEADER & NAVIGATION ===== */
header {
  background: var(--pastel-blue);
  padding: 0;
  box-shadow: 0 1px 10px rgba(40,50,90,0.04);
  z-index: 30;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.main-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--brand-primary);
  padding: 7px 11px;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--pastel-mint);
  color: #316D8F;
}
.main-nav .cta-btn {
  margin-left: 10px;
}
.cta-btn {
  display: inline-block;
  background: linear-gradient(90deg,var(--pastel-pink),var(--pastel-blue));
  color: var(--brand-primary);
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 20px;
  font-size: 1.09rem;
  box-shadow: 0 2px 8px rgba(120,150,180,0.07);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  letter-spacing: 0.02em;
  border: none;
}
.cta-btn:hover, .cta-btn:focus {
  background: linear-gradient(90deg,var(--pastel-lavender),var(--pastel-mint));
  color: var(--brand-primary);
  box-shadow: 0 8px 24px rgba(135,180,225, 0.11);
}

/* ===== MOBILE MENU ===== */
.mobile-menu-toggle {
  display: none;
  background: var(--pastel-mint);
  color: var(--brand-primary);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 2rem;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 102;
  border: none;
  box-shadow: 0 2px 10px rgba(70,100,110,0.07);
  transition: box-shadow 0.22s;
}
.mobile-menu-toggle:active {
  box-shadow: 0 5px 28px rgba(80,110,130,0.18);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(120deg,var(--pastel-blue) 60%,var(--pastel-pink) 100%);
  z-index: 101;
  transform: translateX(-100%);
  opacity: 0;
  transition: opacity 0.25s, transform 0.35s cubic-bezier(.86,0,.07,1);
  box-shadow: 0 0 60px 0 rgba(80,110,130,0.19);
  padding: 36px 24px 24px 24px;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  background: var(--pastel-pink);
  color: var(--brand-primary);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.55rem;
  margin-bottom: 16px;
  transition: background 0.16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--pastel-mint);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  margin: 0;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  padding: 14px 0 14px 6px;
  color: var(--brand-primary);
  border-radius: 12px;
  background: transparent;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--pastel-mint);
  color: #316D8F;
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .mobile-menu-toggle {
    display: flex;
    margin-left: auto;
    margin-right: 12px;
  }
  header .container {
    padding-right: 0;
  }
}
@media (min-width: 901px) {
  .mobile-menu,
  .mobile-menu-toggle { display: none !important; }
}

/* ===== HERO SECTION ===== */
.hero {
  width: 100%;
  background: linear-gradient(120deg,var(--pastel-blue) 60%,var(--pastel-lavender) 100%);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 46px 0 46px 0;
  margin-bottom: 54px;
  box-shadow: 0 2px 11px rgba(90,130,160,0.05);
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero .content-wrapper {
  align-items: center;
  gap: 18px;
  padding: 0;
}
.hero .cta-btn {
  margin-top: 16px;
}

/* ===== FLEX LAYOUTS [MANDATORY] ===== */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 12px;
}
.features-grid > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 4px 22px rgba(170,200,220,0.08);
  padding: 26px 22px;
  flex: 1 1 260px;
  min-width: 222px;
  max-width: 360px;
  margin-bottom: 20px;
  transition: box-shadow 0.22s, transform 0.19s;
  border: 2px solid transparent;
}
.features-grid > div:hover {
  box-shadow: 0 12px 34px rgba(190,180,225, 0.21);
  border: 2px solid var(--pastel-blue);
  transform: translateY(-3px) scale(1.01);
}
.features-grid img {
  width: 38px; height: 38px;
  margin-bottom: 7px;
  background: var(--pastel-mint);
  border-radius: 10px;
  padding: 3px;
  box-shadow: 0 1px 5px #deeefab0;
}

/* Content Grids and Section Layouts [Flex only, per requirement] */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 4px 25px rgba(160,180,240,0.08);
  padding: 30px 24px;
  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;
  background: var(--pastel-yellow);
  border-radius: 18px;
  box-shadow: 0 3px 22px rgba(225,220,130,0.085);
  padding: 20px 26px;
  margin-bottom: 22px;
  font-size: 1.07rem;
  color: #1B2230;
  flex: 1 1 320px;
  max-width: 600px;
  border-left: 8px solid var(--pastel-pink);
  transition: box-shadow 0.19s;
}
.testimonial-card strong {
  font-size: 1rem;
  color: var(--brand-primary);
  margin-left: 24px;
  font-weight: 700;
}
.testimonial-card:hover {
  box-shadow: 0 12px 40px rgba(195,210,130,0.15);
}

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

/* Footer navigation and info */
footer {
  background: var(--pastel-lavender);
  padding: 32px 0 14px 0;
  margin-top: 80px;
  border-top: 2px solid var(--pastel-pink);
  font-size: 0.98rem;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
footer .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  width: 100%;
}
.footer-nav {
  display: flex;
  gap: 18px;
  margin-bottom: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-nav a {
  color: var(--brand-primary);
  opacity: 0.94;
  font-weight: 500;
  font-family: 'Montserrat', Arial, sans-serif;
  transition: color 0.18s;
  font-size: 0.99rem;
}
.footer-nav a:hover { color: #819595; }
.footer-contact {
  color: var(--brand-secondary);
  text-align: center;
}
.footer-contact a {
  color: var(--brand-primary);
  font-weight: 600;
}
.footer-contact a:hover { text-decoration: underline; }

/* ===== TABLES ===== */
table {
  border-radius: 10px;
  box-shadow: 0 2px 12px #ede3fa10;
  overflow: hidden;
  margin-bottom: 24px;
}
tr {
  border-bottom: 1px solid #E4E2F4;
}
th {
  background: var(--pastel-lavender);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
}
td {
  font-family: 'Open Sans', Arial, sans-serif;
  color: var(--text-body);
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(120deg,var(--pastel-pink),var(--pastel-blue) 90%);
  color: var(--brand-primary);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  z-index: 2000;
  padding: 18px 26px;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -1px 32px #889fcc33;
  width: calc(100% - 24px);
  margin: 0 12px;
  font-size: 1.01rem;
  animation: cookieBannerIn 0.65s cubic-bezier(.19,.82,.26,1.01);
}
@keyframes cookieBannerIn {
  0% { transform: translateY(100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner__msg {
  flex: 1 1 0%;
  max-width: 600px;
  color: var(--brand-primary);
}
.cookie-banner__actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.cookie-btn {
  border: none;
  border-radius: 13px;
  padding: 7px 21px;
  font-family: 'Open Sans', 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  background: var(--pastel-mint);
  color: var(--brand-primary);
  transition: box-shadow 0.15s, background 0.18s, color 0.18s;
  margin: 0 2px;
  box-shadow: 0 1px 8px #adedfa13;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--pastel-blue);
  color: #183563;
  box-shadow: 0 2px 16px #aaacf666;
}
.cookie-btn--accept {
  background: var(--pastel-mint);
  color: var(--brand-primary);
}
.cookie-btn--reject {
  background: var(--pastel-pink);
  color: #891434;
}
.cookie-btn--settings {
  background: var(--pastel-lavender);
  color: #33408b;
}

/* ===== COOKIE MODAL ===== */
.cookie-modal {
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%,-50%) scale(0.93);
  z-index: 2500;
  background: var(--brand-accent);
  box-shadow: 0 12px 56px #233d4d33, 0 2px 22px #786eb820;
  border-radius: 22px;
  padding: 38px 30px 28px 30px;
  max-width: 95vw;
  width: 395px;
  display: flex;
  flex-direction: column;
  gap: 21px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s, transform 0.33s cubic-bezier(.86,0,.07,1);
}
.cookie-modal.open {
  opacity: 1;
  transform: translate(-50%,-50%) scale(1);
  pointer-events: auto;
}
.cookie-modal__header {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--brand-primary);
}
.cookie-modal__close {
  position: absolute;
  top: 18px; right: 18px;
  background: var(--pastel-pink);
  color: var(--brand-primary);
  border-radius: 50%;
  width: 30px; height: 30px;
  border: none;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.cookie-modal__close:hover {
  background: var(--pastel-mint);
}
.cookie-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cookie-option {
  background: var(--pastel-lavender);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
}
.cookie-option label {
  display: flex;
  align-items: center;
  font-size: 1rem;
  color: var(--brand-primary);
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 500;
  cursor: pointer;
}
.cookie-option input[type="checkbox"] {
  accent-color: var(--pastel-mint);
  margin-right: 9px;
  width: 20px; height: 20px;
  border-radius: 6px;
}
.cookie-option .cookie-option__desc {
  font-size: 0.96rem;
  color: var(--brand-secondary);
  font-family: 'Open Sans', Arial, sans-serif;
  margin-left: 5px;
}
/* Always enabled label styling */
.cookie-option--essential label {
  font-style: italic;
  opacity: 0.82;
  text-decoration: underline;
}
.cookie-modal__footer {
  display: flex;
  gap: 12px;
  margin-top: 13px;
}

/* ===== RESPONSIVE LAYOUTS (MOBILE-FIRST) ===== */
@media (max-width: 900px) {
  .features-grid {
    flex-direction: column;
    gap: 16px;
  }
  .features-grid > div {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin-bottom: 10px;
  }
}
@media (max-width: 800px) {
  .section {
    padding: 30px 10px;
  }
  .container {
    padding: 0 10px;
  }
}
@media (max-width: 600px) {
  .hero {
    min-height: 180px;
    padding: 27px 0 27px 0;
    margin-bottom: 24px;
  }
  .footer-nav {
    gap: 10px;
    font-size: 0.96rem;
    flex-direction: column;
    align-items: center;
  }
  .cookie-banner {
    flex-direction: column;
    padding: 13px 8px;
    gap: 14px;
    width: calc(100vw - 4px);
    margin: 0 2px;
  }
  .cookie-btn {
    font-size: 0.99rem;
    padding: 7px 14px;
  }
  .cookie-modal {
    max-width: 97vw;
    padding: 18px 6px 16px 12px;
    min-width: 0;
    width: 99vw;
  }
}
@media (max-width: 720px) {
  .content-grid, .footer .content-wrapper {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}

/* ===== GLOBAL SPACING (MANDATORY) ===== */
section {
  margin-bottom: 60px;
}
.card,
.features-grid > div,
.text-section,
.testimonial-card {
  margin-bottom: 20px !important;
}
section > .container > .content-wrapper > * + * {
  margin-top: 18px;
}

/* ===== TABLET LAYOUT ADJUSTMENTS ===== */
@media (max-width: 960px) {
  .container {
    max-width: 96vw;
  }
}
@media (max-width: 520px) {
  .footer-contact, .footer-nav {
    font-size: 0.92rem;
  }
}

/* ===== MICRO-INTERACTIONS AND TRANSITIONS ===== */
a, .cta-btn, .cookie-btn, button, .features-grid > div, .testimonial-card, .cookie-modal__close {
  transition: all 0.19s cubic-bezier(.69,.01,.44,.98);
}

/* ===== MISC: LIST STYLES ===== */
ul, ol {
  padding-left: 18px;
  margin-bottom: 15px;
}
li {
  margin-bottom: 8px;
  line-height: 1.52;
}

/* ===== GENERAL ELEMENTS ===== */
::-webkit-input-placeholder { color: #819595CC; }
::-moz-placeholder { color: #819595CC; }
:-ms-input-placeholder { color: #819595CC; }
::placeholder { color: #819595CC; }

/* ===== CARD-LIKE STYLES FOR TESTIMONIALS & FEATURES ===== */
/* Already covered in .testimonial-card and features-grid > div */

/* ===== PRINT (OPTIONAL) ===== */
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  section, .container { box-shadow: none !important; background: #fff !important; }
}
