/* 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 {
  height: 100%;
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  background: #F7F4F0;
  color: #223146;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  line-height: 1.6;
  font-size: 16px;
  letter-spacing: 0.01em;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #223146;
  text-decoration: none;
  transition: color 0.18s cubic-bezier(.5,.3,0,1);
}
a:focus,
a:hover {
  outline: none;
  color: #D1B77B;
}
ul, ol {
  list-style: none;
}
strong { font-weight: 700; }

/* Brand Fonts */
h1, h2, h3, h4, h5 {
  font-family: 'Merriweather', Georgia, 'Times New Roman', Times, serif;
  font-weight: 800;
  color: #223146;
  letter-spacing: -1px;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  line-height: 1.15;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
  line-height: 1.17;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

p, li {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #223146;
}
p {
  margin-bottom: 14px;
}

/* Vibrant, Energetic Palette Extension */
:root {
  --primary: #223146;
  --secondary: #D1B77B;
  --accent: #F7F4F0;
  --vibrant1: #2DE1FC;
  --vibrant2: #FF715B;
  --vibrant3: #FFD166;
  --vibrant4: #2EC4B6;
  --vibrant5: #ff3576;
}

/* Container and Layout */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.feature-grid, .card-container, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 5px 36px -8px rgba(34,49,70,0.09);
  margin-bottom: 20px;
  padding: 30px 22px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.text-image-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 3px 20px -4px rgba(0,0,0,0.08);
  margin-bottom: 24px;
  min-width: 230px;
  max-width: 680px;
}
.testimonial-card p {
  font-style: italic;
  font-size: 1.1rem;
  color: #223146;
  margin-bottom: 8px;
}
.testimonial-author {
  font-weight: 700;
  color: var(--secondary);
  font-size: 1rem;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #F7F4F0;
  border-radius: 16px;
  box-shadow: 0 2px 14px -3px rgba(34,49,70,0.06);
  padding: 24px 18px;
  min-width: 210px;
  flex: 1 1 240px;
  transition: transform 0.18s cubic-bezier(.5,.3,0,1), box-shadow 0.18s cubic-bezier(.5,.3,0,1);
}
.feature-item:hover {
  transform: translateY(-4px) scale(1.025);
  box-shadow: 0 8px 32px -6px rgba(34,49,70,0.14);
}

