/*-----------------------
 CSS RESET & BASE STYLES
-----------------------*/
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 {
  scroll-behavior: smooth;
  height: 100%;
}
body {
  min-height: 100vh;
  background: #F4F6F8;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #274760;
  line-height: 1.7;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.03em;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #5793DF;
  text-decoration: none;
  transition: color .2s cubic-bezier(.56,.12,.72,1.8);
}
a:hover, a:focus {
  color: #A7B663;
}
ul, ol {
  list-style: none;
}
button, input[type="button"], input[type="submit"] {
  font-family: inherit;
  border: none;
  outline: none;
}
:focus {
  outline: 2px solid #A7B663;
}

/*-----------------------
 BRAND COLOR VARIABLES 
-----------------------*/
:root {
  --clr-primary: #274760;
  --clr-secondary: #A7B663;
  --clr-accent: #F4F6F8;
  --clr-white: #fff;
  --clr-black: #112031;
  --clr-link: #5793DF;
}
/* Font Setup */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Open+Sans:wght@400;700&display=swap');

/*-----------------------
 TYPOGRAPHY
-----------------------*/
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 900;
  color: var(--clr-primary);
  line-height: 1.15;
  letter-spacing: 0.01em;
  margin-bottom: 8px;
}
h1 {
  font-size: 2rem;
  margin-bottom: 16px;
  color: var(--clr-secondary);
  text-shadow: 1px 3px 0 rgba(167,182,99,0.08);
}
h2 {
  font-size: 1.5rem;
  margin: 0 0 20px 0;
  color: var(--clr-primary);
}
h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--clr-primary);
}
p, li, span {
  font-size: 1rem;
  color: var(--clr-primary);
}
p {
  margin-bottom: 8px;
}
strong, b {
  color: var(--clr-primary);
  font-weight: bold;
}
.text-section {
  color: var(--clr-primary);
  font-size: 1rem;
  line-height: 1.7;
}

/* Fun, Playful font for dynamic accents */
.featured-article strong, .featured-article, .btn-primary {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
}

/*-----------------------
 LAYOUT & CONTAINERS
-----------------------*/
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Section, Cards, Grids */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--clr-accent);
  border-radius: 20px;
  box-shadow: 0 4px 22px 0 rgba(39,71,96,0.07);
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--clr-white);
  border-radius: 18px;
  margin-bottom: 20px;
  position: relative;
  box-shadow: 0 4px 18px 0 rgba(39,71,96,0.07);
  overflow: hidden;
  transition: transform .15s cubic-bezier(.29,.97,.54,1.79), box-shadow .22s;
}
.card:hover, .card:focus {
  transform: translateY(-6px) scale(1.02) rotate(-1deg);
  box-shadow: 0 8px 32px 0 rgba(167,182,99,0.16);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 20px;
  gap: 14px;
}

.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

/* Feature Grid */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  align-items: flex-start;
}
.feature-grid li {
  background: var(--clr-white);
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(39,71,96,0.06);
  padding: 28px 20px 20px 20px;
  flex: 1 1 220px;
  min-width: 200px;
  min-height: 170px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  position: relative;
  transition: transform .17s cubic-bezier(.34,.97,.62,2), box-shadow .25s cubic-bezier(.49,-0.13,.54,2);
}
.feature-grid li:hover {
  transform: translateY(-4px) scale(1.03) rotate(1.5deg);
  box-shadow: 0 10px 32px rgba(167,182,99,0.15);
  background: #FCFFD8;
}
.feature-grid img {
  width: 42px;
  height: 42px;
  margin-bottom: 6px;
}

/* blog-post-list (Unique to Blog) */
.blog-post-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 24px;
}
.blog-post-list li {
  background: #fffbe1;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(167,182,99,0.08);
  padding: 20px 18px 12px 18px;
  margin-bottom: 12px;
  transition: transform .16s, box-shadow .28s;
}
.blog-post-list li:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 6px 24px #A7B66322;
}

.featured-article {
  background: #A7B663;
  color: #fff;
  padding: 18px 24px;
  border-radius: 24px;
  box-shadow: 0 4px 22px 0 rgba(167,182,99,0.11);
  font-size: 1.15rem;
  margin-bottom: 20px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  animation: popfade .8s cubic-bezier(.68,.13,.53,1.55);
}
@keyframes popfade {
  0% { opacity: 0; transform: scale(.92); }
  70% { opacity: 1; transform: scale(1.07); }
  100% { opacity: 1; transform: scale(1); }
}

