/* CSS RESET & NORMALIZE */
html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
html, body {
  height: 100%;
}
body {
  min-height: 100vh;
  background-color: #FAFAF7;
  color: #28303C;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
a {
  text-decoration: none;
  color: inherit;
  outline: none;
  transition: color 0.2s ease;
}
a:focus {
  outline: 2px dashed #21556D;
  outline-offset: 2px;
}

/* BRAND FONTS (Serif for headings, classic sans for body) */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-weight: 700;
  color: #174250;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}
p, li, strong, .category, .text-section {
  font-family: 'Lato', 'Arial', sans-serif;
}
p {
  margin-bottom: 14px;
  font-size: 1rem;
}
strong {
  font-weight: 700;
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.3rem;
  }
  h3 {
    font-size: 1.1rem;
  }
}

/* COLOR PALETTE */
:root {
  --color-primary: #21556D;
  --color-secondary: #89B723;
  --color-accent: #FFFFFF;
  --color-bg: #FAFAF7;
  --color-dark: #28303C;
  --color-muted: #ECEBE7;
  --color-divider: #DDD9D1;
  --color-shadow: rgba(33, 85, 109, 0.07);
}

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

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
@media (max-width: 768px) {
  .section {
    padding: 30px 10px;
    margin-bottom: 40px;
  }
  .container {
    padding: 0 10px;
  }
}

/* FLEXBOX MANDATORY LAYOUTS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-accent);
  border-radius: 14px;
  box-shadow: 0 4px 24px var(--color-shadow);
  padding: 24px;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(33,85,109,0.13);
}
.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 20px;
  }
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 24px;
  background: #FFF;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(33,85,109,0.07);
  border-left: 5px solid var(--color-secondary);
  position: relative;
}
.testimonial-card blockquote {
  font-size: 1.18rem;
  font-style: italic;
  color: #174250;
  margin-right: 16px;
}
.testimonial-card p {
  margin-bottom: 0;
  color: var(--color-dark);
}
@media (max-width: 600px) {
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    gap: 10px;
  }
  .testimonial-card blockquote {
    font-size: 1rem;
  }
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #FFF;
  border-radius: 13px;
  box-shadow: 0 2px 10px var(--color-shadow);
  padding: 20px 16px;
  margin-bottom: 20px;
  border-left: 4px solid var(--color-primary);
}

/* SPACING BETWEEN CARDS/SECTIONS */
ul > li, .section > *, .feature-item, .card {
  margin-bottom: 20px;
}
.card-container > *:last-child, .feature-item:last-child, .content-grid > *:last-child {
  margin-bottom: 0;
}

/* BUTTONS */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 38px;
  border-radius: 12px;
  font-size: 1.15rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  font-family: 'Playfair Display', 'Georgia', serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: none;
}
.btn-primary {
  background: var(--color-primary);
  color: #FFF;
  box-shadow: 0 2px 8px var(--color-shadow);
}
.btn-primary:hover,
.btn-primary:focus {
  background: #174250;
  color: #FFF;
  box-shadow: 0 6px 20px rgba(33,85,109,0.18);
}
.btn-secondary {
  background: #FFF;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}
.btn-secondary:hover,
.btn-secondary:focus {
  background: var(--color-primary);
  color: #FFF;
  border-color: var(--color-secondary);
  box-shadow: 0 4px 16px rgba(33,85,109,0.11);
}

/* NAVIGATION */
header {
  background: #FFF;
  border-bottom: 1.5px solid var(--color-divider);
  box-shadow: 0 2px 8px var(--color-shadow);
  position: relative;
  z-index: 102;
}
header nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 26px;
  padding: 0 0 0 0;
  min-height: 70px;
}
header nav img {
  height: 44px;
  margin-right: 20px;
}
header nav a {
  font-family: 'Lato', 'Arial', sans-serif;
  font-size: 1.05rem;
  color: var(--color-primary);
  padding: 8px 8px;
  border-radius: 7px;
  transition: background 0.2s, color 0.2s;
}
header nav a:hover,
header nav a:focus {
  background: var(--color-muted);
  color: var(--color-secondary);
}
header nav .btn-primary {
  margin-left: 10px;
  font-size: 1.1rem;
}

/* HIDE MOBILE MENU BUTTON ON DESKTOP */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--color-primary);
  cursor: pointer;
  line-height: 1;
  padding: 8px 16px;
  margin-left: auto;
}