/* Main Navigation */
.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  padding: 18px 0;
  background: #223146;
  box-shadow: 0 2px 16px -4px rgba(34,49,70,0.14);
  z-index: 10;
  position: relative;
}
.main-nav a {
  color: #fff;
  font-weight: 600;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  transition: color 0.2s cubic-bezier(.5,.3,0,1), background 0.2s cubic-bezier(.5,.3,0,1);
  padding: 5px 10px;
  border-radius: 8px;
}
.main-nav a:hover,
.main-nav a:focus {
  color: var(--secondary);
  background: rgba(255,255,255,0.04);
}
.main-nav .cta-primary {
  background: var(--vibrant2);
  color: #fff;
  font-weight: 800;
  border: none;
  padding: 9px 24px;
  margin-left: 18px;
  border-radius: 8px;
  box-shadow: 0 2px 16px -5px var(--vibrant2, #FF715B);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: 1rem;
  transition: box-shadow 0.21s cubic-bezier(.5,.3,0,1), background 0.21s cubic-bezier(.5,.3,0,1), transform 0.13s;
  display: inline-block;
}
.main-nav .cta-primary:hover,
.main-nav .cta-primary:focus {
  background: var(--vibrant3, #FFD166);
  color: #223146;
  box-shadow: 0 7px 24px -6px var(--vibrant3, #FFD166);
  transform: translateY(-2px) scale(1.03);
}
.main-nav img {
  height: 32px;
  width: auto;
  margin-right: 10px;
  display: inline-block;
  vertical-align: middle;
}

/* Responsive Burger Menu */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 24px;
  top: 24px;
  font-size: 2.2rem;
  background: none;
  border: none;
  z-index: 21;
  color: var(--secondary);
  cursor: pointer;
  transition: color 0.18s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  color: var(--vibrant2);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 88vw;
  max-width: 340px;
  height: 100vh;
  background: #223146;
  box-shadow: 4px 0 28px -6px rgba(34,49,70,0.13);
  z-index: 1110;
  padding: 36px 30px 30px 25px;
  transform: translateX(-110%);
  transition: transform 0.32s cubic-bezier(.8,.07,.25,1);
  opacity: 0.987;
}
.mobile-menu.open {
  transform: translateX(0);
  box-shadow: 7px 0 44px 0px rgba(34,49,70,0.18);
}
.mobile-menu-close {
  font-size: 2rem;
  background: none;
  border: none;
  color: var(--secondary);
  position: absolute;
  top: 28px;
  right: 28px;
  z-index: 21;
  cursor: pointer;
  transition: color 0.16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--vibrant2);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 38px;
  width: 100%;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.1rem;
  padding: 9px 0 9px 7px;
  border-radius: 7px;
  letter-spacing: 0.01em;
  transition: background 0.15s, color 0.16s;
}
.mobile-nav a:focus,
.mobile-nav a:hover {
  background: var(--vibrant3, #FFD166);
  color: #223146;
}

/* Hide navigation on mobile */
@media (max-width: 970px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 971px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* Section Styling - Vibrant Dynamic */
section {
  margin-bottom: 60px;
  padding: 40px 0;
}
section:nth-child(even) {
  background: #FDF7E3;
}
section .container {
  padding-top: 0;
  padding-bottom: 0;
}

/* CTA button (unified) */
.cta-primary {
  background: linear-gradient(90deg, var(--vibrant2) 0%, var(--vibrant5) 100%);
  color: #fff;
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 900;
  font-size: 1.2rem;
  border: none;
  border-radius: 30px;
  padding: 16px 44px;
  margin-top: 18px;
  box-shadow: 0 14px 50px -10px var(--vibrant5, #ff3576 );
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s, box-shadow 0.17s, transform 0.11s;
  display: inline-block;
}
.cta-primary:hover,
.cta-primary:focus {
  background: linear-gradient(90deg, var(--vibrant4), var(--vibrant2));
  color: #223146;
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 20px 60px -11px var(--vibrant4, #2EC4B6);
}

/* Text Sections, Responsive */
.text-section {
  margin: 18px 0;
  padding: 6px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.text-section img {
  width: 23px;
  height: 23px;
  margin-right: 2px;
  vertical-align: middle;
  display: inline-block;
}

/* Footer */
footer {
  background: #223146;
  color: #fff;
  padding: 36px 0 14px 0;
  font-size: 1rem;
  box-shadow: 0 -2px 18px -5px rgba(34,49,70,.11);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  justify-content: center;
  margin-bottom: 16px;
}
.footer-nav a {
  color: var(--secondary);
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.18s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  color: var(--vibrant3);
}
footer address {
  display: flex;
  justify-content: center;
  color: #F7F4F0;
  font-style: normal;
  font-size: 0.97rem;
  margin-bottom: 24px;
  gap: 8px;
}
.footer-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 10px;
}
.footer-brand img {
  width: 30px;
  height: 30px;
  display: inline-block;
}

/* Lists and Steps */
ul, ol {
  padding-left: 22px;
  margin-bottom: 18px;
  color: #223146;
  font-size: 1rem;
}
ul li,
ol li{
  margin-bottom: 9px;
  padding-left: 0;
  position: relative;
}
ul li:before {
  content: '\2022';
  color: var(--vibrant2);
  font-weight: 800;
  display: inline-block;
  width: 1.2em;
  margin-left: -1.2em;
  font-size: 1.1em;
}
ol li:before {
  content: '';
}

/* Card Container Spacing */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

/* Vibrant Focus & Micro-interactions */
.feature-item:hover img,
.feature-item:focus img {
  filter: brightness(1.14) saturate(1.33);
  transition: filter 0.16s;
}

.card:hover,
.card:focus {
  box-shadow: 0 11px 28px -7px var(--vibrant2, #FF715B), 0 2px 10px -5px rgba(34,49,70,0.09);
  transform: translateY(-2px) scale(1.02);
  transition: box-shadow 0.16s, transform 0.16s;
}

/* General spacing */
h1, h2, h3, h4, h5 {
  margin-top: 0;
}
main section:last-child {
  margin-bottom: 0;
}

/* Responsive Typography & Layout */
@media (max-width: 900px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.35rem; }
  .feature-grid, .card-container, .content-grid {
    gap: 14px;
  }
}
@media (max-width: 768px) {
  .container { max-width: 99vw; padding: 0 5vw; }
  .content-wrapper { gap: 17px; }
  h1 { font-size: 1.42rem; }
  h2 { font-size: 1.22rem; }
  .main-nav { flex-direction: column; gap: 6px; }
  .feature-grid, .card-container, .content-grid { flex-direction: column; gap: 12px; }
  .feature-item,
  .testimonial-card,
  .card { min-width: unset; }
  .text-image-section { flex-direction: column !important; gap: 17px; }
  section { padding: 24px 0; margin-bottom: 32px; }
  .section { padding: 24px 10px; margin-bottom: 32px; }
  .cta-primary { font-size: 1rem; padding: 13px 22px; }
  footer { padding: 20px 0 6px 0; font-size: 0.97rem; }
  .footer-brand img { width: 27px; height: 27px; }
  .mobile-menu { width: 96vw; max-width: 400px; padding: 24px 12vw 18px 5vw; }
}

/* Input, Buttons (contact page, forms) */
input,textarea,select,button {
  font-family: inherit;
  font-size: 1rem;
}
button,
input[type="submit"],
input[type="button"] {
  cursor: pointer;
  border-radius: 8px;
  border: none;
  background: var(--vibrant2);
  color: #fff;
  font-weight: 700;
  padding: 10px 22px;
  transition: background 0.17s, color 0.16s, box-shadow 0.16s;
  box-shadow: 0 3px 12px -4px var(--vibrant2, #FF715B);
}
button:focus,
button:hover,
input[type="submit"]:focus,
input[type="submit"]:hover {
  background: var(--vibrant4);
  color: #223146;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(110%);
  width: 98vw;
  max-width: 650px;
  background: #fff;
  box-shadow: 0 -3px 28px -8px rgba(34,49,70,0.14);
  border-radius: 18px 18px 0 0;
  padding: 32px 22px 22px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  z-index: 2007;
  opacity: 1;
  transition: transform 0.34s cubic-bezier(.86,0,.07,1), opacity 0.27s;
  font-size: 1rem;
}
.cookie-banner.show {
  transform: translateX(-50%) translateY(0%);
  opacity: 1;
}
.cookie-banner .cookie-text {
  flex: 1 1 300px;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie-banner button {
  font-size: 1rem;
  font-weight: 700;
  border-radius: 7px;
  padding: 9px 17px;
  min-width: 44px;
  min-height: 38px;
  border: none;
  background: var(--vibrant2);
  color: #fff;
  box-shadow: 0 2px 12px -6px var(--vibrant2);
  transition: background 0.18s;
}
.cookie-banner button:focus,
.cookie-banner button:hover {
  background: var(--vibrant3);
  color: #223146;
}
.cookie-banner button.cookie-settings {
  background: var(--vibrant1);
  color: #223146;
  border: 1px solid #B9CEC9;
  font-weight: 600;
}

/* Cookie Preferences Modal */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(34,49,70,0.17);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2008;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(.54,.12,.44,1.4);
}
.cookie-modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  color: #223146;
  border-radius: 20px;
  box-shadow: 0 12px 48px -13px var(--vibrant2);
  padding: 36px 30px 28px 30px;
  min-width: 300px;
  max-width: 94vw;
  width: 410px;
  display: flex;
  flex-direction: column;
  gap: 23px;
  z-index: 2009;
  position: relative;
  animation: cookieModalIn 0.36s cubic-bezier(.71,-0.04,.33,1.24);
}
@keyframes cookieModalIn { from { transform: translateY(70px) scale(.96); opacity:.2;} to { transform: none; opacity:1; } }
.cookie-modal h2 {
  font-size: 1.22rem;
  font-weight: 800;
  margin-bottom: 11px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.cookie-category label {
  font-weight: 700;
  flex: 1;
  color: #223146;
}
.cookie-toggle {
  appearance: none;
  width: 48px;
  height: 26px;
  background: #DFEEE7;
  border-radius: 16px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.17s;
}
.cookie-toggle:checked {
  background: var(--vibrant2);
}
.cookie-toggle::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 3px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px -4px #22314633;
  transition: left 0.2s cubic-bezier(.45,.7,.45,1.15);
}
.cookie-toggle:checked::before {
  left: 24px;
  background: #fff;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 13px;
  margin-top: 11px;
}
.cookie-modal .modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--vibrant2);
  font-size: 1.44rem;
  cursor: pointer;
  z-index: 2011;
}

@media (max-width: 599px) {
  .cookie-banner { flex-direction: column; gap: 10px; align-items: flex-start; padding: 23px 8px 10px 14px; }
  .cookie-modal { padding: 22px 5vw 22px 5vw; min-width: 0; width: 99vw; }
}

/* Accessibility hints for focus */
a, button, .cta-primary, input, .feature-item, .card, .mobile-nav a {
  outline-color: var(--vibrant2);
  outline-width: 2px;
  outline-style: none;
}
:focus-visible {
  outline-color: var(--vibrant2);
  outline-width: 2px;
  outline-style: solid;
}

/* Misc Adjustments */
::-webkit-scrollbar { width: 10px; background: #F7F4F0; }
::-webkit-scrollbar-thumb { background: #d3cbae; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #D1B77B; }

/* Custom selection */
::selection {
  background: var(--vibrant3, #FFD166);
  color: #1A242D;
}

/* Utilities */
.text-center { text-align: center; }
.text-section a { color: var(--vibrant2); border-bottom: 1px dotted var(--vibrant2); transition: color 0.18s, border-color 0.13s; }
.text-section a:hover { color: var(--vibrant3); border-bottom: 1px solid var(--vibrant3); }

/* Hide visually, but keep accessible (cookie banner, modals, etc.) */
.visually-hidden { 
  border: 0 !important; 
  clip: rect(1px, 1px, 1px, 1px);
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

/* ===== END CSS ===== */
