/* =============================
   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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  min-height: 100vh;
  background: #fff;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
:root {
  --primary: #314A31;
  --secondary: #F4C48B;
  --accent: #FFFFFF;
  --highlight-pink: #FFD6E0;
  --highlight-blue: #7BDFF2;
  --highlight-green: #B9FFC7;
  --text-dark: #23211F;
  --text-light: #fff;
  --shadow: 0 2px 12px 0 rgba(50,60,20,0.09);
  --radius: 22px;
  --radius-sm: 12px;
  --focus: #FFAA2C;
  --cta-gradient: #F4C48B;
  --transition: all 0.26s cubic-bezier(.55,.13,.37,1.13);
}

/* =============================
   Typography
============================= */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,900|Open+Sans:400,600,700&display=swap');
body, html {
  font-family: 'Open Sans', Arial, sans-serif;
  color: var(--text-dark);
  font-size: 16px;
  background: var(--accent);
  letter-spacing: 0.02em;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.01em;
  margin-bottom: 0.7em;
  font-weight: 900;
  color: var(--primary);
}
h1 {
  font-size: 2.5rem;
  line-height: 1.15;
  color: var(--primary);
  word-break: break-word;
}
h2 {
  font-size: 2rem;
  line-height: 1.22;
  color: var(--primary);
}
h3 {
  font-size: 1.25rem;
  color: var(--primary);
}
h4, h5, h6 {
  font-size: 1.1rem;
}
p, ul, ol, li {
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
  color: var(--text-dark);
  margin-bottom: 0.7em;
}
ul li, ol li {
  margin-bottom: 0.25em;
  position: relative;
}
ul li img {
  margin-right: 10px;
  vertical-align: middle;
}
strong {
  font-weight: 700;
}
a {
  color: var(--primary);
  transition: color .23s;
}
a:hover, a:focus {
  color: var(--focus);
}

/* Fun, Playful Font for Hero/Emphatic Words */
.playful, h1 strong, h2 strong {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--highlight-blue);
}

/* =============================
   Layout Containers & Utilities
============================= */
.container {
  max-width: 1080px;
  width: 92%;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 0px;
}
section {
  width: 100%;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: var(--radius);
  background: var(--highlight-pink);
  box-shadow: var(--shadow);
}
.content-wrapper, .text-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  width: 100%;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  width: 100%;
}
.card-container,.feature-grid,.content-grid,.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  width: 100%;
}
.card {
  background: var(--accent);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 24px 18px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 220px;
  transition: box-shadow .19s, transform .19s;
}
.card:hover {
  box-shadow: 0 6px 24px 0 var(--highlight-blue);
  transform: translateY(-4px) scale(1.035) rotate(-1deg);
}
.case-study {
  background: var(--highlight-green);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 18px 18px 18px 32px;
  margin-bottom: 20px;
  position: relative;
  font-size: 1.03rem;
  border-left: 6px solid var(--highlight-blue);
  transition: box-shadow .16s;
}
.case-study:hover {
  box-shadow: 0 6px 16px 0 var(--highlight-blue);
  background: var(--secondary);
}

.feature-grid > div {
  flex: 1 1 180px;
  min-width: 220px;
  background: var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 16px 22px 16px;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 15px;
  margin-bottom: 20px;
  transition: box-shadow .15s, transform .17s;
  position: relative;
}
.feature-grid > div:hover {
  box-shadow: 0 6px 22px 0 var(--highlight-pink);
  transform: scale(1.06) rotate(0.5deg);
}
.feature-grid img {
  width: 55px;
  height: 55px;
  margin-bottom: 7px;
  z-index: 1;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  min-width: 180px;
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: var(--highlight-blue);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  margin-top: 0;
  color: var(--text-dark);
  font-size: 1.08rem;
  min-width: 220px;
  max-width: 540px;
}
.testimonial-card p {
  color: #23211F;
  font-family: 'Open Sans', sans-serif;
  font-size: 1.06rem;
  margin-bottom: 0.3em;
  line-height: 1.6;
}
.testimonial-card span {
  font-size: .93rem;
  color: #4f4e4e;
  font-weight: 700;
  font-family: 'Montserrat', Arial, sans-serif;
  align-self: flex-end;
}

.pricing-table {
  width: 100%;
  background: var(--highlight-green);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  overflow-x: auto;
}
.pricing-table th, .pricing-table td {
  padding: 14px 12px;
  text-align: left;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1.07rem;
}
.pricing-table th {
  background: var(--secondary);
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
}
.pricing-table tr:nth-child(even) td {
  background: var(--highlight-blue);
}
.pricing-table td {
  color: var(--primary);
}

