/* =========================
   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;
}

html {
  font-size: 16px;
  box-sizing: border-box;
}

body {
  line-height: 1.5;
  background: #F5F1EB;
  color: #245B43;
  font-family: 'Source Sans Pro', Arial, sans-serif;
  font-size: 1rem;
  min-height: 100vh;
}

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

a {
  color: #245B43;
  text-decoration: none;
  transition: color 0.18s;
}
a:focus, a:hover {
  color: #B5873B;
  outline: none;
  text-decoration: underline;
}

ul, ol {
  padding-left: 1.5em;
  margin-bottom: 16px;
}
li {
  margin-bottom: 8px;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
button {
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

/* =========================
   Typography & Headings
   ========================= */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 700;
  color: #245B43;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2rem;
  margin-bottom: 20px;
  line-height: 1.2;
}
h2 {
  font-size: 1.5rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.125rem;
  margin-bottom: 13px;
}
h4, h5, h6 {
  font-size: 1rem;
  margin-bottom: 10px;
}
p, address {
  font-family: 'Source Sans Pro', Arial, sans-serif;
  color: #363626;
  font-size: 1rem;
  margin-bottom: 16px;
  line-height: 1.6;
}
strong {
  font-weight: 700;
  color: #245B43;
}

.text-section h3 {
  font-size: 1.125rem;
  color: #997012;
  margin-bottom: 10px;
}

/* =======================
   Layout Containers
   ======================= */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(36,91,67,0.05);
}

/* FLEXBOX PATTERNS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.card {
  background: #fff;
  border-radius: 7px;
  box-shadow: 0 2px 8px rgba(36,91,67,0.08);
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.24s;
  padding: 24px;
  min-width: 0;
}
.card:hover {
  box-shadow: 0 8px 28px rgba(36,91,67,0.10);
}

.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;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 7px;
  background: #F5F1EB;
  color: #245B43;
  box-shadow: 0 2px 10px rgba(36,91,67,0.07);
  min-width: 0;
  max-width: 600px;
  border-left: 4px solid #245B43;
}
.testimonial-card p {
  color: #245B43;
  font-size: 1.05rem;
  margin: 0 0 5px 0;
}
.testimonial-card strong {
  color: #997012;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: transparent;
  border-radius: 7px;
  padding: 20px 16px;
  min-width: 200px;
  flex: 1 1 220px;
  box-shadow: 0 0.5px 2px rgba(36,91,67,0.03);
  transition: box-shadow 0.2s, background 0.2s;
}
.feature-item:hover {
  background: #F5F1EB;
  box-shadow: 0 3px 14px rgba(36,91,67,0.08);
}
.feature-item img {
  width: 40px;
  height: 40px;
  margin-bottom: 8px;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}

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

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

.social-media-links {
  display: flex;
  gap: 18px;
  margin-bottom: 12px;
}
.social-media-links a {
  display: flex;
  align-items: center;
  border-radius: 50%;
  padding: 4px;
  transition: background 0.2s;
}
.social-media-links a:hover {
  background: #E4DFD5;
}

/* ========================
   CTA Button Styles
   ======================== */
.cta-button {
  display: inline-block;
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.125rem;
  color: #fff;
  background: #245B43;
  padding: 13px 35px;
  border-radius: 24px;
  box-shadow: 0 3px 16px rgba(36,91,67,0.13);
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: background 0.18s, box-shadow 0.24s, transform 0.14s;
  border: none;
  cursor: pointer;
}
.cta-button:hover, .cta-button:focus {
  background: #997012;
  color: #fff;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 32px rgba(36,91,67,0.23);
}

/* =========================
   Header & Navigation
   ========================= */
header {
  background: #fff;
  border-bottom: 1px solid #E4DFD5;
  box-shadow: 0 2px 8px rgba(36,91,67,0.03);
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 12;
}
header .container {
  display: flex;
  align-items: center;
  gap: 22px;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}
.main-nav {
  display: flex;
  gap: 32px;
  align-items: center;
}
.main-nav a {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1rem;
  color: #245B43;
  font-weight: 500;
  padding: 2px 5px;
  border-radius: 3px;
  transition: background 0.14s, color 0.14s;
}
.main-nav a:hover, .main-nav a:focus {
  color: #997012;
  background: #F5F1EB;
}
header img {
  height: 38px;
}

/* ===============
   Mobile Menu
   =============== */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 50;
  width: 44px;
  height: 44px;
  background: #fff;
  color: #245B43;
  border-radius: 8px;
  font-size: 2rem;
  box-shadow: 0 2px 8px rgba(36,91,67,0.13);
  transition: background 0.12s;
}
.mobile-menu-toggle:focus { outline: 2px solid #997012; }
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(36,91,67,0.92);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  transform: translateX(-100vw);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.38s cubic-bezier(.23,.86,.36,1), opacity 0.23s;
  z-index: 1001;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: transparent;
  color: #fff;
  font-size: 2.2rem;
  padding: 16px 24px;
  margin-top: 14px;
  margin-right: 10px;
  border-radius: 8px;
  line-height: 1;
  transition: background 0.17s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: rgba(245,241,235,0.14);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  width: 100%;
  margin-top: 40px;
  padding: 0 32px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Merriweather',Georgia,serif;
  font-size: 1.25rem;
  font-weight: 500;
  padding: 14px 5px;
  border-radius: 5px;
  width: 100%;
  transition: background 0.13s, color 0.17s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #B5873B;
  background: rgba(245,241,235,0.09);
}

/* ====================
   Main / Sections
   ==================== */