/*-----------------------
 HEADER & NAVIGATION
-----------------------*/
header {
  width: 100%;
  background: var(--clr-primary);
  box-shadow: 0 2px 10px rgba(39,71,96,0.07);
  position: relative;
  z-index: 20;
}
header .container {
  max-width: 1240px;
}
nav {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 0;
}
nav > a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 12px;
  transition: background 0.15s, color 0.22s, box-shadow 0.2s cubic-bezier(.5,1.7,.45,2.2);
}
nav > a:hover, nav > a.active {
  background: var(--clr-secondary);
  color: var(--clr-primary);
  box-shadow: 0 2px 10px #A7B66342;
}
nav img {
  width: 104px;
  height: auto;
  margin-right: 8px;
  display: inline-block;
  vertical-align: middle;
}
.btn-primary {
  background: var(--clr-secondary);
  color: var(--clr-primary)!important;
  border-radius: 20px;
  padding: 12px 32px;
  box-shadow: 0 7px 24px 0 rgba(167,182,99,.13);
  font-size: 1.06rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  margin-left: 12px;
  transition: background .19s, color .17s, box-shadow .18s;
  position: relative;
}
.btn-primary:hover, .btn-primary:focus {
  background: #e0eb93;
  color: #242f14!important;
  box-shadow: 0 10px 36px #A7B66348;
  transform: scale(1.04) rotate(-2deg);
}
.btn-link {
  color: var(--clr-secondary);
  background: transparent;
  border: 2px solid var(--clr-secondary);
  border-radius: 20px;
  padding: 9px 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  margin-top: 8px;
  transition: background 0.19s, color 0.17s, border .13s;
}
.btn-link:hover, .btn-link:focus {
  background: var(--clr-secondary);
  color: #fff;
}

.mobile-menu-toggle {
  display: none;
  background: var(--clr-secondary);
  color: var(--clr-primary);
  border-radius: 50%;
  width: 46px;
  height: 46px;
  font-size: 2rem;
  justify-content: center;
  align-items: center;
  align-self: center;
  margin-left: auto;
  margin-right: 12px;
  box-shadow: 0 2px 12px #A7B66352;
  border: none;
  cursor: pointer;
  transition: background .13s, box-shadow 0.19s;
  z-index: 1401;
}
.mobile-menu-toggle:active {
  background: #d1e069;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--clr-primary);
  z-index: 1500;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  transform: translateX(-100vw);
  transition: transform 0.36s cubic-bezier(.68,-0.21,0.35,1.22);
  box-shadow: 12px 0 28px rgba(39,71,96,0.13);
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--clr-secondary);
  color: var(--clr-primary);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.62rem;
  border: none;
  margin: 20px 0 18px 20px;
  align-self: flex-start;
  transition: background .14s, color .13s;
}
.mobile-menu-close:hover {
  background: #d3e08e;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: flex-start;
  width: 100%;
  padding: 0 24px;
  margin-top: 18px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: .03em;
  padding: 14px 0;
  border-radius: 14px;
  transition: background .13s, color .13s;
}
.mobile-nav a:active, .mobile-nav a:hover {
  background: var(--clr-secondary);
  color: var(--clr-primary);
}

@media (max-width: 1020px) {
  nav {
    gap: 6px;
  }
  nav > a {
    font-size: .96rem;
    padding: 8px 7px;
  }
}
@media (max-width: 900px) {
  nav > a { font-size: .93rem; }
  header .container { padding: 0 10px; }
}

@media (max-width: 860px) {
  nav > a:not(:first-child):not(.btn-primary) {
    display: none;
  }
  .btn-primary, nav img {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  nav {
    gap: 0;
    justify-content: flex-start;
    align-items: center;
  }
}

/*-----------------------
 MAIN & HERO SECTIONS
-----------------------*/
main section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 4px 22px 0 rgba(39,71,96,0.07);
  position: relative;
}
main section:nth-child(even) {
  background: var(--clr-accent);
}

@keyframes hero-fade-in {
  from { opacity: 0; transform: translateY(46px); }
  70% { opacity: .6; }
  to { opacity: 1; transform: translateY(0); }
}

main .container { width: 100%; }

