/* RESET & BASELINE --------------------------------------------------- */
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: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

*, *:before, *:after {
  box-sizing: inherit;
}

body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  background: #FDF6ED;
  color: #2D4959;
  min-height: 100vh;
  line-height: 1.6;
  /* smooth font rendering */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:root {
  --primary: #2D4959;
  --secondary: #8AC0A0;
  --accent: #FDF6ED;
  --geometric-card: #fff;
  --border-radius: 18px;
  --box-shadow: 0 4px 28px 0 rgba(45,73,89,0.08), 0 1.5px 5px 0 rgba(45,73,89,0.03);
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

ul, ol {
  margin-left: 1.1rem;
  margin-bottom: 1.2em;
}

ul ul, ol ol, ul ol, ol ul {
  margin-bottom: 0;
  margin-top: 0.18em;
}

li {
  margin-bottom: 0.4em;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color .22s cubic-bezier(.45,0,.55,1);
}
a:hover, a:focus {
  color: var(--secondary);
  outline: none;
}

/* TYPOGRAPHY --------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: 0.5px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.7em;
  line-height: 1.15;
}

h1 {
  font-size: 2.85rem;
  margin-bottom: 0.8em;
}
h2 {
  font-size: 2rem;
  margin-bottom: 0.7em;
}
h3 {
  font-size: 1.4rem;
  margin-bottom: 0.3em;
}
h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25em;
}

p, li, ul, ol {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  color: var(--primary);
}

strong {
  font-weight: 700;
}

/* LAYOUT STRUCTURE -------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
}

.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--geometric-card);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 32px 26px;
  min-width: 260px;
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  gap: 0.8em;
  border: 2px solid #E7E7EA;
  transition: box-shadow .25s, border-color .20s;
}
.card:hover, .card:focus {
  box-shadow: 0 8px 32px 0 rgba(45,73,89,0.13), 0 2px 6px 0 rgba(45,73,89,0.08);
  border-color: var(--secondary);
}

.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;
  background: #FFFFFF;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  margin-bottom: 24px;
  border-left: 6px solid var(--secondary);
}

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

.text-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* BUTTONS AND CTA --------------------------------------------------- */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 32px;
  background: var(--secondary);
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.18rem;
  border-radius: 28px;
  border: none;
  cursor: pointer;
  box-shadow: 0 1px 5px rgba(45,73,89,0.10);
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: box-shadow .21s, background .18s, color .16s;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 10px rgba(45,73,89,0.19);
}

button,
input[type=button],
input[type=submit] {
  font-family: var(--font-display);
  font-size: 1rem;
  border-radius: 24px;
  border: none;
  background: var(--secondary);
  color: var(--primary);
  cursor: pointer;
  padding: 11px 20px;
  transition: background .18s, color .13s;
}
button:hover, button:focus,
input[type=button]:hover, input[type=submit]:hover {
  background: var(--primary);
  color: #fff;
}

/* NAVIGATION -------------------------------------------------------- */
header {
  background: #fff;
  border-bottom: 2.5px solid var(--secondary);
  position: relative;
  z-index: 1000;
}

.main-nav {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 26px;
  padding: 18px 0;
}

.main-nav img {
  height: 36px;
  margin-right: 16px;
  border-radius: 7px;
}

.main-nav a {
  font-family: var(--font-display);
  color: var(--primary);
  letter-spacing: 0.25px;
  font-weight: 600;
  padding: 4px 0 4px 0;
  border-bottom: 2px solid transparent;
  transition: color .18s, border-bottom .18s;
  font-size: 1rem;
}
.main-nav a.cta-btn {
  margin-left: auto;
  background: var(--secondary);
  border-radius: 26px;
  color: var(--primary);
  padding: 8px 18px;
  font-size: 1.05rem;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--secondary);
  border-bottom: 2px solid var(--secondary);
}
.main-nav a.cta-btn:hover, .main-nav a.cta-btn:focus {
  background: var(--primary);
  color: #fff;
  border-bottom: 2px solid var(--primary);
}

/* HAMBURGER MENU ---------------------------------------------------- */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.45rem;
  color: var(--primary);
  position: absolute;
  top: 14px;
  right: 22px;
  z-index: 302;
  padding: 3px 15px;
  cursor: pointer;
  line-height: 1;
  border-radius: 7px;
  transition: background .13s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #E7E7EA;
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(45,73,89,0.97);
  z-index: 4000;
  transform: translateX(100vw);
  transition: transform 0.35s cubic-bezier(.64,.08,.26,.98);
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 20px 33px 13px 0;
  background: none;
  color: #fff;
  border: none;
  font-size: 2.9rem;
  cursor: pointer;
  z-index: 4100;
  border-radius: 5px;
  padding: 3px 13px 3px 10px;
  transition: background .15s, color .15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--secondary);
  color: var(--primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  margin: 0 38px;
  margin-top: 50px;
}
.mobile-nav a {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border-radius: 8px;
  padding: 7px 0 7px 8px;
  transition: background 0.17s, color 0.12s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: var(--secondary);
  color: var(--primary);
}

