/* ========================= 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, 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 {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after { box-sizing: inherit; }
body {
  line-height: 1.6;
  background: #f9f7f5;
  color: #1A232B;
  font-family: Georgia, 'Times New Roman', Times, serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, picture {
  max-width: 100%;
  display: block;
}
a { color: inherit; text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { color: #225943; }
ul, ol { list-style: none; padding-left: 0; }
button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  border: none;
  background: inherit;
}
button {
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

/* ========================= ROOT VARIABLES ========================= */
:root {
  --brand-primary: #225943;
  --brand-secondary: #1A232B;
  --brand-accent: #E6CE92;
  --brand-bg: #f9f7f5;
  --text-dark: #22272a;
  --text-subtle: #485350;
  --card-bg: #fff;
  --card-border: #e2e0da;
  --shadow-lg: 0 4px 32px rgba(26,35,43,0.12);
  --shadow-md: 0 2px 8px rgba(26,35,43,0.10);
  --radius: 18px;
  --transition: 0.3s cubic-bezier(.19,1,.22,1);
}

/* ========================= TYPOGRAPHY ========================= */
body,
p, li, label, input, textarea, select, button {
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: var(--text-dark);
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Georgia, Times, 'Times New Roman', serif;
  color: var(--brand-secondary);
  font-weight: 700;
  line-height: 1.22;
  margin-bottom: 0.55em;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.5rem; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 16px; }
h3 { font-size: 1.4rem; margin-bottom: 11px; }
h4 { font-size: 1.15rem; margin-bottom: 8px; }
.text-section h1, .text-section h2, .content-wrapper h1, .content-wrapper h2 {
  margin-bottom: 0.7em;
}
strong, b { font-weight: bold; color: var(--brand-primary); }

/* ========================= CONTAINER, LAYOUTS & FLEXBOX ========================= */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
}
@media (min-width: 800px) {
  .content-wrapper { gap: 48px; }
}

/* SECTION SPACING - MANDATORY PATTERN */
section {
  margin-bottom: 60px;
  padding: 40px 0 0 0;
}
@media (max-width: 900px) {
  section {
    margin-bottom: 40px;
    padding: 28px 0 0 0;
  }
}

/* FLEX UTILITY CLASSES (FOR ALTERNATIVE STRUCTURES) */
.features-grid, .card-container, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.features-grid {
  gap: 32px;
}
.card-container {
  gap: 24px;
}
.content-grid {
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .features-grid,
  .content-grid,
  .card-container,
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
}

/* ========================= HEADER & NAVIGATION ========================= */
header {
  background: var(--card-bg);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 90;
  padding: 0;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 80px;
  position: relative;
}
.brand-logo {
  display: flex;
  align-items: center;
  padding: 10px 0;
}
.brand-logo img { width: 158px; height: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: 18px;
  font-family: 'Montserrat', serif;
  font-size: 1.11rem;
}
.main-nav a {
  position: relative;
  padding: 6px 2px;
  color: var(--brand-secondary);
  font-weight: 600;
  border-radius: 4px;
  transition: color 0.2s;
}
.main-nav a:after {
  content: '';
  display: block;
  height: 1.5px;
  width: 0;
  background: var(--brand-primary);
  transition: width var(--transition);
}
.main-nav a:hover:after, .main-nav a:focus:after {
  width: 95%;
}
.cta-button {
  display: inline-block;
  background: var(--brand-primary);
  color: #fff;
  font-family: 'Montserrat', serif;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 7px rgba(34, 89, 67, 0.10);
  margin-left: 20px;
  transition: background 0.22s, color 0.22s, box-shadow 0.22s;
  border: none;
}
.cta-button:hover, .cta-button:focus {
  background: var(--brand-secondary);
  color: var(--brand-accent);
  box-shadow: 0 7px 24px rgba(34, 89, 67, 0.14);
}

