/* -----------------------------
   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,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,main,menu,nav,output,ruby,section,summary,time,mark,audio,video{
  margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline;
}
html{-webkit-box-sizing:border-box;box-sizing:border-box;scroll-behavior:smooth;}
*,*:before,*:after{-webkit-box-sizing:inherit;box-sizing:inherit;}
body{line-height:1;background:#F7F9FB;color:#22334A;}
article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section{
  display: block;
}
ol,ul{list-style:none;}
a{text-decoration:none;color:inherit;}
img{max-width:100%;display:block;border:0;}
table{border-collapse:collapse;border-spacing:0;}
input,button,select,textarea{font:inherit;}
button{border:none;background:none;cursor:pointer;}

/* -----------------------------
   FONT IMPORTS
----------------------------- */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

:root {
  --color-primary: #22334A;
  --color-secondary: #F7F9FB;
  --color-accent: #3DB8A3;
  --color-light: #FFFFFF;
  --color-dark: #22334A;
  --color-bg-card: #fff;
  --color-bg-section: #F7F9FB;
  --shadow-1: 0 2px 12px rgba(34,51,74,0.08);
  --radius: 16px;
}

/* -----------------------------
   GLOBAL TYPOGRAPHY
----------------------------- */
body {
  font-family: 'Roboto', Arial, sans-serif;
  background: var(--color-secondary);
  color: var(--color-primary);
  font-size: 16px;
  font-weight: 400;
  min-height: 100vh;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--color-primary);
  margin-bottom: 16px;
  line-height: 1.15;
}
h1 {font-size: 2.75rem;margin-bottom: 20px;}
h2 {font-size: 2rem; margin-bottom: 18px;}
h3 {font-size: 1.25rem;margin-bottom: 14px;}
h4, h5, h6 {font-size:1.1rem; margin-bottom:12px;}
p, ul, li, ol, blockquote {font-size:1rem;line-height:1.7;color:var(--color-primary);margin-bottom:12px;}
strong {font-weight:700;}
blockquote {
  border-left: 5px solid var(--color-accent);
  padding-left: 16px;
  color: var(--color-primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.125rem;
  font-style: italic;
  background: var(--color-secondary);
  margin-bottom: 8px;
}

/* Typography scale for responsiveness */
@media (max-width: 768px) {
  h1 {font-size:2rem;}
  h2 {font-size:1.3rem;}
  h3 {font-size:1.05rem;}
  p,li,ol,blockquote {font-size:1rem;}
}

/* -----------------------------
   CONTAINER & WRAPPING
----------------------------- */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
}

/* -----------------------------
   HEADER/NAVIGATION
----------------------------- */
header {
  background: var(--color-light);
  box-shadow: 0 2px 6px rgba(34,51,74,0.06);
  padding: 0;
}
header .container {
  min-height: 80px;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
header a img {
  height: 48px;
}
nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
}
nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: bold;
  letter-spacing: 0.01em;
  color: var(--color-primary);
  transition: color 0.18s cubic-bezier(.38,.39,.16,.91);
  font-size: 1.05rem;
  padding: 6px 0;
  position: relative;
}
nav a.cta {
  background: var(--color-accent);
  color: #fff;
  border-radius: var(--radius);
  padding: 10px 28px;
  font-size: 1.03rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  box-shadow: 0 2px 14px rgba(61,184,163,0.10);
  transition: background .18s cubic-bezier(.38,.39,.16,.91),
    box-shadow .18s cubic-bezier(.38,.39,.16,.91), transform .12s;
}
nav a:hover,nav a:focus {
  color: var(--color-accent);
}
nav a.cta:hover,nav a.cta:focus {
  background: #27a08d;
  color: #fff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 4px 20px rgba(61,184,163,0.16);
}

.mobile-menu-toggle {
  display: none;
  background: var(--color-accent);
  color: #fff;
  font-size: 2rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  transition: background 0.16s;
  z-index: 1200;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #27a08d;
}