/* =============================
   Header & Navigation
============================= */
header {
  width: 100%;
  background: var(--secondary);
  box-shadow: 0 2px 8px 0 rgba(200,130,60,.10);
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom-left-radius: var(--radius-sm);
  border-bottom-right-radius: var(--radius-sm);
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  padding: 10px 0;
}
header img {
  width: 80px;
  height: auto;
  margin-right: 12px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: 24px;
  flex-wrap: wrap;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  background: none;
  color: var(--primary);
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  transition: background .18s, color .18s;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--highlight-blue);
}
.main-nav .cta-primary {
  background: var(--primary);
  color: var(--accent);
  border-radius: 999px;
  padding: 8px 26px;
  margin-left: 12px;
  box-shadow: var(--shadow);
  transition: background .22s, color .22s, box-shadow .23s;
}
.main-nav .cta-primary:hover, .main-nav .cta-primary:focus {
  background: var(--focus);
  color: var(--primary);
  box-shadow: 0 4px 24px 0 var(--highlight-blue);
}

/* Hamburger Mobile Menu ========================= */
.mobile-menu-toggle {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  font-size: 2rem;
  margin-left: 12px;
  transition: background .15s, color .15s, transform .15s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 110;
}
.mobile-menu-toggle:focus {
  background: var(--focus);
  outline: 2px dashed var(--highlight-pink);
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  width: 100vw;
  background: var(--accent);
  z-index: 120;
  transform: translateX(-100vw);
  transition: transform .36s cubic-bezier(.84,.08,.29,1.19);
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: flex-start;
  box-shadow: 0 3px 25px 0 rgba(41,41,41,0.20);
}
.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu-close {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 2.1rem;
  align-self: flex-end;
  margin: 18px 26px 0 0;
  cursor: pointer;
  transition: color .2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--focus);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 48px 32px 0 36px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.35rem;
  color: var(--primary);
  padding: 16px 0 8px 14px;
  background: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  transition: background .16s, color .16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--highlight-blue);
  color: var(--focus);
}

/* Hide mobile menu & toggle by default (shown in breakpoints below) */
.mobile-menu,
.mobile-menu-toggle {
  display: none;
}

/* =============================
   Buttons & CTAs
============================= */
.cta-primary, .btn, button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--accent);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.08rem;
  border-radius: 999px;
  padding: 14px 34px;
  border: none;
  box-shadow: var(--shadow);
  transition: background .2s, color .17s, transform .15s, box-shadow .13s;
  cursor: pointer;
  margin-top: 12px;
  min-width: 180px;
}
.cta-primary:hover, .cta-primary:focus,
button:hover, button:focus, .btn:hover, .btn:focus {
  background: var(--focus);
  color: var(--primary);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 22px 0 var(--highlight-blue);
}

/* =============================
   Footer
============================= */
footer {
  width: 100%;
  background: var(--primary);
  color: var(--accent);
  padding: 34px 0 16px 0;
  border-top-right-radius: var(--radius-sm);
  border-top-left-radius: var(--radius-sm);
  margin-top: 52px;
}
footer .container {
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 18px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 27px;
  align-items: center;
  margin-bottom: 8px;
}
.footer-nav a {
  color: var(--secondary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.01rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-bottom: 2px solid transparent;
  margin-bottom: 0;
  transition: border-color .13s, color .13s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}
footer p {
  font-size: .92rem;
  text-align: center;
  margin-top: 8px;
  color: var(--secondary);
}

/* =============================
   Cookie Consent Banner
============================= */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--highlight-blue);
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 22px 24px 19px 22px;
  box-shadow: 0 -3px 28px 0 rgba(90,110,140,0.16);
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  border-top-left-radius: var(--radius-sm);
  border-top-right-radius: var(--radius-sm);
  animation: fade-in-up .44s cubic-bezier(.86,.09,.31,1.12)
}
@keyframes fade-in-up {
  0% { opacity: 0; transform: translateY(50px); }
  100% { opacity: 1; transform: translateY(0); }
}
.cookie-banner-message {
  flex: 1 1 330px;
  margin-right: 18px;
}
.cookie-banner-actions {
  display: flex;
  gap: 16px;
}
.cookie-btn {
  background: var(--primary);
  color: var(--accent);
  padding: 10px 26px;
  border-radius: 999px;
  border: none;
  font-family: 'Montserrat';
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background .18s, color .18s, transform .12s;
  min-width: 130px;
}
.cookie-btn.accept {
  background: var(--primary);
  color: var(--accent);
}
.cookie-btn.reject {
  background: var(--highlight-pink);
  color: var(--primary);
}
.cookie-btn.settings {
  background: var(--highlight-green);
  color: var(--primary);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--focus);
  color: var(--primary);
  transform: scale(1.05);
}