/* RESPONSIVE -------------------------------------------------------- */
@media (max-width: 1140px) {
  .container {
    max-width: 97vw;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 18px;
  }
  h1 { font-size: 2.11rem; }
  h2 { font-size: 1.33rem; }
}
@media (max-width: 768px) {
  .container {
    max-width: 100vw;
    padding-left: 10px; padding-right: 10px;
  }
  h1 { font-size: 1.38rem; }
  h2 { font-size: 1.01rem; }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .footer-section {
    min-width: unset;
    flex: 1 1 100%;
    margin-bottom: 22px;
    align-items: flex-start;
  }
  .content-wrapper, .section {
    padding: 23px 7px;
  }
}
@media (max-width: 576px) {
  .card {
    padding: 21px 10px;
  }
  .testimonial-card {
    padding: 13px 7px;
  }
}

/* FLEX Directions for Stacked Layouts on Mobile (Required) */
@media (max-width: 768px) {
  .text-image-section,
  .content-grid {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
}

/* FOOTER ------------------------------------------------------------ */
footer {
  background: #fff;
  border-top: 2.5px solid var(--secondary);
  width: 100%;
  font-size: 1rem;
  margin-top: 44px;
}
.footer-section {
  display: flex;
  flex-direction: column;
  gap: 13px;
  min-width: 225px;
  flex: 1 1 225px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-section h3 {
  font-size: 1.01rem;
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 0.5em;
  margin-top: 8px;
}
footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  margin-bottom: 12px;
}
footer li {
  margin-bottom: 10px;
}
footer a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.19s;
}
footer a:hover, footer a:focus {
  color: var(--secondary);
  text-decoration: underline;
}

footer img {
  width: 44px;
  height: 44px;
  border-radius: 11px;
}

@media (max-width: 950px) {
  footer .content-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

/* CARD / FEATURE-LISTS & ICONS -------------------------------------- */
section ul {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
section li {
  display: flex;
  align-items: center;
  gap: 13px;
  background: none;
  font-size: 1.05rem;
  font-family: var(--font-body);
}
section li img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  margin-right: 5px;
  background: var(--accent);
  border-radius: 8px;
  box-shadow: 0 1px 6px #EAEEF1;
  padding: 3px;
}

/* TESTIMONIALS ------------------------------------------------------ */
.testimonial-card {
  background: #fff;
  color: #141E28;
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  box-shadow: var(--box-shadow);
  border-left: 6px solid var(--secondary);
  margin-bottom: 20px;
  transition: transform 0.18s, box-shadow .19s;
}
.testimonial-card p {
  font-size: 1.07rem;
  color: #1A273E;
  margin-bottom: 0.32em;
}
.testimonial-card span {
  font-size: 1rem;
  color: var(--primary);
  opacity: .9;
}
.testimonial-card:hover {
  transform: scale(1.024) translateY(-2px);
  box-shadow: 0 7px 24px 0 rgba(45,73,89,0.19);
}
.testimonial-card img {
  height: 23px;
  width: 23px;
  vertical-align: middle;
}

/* MICRO-INTERACTIONS & HOVER ---------------------------------------- */
a, .cta-btn, button {
  transition: box-shadow .18s, background .14s, color .16s, border .16s;
}

.card, .testimonial-card, .footer-section {
  transition: box-shadow .23s, border-color .17s, transform .18s;
}

.card:active, .testimonial-card:active {
  transform: scale(0.98);
}

/* SECTIONS ---------------------------------------------------------- */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  width: 100%;
}

/* HIERARCHY SPACING ------------------------------------------------- */
.section > * + * {
  margin-top: 30px;
}

.card-container > * {
  flex-basis: 340px;
  min-width: 260px;
}

