/*-------------------------------------------------------
RESET & BASELINE
-------------------------------------------------------*/

html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background: #f4e8dd;
  color: #254259;
  min-height: 100vh;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #254259;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: #95c2a7;
}
ul, ol {
  padding-left: 24px;
}
button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  outline: none;
}

/*-------------------------------------------------------
COLOR CUSTOM PROPERTIES (Fallbacks included)
-------------------------------------------------------*/
:root {
  --color-primary: #254259;
  --color-secondary: #95c2a7;
  --color-accent: #f4e8dd;
  --color-gradient-start: #254259;
  --color-gradient-end: #95c2a7;
  --color-white: #fff;
  --color-grey-light: #f4e8dd;
  --color-grey-mid: #e5e5e5;
  --color-black: #24292f;
  --shadow: 0 8px 20px rgba(37,66,89,0.06);
  --transition: 0.26s cubic-bezier(.4,0,.2,1);
  --radius: 16px;
  --radius-btn: 28px;
}

/*-------------------------------------------------------
TYPOGRAPHY
-------------------------------------------------------*/
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #254259;
  line-height: 1.22;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1.125rem;
}
p, ul, ol {
  margin-bottom: 16px;
  font-size: 1rem;
}
@media (min-width: 700px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.25rem; }
  h3 { font-size: 1.6rem; }
}

/*-------------------------------------------------------
CONTAINERS & SECTIONS
-------------------------------------------------------*/
.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 16px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@media (min-width: 900px) {
  .content-wrapper {
    flex-direction: row;
    gap: 40px;
  }
}

/* Mandatory Flex Patterns */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow var(--transition), transform var(--transition);
  padding: 24px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.card:hover {
  box-shadow: 0 8px 26px rgba(37,66,89,0.13);
  transform: translateY(-2px) scale(1.012);
}
.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;
  padding: 20px;
  background: #f4e8dd;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  flex-direction: column;
  max-width: 500px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Provide larger gap to avoid overlapping */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: flex-start;
}
.feature-grid > div {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 20px; 
  flex: 1 1 260px;
  min-width: 220px;
  max-width: 320px;
}
@media (max-width: 700px) {
  .feature-grid {
    flex-direction: column;
    gap: 24px;
  }
  .feature-grid > div {
    max-width: unset;
    width: 100%;
  }
}

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