/* MOBILE MENU */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(33,85,109,0.98);
  z-index: 2000;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(.68,-0.55,.27,1.55);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  padding: 0;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #FFF;
  margin: 32px 30px 0 0;
  cursor: pointer;
  align-self: flex-end;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: 100%;
  padding-top: 48px;
  padding-right: 36px;
  gap: 18px;
}
.mobile-nav a {
  color: #FFF;
  font-size: 1.2rem;
  font-family: 'Lato', sans-serif;
  padding: 9px 20px;
  border-radius: 7px;
  transition: background 0.21s, color 0.18s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}

@media (max-width: 1100px) {
  .container {
    max-width: 97vw;
  }
}
@media (max-width: 900px) {
  header nav a {
    font-size: 1rem;
  }
  header nav img {
    height: 36px;
  }
  header nav {
    gap: 16px;
  }
}
@media (max-width: 820px) {
  header nav a:not(:first-child),
  header nav .btn-primary {
    font-size: 0.98rem;
    padding: 8px 7px;
  }
  .container {
    padding: 0 4vw;
  }
}
@media (max-width: 768px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    position: absolute;
    top: 14px;
    right: 22px;
    z-index: 110;
  }
}

/* FOOTER */
footer {
  background: var(--color-accent);
  border-top: 1.5px solid var(--color-divider);
  padding: 40px 0 24px;
  width: 100%;
}
footer .content-wrapper {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 50px;
  justify-content: space-between;
}
footer img {
  height: 54px;
  margin-bottom: 14px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
footer nav a {
  color: var(--color-primary);
  font-size: 1rem;
  font-family: 'Lato', sans-serif;
  padding: 5px 0;
  opacity: 0.82;
  border-radius: 6px;
  transition: color 0.22s, background 0.17s;
}
footer nav a:hover,
footer nav a:focus {
  color: var(--color-secondary);
  background: var(--color-muted);
}
footer .text-section {
  color: #6B6E70;
  font-size: 0.96rem;
  font-family: 'Lato', sans-serif;
}
@media (max-width: 800px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 28px;
    align-items: flex-start;
  }
  footer img {
    margin-bottom: 8px;
    height: 44px;
  }
}

/* SECTION & CARD STYLES */
section {
  background: none;
}
section ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
}
section ul li {
  border-radius: 13px;
  box-shadow: 0 2px 10px var(--color-shadow);
  padding: 22px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: 210px;
  flex: 1 1 220px;
  border-left: 4px solid var(--color-secondary);
}
section ul li img {
  height: 40px;
  width: 40px;
  margin-bottom: 8px;
}
section ul li h3 {
  font-size: 1.15rem;
}
@media (max-width: 680px) {
  section ul {
    flex-direction: column;
  }
  section ul li {
    width: 100%;
    min-width: unset;
  }
}

