/* =============================================================
   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 {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  background: #F9F8F5;
  font-family: 'Roboto', Arial, sans-serif;
  color: #1e2920;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
img, picture {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
}
ul, ol {
  list-style: none;
}
button, input, select, textarea {
  font-family: inherit;
}
:focus {
  outline: 2px solid #84D6A5;
  outline-offset: 2px;
}

/* =============================================================
   VARIABLES (w/fallbacks)
============================================================= */
:root {
  --color-primary: #334B36;
  --color-secondary: #84D6A5;
  --color-accent: #FEDB8D;
  --color-bg: #F9F8F5;
  --color-text: #1e2920;
  --color-light: #fff;
  --color-grey: #e9f0ec;
  --shadow-1: 0 4px 16px rgba(52,124,103,.07);
  --shadow-2: 0 8px 24px rgba(51,75,54,.15);
  --radius: 18px;
}

/* Electric Vibrant Overrides for High Energy */
.vibrant {
  --color-primary: #134B5F;
  --color-secondary: #06DEB2;
  --color-accent: #FEDB8D;
  --color-electric-coral: #FF546A;
  --color-electric-blue: #4B8DF8;
  --color-electric-purple: #C95FE5;
}

body, html {
  background: var(--color-bg);
}

/* =============================================================
   TYPOGRAPHY
============================================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Arial Black', Arial, sans-serif;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
  color: var(--color-primary);
}
h1 {
  font-size: 2.5rem;
  line-height: 1.1;
  margin-bottom: 16px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 14px;
}
h3 {
  font-size: 1.26rem;
  font-weight: 700;
}
h4 { font-size: 1.1rem; }
.subheadline {
  font-size: 1.185rem;
  color: var(--color-secondary);
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}
p {
  font-size: 1rem;
  margin-bottom: 16px;
}
strong { font-weight: 700; }

/* Typography for cards & testimonials */
.card h3, .feature-grid h3, .testimonial-card span {
  font-family: 'Montserrat', Arial, sans-serif;
}

/* =============================================================
   HEADER & NAVIGATION
============================================================= */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px 20px 18px;
  background: var(--color-light);
  box-shadow: 0 2px 12px rgba(51,75,54,0.04);
  z-index: 20;
  position: relative;
}
header > a img {
  width: 145px;
}