/* Cookie Modal Popup */
.cookie-modal {
  position: fixed;
  z-index: 210;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(40,60,70,0.29);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  animation: fade-in .29s cubic-bezier(.75,0,.2,1.24);
}
@keyframes fade-in {
  0% {opacity: 0;}
  100% {opacity: 1;}
}
.cookie-modal-content {
  background: var(--accent);
  border-radius: var(--radius);
  box-shadow: 0 7px 38px 0 rgba(30,38,60,0.23);
  max-width: 370px;
  width: 94vw;
  padding: 38px 27px 27px 27px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  position: relative;
  animation: fade-in-up .37s;
}
.cookie-modal-close {
  position: absolute;
  right: 22px;
  top: 12px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--primary);
  cursor: pointer;
}
.cookie-modal h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
  font-size: 1.13rem;
  font-weight: 700;
}
.cookie-preferences-list {
  display: flex;
  flex-direction: column;
  gap: 17px;
  width: 100%;
}
.cookie-preference {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cookie-category {
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 700;
  color: var(--primary);
  margin-right: 7px;
}
.cookie-toggle {
  appearance: none;
  width: 38px;
  height: 20px;
  border-radius: 16px;
  background: var(--highlight-blue);
  position: relative;
  cursor: pointer;
  box-shadow: 0 2px 5px 0 rgba(40,60,100,0.08);
  border: none;
  margin-left: 8px;
  outline: none;
  transition: background .13s;
}
.cookie-toggle:checked {
  background: var(--focus);
}
.cookie-toggle:before {
  content: '';
  display: block;
  position: absolute;
  left: 3px;
  top: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px 0 rgba(60,90,130,0.13);
  transition: left .16s;
}
.cookie-toggle:checked:before {
  left: 21px;
}
.cookie-modal .cookie-btn {
  margin-top: 19px;
}

/* Emphasize Essential Cookies as locked/toggled */
.cookie-preference.essential .cookie-toggle {
  background: #bbb;
  pointer-events: none;
}

/* =============================
   Animations & Micro-interactions
============================= */
.card, .feature-grid > div, .cta-primary, .case-study,
button, .cookie-banner, .testimonial-card {
  transition: box-shadow .15s, background .18s, color .13s, transform .17s;
}

/***********************************************
 Responsive Design (Mobile-first)
***********************************************/

@media (max-width: 1140px) {
  .container {
    max-width: 95vw;
    width: 95vw;
  }
}
@media (max-width: 900px) {
  .feature-grid {
    gap: 18px;
  }
}
@media (max-width: 768px) {
  h1 {font-size: 2rem;}
  h2 {font-size: 1.45rem;}

  .container, .section, .content-wrapper, .text-section {
    padding-left: 0;
    padding-right: 0;
    max-width: 99vw;
    width: 99vw;
  }

  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex !important;
  }
  .mobile-menu {
    display: flex !important;
    flex-direction: column;
  }
  header img {
    width: 60px;
  }

  .feature-grid, .card-container, .content-grid, .card-grid {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
  .section {
    margin-bottom: 40px;
    padding: 30px 4vw;
  }
  .testimonial-card, .case-study, .card, .feature-grid > div {
    min-width: 0;
    width: 100%;
  }
  .footer-nav {
    flex-direction: column;
    gap: 11px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}
@media (max-width: 540px) {
  h1 {font-size: 1.3rem;}
  h2 {font-size: 1.07rem;}
  .container, .section, .content-wrapper, .text-section {
    width: 100vw;
    padding: 0 2vw;
  }
  .feature-grid > div, .card, .testimonial-card, .case-study {
    padding: 13px 7px;
    border-radius: 14px;
  }
  .cta-primary, .btn, button {
    min-width: unset;
    width: 100%;
    padding: 10px 0;
    font-size: 0.95rem;
  }
  .pricing-table th, .pricing-table td {
    font-size: .95rem;
    padding: 9px 6px;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 18px;
    font-size: .97rem;
    padding: 14px 6px 14px 7px;
  }
}

/***********************************************
 Playful/Dynamic Visual Accents
***********************************************/

.section, .feature-grid > div, .card, .testimonial-card, .case-study {
  border-top-right-radius: 66px 42px;
}
.section {
  position: relative;
  /* Decorative playful spot */
}
.section:before {
  content: '';
  display: block;
  position: absolute;
  right: 24px; top: 16px;
  width: 44px; height: 44px;
  background: var(--highlight-blue);
  border-radius: 50%;
  opacity: 0.19;
  z-index: 0;
}
.feature-grid > div:after {
  content: '';
  display: block;
  position: absolute;
  left: 15px; top: -20px;
  width: 23px; height: 23px;
  background: var(--highlight-pink);
  border-radius: 50%;
  opacity: 0.22;
  z-index: 0;
}

/***********************************************
 Accessibility Utilities
***********************************************/
:focus, a:focus, button:focus {
  outline: 2px dotted var(--focus);
  outline-offset: 2px;
}

/***********************************************
 Misc
***********************************************/
::-webkit-scrollbar {
  width: 10px;
  background: var(--accent);
}
::-webkit-scrollbar-thumb {
  background: var(--highlight-blue);
  border-radius: 8px;
}
/* Add playful font for numbers & strong cards */
.pricing-table td, .pricing-table th, .case-study h2 {
  font-family: 'Montserrat', Arial, sans-serif;
}

/* Success/Info Styles */
.info-message {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--highlight-green);
  color: var(--primary);
  border-radius: var(--radius-sm);
  padding: 13px 22px;
  font-size: 1.09rem;
  margin-bottom: 12px;
}

/* Hide visually but keep accessible */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}

/* =============================
   End of CSS
============================= */
