/* --- 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, 
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;
  box-sizing: border-box;
}
html {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #F6F6F4;
}
*, *:before, *:after {
  box-sizing: inherit;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.4;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  background: #F6F6F4;
  color: #211F1F;
  min-height: 100vh;
  position: relative;
}
img {
  max-width: 100%;
  display: block;
}
ul, ol {
  margin-left: 1.2em;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 1em;
}
a {
  color: inherit;
  text-decoration: none;
}
:focus {
  outline: 2px solid #295F4E;
  outline-offset: 2px;
}

/* --- BRAND COLORS (CSS CUSTOM PROPERTIES) --- */
:root {
  --primary: #295F4E;
  --secondary: #FFD36E;
  --accent: #F6F6F4;
  --electric-cyan: #27C7FF;
  --electric-pink: #FF4E9A;
  --electric-orange: #FF7922;
  --electric-green: #13DF96;
  --electric-blue: #273FEB;
  --text-dark: #211F1F;
  --text-light: #FFFFFF;
  --grey-light: #EFEFEF;
  --shadow: 0 4px 30px rgba(41,95,78,0.1), 0 1.5px 10px rgba(41,95,78,0.10);
}

/* --- TYPOGRAPHY --- */
h1, .h1 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 900;
  font-size: 2.4rem;
  line-height: 1.18;
  letter-spacing: -1px;
  color: var(--primary);
  margin-bottom: 16px;
}
h2, .h2 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.22;
  color: var(--electric-orange);
  margin-bottom: 14px;
}
h3, .h3 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--primary);
  margin-bottom: 10px;
}
p, li, ul, ol {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 12px;
}
strong, b {
  font-weight: bold;
  color: var(--electric-blue);
}

/* --- CONTAINER & LAYOUTS --- */
.container {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 22px;
  width: 100%;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}
.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: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  margin-bottom: 20px; /* Prevent overlapping */
  border-left: 7px solid var(--electric-pink);
  position: relative;
  min-width: 0;
  max-width: 510px;
  flex: 1 1 300px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- HERO SECTION --- */
.hero {
  background: linear-gradient(90deg, var(--electric-pink) 0%, var(--secondary) 100%);
  padding: 70px 0 54px 0;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 24px;
}
.hero h1 {
  color: var(--text-light);
  text-shadow: 0 2px 10px rgba(244,79,155,0.28);
}
.hero p {
  color: var(--text-light);
  font-size: 1.22rem;
  margin-bottom: 12px;
}
.hero .cta-primary {
  background: var(--electric-cyan);
  color: var(--text-dark);
}

/* --- FEATURES & SERVICES GRIDS (FLEX ONLY) --- */
.features .content-wrapper,
.services .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.features .feature,
.services .feature {
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 320px;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 30px 20px 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  border-top: 5px solid var(--electric-cyan);
  transition: transform 0.15s cubic-bezier(.85,0,.16,1), box-shadow 0.16s;
  margin-bottom: 16px; /* Prevent overlap */
  position: relative;
}
.features .feature:hover,
.services .feature:hover {
  transform: translateY(-4px) scale(1.035);
  border-top-color: var(--electric-pink);
  box-shadow: 0 10px 46px rgba(255,77,154,0.08);
}
.features .feature img,
.services .feature img {
  width: 48px;
  height: 48px;
  margin-bottom: 10px;
  filter: drop-shadow(0 1px 10px rgba(39,199,255,0.08));
}

.features .content-wrapper.grid-cols-3 > .feature,
.services .content-wrapper.grid-cols-3 > .feature {
  flex: 1 1 27%;
}
.features .content-wrapper.grid-cols-4 > .feature,
.services .content-wrapper.grid-cols-4 > .feature {
  flex: 1 1 21%;
}
.grid-cols-2 > .testimonial-card {
  flex: 1 1 46%;
}
.grid-cols-3 > .testimonial-card,
.grid-cols-3 > .feature {
  flex: 1 1 30%;
}
.grid-cols-4 > .testimonial-card,
.grid-cols-4 > .feature {
  flex: 1 1 22%;
}
.features .content-wrapper > * {
  margin-bottom: 0; /* prevent double-spaced  section gap */
}