header nav {
  display: flex;
  gap: 24px;
  margin-left: 30px;
  align-items: center;
}
header nav a {
  color: var(--color-primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 6px 10px;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
  font-size: 1rem;
  position: relative;
}
header nav a:hover, header nav a:focus {
  color: var(--color-electric-coral, #FF546A);
  background: var(--color-grey);
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 32px;
  background: linear-gradient(90deg, var(--color-secondary) 60%, var(--color-accent) 100%);
  color: var(--color-primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  font-size: 1.125rem;
  border: none;
  border-radius: 56px;
  letter-spacing: 0.06em;
  box-shadow: 0 4px 18px rgba(132,214,165,.16);
  transition: background 0.19s, color 0.14s, box-shadow 0.17s;
  cursor: pointer;
  margin-left: 32px;
  position:relative;
}
.cta-btn:hover, .cta-btn:focus {
  background: linear-gradient(90deg, var(--color-accent) 20%, var(--color-electric-blue, #4B8DF8) 80%);
  color: var(--color-primary);
  box-shadow: 0 8px 30px 0 rgba(255, 84, 106, 0.20), 0 4px 24px rgba(51,75,54,.11);
}

.mobile-menu-toggle {
  background: var(--color-electric-coral, #FF546A);
  color: var(--color-light);
  border: none;
  border-radius: 50%;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: filter 0.18s;
  z-index: 22;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  filter: brightness(1.15);
}

/* =============================================================
   MOBILE NAVIGATION / OVERLAY MENU
============================================================= */
.mobile-menu {
  position: fixed;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-light);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.68,-0.55,.27,1.25);
  box-shadow: -2px 0 24px rgba(19,75,100,0.10);
  padding-top: 12px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 8px 22px 8px 0;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: var(--color-primary);
  cursor: pointer;
  padding: 4px 4px 2px 0;
  border-radius: 50%;
  transition: background 0.17s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: var(--color-grey);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 32px auto 0 auto;
  width: 90%;
  align-items: flex-start;
  pointer-events: auto;
}
.mobile-nav a {
  display: block;
  width: 100%;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.32rem;
  padding: 14px 0 12px 6px;
  color: var(--color-primary);
  border-radius: 9px;
  font-weight: 700;
  background: transparent;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-electric-blue,#4B8DF8);
  background: var(--color-accent);
}
body.menu-open {
  overflow: hidden;
}

div.mobile-menu {
  display: none;
}
/* Always on structure for JS toggle (no JS in CSS, but declare display block for open class) */
.mobile-menu.open {
  display: flex;
}

/* =============================================================
   CONTAINER & SPACING
============================================================= */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.center {
  text-align: center;
  justify-content: center;
  align-items: center;
}
.content-wrapper {
  width: 100%;
  max-width: 770px;
  margin: 0 auto 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.text-section {
  margin-top: 12px;
}

/* =============================================================
   SECTION & PATTERNS
============================================================= */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  padding: 32px 28px;
  transition: box-shadow 0.19s, transform 0.17s;
  min-width: 240px;
}
.card:hover, .card:focus-within {
  box-shadow: var(--shadow-2);
  transform: translateY(-5px) scale(1.02);
  z-index: 2;
}
.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: 24px 30px 22px 30px;
  background: var(--color-light);
  box-shadow: 0 7px 28px rgba(6,222,178,0.13);
  border-radius: 16px;
  margin-bottom: 20px;
  margin-top: 13px;
  max-width: 730px;
  position: relative;
  border-left: 8px solid var(--color-accent);
  transition: box-shadow .18s, border-color .18s;
}
.testimonial-card span {
  color: var(--color-primary);
  font-size: 1rem;
  letter-spacing:0.01em;
  opacity:0.9;
}
.testimonial-card p {
  color: var(--color-text);
  font-size: 1.155rem;
  margin-bottom: 0;
  font-style: italic;
}
.testimonial-card:hover {
  box-shadow: 0 18px 40px rgba(255, 84, 106, 0.17), 0 4px 32px rgba(51,75,54,0.07);
  border-left: 8px solid var(--color-electric-coral,#FF546A);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.features-section ul,
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 18px;
}
.feature-grid li,
.features-section ul li {
  background: var(--color-light);
  box-shadow: var(--shadow-1);
  border-radius: var(--radius);
  padding: 26px 32px 22px 32px;
  min-width: 182px;
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: box-shadow 0.17s, border-color 0.14s, transform 0.19s;
  border: 3px solid transparent;
}
.feature-grid li img,
.features-section ul li img {
  width: 45px;
  height: 45px;
  margin-bottom: 8px;
}
.feature-grid li:hover, .features-section ul li:hover {
  box-shadow: 0 8px 32px rgba(76, 98, 238, 0.17), 0 5px 20px rgba(132,214,165,0.13);
  border: 3px solid var(--color-electric-blue,#4B8DF8);
  transform: scale(1.04) translateY(-3px);
}

/* Card grid with minimum spacing */
ul.card-container, ul.feature-grid, ul.content-grid, .feature-grid {
  gap: 24px;
  margin-top: 8px;
}
.card, .feature-grid li, .testimonial-card {
  margin-bottom: 20px;
}

/* Special for lists in text-section */
.text-section ul, .features-section ul {
  margin-left: 0;
  padding-left: 0;
  gap: 11px;
  display: flex;
  flex-direction: column;
}
.text-section ul li, .features-section ul li {
  position: relative;
  padding-left: 28px;
  color: var(--color-primary);
  line-height: 1.55;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.025rem;
}
.text-section ul li:before, .features-section ul li:before {
  content: "";
  width: 15px;
  height: 15px;
  display: inline-block;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-electric-blue,#4B8DF8), var(--color-accent));
  position: absolute;
  left: 0; top: 4px;
}
.features-section ul li img {
  position: static;
  margin-right: 10px;
  margin-bottom: 0;
}

/* =============================================================
   FOOTER
============================================================= */
footer {
  background: var(--color-primary);
  color: var(--color-light);
  padding: 30px 0 20px 0;
  font-size: 1rem;
  letter-spacing: 0.01em;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: flex-start;
  justify-content: space-between;
  padding-top: 0;
  padding-bottom: 0;
  max-width: 1120px;
}
footer .footer-brand img {
  width: 78px;
  height: auto;
  margin-bottom: 9px;
} 
footer nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 8px;
}
footer nav a {
  color: var(--color-accent);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  padding: 4px 2px;
  border-radius: 6px;
  transition: background .16s, color 0.16s;
  font-size: 1.075rem;
}
footer nav a:hover, footer nav a:focus {
  color: var(--color-electric-coral, #FF546A);
  background: rgba(254,219,141,.1);
}
footer .contact-info p, footer .contact-info a {
  color: var(--color-light);
  font-size: 0.98rem;
  line-height: 1.45;
}
footer .contact-info a {
  text-decoration: underline;
  transition: color 0.17s;
}
footer .contact-info a:hover, footer .contact-info a:focus {
  color: var(--color-secondary);
}

/* =============================================================
   RESPONSIVE BREAKPOINTS (Mobile First)
============================================================= */
@media (max-width: 1152px) {
  .container {
    max-width: 96vw;
    padding: 0 10px;
  }
  .content-wrapper { max-width: 98vw; }
}
@media (max-width: 900px) {
  header {
    padding: 16px 14px 16px 10px;
  }
  header nav { gap: 12px; }
  .cta-btn { margin-left: 16px; }
  .container { padding-left: 6px; padding-right: 6px; }
}
@media (max-width: 900px) {
  .feature-grid, .features-section ul { gap: 18px; }
  .feature-grid li, .features-section ul li, .card {
    padding: 20px 14px 18px 14px;
  }
  .testimonial-card { padding: 18px 13px 16px 13px; }
}
@media (max-width: 768px) {
  header nav {
    display: none;
  }
  .cta-btn {
    margin-left: 0;
    margin-right: 15px;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .container, .center .container {
    max-width: none;
    width: 100%;
    padding-left: 10px;
    padding-right: 10px;
  }
  section {
    padding: 26px 4px 24px 4px;
    border-radius: 0;
  }
  .footer-brand img { width: 58px; }
}
@media (max-width: 630px) {
  h1 { font-size: 1.48rem; }
  h2 { font-size: 1.2rem; }
  .subheadline, p, .testimonial-card p, .feature-grid li, .features-section ul li {
    font-size: 1.025rem;
  }
  .feature-grid li, .features-section ul li, .card {
    min-width: 160px;
    padding: 14px 6px 12px 7px;
    font-size:1rem;
  }
  .testimonial-card { padding: 13px 3px 11px 6px; }
  .content-wrapper { padding:0; max-width: 99vw; }
  footer .container {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
}
@media (max-width: 768px) {
  .content-grid, .features-section ul, .feature-grid {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .center {
    text-align: center;
    align-items: center;
    justify-content: center;
  }
}

/* =============================================================
   BUTTONS & INTERACTIVES
============================================================= */
button, .cta-btn, .cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border: none;
  border-radius: 36px;
  cursor: pointer;
  transition: background 0.17s, color 0.19s, box-shadow 0.21s;
}

/* =============================================================
   COOKIE CONSENT BANNER
============================================================= */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: var(--color-primary);
  color: var(--color-accent);
  box-shadow: 0 -4px 32px rgba(51,75,54,.09);
  z-index: 1600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 32px 20px 20px;
  font-size: 1.04rem;
  font-family: 'Montserrat', Arial, sans-serif;
  animation: slideup-b 0.62s ease;
}
@keyframes slideup-b {
  from { transform: translateY(120%); opacity:0; }
  to   { transform: translateY(0); opacity:1; }
}
.cookie-banner .cookie-banner-message {
  flex: 1 1 0%;
  margin-right: 18px;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 14px;
  align-items: center;
}
.cookie-banner button {
  padding: 9px 25px;
  font-size: 1rem;
  margin-bottom: 0;
  box-shadow: 0 2px 8px 0 rgba(254,219,141,0.09);
  background: var(--color-accent);
  color: var(--color-primary);
  font-weight: 800;
  border: none;
}
.cookie-banner button.cookie-accept {
  background: linear-gradient(90deg, var(--color-secondary), var(--color-accent));
  color: var(--color-primary);
}
.cookie-banner button.cookie-accept:hover {
  background: linear-gradient(90deg, var(--color-accent), var(--color-electric-coral, #FF546A));
  color: var(--color-primary);
}
.cookie-banner button.cookie-reject {
  background: var(--color-primary);
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}
.cookie-banner button.cookie-reject:hover, .cookie-banner button.cookie-reject:focus {
  background: var(--color-electric-coral,#FF546A);
  color: var(--color-light);
  border-color: var(--color-light);
}
.cookie-banner button.cookie-settings {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.cookie-banner button.cookie-settings:hover {
  background: var(--color-electric-blue,#4B8DF8);
  color: var(--color-light);
}

/* -------- Cookie Modal ---------*/
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(51,75,54,0.68);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  animation: fadeInOverlay 0.24s;
}
@keyframes fadeInOverlay { from { opacity: 0; } to { opacity: 1; } }
.cookie-modal {
  background: var(--color-light);
  border-radius: 24px;
  box-shadow: 0 9px 54px rgba(51,75,54,0.24);
  max-width: 480px;
  width: 97vw;
  padding: 32px 24px 24px 24px;
  font-size: 1rem;
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  gap: 17px;
  animation: modalin 0.29s cubic-bezier(0.53,1.8,0.57,0.78);
  position: relative;
}
@keyframes modalin {
  0% { opacity:0; transform: translateY(48px) scale(0.96); }
  100% { opacity:1; transform: translateY(0) scale(1); }
}
.cookie-modal h2 {
  font-size: 1.28rem;
  color: var(--color-primary);
  margin-bottom: 10px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 11px;
}
.cookie-category label {
  font-size: 1.03rem;
  flex: 1 1 auto;
  color: var(--color-primary);
  cursor:pointer;
}
.cookie-category input[type='checkbox'] {
  accent-color: var(--color-accent);
  width: 22px; height: 22px;
  cursor: pointer;
}
.cookie-category input[type='checkbox'][disabled] {
  filter: grayscale(1);
  opacity: 0.68;
  cursor: not-allowed;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  right: 14px; top: 13px;
  background: transparent;
  border: none;
  font-size: 1.6rem;
  color: var(--color-primary);
  opacity: 0.90;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.15s;
}
.cookie-modal .cookie-modal-close:hover {
  background: var(--color-grey);
}

/* =============================================================
   UTILITY & MISC
============================================================= */
::-webkit-scrollbar {
  width: 12px;
  background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--color-secondary);
  border-radius:6px;
}
::selection {
  background: var(--color-accent);
  color: var(--color-primary);
}

hr {
  border: none;
  height: 2px;
  background: var(--color-grey);
  margin: 27px 0 21px 0;
  border-radius: 3px;
}

/* Error/Success Message Styles for Forms (not in static pages but for extensibility) */
.form-success, .form-error {
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 12px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size:1.08rem;
  box-shadow: 0 1px 6px rgba(6,222,178,0.06);
}
.form-success {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.form-error {
  background: var(--color-electric-coral, #FF546A);
  color: var(--color-light);
}

/* Elegant micro-interactions */
a, button, .cta-btn, .feature-grid li, .card, .testimonial-card {
  transition: 
    box-shadow 0.17s cubic-bezier(0.64,0.04,0.35,1),
    transform 0.19s,
    color 0.18s, 
    background 0.19s;
}

/* =============================================================
   PRINT/ACCESSIBILITY (OPTIONAL, for completeness) 
============================================================= */
@media print {
  header, nav, footer, .cookie-banner, .mobile-menu { display: none !important; }
  body { background: #fff; color: #000; }
}