/* ========================= MOBILE NAVIGATION ========================= */
.mobile-menu-toggle {
  display: none;
  background: var(--brand-accent);
  color: var(--brand-secondary);
  border-radius: 50%;
  border: none;
  font-size: 2rem;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  z-index: 102;
  transition: background 0.18s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--brand-secondary);
  color: var(--brand-accent);
}
@media (max-width: 1100px) {
  .main-nav {
    display: none;
  }
  .cta-button {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #f9f7f5;
  box-shadow: 0 0 56px 0 rgba(26, 35, 43, 0.18);
  transform: translateX(-100%);
  transition: transform 0.44s cubic-bezier(.49,.1,.15,1.54);
  z-index: 200;
  padding: 0 0 0 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  margin: 30px 22px 14px auto;
  background: none;
  border: none;
  color: var(--brand-primary);
  font-size: 2.3rem;
  line-height: 1;
  cursor: pointer;
  align-self: flex-end;
  z-index: 210;
  transition: color 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--brand-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  width: 100%;
  align-items: flex-start;
  margin-top: 44px;
  padding: 0 30px;
}
.mobile-nav a {
  font-family: 'Montserrat', serif;
  font-size: 1.35rem;
  color: var(--brand-secondary);
  font-weight: 600;
  padding: 13px 0;
  border-radius: 5px;
  width: 100%;
  transition: background 0.18s, color 0.18s;
  text-align: left;
}
.mobile-nav a:active, .mobile-nav a:focus {
  background: var(--brand-accent);
  color: var(--brand-primary);
}
.mobile-nav a:hover {
  color: var(--brand-primary);
}
@media (min-width: 1101px) {
  .mobile-menu { display: none !important; }
}

/* ========================= HERO SECTION ========================= */
.hero {
  background: var(--brand-primary);
  background-image: linear-gradient(135deg, #377c5d 0%, #225943 95%);
  color: #fff;
  padding: 0 !important;
  margin-bottom: 60px;
  box-shadow: 0 8px 28px rgba(34,89,67,0.12);
}
.hero .container {
  min-height: 390px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding-top: 44px;
}
.hero .content-wrapper {
  color: #fff;
  align-items: center;
  text-align: center;
  gap: 22px;
  margin-bottom: 20px;
}
.hero h1 {
  color: #fff;
  font-size: 2.7rem;
  text-shadow: 0 2px 12px rgba(34,89,67,0.13);
}
.hero p {
  font-size: 1.25rem;
  max-width: 550px;
  margin: 0 auto 15px auto;
  color: #f3ecde;
}
.hero .cta-button {
  font-size: 1.16rem;
  padding: 15px 38px;
  background: var(--brand-accent);
  color: var(--brand-primary);
  margin-left: 0;
  margin-top: 8px;
  font-family: 'Montserrat', serif;
  font-weight: 700;
}
.hero .cta-button:hover, .hero .cta-button:focus {
  background: #fff;
  color: var(--brand-primary);
  box-shadow: 0 6px 30px rgba(34,89,67,0.21);
}

@media (max-width: 800px) {
  .hero .container { min-height: 250px; padding-top: 24px; }
  .hero h1 { font-size: 2rem; }
}

/* ========================= FEATURES GRID + FEATURE ITEM ========================= */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 30px 24px;
  min-width: 220px;
  box-shadow: 0 2px 10px 0 rgba(34, 89, 67, 0.055);
  border: 1px solid var(--card-border);
  flex: 1 1 240px;
  transition: box-shadow 0.25s, transform 0.23s;
  margin-bottom: 24px;
}
.feature-item img {
  width: 36px;
  height: 36px;
}
.feature-item h3 {
  font-size: 1.20rem;
  color: var(--brand-primary);
}
.feature-item p {
  color: var(--text-subtle);
}
.feature-item:hover, .feature-item:focus-within {
  box-shadow: 0 6px 22px 0 rgba(34, 89, 67, 0.12);
  transform: translateY(-4px) scale(1.025);
}

@media (max-width: 900px) {
  .feature-item { padding: 22px 15px; min-width: 0; }
}
@media (max-width: 600px) {
  .feature-item { padding: 16px 8px; }
}

/* ========================= CARDS & TESTIMONIALS ========================= */
.card-container { margin-bottom: 20px; position: relative; }
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--card-border);
  padding: 30px 26px;
  transition: box-shadow 0.23s, transform 0.19s;
  margin-bottom: 20px;
  min-width: 220px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 36px 0 rgba(26,35,43,0.13);
  transform: translateY(-6px) scale(1.03);
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 20px 28px;
  background: #fffefa;
  border-radius: 18px;
  box-shadow: 0 2px 18px rgba(26,35,43,0.07);
  border-left: 6px solid var(--brand-accent);
  margin-bottom: 20px;
  transition: box-shadow 0.19s, border 0.18s;
}
.testimonial-card p {
  color: var(--text-dark);
  font-size: 1.07rem;
}
.testimonial-card strong { color: var(--brand-primary); }
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 3px 35px 0 rgba(34,89,67,0.12);
  border-left: 6px solid var(--brand-primary);
}
@media (max-width: 700px) {
  .testimonial-card { padding: 15px 11px; }
}