/* --- TESTIMONIAL CARD --- */
.testimonials .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-card {
  background: #fff;
  color: var(--primary);
  box-shadow: var(--shadow);
  border-radius: 18px;
  border-left: 7px solid var(--electric-pink);
  min-width: 0;
  max-width: 510px;
  flex: 1 1 280px;
  transition: box-shadow 0.16s, border-color 0.19s;
}
.testimonial-card:hover {
  box-shadow: 0 10px 38px rgba(39,199,255,0.07);
  border-left-color: var(--electric-cyan);
}
.testimonial-content p {
  color: var(--text-dark);
  font-style: italic;
  font-size: 1.09rem;
}
.testimonial-author {
  color: var(--electric-pink);
  font-weight: bold;
  font-size: 0.96rem;
  margin-left: 8px;
}

/* --- SECTIONS: ABOUT, CTA, CONTACT --- */
.about .content-wrapper,
.cta .content-wrapper,
.contact .content-wrapper {
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.about .content-wrapper {
  flex-direction: column;
}
.cta {
  background: var(--electric-green);
  border-radius: 22px;
  padding: 52px 20px 48px 20px;
  margin: 50px 0 0 0;
}
.cta h2 {
  color: var(--electric-blue);
}
.cta p {
  color: var(--primary);
  font-size: 1.12rem;
}

.contact .content-wrapper {
  flex-direction: column;
  gap: 24px;
}
.contact ul li {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 7px;
  font-size: 1.06rem;
}
.contact .text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* --- FOOTER --- */
footer {
  background: var(--primary);
  padding: 38px 0 18px 0;
  color: #fff;
  letter-spacing: 0.2px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 1rem;
  justify-content: center;
  margin-bottom: 8px;
}
.footer-menu a {
  color: var(--secondary);
  font-weight: bold;
  transition: color 0.17s;
}
.footer-menu a:hover {
  color: var(--electric-pink);
}
.footer-info {
  text-align: center;
  font-size: 0.97rem;
  color: #fff;
  opacity: 0.85;
}

/* --- BUTTONS / CTAs --- */
.cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--electric-orange);
  color: var(--text-light);
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.14rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 15px 36px;
  border: none;
  border-radius: 30px;
  box-shadow: 0 8px 24px 0 rgba(255,77,154,0.09);
  letter-spacing: 1.2px;
  cursor: pointer;
  margin-top: 8px;
  margin-bottom: 8px;
  min-width: 0;
  transition: background 0.14s, color 0.15s, box-shadow 0.15s;
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--electric-cyan);
  color: var(--text-dark);
  box-shadow: 0 8px 30px rgba(39,199,255,0.12);
  text-decoration: underline;
}

button, .btn, .mobile-menu-toggle, .mobile-menu-close {
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
  font-size: 1.5rem;
  transition: background 0.13s;
}

/* --- HEADER & NAVIGATION --- */
header {
  background: #fff;
  box-shadow: 0 1.5px 10px rgba(41,95,78,0.03);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 20px;
  padding-right: 22px;
}
header a img {
  height: 46px;
  width: auto;
  margin-right: 15px;
}
nav {
  display: flex;
  gap: 30px;
  align-items: center;
}
nav a {
  color: var(--primary);
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: bold;
  font-size: 1rem;
  padding: 7px 5px;
  position: relative;
  transition: color 0.18s;
}
nav a:hover, nav a:focus {
  color: var(--electric-orange);
}
.cta-primary {
  margin-left: 20px;
}