/* Hide desktop menu and show burger on mobile */
@media (max-width: 950px) {
  nav {display:none;}
  .mobile-menu-toggle {display:flex;}
}
@media (max-width: 700px) {
  header .container {min-height:60px;}
  header a img {height: 40px;}
}

/* -----------------------------
   MOBILE MENU
----------------------------- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--color-primary);
  color: #fff;
  z-index: 1900;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.51,.13,.21,.82);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.active {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.2rem;
  margin: 26px 26px 0 0;
  background: none;
  color: var(--color-accent);
  cursor: pointer;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.14s;
  z-index: 1800;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {background: rgba(255,255,255,0.08);}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  padding: 60px 32px 0 32px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.03em;
  padding: 11px 0;
  color: #fff;
  border-bottom: 2px solid transparent;
  transition: color 0.14s, border 0.18s, background 0.2s;
  border-radius:8px;
  min-width: 180px;
  display: block;
}
.mobile-nav a:active, .mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-accent);
  background: rgba(61,184,163,0.10);
  border-bottom: 2px solid var(--color-accent);
}

/* Make sure mobile menu covers everything */
.mobile-menu {box-shadow: 0 0 24px rgba(34,51,74,0.12);}

@media (min-width: 951px) {
  .mobile-menu {display:none !important;}
  .mobile-menu-toggle {display:none !important;}
}

/* -----------------------------
   SECTIONS & MANDATORY PADDING
----------------------------- */
section {
  width: 100%;
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-bg-section);
}
section:nth-child(odd) {
  background: #fff;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* -----------------------------
   FLEX CONTAINER PATTERNS
----------------------------- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-bg-card);
  box-shadow: var(--shadow-1);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  margin-bottom: 20px;
  min-width: 240px;
  flex: 1 1 260px;
  transition: box-shadow 0.19s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 32px rgba(61,184,163,0.13);
}
.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: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(34,51,74,0.10);
  border-radius: 16px;
  margin-bottom: 20px;
  min-width: 220px;
  max-width: 600px;
  width: 100%;
  transition: box-shadow .19s, transform .13s;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 0 28px rgba(34,51,74,.13);
  transform: translateY(-2px) scale(1.016);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  padding: 32px 20px;
  border-radius: 12px;
  box-shadow: var(--shadow-1);
  min-width: 200px;
  flex: 1 1 240px;
}

/* Ensure at least 20px between cards */
.card, .testimonial-card, .feature-item {
  margin-bottom: 20px;
}

@media (max-width: 900px) {
  .content-grid,.card-container {
    flex-direction: column;
    gap: 20px;
  }
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
  }
  section {
    padding: 30px 8px;
    margin-bottom: 38px;
  }
  .card,.testimonial-card,.feature-item {
    min-width: 0;
    max-width: 100%;
  }
}

/* -----------------------------
   BUTTON & CALL TO ACTIONS
----------------------------- */
.cta, .content-wrapper a.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: #fff;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  padding: 12px 36px;
  border-radius: 30px;
  margin-top: 0.8em;
  min-width: 148px;
  min-height: 48px;
  box-shadow: 0 2px 16px rgba(61,184,163,0.12);
  transition: background 0.18s, box-shadow 0.19s, transform 0.13s;
  cursor: pointer;
  outline: none;
}
.cta:hover, .cta:focus-visible {
  background: #27a08d;
  color: #fff;
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 4px 28px rgba(61,184,163,.16);
}

/* -----------------------------
   LISTS & FEATURE LISTS
----------------------------- */
ul {
  padding-left: 24px;
  margin-bottom: 16px;
}
ul li {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}
ul li img {
  height: 24px;
  width: 24px;
  margin-right: 8px;
}
ol {
  padding-left: 16px;
  margin-bottom: 16px;
}
ol li {
  margin-bottom: 10px;
  font-size: 1rem;
}