/* ========================= BLOG PREVIEWS ========================= */
.blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 12px;
}
.blog-post-preview {
  flex: 1 1 240px;
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  box-shadow: 0 2px 14px 0 rgba(26,35,43,0.08);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow 0.19s, transform 0.15s;
}
.blog-post-preview h3 {
  font-size: 1.13rem;
  margin-bottom: 7px;
  color: var(--brand-primary);
}
.blog-post-preview p {
  color: var(--text-subtle);
  margin-bottom: 10px;
}
.blog-post-preview a {
  display: inline-block;
  color: var(--brand-primary);
  font-weight: 600;
  transition: color 0.19s;
  border-bottom: 1.5px solid var(--brand-accent);
  font-family: 'Montserrat', serif;
}
.blog-post-preview a:hover {
  color: var(--brand-secondary);
  border-bottom: 1.5px solid var(--brand-primary);
}
.blog-post-preview:hover {
  box-shadow: 0 7px 24px 0 rgba(34, 89, 67, 0.12);
  transform: translateY(-5px) scale(1.02);
}

/* ========================= TEXT SECTIONS, NORMAL CONTENT ========================= */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 19px;
  margin-bottom: 12px;
}
.text-section ul, .content-wrapper ul {
  padding-left: 28px;
  color: var(--text-subtle);
  margin-top: 7px;
  margin-bottom: 12px;
  list-style: disc outside;
}
.text-section ul li, .content-wrapper ul li {
  padding-bottom: 5px;
  line-height: 1.6;
}
.content-wrapper ul li {
  margin-bottom: 8px;
}

/* ========== CONTACT INFO ========== */
.contact-info ul {
  margin: 11px 0 0 0;
  font-size: 1.05rem;
  color: var(--text-dark);
}
.contact-info ul li {
  margin-bottom: 6px;
  line-height: 1.5;
}

/* ========================= FOOTER ========================= */
footer {
  background: var(--brand-secondary);
  padding: 50px 0 0 0;
  margin-top: 70px;
  color: #e4e7e1;
}
footer .container {
  flex-direction: column;
  gap: 32px;
  padding-bottom: 30px;
}
.footer-brand-info {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 30px;
  margin-bottom: 16px;
}
.footer-brand-info img {
  width: 68px;
  height: auto;
}
.footer-brand-info .text-section {
  color: #e7dfa7;
}
.footer-brand-info strong {
  color: var(--brand-accent);
}
.footer-nav, .footer-menu {
  display: flex;
  flex-direction: row;
  gap: 20px;
  margin-bottom: 9px;
  flex-wrap: wrap;
}
.footer-nav a, .footer-menu a {
  color: #ecebe2;
  font-size: 1.01rem;
  font-family: 'Montserrat', serif;
  padding: 4px 4px;
  border-radius: 4px;
  transition: color 0.17s, background 0.17s;
}
.footer-nav a:hover, .footer-menu a:hover {
  color: var(--brand-accent);
  background: rgba(230,206,146,0.10);
}
footer a {
  color: #ecebe2;
}
footer a:focus { outline: 1.5px solid var(--brand-accent); }
footer p, footer strong {
  color: #ecebe2;
}
@media (max-width: 700px) {
  .footer-brand-info { flex-direction: column; align-items: flex-start; gap: 13px; }
  .footer-nav, .footer-menu { gap: 10px; }
}

/* ========================= SERVICE LIST ========================= */
.service-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 22px;
}
.service-list > li {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  box-shadow: 0 2px 10px 0 rgba(26,35,43,0.07);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.19s, transform 0.14s;
}
.service-list > li:hover {
  box-shadow: 0 8px 30px 0 rgba(34, 89, 67, 0.11);
  transform: translateY(-4px) scale(1.014);
}
.service-list h2 {
  font-size: 1.22rem;
  color: var(--brand-primary);
  font-family: 'Montserrat', serif;
  font-weight: 700;
}

/* ========================= GENERAL BUTTONS, FORMS, INTERACTIONS ========================= */
button, .cta-button, .cookie-banner button,.cookie-modal button {
  font-family: 'Montserrat', serif;
  font-size: 1.07rem;
  border: none;
}

