/* ====== 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, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #FAF8F4;
  color: #274055;
  font-family: 'Roboto', Arial, sans-serif;
}
*, *:before, *:after {
  box-sizing: inherit;
}
a {
  color: #275464;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #857236;
  outline: none;
}
ul, ol {
  margin-left: 1.2em;
  margin-bottom: 16px;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ====== TYPOGRAPHY ====== */
h1 {
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  color: #275464;
  letter-spacing: 0.01em;
  margin-bottom: 20px;
}
h2 {
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 600;
  font-size: 1.75rem;
  color: #275464;
  letter-spacing: 0.01em;
  margin-bottom: 18px;
  margin-top: 12px;
}
h3 {
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 500;
  font-size: 1.2rem;
  color: #607a89;
  margin-bottom: 10px;
}
strong, b {
  color: #857236;
  font-weight: 600;
}
p, li, span {
  font-size: 1rem;
  color: #364553;
  font-family: "Roboto", Arial, sans-serif;
  margin-bottom: 8px;
}
.text-section {
  margin-bottom: 24px;
}

/* ====== BRAND COLORS (SOFT PASTEL) ====== */
:root {
  --primary: #275464;
  --secondary: #F3E8D5;
  --accent: #B6AC8B;
  --accent-dark: #857236;
  --pastel-pink: #FDE7EA;
  --pastel-blue: #E3F1F8;
  --pastel-green: #E7F5EF;
  --pastel-yellow: #FFF7DD;
  --pastel-purple: #F4E8F7;
  --section-bg: #FCFAF7;
  --testimonial-bg: #fff8ef;
}