/* -----------------------------
   HERO/INTRO
----------------------------- */
section:first-child {
  background: var(--color-primary);
  color: #fff;
  padding-top: 70px;
  padding-bottom: 60px;
  min-height: 340px;
}
section:first-child .cta {
  margin-top: 26px;
}
section:first-child h1, section:first-child p, section:first-child a{
  color: #fff;
}

/* -----------------------------
   TEXT SECTIONS
----------------------------- */
.text-section {
  margin-bottom: 20px;
  font-size: 1rem;
}
@media (min-width: 901px) {
  .text-image-section .text-section {
    flex: 1 1 300px;
  }
}

/* -----------------------------
   FOOTER
----------------------------- */
footer {
  background: var(--color-primary);
  color: #fff;
  padding: 0;
}
footer .container {
  flex-direction: row;
  gap: 44px;
  align-items: flex-start;
  min-height: 120px;
  justify-content: space-between;
  padding: 44px 20px 22px 20px;
}
footer nav {
  flex-direction: column;
  gap: 12px;
}
footer nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  text-decoration: underline;
  font-weight: 600;
  margin-bottom: 2px;
  transition: color 0.14s;
}
footer nav a:hover,footer nav a:focus { color: var(--color-accent); }
.contact-info {
  font-size: 0.99rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 12px;
}
.contact-info img {
  vertical-align: middle;
  height: 18px;
  width: 18px;
  margin-right: 8px;
}
footer p {
  color: #fff;
  font-size: .98rem;
  margin-top:20px;
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 30px 8px 16px 8px;
  }
}

/* -----------------------------
   BLOG ARTICLE CARDS
----------------------------- */
article {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(34,51,74,0.06);
  padding: 26px 20px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
article:hover, article:focus-within {
  box-shadow: 0 6px 22px rgba(34,51,74,0.13);
}
article h2 {
  color: var(--color-accent);
  font-size: 1.32rem;
  margin-bottom: 0.44em;
}

/* -----------------------------
   SPACINGS FOR ALL CARDS
----------------------------- */
.card, .testimonial-card, .feature-item, .article {
  margin-bottom: 20px;
  margin-right: 0;
}

/* -----------------------------
   FORM FIELDS (if needed)
----------------------------- */
input, textarea, select {
  font-family: 'Roboto', Arial, sans-serif;
  border: 2px solid #e2e6ea;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 1rem;
  margin-bottom: 18px;
  outline: none;
  transition: border 0.15s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-accent);
}

/* -----------------------------
   ACCESSIBLE FOCUS STATES
----------------------------- */
a:focus-visible, button:focus-visible, .cta:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
  z-index: 10;
}

