/* =====================================================
   CSS RESET & BASE
   ===================================================== */
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: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', Georgia, Times, serif;
  font-size: 16px;
  color: #22263A;
  background: #F0EDEE;
  line-height: 1.6;
  min-height: 100vh;
}

*, *:before, *:after {
  box-sizing: inherit;
}

a {
  color: #22263A;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #B3C81F;
}

ul, ol {
  margin-left: 28px;
  padding-left: 0;
}

strong {
  font-weight: 700;
}

img {
  max-width: 100%;
  display: block;
  border: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  outline: 0;
  color: inherit;
}

/* ========================================================
   TYPOGRAPHY HIERARCHY
   ======================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Times New Roman, Times, serif;
  color: #22263A;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  line-height: 1.2;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}
h4 {
  font-size: 1.08rem;
  margin-bottom: 8px;
}
h5, h6 {
  font-size: 1rem;
}
p {
  font-size: 1.05rem;
  margin-bottom: 18px;
}

@media (max-width: 900px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
}

@media (max-width: 540px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.12rem; }
  h3 { font-size: 1rem; }
}

/* =========================================================
   LAYOUT CONTAINERS
   ========================================================= */
.container {
  max-width: 940px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 18px rgba(34,38,58,0.05);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (max-width: 768px) {
  .section {
    padding: 24px 8px;
    margin-bottom: 34px;
  }
}

/* Card and Grid Layouts (Flexbox only!) */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 8px rgba(34,38,58,0.09);
  padding: 32px 24px;
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 260px;
  min-width: 260px;
  transition: box-shadow .2s, transform .12s;
}
.card:hover {
  box-shadow: 0 6px 32px rgba(34,38,58,0.15);
  transform: translateY(-3px);
}

.feature-grid, .statistics-section, .team-section, .blog-post-list, .testimonial-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #F8F7F3;
  border-radius: 14px;
  box-shadow: 0 1px 8px rgba(34,38,58,0.06);
  padding: 24px 20px;
  flex: 1 1 200px;
  min-width: 200px;
  transition: box-shadow .2s, background .2s;
}
.feature-item:hover {
  background: #F4F5EB;
  box-shadow: 0 2px 16px rgba(179,200,31,0.09);
}

.statistics-section .stat-item {
  background: #fff;
  color: #22263A;
  border-radius: 12px;
  padding: 24px 18px;
  flex: 1 1 180px;
  min-width: 150px;
  text-align: center;
  font-family: 'Montserrat', Times New Roman, serif;
  font-size: 1.2rem;
  font-weight: 700;
  box-shadow: 0 2px 14px rgba(34,38,58,0.09);
  margin-bottom: 20px;
}