/* ========================= COOKIE CONSENT BANNER & MODAL ========================= */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fffdfa;
  color: var(--brand-secondary);
  box-shadow: 0 -3px 32px rgba(34, 89, 67, 0.11);
  padding: 28px 22px;
  z-index: 600;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  justify-content: center;
  transition: transform 0.36s, opacity 0.24s;
  animation: cookieBannerSlideIn 0.5s cubic-bezier(.63,.02,.52,1.24) forwards;
}
@keyframes cookieBannerSlideIn { from { transform: translateY(110%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.cookie-banner .cookie-banner-buttons {
  display: flex; flex-direction: row; gap: 16px;
}
.cookie-banner button {
  border-radius: 24px;
  padding: 10px 26px;
  background: var(--brand-primary);
  color: #fff;
  font-weight: bold;
  margin-right: 6px;
  margin-top: 0;
  transition: background 0.17s, color 0.17s;
}
.cookie-banner button.cookie-settings {
  background: var(--brand-accent);
  color: var(--brand-primary);
  border: 1px solid var(--brand-primary);
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: var(--brand-secondary);
  color: var(--brand-accent);
}
.cookie-banner button.cookie-settings:hover, .cookie-banner button.cookie-settings:focus {
  background: var(--brand-primary);
  color: #fff;
}

.cookie-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 98vw;
  max-width: 410px;
  background: #ffffff;
  border-radius: 21px;
  box-shadow: 0 8px 64px rgba(34,89,67,0.17);
  padding: 38px 25px 32px 25px;
  z-index: 1001;
  transform: translate(-50%, -50%);
  opacity: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: cookieModalIn 0.45s cubic-bezier(.48,.12,.29,1.32) forwards;
}
@keyframes cookieModalIn { from { opacity: 0; transform: translate(-50%, -40%); } to { opacity: 1; transform: translate(-50%, -50%); } }

.cookie-modal h2 {
  margin-bottom: 0;
  font-size: 1.27rem;
  color: var(--brand-primary);
}
.cookie-modal .cookie-category {
  display: flex; flex-direction: row; align-items: center; gap: 13px; margin-bottom: 8px;
}
.cookie-modal .cookie-category label {
  font-weight: 600;
  color: var(--brand-secondary);
  font-family: 'Montserrat', serif;
}
.cookie-modal .cookie-category input[type="checkbox"] {
  accent-color: var(--brand-primary);
}
.cookie-modal .cookie-category input[disabled] {
  opacity: 0.55;
  pointer-events: none;
}
.cookie-modal .cookie-actions {
  display: flex; flex-direction: row; gap: 15px; margin-top: 16px;
  justify-content: flex-end;
}
.cookie-modal button {
  border-radius: 23px;
  background: var(--brand-primary);
  color: #fff;
  padding: 8px 28px;
  box-shadow: 0 2px 10px rgba(34, 89, 67, 0.04);
  font-weight: 700;
  transition: background 0.14s, color 0.14s;
}
.cookie-modal button.reject {
  background: var(--brand-accent);
  color: var(--brand-primary);
  border: 1px solid var(--brand-primary);
}
.cookie-modal button:hover, .cookie-modal button:focus {
  background: var(--brand-secondary);
  color: var(--brand-accent);
}
.cookie-modal button.reject:hover, .cookie-modal button.reject:focus {
  background: var(--brand-primary);
  color: #fff;
}
.cookie-modal .modal-close {
  position: absolute; right: 19px; top: 19px;
  background: none;
  color: var(--brand-secondary);
  border: none;
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.13s;
  z-index: 1100;
}
.cookie-modal .modal-close:hover, .cookie-modal .modal-close:focus {
  color: var(--brand-primary);
}

/* ========== Responsive: HIDE Cookie Modal/Banner when closed by adding .hidden class ========== */
.cookie-modal.hidden, .cookie-banner.hidden { display: none !important; }

/* ========================= RESPONSIVE STYLES ========================= */
@media (max-width: 900px) {
  .container { max-width: 100%; }
  .content-wrapper { padding: 0; gap: 20px; }
}
@media (max-width: 700px) {
  body { font-size: 15px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  .container { padding: 0 9px; }
  section { padding: 22px 0 0 0; margin-bottom: 30px; }
}
@media (max-width: 500px) {
  h1 { font-size: 1.32rem; }
  h2 { font-size: 1.06rem; }
  .hero h1 { font-size: 1.34rem; }
  .cta-button, button, .cookie-banner button, .cookie-modal button { font-size: 0.98rem; }
}

/* ========== Spacing between all content cards/sections ========== */
section + section { margin-top: 0px; }
.card + .card, .testimonial-card + .testimonial-card {
  margin-top: 20px;
}
.content-wrapper > * + * {
  margin-top: 8px;
}

/* ========== Utility & Micro-interactions ========== */
[tabindex]:focus, a:focus, button:focus, .cta-button:focus {
  outline: 2px solid var(--brand-accent);
  outline-offset: 1.5px;
}
::-webkit-scrollbar { width: 7px; background: #ecebe2; }
::-webkit-scrollbar-thumb { background: var(--brand-primary); border-radius: 7px; }

/* ========== Animations ========== */
.card,
.service-list > li,
.feature-item,
.blog-post-preview,
.testimonial-card {
  transition: box-shadow 0.24s, transform 0.14s, border 0.14s;
}
.cta-button,
.cookie-banner button,
.cookie-modal button {
  transition: background 0.24s, color 0.21s, box-shadow 0.22s;
}

/* ========== Hide focus outlines for mouse users (show only on keyboard navigation, progressive enhancement) ========== */
body:not(.user-is-tabbing) button:focus, body:not(.user-is-tabbing) a:focus {
  outline: none;
}

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