/* --- MOBILE MENU --- */
.mobile-menu-toggle {
  display: none;
  background: var(--electric-pink);
  color: #fff;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  margin-left: 7px;
  z-index: 210;
  font-size: 2.2rem;
  transition: background 0.17s;
  box-shadow: 0 4px 20px 0 rgba(255,77,154,0.07);
}
.mobile-menu-toggle:active, .mobile-menu-toggle:hover {
  background: var(--electric-orange);
  color: #fff;
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: 0 20px 50px rgba(41,95,78,0.15);
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.77,0,.18,1);
  z-index: 9999;
  padding: 20px 26px 18px 18px;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  align-self: flex-end;
  background: var(--electric-cyan);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 2rem;
  margin-bottom: 24px;
  margin-right: 8px;
  z-index: 1010;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--electric-pink);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 29px;
  margin: 56px 0 0 22px;
}
.mobile-nav a {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 900;
  font-size: 1.45rem;
  color: var(--primary);
  padding: 14px 0 10px 0;
  border-bottom: 1px solid var(--grey-light);
  transition: color 0.16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--electric-orange);
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  display: flex;
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  border-top: 3px solid var(--electric-cyan);
  box-shadow: 0 -4px 32px rgba(41,95,78,0.13);
  padding: 22px 12px 18px 12px;
  gap: 30px;
  align-items: center;
  z-index: 10010;
  transition: transform 0.32s cubic-bezier(.66,0,.22,1), opacity 0.25s;
  opacity: 1;
}
.cookie-banner.hidden {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-message {
  font-size: 1.05rem;
  color: var(--primary);
  font-family: 'Roboto', Arial, sans-serif;
  flex: 1 1 240px;
  min-width: 0;
  margin-right: 20px;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.cookie-banner .cookie-btn {
  border: none;
  padding: 10px 26px;
  border-radius: 24px;
  font-weight: 700;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  background: var(--electric-cyan);
  color: var(--text-dark);
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.13s, color 0.13s, box-shadow 0.13s;
  margin-right: 5px;
  box-shadow: 0 2px 8px rgba(27,199,255,0.10);
}
.cookie-banner .cookie-btn.settings {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-banner .cookie-btn.accept {
  background: var(--electric-green);
  color: var(--primary);
}
.cookie-banner .cookie-btn.reject {
  background: var(--electric-pink);
  color: #fff;
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  box-shadow: 0 4px 18px rgba(255,77,154,0.12);
  background: var(--electric-pink);
  color: #fff;
}

/* --- COOKIE PREFERENCES MODAL --- */
.cookie-modal {
  display: none;
  position: fixed;
  z-index: 10030;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(41,95,78,0.22);
  justify-content: center;
  align-items: center;
}
.cookie-modal.open {
  display: flex;
  animation: appearModal 0.28s cubic-bezier(.27,1.13,.79,.89);
}
@keyframes appearModal {
  from { opacity:0; transform:scale(0.93); }
  to   { opacity:1; transform:scale(1); }
}
.cookie-modal .modal-content {
  background: #fff;
  border-radius: 18px;
  max-width: 440px;
  width: 94vw;
  box-shadow: 0 1.5px 18px rgba(41,95,78,0.14);
  padding: 36px 32px 30px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cookie-modal .modal-content h3 {
  color: var(--electric-pink);
  margin-bottom: 8px;
  text-align: left;
  font-size: 1.28rem;
  font-weight: 800;
}
.cookie-modal .modal-content .cookie-cat {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-bottom: 13px;
}
.cookie-modal .modal-content label {
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 0;
}
.cookie-modal .modal-content .switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
}
.cookie-modal .modal-content .switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-modal .modal-content .slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--electric-cyan);
  border-radius: 25px;
  transition: .4s;
}
.cookie-modal .modal-content .slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: .4s;
  box-shadow: 0 2px 6px rgba(27,119,255,0.10);
}
.cookie-modal .modal-content .switch input:checked + .slider {
  background: var(--electric-orange);
}
.cookie-modal .modal-content .switch input:checked + .slider:before {
  transform: translateX(22px);
  background: var(--primary);
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 5px;
}
.cookie-modal .modal-actions .cookie-btn {
  font-size: 1.01rem;
}