.team-section {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.team-member {
  background: #fff;
  border-radius: 14px;
  padding: 24px 16px;
  min-width: 200px;
  flex: 1 1 220px;
  box-shadow: 0 1px 10px rgba(34,38,58,0.06);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  transition: box-shadow .2s, background .2s;
}
.team-member:hover {
  background: #F8F7F3;
  box-shadow: 0 2px 14px rgba(179,200,31,0.08);
}

.achievements-section, .about-highlight {
  background: #F8F7F3;
  border-radius: 10px;
  padding: 18px 14px;
  margin-bottom: 16px;
  font-style: italic;
}

.blog-preview-list, .blog-post-list {
  list-style: disc inside;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.blog-post-list li {
  background: #F8F7F3;
  border-radius: 12px;
  padding: 16px 14px;
  margin-bottom: 12px;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.faq-item {
  background: #F8F7F3;
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 1px 6px rgba(34,38,58,0.06);
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .feature-grid,
  .statistics-section,
  .team-section,
  .testimonial-cards,
  .blog-post-list {
    flex-direction: column;
    gap: 20px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

/* =========================================================
   MAIN NAVIGATION (DESKTOP & MOBILE)
   ========================================================= */
header {
  background: #F0EDEE;
  box-shadow: 0 2px 12px rgba(34,38,58,0.06);
  margin-bottom: 18px;
  position: relative;
  z-index: 12;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 22px 0 22px 0;
  font-family: 'Montserrat', Times New Roman, Times, serif;
  font-size: 1.05rem;
}
.main-nav .logo {
  margin-right: 34px;
  display: flex;
  align-items: center;
}
.main-nav a {
  position: relative;
  padding: 6px 8px;
  border-radius: 6px;
  color: #22263A;
  transition: background 0.18s, color 0.18s;
}
.main-nav a:not(.btn-primary):hover, .main-nav a:focus:not(.btn-primary) {
  background: #F8F7F3;
  color: #B3C81F;
}

.btn-primary, .btn-secondary {
  font-family: 'Montserrat', Times New Roman, Times, serif;
  padding: 12px 28px;
  border-radius: 7px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.03em;
  display: inline-block;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 2px 8px rgba(34,38,58,0.09);
  border: none; 
  margin-top: 12px;
  transition: background .22s, color .22s, box-shadow .2s, transform .11s;
}
.btn-primary {
  background: #22263A;
  color: #fff !important;
  border: 2px solid #22263A;
}
.btn-primary:hover, .btn-primary:focus {
  background: #B3C81F;
  border-color: #B3C81F;
  color: #22263A !important;
  transform: translateY(-1px) scale(1.03);
}
.btn-secondary {
  background: #fff;
  color: #22263A !important;
  border: 2px solid #22263A;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #F8F7F3;
  color: #B3C81F !important;
  border-color: #B3C81F;
  transform: translateY(-1px) scale(1.03);
}

@media (max-width: 1020px) {
  .main-nav {
    gap: 14px;
  }
  .main-nav .logo {
    margin-right: 18px;
  }
}

/* Burger Menu (Mobile) */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  top: 32px;
  right: 22px;
  background: #22263A;
  color: #fff;
  border-radius: 5px;
  font-size: 2rem;
  padding: 5px 14px;
  cursor: pointer;
  border: none;
  z-index: 51;
  transition: background 0.18s, color 0.18s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #B3C81F;
  color: #22263A;
}

@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: -2px 0 18px #22263A10;
  z-index: 2001;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0;
  pointer-events: none;
  opacity: 0;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.77,0,0.175,1), opacity 0.18s;
}
.mobile-menu.open {
  opacity: 1;
  transform: translateX(0);
  pointer-events: all;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 32px 24px 8px 0;
  background: #22263A;
  color: #fff;
  border-radius: 5px;
  border: none;
  font-size: 2rem;
  padding: 2px 14px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.mobile-menu-close:hover {
  background: #B3C81F;
  color: #22263A;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 30px;
  gap: 18px;
  padding: 0 28px;
}
.mobile-nav a {
  font-size: 1.18rem;
  font-family: 'Montserrat', Times New Roman, Times, serif;
  color: #22263A;
  padding: 18px 0;
  border-bottom: 1px solid #F0EDEE;
  transition: color 0.2s;
  width: 100%;
  display: block;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #B3C81F;
  background: #F4F5EB;
  border-radius: 4px;
}

body.menu-open {
  overflow: hidden;
}

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testimonial-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 1px 10px rgba(34,38,58,.11);
  border-radius: 15px;
  margin-bottom: 20px;
  min-width: 240px;
  flex: 1 1 280px;
  transition: box-shadow 0.22s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 22px rgba(34,38,58,.16);
}
.testimonial-card p {
  color: #22263A;
  font-style: italic;
  margin-bottom: 0;
  font-size: 1.08rem;
}
.testimonial-info {
  color: #B3C81F;
  font-weight: bold;
  margin-left: auto;
  font-size: 1rem;
  min-width: 86px;
}
@media (max-width: 768px) {
  .testimonial-cards {
    flex-direction: column;
    gap: 20px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: #22263A;
  color: #fff;
  padding: 28px 0 20px 0;
  margin-top: 48px;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
}
.footer-nav {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: #B3C81F;
  font-size: 1rem;
  font-family: 'Montserrat', Times New Roman, Times, serif;
  transition: color 0.18s;
  text-decoration: underline dotted transparent;
  padding: 3px 7px;
  border-radius: 4px;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #fff;
  background: #B3C81F;
  text-decoration: underline solid #fff;
}
.footer-info {
  display: flex;
  gap: 20px;
  justify-content: center;
  font-size: 0.97rem;
  flex-wrap: wrap;
}

@media (max-width: 650px) {
  .footer-nav, .footer-info {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }
}

/* ============================================================
   COOKIE CONSENT BANNER & MODAL
   ============================================================ */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  color: #22263A;
  box-shadow: 0 -2px 18px rgba(34,38,58,0.16);
  padding: 22px 20px 18px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  z-index: 9000;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
  font-size: 1.02rem;
  justify-content: space-between;
  opacity: 1;
  transform: translateY(0);
  transition: transform .33s cubic-bezier(.77,0,.18,1), opacity .19s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
.cookie-banner .cookie-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.cookie-banner button {
  padding: 9px 25px;
  border-radius: 6px;
  font-family: 'Montserrat', Times New Roman, Times, serif;
  border: none;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  margin-right: 2px;
  transition: background .19s, color .19s, border .15s;
}
.cookie-banner .accept {
  background: #B3C81F;
  color: #22263A;
  border: 2px solid #B3C81F;
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: #22263A;
  color: #fff;
  border-color: #22263A;
}
.cookie-banner .reject {
  background: #fff;
  color: #22263A;
  border: 2px solid #22263A;
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: #F0EDEE;
  color: #B3C81F;
}
.cookie-banner .settings {
  background: #F8F7F3;
  color: #22263A;
  border: 2px solid #B3C81F;
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: #B3C81F;
  color: #22263A;
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 8px 12px 8px;
  }
  .cookie-banner .cookie-btns {
    width: 100%;
    gap: 8px;
    justify-content: flex-start;
  }
}

.cookie-modal {
  position: fixed;
  z-index: 10005;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(34,38,58,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  opacity: 1;
  transition: opacity .25s;
}
.cookie-modal.hide {
  pointer-events: none;
  opacity: 0;
}
.cookie-modal .cookie-modal-content {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 48px rgba(34,38,58,0.15);
  padding: 38px 28px 26px 28px;
  max-width: 440px;
  width: 90%;
  color: #22263A;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-modal .cookie-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.cookie-modal .cookie-modal-close {
  background: #22263A;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 1.4rem;
  padding: 2px 14px;
  cursor: pointer;
  transition: background .18s, color .18s;
}
.cookie-modal .cookie-modal-close:hover {
  background: #B3C81F;
  color: #22263A;
}
.cookie-category-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 0 7px 0;
}
.cookie-category label {
  font-family: 'Montserrat', Times New Roman, serif;
  font-size: 1rem;
  font-weight: bold;
}
.cookie-category input[type="checkbox"] {
  accent-color: #B3C81F;
  width: 1.2em;
  height: 1.2em;
}
.cookie-category .cookie-essential {
  color: #999;
  font-size: 0.96em;
  font-style: italic;
  margin-left: 8px;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}
.cookie-modal .cookie-modal-actions button {
  min-width: 110px;
}


/* ====================================================================
   COMMON UTILS/SPACING/ANIMATION
   ==================================================================== */
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.mb-20 { margin-bottom: 20px; }
.mb-32 { margin-bottom: 32px; }
.mb-40 { margin-bottom: 40px; }
.rounded-small { border-radius: 8px; }
.rounded-medium { border-radius: 14px; }
.rounded-large { border-radius: 24px; }

.fade-in {
  opacity: 0;
  animation: fadeInAnim 0.8s forwards; }
@keyframes fadeInAnim {
  to { opacity: 1; }
}

/* Utility for icons inline with text */
p img, .address-block img {
  vertical-align: middle;
  width: 1.4em;
  margin-right: 4px;
  display: inline;
}

/* ====================================================================
   FORM ELEMENTS (FILTERS, SEARCH, ETC.)
   ==================================================================== */
.blog-filter-bar {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.blog-filter-bar input[type="search"] {
  padding: 9px 16px;
  border: 2px solid #E1E1E8;
  border-radius: 6px;
  background: #fff;
  font-size: 1rem;
  outline: none;
  transition: border 0.15s;
}
.blog-filter-bar input[type="search"]:focus {
  border-color: #B3C81F;
}
.blog-filter-bar select {
  padding: 9px 12px;
  border-radius: 6px;
  border: 2px solid #E1E1E8;
  background: #fff;
  font-size: 1rem;
  color: #333;
  transition: border 0.15s;
}
.blog-filter-bar select:focus {
  border-color: #B3C81F;
}

/* ====================================================================
   CONTACT INFO / THANK YOU / ADDRESS BLOCK / SPECIALS
   ==================================================================== */
.contact-info-block, .office-hours, .contact-call, .address-block, .thank-you-block {
  background: #F8F7F3;
  padding: 18px 14px;
  margin-bottom: 18px;
  border-radius: 12px;
}
.contact-call {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.office-hours strong {
  display: block;
  font-weight: 700;
  margin-bottom: 4px;
}
.address-block {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.address-block p {
  margin: 0;
}
.thank-you-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

/* ===================================================================
   MEDIA QUERIES for SMALL DEVICES
   =================================================================== */
@media (max-width: 520px) {
  h1 { font-size: 1.1rem; }
  .section { padding: 10px 0; }
  .blog-post-list li, .blog-preview-list li {
    padding: 10px 6px;
  }
  .feature-item, .team-member, .card {
    padding: 12px 8px;
    min-width: 0;
  }
  .card, .feature-item, .team-member, .testimonial-card {
    min-width: 0;
    font-size: 15px;
  }
  .container { padding: 0 4px; }
}