main {
  padding-top: 22px;
  padding-bottom: 22px;
  min-height: 64vh;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* =============
   Footer
   ============= */
footer {
  background: #245B43;
  padding: 28px 0 6px 0;
  color: #fff;
  font-size: 0.96rem;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
footer nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 8px;
}
footer nav a{
  color: #fff;
  opacity: 0.92;
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1rem;
  transition: color 0.14s, opacity 0.13s, text-decoration 0.17s;
  text-decoration: underline dotted rgba(255,255,255,0.15);
  text-underline-offset: 2px;
}
footer nav a:hover {
  color: #B5873B;
  opacity: 1;
  text-decoration: underline;
}
footer address {
  color: #F5F1EB;
  font-style: normal;
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 0.97rem;
}
footer address img {
  display: inline-block;
  width: 16px;
  height: 16px;
  vertical-align: text-bottom;
}
footer p {
  margin-bottom: 0;
  color: #c8d6cb;
  font-size: 0.92rem;
}

/* =====================
   Cookie Consent Banner
   ===================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #245B43;
  color: #fff;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 20px 18px 20px;
  z-index: 1060;
  box-shadow: 0 -2px 22px rgba(36,91,67,0.13);
  animation: fadeInUp 0.6s cubic-bezier(.22,.78,.49,1);
}
@keyframes fadeInUp {
  from { transform: translateY(50px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  margin: 0;
  color: #fff;
  flex: 1 1 210px;
}
.cookie-banner-buttons {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.cookie-btn {
  font-family: 'Source Sans Pro',Arial,sans-serif;
  font-weight: 600;
  border-radius: 18px;
  font-size: 1rem;
  padding: 9px 22px;
  border: none;
  cursor: pointer;
  transition: background 0.16s, color 0.11s, box-shadow 0.18s;
  margin-bottom: 6px;
  margin-right: 3px;
  outline: none;
}
.cookie-btn.accept {
  background: #997012;
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #B5873B;
}
.cookie-btn.reject {
  background: #fff;
  color: #245B43;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #F5F1EB;
}
.cookie-btn.settings {
  background: #245B43;
  color: #fff;
  border: 1px solid #B5873B;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #F5F1EB;
  color: #245B43;
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  z-index: 1102;
  left: 0; top: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(36,91,67,0.62);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInBG 0.2s;
}
@keyframes fadeInBG {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: #245B43;
  padding: 34px 22px 22px 22px;
  border-radius: 14px;
  min-width: 320px;
  max-width: 95vw;
  box-shadow: 0 4px 32px rgba(36,91,67,0.17);
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: slideDown 0.22s cubic-bezier(.23,.86,.36,1);
}
@keyframes slideDown {
  from { transform: translateY(-50px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-modal h2 {
  color: #997012;
  font-size: 1.25rem;
  margin-bottom: 12px;
  text-align: left;
}
.cookie-modal-category {
  margin-bottom: 16px;
  padding: 14px 10px;
  border-radius: 6px;
  background: #F5F1EB;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.cookie-modal-category label {
  font-size: 1rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 11px;
}
.cookie-modal-close {
  position: absolute;
  top: 12px;
  right: 20px;
  font-size: 1.8rem;
  background: none;
  color: #997012;
  border: none;
  cursor: pointer;
  z-index: 2;
}
.cookie-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 10px;
}

/* ===========================
   Responsive Design (Mobile)
   =========================== */
@media (max-width: 1072px) {
  .container {
    max-width: 97vw;
    padding: 0 10px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 20px;
  }
  .feature-grid, .card-container {
    gap: 18px;
  }
  .footer address {
    flex-direction: column;
    gap: 8px;
  }
}
@media (max-width: 768px) {
  header .container {
    gap: 9px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .main-nav {
    display: none !important;
  }
  .cta-button {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .footer address {
    flex-direction: column;
    gap: 8px;
  }
  section, .section {
    padding: 26px 10px 30px 10px;
    margin-bottom: 36px;
  }
  h1 { font-size: 1.35rem; }
  h2 { font-size: 1.08rem; }
  .feature-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .testimonial-card {
    max-width: 100%;
    padding: 14px 10px;
  }
  .text-image-section {
    flex-direction: column !important;
    gap: 18px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 9px 12px 9px;
    font-size: 0.97rem;
  }
}
@media (max-width: 480px) {
  html {
    font-size: 15px;
  }
  h1 { font-size: 1.08rem; }
  .container {
    padding: 0 3vw;
  }
  .cookie-modal {
    padding: 14px 5px 10px 5px;
  }
}

/* ======================
   Misc Visual Details
   ====================== */
::-webkit-input-placeholder { color: #959079; }
::-moz-placeholder { color: #959079; }
:-ms-input-placeholder { color: #959079; }
::placeholder { color: #959079; }

hr {
  border: none;
  border-top: 1px solid #E4DFD5;
  margin: 28px 0;
}

/* ============
   Animations
   ============ */
.cta-button, .cookie-btn, .main-nav a, .feature-item, .card, .testimonial-card, .mobile-menu-toggle, .mobile-menu-close {
  transition: all 0.16s cubic-bezier(.17,.67,.47,1);
}

/* =========================
   Accessibility & Focus State
   ========================= */
:focus {
  outline: 2px dashed #997012;
  outline-offset: 1px;
}

/* =====================================
   Utility: Hide visually but accessible
   ===================================== */
.visually-hidden {
  position: absolute;
  overflow: hidden;
  border: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  clip: rect(0 0 0 0);
  padding: 0;
}

/* Improve vertical rhythm and white space for classic elegance */
section:not(:last-child), .section:not(:last-child) { margin-bottom: 60px; }
.card:not(:last-child), .testimonial-card:not(:last-child) { margin-bottom: 20px; }

/* ===============
   Print Ready
   =============== */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay { display: none!important; }
  section, main { box-shadow: none; background: #fff; }
}