/* --- RESPONSIVE STYLES (MOBILE FIRST) --- */
@media (max-width: 1000px) {
  .container {
    max-width: 96vw;
    padding-left: 4vw;
    padding-right: 4vw;
  }
  header .container {
    padding-right: 7vw;
  }
}
@media (max-width: 950px) {
  .features .content-wrapper.grid-cols-4 > .feature, .services .content-wrapper.grid-cols-4 > .feature {
    flex: 1 1 40%;
  }
}
@media (max-width: 780px) {
  .container { max-width: 97vw; }
  .content-wrapper,
  .features .content-wrapper,
  .services .content-wrapper,
  .testimonials .content-wrapper,
  .card-container,
  .content-grid {
    flex-direction: column;
    gap: 19px;
  }
  .features .feature, .services .feature, .testimonial-card {
    max-width: 98vw;
    flex: 1 1 100%;
  }
  .hero .container { padding-left: 0; padding-right: 0; }
}
@media (max-width: 768px) {
  html {
    font-size: 98%;
  }
  header .container {
    flex-direction: row;
    gap: 8px;
    padding: 0 10px;
    height: 62px;
  }
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .cta-primary {
    margin-left: 10px;
    padding: 13px 24px;
    font-size: 1rem;
  }
  .hero {
    padding: 36px 0 24px 0;
  }
  .hero h1 {
    font-size: 1.7rem;
    margin-bottom: 12px;
  }
  .hero .container {
    padding-left: 0; padding-right: 0;
  }
  .hero .content-wrapper {
    gap: 13px;
    max-width: 93vw;
  }
  .features .feature img, .services .feature img {
    width: 40px; height: 40px;
  }
  .footer-menu {
    gap: 14px;
    font-size: 0.99rem;
  }
  .footer-info {
    font-size: 0.93rem;
  }
  .section {
    padding: 22px 5px;
    margin-bottom: 39px;
  }
  .cta {
    padding: 37px 8px 33px 8px;
  }
  .content-wrapper {
    gap: 15px;
  }
  .about .content-wrapper,
  .contact .content-wrapper {
    flex-direction: column;
    gap: 14px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 12px;
  }
  .testimonial-card {
    padding: 16px 13px;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
    font-size: 1rem;
  }
}
@media (max-width: 600px) {
  h1, .h1 { font-size: 1.32rem; }
  h2, .h2 { font-size: 1.09rem; }
  .hero .content-wrapper { padding: 0 2vw; }
  .cookie-banner {
    padding: 15px 4vw 17px 2vw;
    font-size: 0.98rem;
  }
  .cookie-banner .cookie-btn {
    padding: 8px 16px;
    font-size: 0.98rem;
  }
  .cookie-modal .modal-content {
    padding: 18px 7vw 18px 7vw;
  }
}

/* --- MICRO-INTERACTIONS & UTILITY --- */
.card, .feature, .testimonial-card {
  transition: box-shadow 0.19s, transform 0.16s;
}
.card:hover, .feature:hover, .testimonial-card:hover {
  box-shadow: 0 5px 24px rgba(255,211,110,0.14), 0 2px 12px rgba(39,95,78,0.12);
  transform: translateY(-2px) scale(1.025);
}

/* --- HIDE / SHOW CLASSES --- */
.d-none { display: none !important; }
.visible { display: block !important; }

/* --- UTILITY CLASSES FOR SPACING --- */
.mt-2 { margin-top: 16px !important; }
.mb-2 { margin-bottom: 16px !important; }
.my-4 { margin-top: 32px !important; margin-bottom: 32px !important; }
.gap-24 { gap: 24px !important; }

/* --- OVERRIDE AUTOCOMPLETE CHROME BG */
input:-webkit-autofill, input:-webkit-autofill:focus {
  box-shadow: 0 0 0 100px #fff inset !important;
  -webkit-box-shadow: 0 0 0 100px #fff inset !important;
  color: var(--primary) !important;
}

/* --- SELECTION COLOR --- */
::selection {
  background: var(--electric-cyan);
  color: var(--text-dark);
}

/* --- PRINT --- */
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
}