/*-----------------------
 TESTIMONIALS
-----------------------*/
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #fff;
  color: #1a232f;
  border-radius: 22px;
  padding: 28px 24px;
  margin-bottom: 20px;
  box-shadow: 0 4px 18px #A7B66318;
  transition: box-shadow .19s, transform .13s cubic-bezier(.47,1.62,.44,1.18);
  position: relative;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 400;
}
.testimonial-card:hover {
  box-shadow: 0 10px 32px #A7B66323;
  transform: scale(1.01);
}
.testimonial-card p {
  color: #112031;
  font-size: 1.07rem;
}
.testimonial-card span {
  color: var(--clr-secondary);
  font-style: italic;
  font-size: 15px;
  letter-spacing: 0.02em;
}

/*-----------------------
 FOOTER
-----------------------*/
footer {
  width: 100%;
  padding: 36px 0 0 0;
  background: var(--clr-primary);
  color: #fff;
  box-shadow: 0 -2px 20px rgba(39,71,96,0.07);
  border-radius: 34px 34px 0 0;
  margin-top: 66px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  justify-content: flex-start;
}
footer nav {
  display: flex;
  gap: 24px;
  align-items: center;
  font-family: 'Montserrat', Arial, sans-serif;
}
footer nav a {
  color: #fff;
  font-size: .95rem;
  border-radius: 10px;
  padding: 6px 11px;
  font-weight: 700;
  transition: color .15s, background .13s;
}
footer nav a:hover {
  background: var(--clr-secondary);
  color: var(--clr-primary);
}
.footer-contact.text-section {
  margin: 10px 0 0 0;
  color: #fff;
  font-size: .97rem;
}
footer p {
  margin-bottom: 8px;
  color: #e9ecf2;
  font-size: .93rem;
}
footer img {
  width: 17px;
  height: 17px;
  display: inline-block;
  vertical-align: middle;
  margin: 0 8px 1px 2px;
}

/*-----------------------
 Responsive Utilities
-----------------------*/
@media (max-width: 660px) {
  .container {
    padding: 0 7px;
  }
  main section {
    padding: 22px 8px;
    margin-bottom: 36px;
  }
  .footer-contact.text-section {
    font-size: .90rem;
  }
  .feature-grid {
    gap: 13px;
  }
  .card-container, .content-grid {
    gap: 10px;
  }
}
@media (max-width: 768px) {
  .content-wrapper,
  .feature-grid,
  .content-grid,
  .blog-post-list {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 14px;
    padding: 19px 13px;
    font-size: .97rem;
  }
  .feature-grid li,
  .card {
    min-width: unset;
    padding: 19px 12px 13px 12px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 17px;
    align-items: flex-start;
  }
}
@media (max-width: 720px) {
  nav { padding: 8px; }
  footer .container { padding: 0 7px; }
  footer nav { gap: 13px; }
}
@media (max-width: 540px) {
  footer nav { flex-wrap: wrap; gap: 8px; }
  footer .footer-contact { font-size: .88rem; }
}