/* -----------------------------
   COOKIE CONSENT BANNER
----------------------------- */
.cookie-banner {
  position: fixed;
  left:0; right:0; bottom:0;
  background: #fff;
  color: var(--color-primary);
  box-shadow: 0 -2px 28px rgba(34,51,74,.12);
  z-index: 2100;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 32px;
  font-size: 1rem;
  min-height: 80px;
  transition: transform .32s cubic-bezier(.61,-0.02,.15,1.47);
}
.cookie-banner.hidden {
  transform: translateY(180%);
  opacity: 0;
}
.cookie-banner .cookie-btns {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items:center;
}
.cookie-btn {
  padding: 9px 20px;
  font-family:'Montserrat', Arial, sans-serif;
  font-weight: bold;
  font-size: 1rem;
  border-radius: 24px;
  border: none;
  cursor: pointer;
  transition: background 0.13s, color 0.13s;
  margin-right: 0;
  box-shadow: 0 1px 6px rgba(34,51,74,0.09);
}
.cookie-btn.accept {
  background: var(--color-accent);
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus{ background: #27a08d; color: #fff; }
.cookie-btn.reject {
  background: #e4e7e9;
  color: var(--color-primary);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus { background: #dadbdd; color: var(--color-accent); }
.cookie-btn.settings {
  background: #fff;
  color: var(--color-primary);
  border: 2px solid var(--color-accent);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus { background: var(--color-secondary); color: var(--color-accent); }

@media (max-width:600px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; padding: 18px 11px; gap:12px; }
  .cookie-banner .cookie-btns { gap:10px;}
}

/* -----------------------------
   COOKIE PREFERENCES MODAL
----------------------------- */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(34,51,74,0.50);
  z-index: 2200;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.22s;
}
.cookie-modal.active {
  pointer-events: auto;
  opacity: 1;
}
.cookie-modal-dialog {
  background: #fff;
  color: var(--color-primary);
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(34,51,74,0.13);
  padding: 42px 36px 34px 36px;
  min-width: 320px;
  max-width: 96vw;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  position: relative;
}
.cookie-modal-dialog h3 {
  font-size: 1.2rem;
  margin-bottom: 16px;
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--color-accent);
}
.cookie-modal-close {
  position: absolute;
  right: 18px;
  top: 18px;
  background: none;
  border: none;
  font-size: 1.85rem;
  color: var(--color-accent);
  cursor: pointer;
  transition: background 0.12s;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex; align-items: center; justify-content: center;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: rgba(61,184,163,.13);
}
.cookie-options {
  display: flex; flex-direction: column; gap: 13px; width:100%;
}
.cookie-option {
  background: #f3f7fa;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex; align-items: center; gap: 16px;
  font-size: 1rem;
}
.cookie-option label {
  font-weight: 700;
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-option input[type="checkbox"] {
  accent-color: var(--color-accent);
  width: 22px; height: 22px;
}
.cookie-option input[disabled] {
  opacity: 0.73;
  cursor: not-allowed;
}

.cookie-modal-actions {
  display: flex; gap: 18px; margin-top: 20px;
}
.cookie-modal-actions .cookie-btn {
  min-width: 112px;
}

@media (max-width:600px) {
  .cookie-modal-dialog { padding: 22px 8px 18px 8px; min-width:0; }
}

/* -----------------------------
   MICRO-INTERACTIONS
----------------------------- */
.card, .testimonial-card, .cta, .feature-item, article,
 .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal-dialog{
  transition:
    box-shadow .17s cubic-bezier(.41,.71,.22,.87),
    background .15s,
    transform .13s cubic-bezier(.41,.71,.22,.87);
}

@media (hover: hover) {
  .card:hover, .feature-item:hover, article:hover {
    box-shadow:0 8px 32px rgba(61,184,163,0.13);
    transform:translateY(-2px) scale(1.014);
  }
}

/* -----------------------------
   GEOMETRIC ELEMENTS (DECORATION)
----------------------------- */
/* (Use only with ::before/::after; for content, NOT layout so allowed) */
.card::before, .testimonial-card::before, .feature-item::before {
  content: '';
  display: block;
  width: 46px; height: 5px;
  background: var(--color-accent);
  border-radius: 99px;
  margin-bottom: 12px;
  transition: background .16s;
  opacity:0.8;
}
.card:hover::before, .feature-item:hover::before {
  background: #27a08d;
}
.testimonial-card::before { opacity: 0.6; width: 30px; }

/* Hide decorative bar for hero section cards or where not needed */
section:first-child .card::before, section:first-child .testimonial-card::before { display: none; }


/* -----------------------------
   RESPONSIVE TWEAKS
----------------------------- */
@media (max-width: 600px) {
  h1 {font-size: 1.45rem;}
  h2, h3 {font-size: 1.09rem;}
  .content-wrapper, .container {padding: 0 5px;}
  section, .section{padding:26px 0;}
  .testimonial-card,.card{padding:18px 10px;}
}

/* Prevent overlapping - margin & gap enforcement */
.card:not(:last-child), .testimonial-card:not(:last-child), .feature-item:not(:last-child) {
  margin-bottom:20px;
}

/* Hide scroll when modal/mobile menu is open on body */
body.menu-open,body.cookie-modal-open {
  overflow: hidden !important;
}

/* Utility class (optional for JS integration) */
.hide {display:none!important;}


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