/* GEOMETRIC SHAPES (DECORATIVE) ------------------------------------- */
.section {
  position: relative;
}
.section::after {
  content: '';
  display: block;
  position: absolute;
  right: 35px;
  top: 45px;
  width: 42px;
  height: 42px;
  background: var(--secondary);
  opacity: 0.07;
  clip-path: polygon(0 0, 100% 0, 0 100%);
  pointer-events: none;
  border-radius: 9px;
  z-index: 1;
}
.section:nth-child(even)::after {
  left: 24px; right: auto; top: 28px; clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

/* COOKIE CONSENT BANNER --------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0; bottom: 0; width: 100vw;
  background: #fff;
  border-top: 3px solid var(--secondary);
  box-shadow: 0 -1px 14px 0 rgba(45,73,89,0.09), 0 6px 28px 0 rgba(45,73,89,0.07);
  z-index: 6000;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 22px 30px;
  gap: 26px;
  font-family: var(--font-body);
  transition: transform 0.34s cubic-bezier(.68,.22,.34,.87), opacity .22s;
}
.cookie-banner.hidden {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner-message {
  flex: 10 1 330px;
  color: var(--primary);
  font-size: 1rem;
}
.cookie-banner-btns {
  display: flex;
  gap: 22px;
}
.cookie-btn {
  min-width: 124px;
  padding: 10px 18px;
  border-radius: 22px;
  border: 1.5px solid var(--secondary);
  background: var(--secondary);
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background .15s, border .13s, color .16s;
}
.cookie-btn.accept {
  background: var(--secondary);
  color: var(--primary);
  border: 1.5px solid var(--secondary);
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: var(--primary);
  color: #fff;
}
.cookie-btn.reject {
  background: #fff;
  color: #CD2C2C;
  border: 1.5px solid #CD2C2C;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #CD2C2C;
  color: #fff;
}
.cookie-btn.settings {
  background: var(--primary);
  color: #fff;
  border: 1.5px solid var(--primary);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #fff;
  color: var(--primary);
}

@media (max-width: 840px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 14px;
    font-size: 0.97rem;
  }
}

@media (max-width: 420px) {
  .cookie-banner-btns {
    flex-direction: column;
    gap: 12px;
  }
}

/* COOKIE PREFERENCES MODAL ------------------------------------------ */
.cookie-modal {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(45,73,89,0.64);
  z-index: 6500;
  align-items: center;
  justify-content: center;
}
.cookie-modal.open {
  display: flex;
  animation: fadeIn 0.32s linear;
}
@keyframes fadeIn {
  0% { opacity:0; }
  100% { opacity: 1; }
}

.cookie-modal-content {
  background: #fff;
  border-radius: 18px;
  padding: 36px 32px 22px 32px;
  min-width: 320px;
  max-width: 95vw;
  box-shadow: 0 14px 46px rgba(45,73,89,0.11), 0 2px 6px 0 rgba(45,73,89,0.04);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.cookie-modal-content h3 {
  font-size: 1.18rem;
  font-family: var(--font-display);
  margin-bottom: 8px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
  padding: 12px 0;
}
.cookie-category label {
  font-weight: 500;
  color: var(--primary);
  font-size: 1.03rem;
}
.cookie-category input[type=checkbox] {
  accent-color: var(--secondary);
  width: 18px; height: 18px;
}
.cookie-category.essential label {
  opacity: 0.6;
}
.cookie-modal-actions {
  display: flex;
  gap: 18px;
  justify-content: flex-end;
}
.cookie-modal-close {
  position: absolute;
  top: 16px; right: 14px;
  background: none;
  border: none;
  font-size: 1.43rem;
  color: var(--primary);
  cursor: pointer;
  padding: 4px 9px;
  border-radius: 7px;
  transition: background .14s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--secondary);
  color: var(--primary);
}

@media (max-width: 500px) {
  .cookie-modal-content {
    padding: 17px 8px 16px 8px;
    min-width: unset;
  }
}

/* FORM ELEMENTS ----------------------------------------------------- */
input, textarea, select {
  border: 1.5px solid #C5D5DE;
  border-radius: 8px;
  padding: 10px 13px;
  font-size: 1rem;
  font-family: var(--font-body);
  background: #fff;
  color: var(--primary);
  margin-bottom: 13px;
  width: 100%;
  outline: none;
  transition: border-color .17s, background .12s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--secondary);
  background: #F3FAF8;
}

/* ACCESSIBILITY ----------------------------------------------------- */
:focus {
  outline: 2.5px solid var(--secondary) !important;
  outline-offset: 2px;
}

/* GEOMETRIC/STRUCTURED FONT HEADINGS ------------------------------- */
h1, h2, h3, h4 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  text-transform: none;
  letter-spacing: 0.5px;
}
h1 {
  letter-spacing: 2px;
}
h2, h3 {
  letter-spacing: 1.2px;
}

/* GEOMETRIC DECOR: UL BULLETS/NUMBERS ------------------------------ */
ul li::before {
  content: '';
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  margin-right: 10px;
  background: var(--secondary);
  border-radius: 2px 11px 2px 11px;
  vertical-align: middle;
}
ul li img:first-child {
  margin-right: 0;
}
ul li img ~ * {
  margin-left: 3px;
}
ul li:has(img) {
  padding-left: 0;
}
ul li:has(img)::before {
  display: none;
}

/* VISUAL HIERARCHY (SIZE/GAPS) ------------------------------------- */
.section,
.content-wrapper,
.card-container,
.content-grid,
.text-image-section,
.testimonial-card,
.feature-item {
  gap: 20px;
}

/* ENSURE ALL CONTENT SECTION CARDS AND BLOCKS ARE NOT OVERLAPPING -- */
.card,
.testimonial-card,
.section,
.content-wrapper {
  margin-bottom: 20px;
}

/* MISC GEOMETRIC STRUCTURE ----------------------------------------- */
hr {
  border: none;
  border-top: 2.5px solid var(--secondary);
  margin: 22px 0;
}

/* END -------------------------------------------------------------- */