/* BLOG CATEGORIES & TAGS */
.category {
  background: var(--color-secondary);
  color: var(--color-accent);
  border-radius: 7px;
  padding: 3px 11px;
  font-size: 0.88rem;
  margin-left: 9px;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.category-tags {
  margin-top: 16px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-family: 'Lato', sans-serif;
  font-size: 0.98rem;
  color: #6B6E70;
}
.category-tags span {
  background: var(--color-muted);
  color: var(--color-primary);
  border-radius: 5px;
  padding: 2px 8px;
  margin-right: 3px;
  font-weight: 500;
}

/* TEXT SECTIONS */
.text-section {
  margin-bottom: 22px;
}
.text-section img {
  height: 22px;
  width: 22px;
  vertical-align: middle;
  margin-right: 8px;
  margin-bottom: 3px;
}

/* HERO/CTA STYLES */
section:first-of-type .container, .section.hero .container {
  background: var(--color-muted);
  border-radius: 18px;
  box-shadow: 0 6px 32px var(--color-shadow);
  padding: 2rem 1rem;
  margin-bottom: 35px;
  margin-top: 20px;
}
section:last-of-type .container {
  background: var(--color-secondary);
  border-radius: 15px;
  color: #FFF;
}
section:last-of-type h2, section:last-of-type p {
  color: #FFF;
}
@media (max-width: 600px) {
  section:first-of-type .container, .section.hero .container {
    padding: 1rem 0.5rem;
    margin-bottom: 22px;
  }
}

/* FORM/INPUTS (if any form added) */
input, textarea, select {
  border: 1px solid var(--color-divider);
  background: #FFF;
  font-size: 1rem;
  padding: 11px 12px;
  border-radius: 7px;
  margin-bottom: 14px;
  outline: none;
  transition: border 0.2s, box-shadow 0.2s;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid var(--color-secondary);
  box-shadow: 0 2px 8px var(--color-shadow);
}
button:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

/* MICRO-INTERACTIONS */
.card, .feature-item, .testimonial-card {
  transition: box-shadow 0.18s, border-color 0.2s;
}
.card:hover, .feature-item:hover {
  box-shadow: 0 6px 24px rgba(33,85,109,0.15);
  border-left-color: var(--color-secondary);
}

/* CTA HIGHLIGHT */
.btn-primary:active, .btn-secondary:active {
  box-shadow: none;
  background: #183443;
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #FFF;
  color: var(--color-dark);
  border-top: 2px solid var(--color-divider);
  box-shadow: 0 -2px 32px rgba(33,85,109,0.06);
  z-index: 3000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 22px 30px;
  gap: 24px;
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.33s cubic-bezier(.77,.26,.41,.88), opacity 0.16s;
}
.cookie-banner.hidden {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner p {
  font-size: 1rem;
  flex: 1;
  margin-bottom: 0;
}
.cookie-banner .cookie-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cookie-btn, .cookie-banner button {
  font-size: 1rem;
  padding: 9px 24px;
  border-radius: 7px;
  border: none;
  background: var(--color-secondary);
  color: #FFF;
  font-family: 'Lato', sans-serif;
  font-weight: 600;
  margin-right: 7px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.18s;
  box-shadow: 0 2px 8px var(--color-shadow);
}
.cookie-btn:last-child {
  margin-right: 0;
}
.cookie-btn.settings {
  background: #FFF;
  color: var(--color-secondary);
  border: 1.5px solid var(--color-secondary);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--color-secondary);
  color: #FFF;
}
.cookie-btn.reject {
  background: #ECEBE7;
  color: #28303C;
  border: 1.5px solid #BFBDA6;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #BFBDA6;
  color: #FFF;
}
.cookie-btn.accept {
  background: var(--color-secondary);
  color: #FFF;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #679015;
  color: #FFF;
}
@media (max-width: 900px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 16px;
    gap: 14px;
  }
  .cookie-banner .cookie-btns {
    gap: 7px;
  }
}

/* COOKIE MODAL */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(45,45,45,0.42);
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.19s cubic-bezier(.55,.27,.64,.77);
}
.cookie-modal-overlay.hidden {
  opacity: 0;
  visibility: hidden;
}
.cookie-modal {
  background: #FFF;
  max-width: 420px;
  width: 94vw;
  border-radius: 13px;
  box-shadow: 0 8px 44px rgba(33,85,109,0.13);
  padding: 36px 24px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 5100;
  animation: modal-fadein 0.22s cubic-bezier(.77,.26,.41,.89);
}
@keyframes modal-fadein {
  0% { opacity: 0; transform: scale(0.96) translateY(30px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.cookie-modal h2 {
  font-size: 1.35rem;
  margin-bottom: 13px;
}
.cookie-modal .close-modal {
  position: absolute;
  right: 18px;
  top: 16px;
  font-size: 2rem;
  background: none;
  border: none;
  color: var(--color-secondary);
  cursor: pointer;
  transition: color 0.18s;
}
.cookie-modal .close-modal:hover,
.cookie-modal .close-modal:focus {
  color: var(--color-primary);
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.cookie-category input[type='checkbox'] {
  accent-color: var(--color-secondary);
  width: 18px;
  height: 18px;
}
.cookie-category label {
  font-family: 'Lato', sans-serif;
  font-size: 1.01rem;
  color: var(--color-dark);
}
.cookie-category.essential label {
  font-weight: 700;
}
.cookie-modal .cookie-btns {
  justify-content: flex-end;
}

/* RESPONSIVE ALIGNMENT */
@media (max-width: 768px) {
  .content-wrapper {
    padding: 0 4px;
  }
  section ul {
    gap: 17px 0;
  }
}

/* UTILITY CLASSES */
.mt-2 {
  margin-top: 18px !important;
}
.mb-2 {
  margin-bottom: 18px !important;
}
.text-center {
  text-align: center;
}
.flex {
  display: flex;
}
.flex-col {
  flex-direction: column;
}
.align-center {
  align-items: center;
}
.justify-center {
  justify-content: center;
}

/* ACCESSIBILITY & FOCUS */
:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

/* END OF CSS */