/* ====== CONTAINER & LAYOUT =========== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}
.content-wrapper {
  margin: 0 auto;
  width: 100%;
  padding: 0 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--section-bg);
  border-radius: 24px;
  box-shadow: 0 2px 24px 0 rgba(185,172,160,0.07);
}

/* ====== HEADER ====== */
header {
  background: linear-gradient(90deg, rgba(243,232,213,1) 70%, rgba(227,241,248,0.5) 100%);
  box-shadow: 0 2px 12px 0 rgba(39,84,100,0.09);
  position: relative;
  z-index: 100;
  padding: 0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding-top: 12px;
  padding-bottom: 12px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
header nav a {
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  padding: 8px 13px;
  color: #275464;
  background: none;
  border-radius: 10px;
  transition: background 0.18s, color 0.18s;
}
header nav a.cta {
  background: linear-gradient(90deg, #E3F1F8 60%, #FFF7DD 100%);
  color: #275464;
  font-weight: 600;
  border: 2px solid #B6AC8B40;
  box-shadow: 0 2px 6px 0 rgba(39,84,100,0.07);
  border-radius: 18px;
  padding: 8px 22px;
  font-size: 1.1rem;
  margin-left: 14px;
}
header nav a.cta:hover, header nav a.cta:focus {
  background: linear-gradient(90deg, #FDE7EA 80%, #E7F5EF 100%);
  color: #857236;
  border-color: #85723624;
}
header nav a:hover:not(.cta), header nav a:focus:not(.cta) {
  background: var(--pastel-blue);
  color: #275464;
}
header img {
  height: 38px;
  width: auto;
  vertical-align: middle;
}
.mobile-menu-toggle {
  display: none;
  background: var(--pastel-blue);
  color: #275464;
  font-size: 2rem;
  padding: 4px 12px;
  border: none;
  border-radius: 12px;
  box-shadow: 0 1px 4px 0 #d4dde9e7;
  transition: background 0.2s;
  z-index: 1001;
  margin-left: 22px;
  cursor: pointer;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--pastel-yellow);
  color: #857236;
}

/* ====== MOBILE MENU (OFFCANVAS) ====== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: #F3E8D5ee;
  box-shadow: 0 2px 32px 0 #b6ac8b48;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.86, 0, .07, 1);
  z-index: 2002;
  display: flex;
  flex-direction: column;
  padding-top: 0;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 2rem;
  color: #275464;
  margin: 22px 22px 14px 0;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 12px;
  transition: background 0.2s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #E3F1F8;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px 24px 24px 36px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.17rem;
  font-weight: 500;
  color: #274055;
  padding: 14px 0 13px 0;
  border-bottom: 1px solid #E3F1F8;
  border-radius: 0;
  transition: color 0.2s;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: #857236;
  background: none;
}
@media (max-width: 992px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}
@media (min-width: 993px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ====== HERO SECTION ====== */
.hero {
  width: 100%;
  padding: 0;
  background: linear-gradient(135deg, #E3F1F8 65%, #FFF7DD 100%);
  min-height: 320px;
  display: flex;
  align-items: center;
  margin-bottom: 60px;
  border-radius: 0 0 38px 38px;
  box-shadow: 0 6px 32px 0 #b6ac8b1a;
}
.hero .container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding-top: 38px;
  padding-bottom: 38px;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.hero h1 {
  color: #275464;
  text-shadow: 0 2px 20px #e3f1f84a;
  font-size: 2.3rem;
  text-align: center;
}
.hero p {
  font-size: 1.07rem;
  text-align: center;
  color: #607a89;
}

/* ====== FLEX SPACING UTILITIES (MANDATORY) ====== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 14px 0 #b6ac8b25;
  padding: 26px 24px 16px 24px;
  min-width: 230px;
  flex: 1 1 280px;
  transition: box-shadow 0.25s, transform 0.25s;
}
.card:hover {
  box-shadow: 0 8px 28px 0 #b6ac8b2f;
  transform: translateY(-8px) scale(1.02);
}
.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: 12px;
  padding: 20px;
  background: var(--testimonial-bg);
  border-radius: 18px;
  margin-bottom: 20px;
  box-shadow: 0 3px 16px 0 #b6ac8b22;
  border: 1px solid #E3F1F8;
  max-width: 560px;
  transition: box-shadow 0.16s, background 0.19s;
}
.testimonial-card p {
  font-style: italic;
  font-size: 1.13rem;
  color: #2e3d48;
}
.testimonial-card span {
  font-size: 0.98rem;
  color: #857236;
}
.testimonial-card:hover {
  background: #fffdee;
  box-shadow: 0 6px 32px 0 #b6ac8b19;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
  margin-bottom: 18px;
}
.features-grid > div {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 14px 0 #b6ac8b23;
  padding: 24px 18px 20px 18px;
  min-width: 200px;
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  transition: transform 0.24s, box-shadow 0.24s;
  margin-bottom: 16px;
}
.features-grid > div:hover {
  box-shadow: 0 8px 24px 0 #b6ac8b32;
  transform: translateY(-8px) scale(1.03);
}
.features-grid img {
  width: 36px;
  height: 36px;
  margin-bottom: 7px;
}

/* ====== CTA BUTTONS ====== */
.cta {
  display: inline-block;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 600;
  color: #274055;
  background: linear-gradient(90deg, #FDE7EA 60%, #E7F5EF 100%);
  border-radius: 20px;
  border: 1.5px solid #b6ac8b35;
  box-shadow: 0 2px 8px 0 #b6ac8b18;
  padding: 11px 30px;
  margin-top: 15px;
  margin-bottom: 15px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.21s, transform 0.12s;
}
.cta:hover, .cta:focus {
  background: linear-gradient(90deg, #FFF7DD 70%, #FDE7EA 100%);
  color: #857236;
  border-color: #85723628;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 26px 0 #b6ac8b29;
}

/* ====== LIST STYLES ====== */
ul {
  font-size: 1.04rem;
  padding-left: 22px;
  margin-bottom: 18px;
}
ul > li {
  margin-bottom: 8px;
  color: #364553;
}
ul > li img {
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
  height: 20px;
}

/* ====== FOOTER ====== */
footer {
  background: linear-gradient(90deg, #F3E8D5 65%, #E7F5EF 98%);
  width: 100%;
  margin-top: 62px;
  padding-top: 34px;
  padding-bottom: 24px;
  border-radius: 32px 32px 0 0;
  box-shadow: 0 -4px 24px 0 #b6ac8b2a;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
footer .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.97rem;
  margin-bottom: 4px;
}
footer nav a {
  color: #857236;
  font-weight: 500;
}
footer nav a:hover {
  color: #275464;
  text-decoration: underline;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: center;
}
.footer-contact img {
  width: 22px;
  height: 22px;
  vertical-align: middle;
  margin-right: 3px;
}
.footer-contact span {
  font-size: 0.96rem;
  color: #364553;
  margin-right: 12px;
}
.footer-credits {
  font-size: 0.92rem;
  color: #b6ac8b;
}
footer a img {
  margin-bottom: 6px;
}

/* ====== RESPONSIVE DESIGN ====== */
@media (max-width: 1024px) {
  .features-grid > div {
    flex: 1 1 45%;
    min-width: 180px;
  }
  .card {
    flex: 1 1 46%;
    min-width: 180px;
  }
}
@media (max-width: 768px) {
  .section {
    padding: 30px 8px;
    margin-bottom: 32px;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .features-grid, .content-grid, .card-container {
    flex-direction: column;
    gap: 14px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  header .container {
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .card, .features-grid > div {
    min-width: 100%;
    flex: 1 1 96%;
    padding: 18px 10px 14px 10px;
  }
  .testimonial-card {
    max-width: 100%;
    padding: 16px 8px;
  }
  .footer-contact {
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
  }
  footer .content-wrapper {
    gap: 13px;
  }
}
@media (max-width: 540px) {
  .container {
    padding-left: 3vw;
    padding-right: 3vw;
  }
  .hero .container {
    padding-top: 22px;
    padding-bottom: 22px;
  }
  .hero {
    min-height: inherit;
    border-radius: 0 0 24px 24px;
  }
}

/* ====== MICRO-INTERACTIONS ====== */
.card, .features-grid > div, .cta, .testimonial-card {
  transition: box-shadow 0.20s, transform 0.19s, background 0.13s, color 0.18s;
}

/* ====== COOKIE CONSENT BANNER ====== */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  background: #FDE7EAee;
  color: #274055;
  box-shadow: 0 -2px 20px 0 #b6ac8b27;
  z-index: 4000;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 18px 20px 18px;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  border-radius: 18px 18px 0 0;
  animation: cookieAppear 0.7s cubic-bezier(.76,0,.24,1);
}
@keyframes cookieAppear {
  0% { transform: translateY(60px); opacity: 0; }
  80% { transform: translateY(-9px); opacity: 1; }
  100% { transform: translateY(0); }
}
.cookie-consent-banner p {
  text-align: center;
  margin-bottom: 16px;
}
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 3px;
  justify-content: center;
}
.cookie-btn {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 18px;
  padding: 10px 22px;
  margin: 0 4px;
  cursor: pointer;
  background: #E3F1F8;
  color: #275464;
  box-shadow: 0 2px 8px 0 #b6ac8b10;
  transition: background 0.18s, color 0.18s;
}
.cookie-btn.accept {
  background: #E7F5EF;
  color: #274055;
}
.cookie-btn.accept:hover,.cookie-btn.accept:focus {
  background: #FFF7DD;
  color: #857236;
}
.cookie-btn.reject {
  background: #FDE7EA;
  color: #857236;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #FFF7DD;
  color: #857236;
}
.cookie-btn.settings {
  background: #F3E8D5;
  color: #275464;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #E3F1F8;
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: #00000044;
  z-index: 4100;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInCookieModal 0.3s ease;
}
@keyframes fadeInCookieModal {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal {
  background: #FCFAF7;
  color: #274055;
  border-radius: 24px;
  box-shadow: 0 6px 32px 0 #b6ac8b36;
  padding: 32px 20px 24px 20px;
  width: 98vw;
  max-width: 420px;
  animation: cookieScaleIn 0.3s cubic-bezier(.7,0,.24,1);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}
@keyframes cookieScaleIn {
  0% { transform: scale(0.85); opacity: 0; }
  80% { transform: scale(1.04); }
  100% { transform: scale(1); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.32rem;
  color: #275464;
  margin-bottom: 7px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 18px;
}
.cookie-cat {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 1.01rem;
}
.cookie-cat input[type="checkbox"] {
  accent-color: #B6AC8B;
  width: 22px; height: 22px;
  margin-right: 6px;
}
.cookie-cat span {
  color: #857236;
  font-weight: 500;
}
.cookie-cat.essential input {
  accent-color: #B6AC8B;
}
.cookie-cat.essential label {
  font-style: italic;
}
.cookie-modal-close {
  position: absolute;
  top: 15px; right: 13px;
  background: none;
  border: none;
  font-size: 1.55rem;
  color: #275464;
  cursor: pointer;
  padding: 3px 8px;
  border-radius: 12px;
  transition: background 0.19s;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  background: #E3F1F8;
}
.cookie-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 11px;
}

/* ====== GENERAL UTILITIES ====== */
::-webkit-scrollbar {
  width: 10px;
  background: #E7F5EF;
}
::-webkit-scrollbar-thumb {
  background: #B6AC8B45;
  border-radius: 9px;
}
::-webkit-scrollbar-thumb:hover {
  background: #B6AC8B7A;
}

::selection {
  background: #E3F1F8;
}

@media (max-width: 520px) {
  .cookie-modal {
    padding: 18px 8px 16px 8px;
    border-radius: 16px;
    max-width: 96vw;
  }
}