/*-------------------------------------------------------
HEADER & NAVIGATION
-------------------------------------------------------*/
header {
  background: linear-gradient(90deg, #254259 0%, #95c2a7 100%);
  box-shadow: 0 3px 12px rgba(37,66,89,0.06);
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  min-height: 70px;
}
header img {
  height: 48px;
  margin-right: 18px;
  width: auto;
}
.main-nav {
  display: none;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  margin-left: 16px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}
.main-nav a {
  color: #fff;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  position: relative;
  padding: 6px 8px;
  transition: color 0.2s;
}
.main-nav a:hover {
  color: #f4e8dd;
}
.cta-button {
  background: linear-gradient(90deg, #254259 50%, #95c2a7 100%);
  color: #fff;
  border-radius: var(--radius-btn);
  padding: 10px 34px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1.07rem;
  letter-spacing: 0.02em;
  margin-left: 20px;
  box-shadow: 0 4px 14px rgba(37,66,89,0.07);
  border: none;
  cursor: pointer;
  display: inline-block;
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition), background var(--transition);
  text-align: center;
  text-decoration: none;
}
.cta-button:hover, .cta-button:focus {
  background: linear-gradient(90deg, #95c2a7 0%, #254259 100%);
  box-shadow: 0 8px 20px rgba(37,66,89,0.14);
  transform: translateY(-2px) scale(1.03);
  color: #fff;
}
.mobile-menu-toggle {
  display: block;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #fff;
  margin-left: 26px;
  transition: color 0.25s;
  z-index: 1203;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  color: #95c2a7;
}
@media (min-width: 900px) {
  .main-nav {
    display: flex;
  }
  .mobile-menu-toggle {
    display: none;
  }
}

/*-------------------------------------------------------
MOBILE MENU
-------------------------------------------------------*/
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #254259;
  color: #fff;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  padding: 36px 32px 24px 32px;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 8px 28px rgba(37,66,89,0.19);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.1rem;
  align-self: flex-end;
  margin-bottom: 30px;
  cursor: pointer;
  transition: color var(--transition);
  z-index: 1210;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #95c2a7;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.2rem;
}
.mobile-nav a {
  color: #fff;
  padding: 12px 0;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
  font-weight: 500;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #95c2a7;
  color: #254259;
}
@media (min-width: 900px) {
  .mobile-menu {
    display: none;
  }
}

/* Overlay effect for body when mobile menu is open */
body.mobile-menu-open {
  overflow: hidden;
}

/*-------------------------------------------------------
SECTIONS, CARDS & FEATURES
-------------------------------------------------------*/
section {
  margin-bottom: 60px;
  padding: 40px 0;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Responsive text-image-section */
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

/* Visual Enhancements: Section backgrounds */
section:nth-child(even) {
  background: linear-gradient(90deg, #fff 0%, #f4e8dd 100%);
}
section:nth-child(odd) {
  background: linear-gradient(90deg, #f4e8dd 60%, #fff 100%);
}

/*-------------------------------------------------------
TESTIMONIALS
-------------------------------------------------------*/
.testimonial-card {
  background: #fff;
  color: #254259;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  flex: 1 1 320px;
  min-width: 230px;
  max-width: 480px;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 14px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.testimonial-card p {
  font-size: 1.10rem;
  margin-bottom: 8px;
  color: #254259;
}
.testimonial-card span {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #95c2a7;
  font-size: 1.01rem;
  font-weight: 500;
}
.testimonial-card:hover {
  box-shadow: 0 10px 32px rgba(37,66,89,0.12);
  transform: translateY(-2px) scale(1.01);
}

/*-------------------------------------------------------
FOOTER
-------------------------------------------------------*/
footer {
  background: linear-gradient(90deg, #254259 0%, #95c2a7 100%);
  color: #fff;
  padding: 40px 0 16px 0;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}
footer .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  letter-spacing: 0.03em;
  font-size: 1.01rem;
  transition: color .2s;
}
.footer-nav a:hover {
  color: #f4e8dd;
}
.footer-contact {
  margin-top: 6px;
  font-size: 0.97em;
}
.footer-contact img {
  margin-right: 7px;
  height: 21px;
  width: auto;
  vertical-align: middle;
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}

/*-------------------------------------------------------
MODALS & OVERLAYS
-------------------------------------------------------*/
.modal-backdrop {
  position: fixed;
  z-index: 1300;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(37,66,89,0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--transition);
  opacity: 1;
  pointer-events: auto;
}
.modal-backdrop[hidden], .modal[hidden] {
  display: none !important;
  opacity: 0 !important;
}
.modal {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 8px 48px rgba(37,66,89,0.18);
  padding: 32px 24px 24px 24px;
  max-width: 420px;
  width: 97vw;
  z-index: 1310;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: modal-in 0.25s cubic-bezier(.43,1.16,.65,1) forwards;
}
@keyframes modal-in {
  0% { transform: translateY(65px) scale(0.92); opacity:0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
.modal h2 {
  color: #254259;
  font-size: 1.35rem;
  margin-bottom: 8px;
}
.cookie-category {
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 14px;
}
.cookie-category label {
  font-size: 1.02rem;
  color: #254259;
  font-weight: 500;
  margin-left: 2px;
}
.cookie-category input[type="checkbox"] {
  accent-color: #95c2a7;
  width: 18px; height: 18px;
}

/*-------------------------------------------------------
BUTTONS
-------------------------------------------------------*/
button,
.button,
input[type="submit"],
input[type="button"] {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-btn);
  padding: 10px 28px;
  font-size: 1rem;
  background: linear-gradient(90deg, #254259 0%, #95c2a7 100%);
  color: #fff;
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition), color var(--transition), transform var(--transition);
  box-shadow: 0 2px 10px rgba(37,66,89,0.09);
  margin-top: 6px;
  text-align: center;
}
button:hover,
.button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
  background: linear-gradient(90deg, #95c2a7 0%, #254259 100%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(37,66,89,0.14);
  transform: translateY(-1px) scale(1.03);
}

/* Override cookie buttons individually */
.cookie-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 5px;
}
.cookie-btn-accept {
  background: linear-gradient(90deg, #95c2a7 0%, #254259 80%);
  color: #fff;
}
.cookie-btn-accept:hover {
  background: linear-gradient(90deg, #254259 0%, #95c2a7 100%);
  color: #fff;
}
.cookie-btn-reject {
  background: #fff;
  color: #254259;
  border: 1.5px solid #254259;
  transition: background var(--transition), color var(--transition);
}
.cookie-btn-reject:hover {
  background: #f4e8dd;
  color: #254259;
}
.cookie-btn-settings {
  background: #fff;
  color: #254259;
  border: 1.5px solid #95c2a7;
}
.cookie-btn-settings:hover {
  background: #95c2a7;;
  color: #fff;
  border-color: #254259;
}

/*-------------------------------------------------------
COOKIE CONSENT BANNER
-------------------------------------------------------*/
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  background: linear-gradient(90deg, #254259 0%, #95c2a7 100%);
  color: #fff;
  z-index: 2000;
  padding: 30px 20px 24px 20px;
  box-shadow: 0 -4px 40px rgba(37,66,89,0.13);
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: transform .33s cubic-bezier(.4,0,.2,1), opacity .22s;
  font-size: 1.02em;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  border-top-left-radius: 21px;
  border-top-right-radius: 21px;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(140%);
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 10px 16px 12px;
    font-size: 0.95em;
  }
}
.cookie-banner p {
  color: #fff;
  margin: 0 12px 0 0;
  flex: 1 1 auto;
  font-size: 1em;
}

/* Cookie Modal Buttons section */
.cookie-modal-close {
  background: none;
  color: #254259;
  border: none;
  font-size: 1.5rem;
  position: absolute;
  right: 18px;
  top: 14px;
  cursor: pointer;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #95c2a7;
}

/*-------------------------------------------------------
FORMS
-------------------------------------------------------*/
input, textarea, select {
  font-family: inherit;
  border: 1.5px solid #95c2a7;
  border-radius: 7px;
  padding: 11px 12px;
  background: #fff;
  color: #254259;
  line-height: 1.4;
  margin-bottom: 12px;
  width: 100%;
  font-size: 1rem;
  transition: border-color var(--transition);
}
input:focus, textarea:focus, select:focus {
  border-color: #254259;
  outline: 2px solid #25425933;
  background: #f4e8dd;
}
label {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  margin-bottom: 6px;
  color: #254259;
  font-size: 1rem;
}

/*-------------------------------------------------------
MISC & HELPER CLASSES
-------------------------------------------------------*/
::-webkit-scrollbar {
  width: 8px;
  background: #f4e8dd;
}
::-webkit-scrollbar-thumb {
  background: #95c2a7;
  border-radius: 8px;
}
.gap-20 {
  gap: 20px !important;
}
.gap-24 {
  gap: 24px !important;
}
.align-center {
  align-items: center !important;
}
.align-start {
  align-items: flex-start !important;
}

/*-------------------------------------------------------
RESPONSIVENESS & FLEX DIRECTION SWITCHES
-------------------------------------------------------*/
@media (max-width: 900px) {
  .container {
    padding: 0 6px;
  }
  .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .feature-grid {
    flex-direction: column;
    gap: 22px;
  }
}
@media (max-width: 768px) {
  .container {
    max-width: 100vw;
    padding: 0 4px;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.3rem; }
  .testimonial-card {
    max-width: none;
    min-width: 0;
  }
}
@media (max-width: 550px) {
  section, .section {
    padding: 26px 2px;
  }
  .footer-contact {
    font-size: 0.90em;
  }
}

/*--------------------------
VISUAL HIERARCHY
---------------------------*/
.feature-grid > div h3,
.card h3 {
  color: #254259;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.18rem;
}

/*--------------------------
MICRO-INTERACTIONS
---------------------------*/
a, .cta-button, button {
  transition: color .17s, background .18s, box-shadow .21s, transform .23s;
}
.card,
.feature-grid > div,
.testimonial-card {
  transition: box-shadow .26s, transform .18s;
}
.card:hover,
.feature-grid > div:hover {
  box-shadow: 0 14px 32px rgba(37,66,89,0.14);
  transform: translateY(-2px) scale(1.019);
}

/*--------------------------
UTILITY
---------------------------*/
.nopad {
  padding: 0!important;
}
.nomargin {
  margin: 0!important;
}

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