/*-----------------------
 Cookie Consent Banner
-----------------------*/
.cookie-banner {
  position: fixed;
  left: 0; bottom: 0;
  width: 100vw;
  background: #fffbe1;
  color: #274760;
  box-shadow: 0 -3px 28px #A7B66312;
  z-index: 3000;
  padding: 25px 7vw 27px 7vw;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  justify-content: flex-start;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  animation: cookiepopup .5s cubic-bezier(.62,-0.11,.31,1.26);
}
@keyframes cookiepopup {
  0% { opacity: 0; transform: translateY(70px); }
  100% { opacity: 1; transform: translateY(0); }
}
.cookie-banner p {
  flex: 2;
  color: #274760;
  margin-bottom: 0;
  font-size: 1rem;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 16px;
}
.cookie-banner button {
  border-radius: 24px;
  padding: 11px 29px;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  font-size: .97rem;
  cursor: pointer;
}
.cookie-accept {
  background: var(--clr-secondary);
  color: var(--clr-primary);
  transition: background .16s, color .13s;
}
.cookie-accept:hover {
  background: #b1c166;
}
.cookie-reject {
  background: #fff;
  color: var(--clr-primary);
  border: 2px solid var(--clr-secondary);
  transition: background .14s, border .15s;
}
.cookie-reject:hover {
  background: var(--clr-secondary);
  color: #fff;
}
.cookie-settings {
  background: #fff;
  color: var(--clr-secondary);
  border: 2px solid var(--clr-secondary);
  transition: background .13s, color .11s, border .12s;
}
.cookie-settings:hover {
  background: var(--clr-secondary);
  color: #fff;
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 20px 10px 19px 10px;
  }
  .cookie-banner .cookie-actions { flex-direction: column; gap: 10px; }
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  bottom: 0; left: 50%;
  transform: translate(-50%,120vh);
  min-width: 330px;
  width: 91vw;
  max-width: 430px;
  background: #fff;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -6px 38px #A7B66329;
  z-index: 3500;
  opacity: 0;
  pointer-events: none;
  padding: 36px 27px 27px 27px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: cookiemodal-in .49s cubic-bezier(.56,.23,.57,1.26) forwards;
}
.cookie-modal.active {
  transform: translate(-50%,0);
  opacity: 1;
  pointer-events: auto;
}
@keyframes cookiemodal-in {
  0% { transform: translate(-50%,120vh); opacity: 0; }
  60% { opacity: .9; }
  100% { transform: translate(-50%,0); opacity: 1; }
}
.cookie-modal h2 {
  color: var(--clr-primary);
  font-size: 1.3rem;
  margin-bottom: 9px;
}
.cookie-modal .category-list {
  margin-top: 0;
  margin-bottom: 18px;
}
.cookie-modal .category-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 1rem;
  border-bottom: 1px solid #eee;
  padding: 12px 0;
}
.cookie-modal .toggle-switch {
  position: relative;
  width: 42px;
  height: 22px;
  display: inline-block;
}
.cookie-modal .toggle-switch input[type=checkbox] {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-modal .slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #eee;
  border-radius: 22px;
  transition: background .18s;
}
.cookie-modal .toggle-switch input:checked + .slider {
  background: var(--clr-secondary);
}
.cookie-modal .slider:before {
  content: '';
  position: absolute;
  left: 3px; top: 2px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 6px #8882;
  transition: transform .19s;
}
.cookie-modal .toggle-switch input:checked + .slider:before {
  transform: translateX(18px);
}
/* Modal Actions */
.cookie-modal .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 13px;
  justify-content: flex-end;
}
.cookie-modal .cookie-actions button {
  min-width: 110px;
}
/* Modal Close */
.cookie-modal-close {
  position: absolute;
  right: 17px; top: 17px;
  color: #C0C84A;
  background: none;
  border: none;
  font-size: 1.68rem;
  font-family: 'Montserrat', Arial, sans-serif;
  cursor: pointer;
  padding: 2px 8px 0 8px;
  border-radius: 12px;
  transition: background .13s, color .18s;
  z-index: 5;
}
.cookie-modal-close:hover { background: #F4F6F8; color: #A7B663; }

@media (max-width: 560px) {
  .cookie-modal { padding: 24px 8px 19px 8px; min-width: unset; }
  .cookie-modal h2 { font-size: 1.08rem; }
}

/*-----------------------
 Micro-Animations
-----------------------*/
.btn-primary, .btn-link, nav > a, .feature-grid li, .testimonial-card, .blog-post-list li, .card {
  transition: box-shadow .22s, transform .19s cubic-bezier(.49,-0.13,.54,1.79), background .19s;
}

/* Fun hover underline for playful style */
nav > a:not(.btn-primary):after, .btn-link:after {
  content: '';
  display: block;
  width: 0%;
  height: 3px;
  border-radius: 6px;
  background: var(--clr-secondary);
  transition: width .22s cubic-bezier(.8,.29,.56,1.23);
  margin: 2px auto 0 auto;
}
nav > a:hover:not(.btn-primary):after, .btn-link:hover:after {
  width: 75%;
}

/*-----------------------
 Misc & Utility
-----------------------*/
section ul li, section .card, section .feature-item, main .feature-grid li, .card-content {
  margin-bottom: 20px;
}

/* Spacing for inner text-section */
.text-section ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0 12px 0;
  padding-left: 18px;
}
.text-section ul li {
  padding-left: 7px;
  position: relative;
}
.text-section ul li:before {
  content: '•';
  color: var(--clr-secondary);
  font-weight: 700;
  margin-right: 6px;
  font-size: 1.17em;
  font-family: 'Montserrat', Arial, sans-serif;
}
.text-section p {
  margin-bottom: 10px;
}

/*---------------------------------------------*/
/* Hide Scroll for body under mobile-menu open */
body.menu-open {
  overflow: hidden;
  touch-action: none;
}

/*-------------
 Fun playful extra
-------------*/
.feature-grid li, .testimonial-card, .card, .featured-article {
  /* Subtle playful rotation */
  transform: rotate(-.25deg);
}
.feature-grid li:nth-child(odd), .blog-post-list li:nth-child(2n) {
  transform: rotate(1.2deg);
}

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