/* ========================
   CSS RESET & BASE STYLES
======================== */
html, body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, li, figure, blockquote, dl, dd,
form, fieldset, legend,
pre, code, table, th, td {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font-weight: inherit;
  vertical-align: baseline;
  background: none;
}
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
article, aside, details, figcaption, figure,
footer, header, main, nav, section {
  display: block;
}
*, *:before, *:after {
  box-sizing: border-box;
}
html {
  font-size: 16px;
}
body {
  min-height: 100vh;
  background: #F3F8F2;
  color: #23281C;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}

/* ========================
   FONT IMPORT
======================== */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600;700&family=Montserrat:wght@400;500;700&display=swap');

:root {
  --primary: #296841;
  --secondary: #A8CABA;
  --accent: #F3F8F2;
  --text-dark: #23281C;
  --text-medium: #496052;
  --gold: #C3A267;
  --gold-dark: #8F7845;
  --offwhite: #FAFAF7;
  --border: #DAE3D8;
  --shadow: 0 3px 24px rgba(44, 60, 32, 0.10);
  --radius-card: 18px;
  --radius-btn: 28px;
  --transition: 0.3s cubic-bezier(.57,.21,.69,1.25);
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Montserrat', Arial, sans-serif;
  --header-height: 74px;
}

/* ===================
   TYPOGRAPHY
=================== */
h1, .h1 {
  font-family: var(--font-display);
  color: var(--primary);
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.13;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}
@media (min-width: 600px) {
  h1, .h1 { font-size: 3.25rem; }
}
h2, .h2 {
  font-family: var(--font-display);
  color: var(--primary);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.16;
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}
h3, .h3 {
  font-family: var(--font-display);
  color: var(--text-dark);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 8px;
}
h4, .h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--secondary);
  font-weight: 600;
}
p, li, a, span, strong {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-medium);
}
a {
  text-decoration: none;
  color: var(--primary);
  font-weight: 500;
  transition: color var(--transition);
}
a:hover, a:focus {
  color: var(--gold);
}
strong {
  color: var(--primary);
  font-weight: 700;
}

/* TYPOGRAPHY SCALE */
.small { font-size: 0.95rem; }
.large { font-size: 1.2rem; font-weight: 500; }

/* ===================
   LAYOUT & SPACING
=================== */
.container {
  width: 100%;
  max-width: 1160px;
  padding: 0 20px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  padding: 20px 0;
}
.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}
.main-nav li {
  display: flex;
}
.main-nav a {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--primary);
  padding: 7px 11px;
  border-radius: 22px;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--gold);
  color: #fff;
}
.main-nav img {
  height: 42px;
  width: auto;
}

/* =========================
   SECTIONS & GRID SYSTEM
========================= */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  border-radius: var(--radius-card);
}
@media (min-width: 600px) {
  section { padding: 60px 0; }
}

/* Feature grid cards */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 32px;
}
.feature-grid > div {
  flex: 1 1 220px;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 32px 24px 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow var(--transition), transform var(--transition);
}
.feature-grid > div:hover {
  box-shadow: 0 8px 32px 0 rgba(44,60,32,0.17);
  transform: translateY(-6px) scale(1.03);
  border-color: var(--gold);
}
.feature-grid img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  margin-bottom: 6px;
  filter: drop-shadow(0 1px 0 rgba(195,162,103,.07));
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition);
  border: 1px solid var(--border);
}

.card:hover {
  box-shadow: 0 8px 28px 0 rgba(44,60,32,0.14);
  border-color: var(--gold);
}

.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: 24px;
    align-items: center;
  }
  .feature-grid { flex-direction: column; gap: 20px; }
}

/* Blog teasers and posts */
.blog-teasers, .featured-posts, .blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 32px;
  width: 100%;
}
.blog-teasers article, .featured-posts article, .blog-list article {
  flex: 1 1 260px;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 28px 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.blog-teasers article:hover, .featured-posts article:hover, .blog-list article:hover {
  box-shadow: 0 8px 16px 0 rgba(44,60,32,0.14);
  border-color: var(--gold);
}

/* ==========================
   CTA BUTTONS & LINKS
========================== */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 14px 37px;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  margin-top: 30px;
  letter-spacing: 0.03em;
  box-shadow: 0 8px 22px 0 rgba(44,60,32,0.11);
  transition: background var(--transition), color var(--transition), transform var(--transition);
  position: relative;
}
.cta-button:after {
  content: '';
  width: 26px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold) 80%, transparent 100%);
  border-radius: 2px;
  display: inline-block;
  margin-left: 10px;
  transition: transform var(--transition);
  transform: scaleX(0.98);
}
.cta-button:hover,
.cta-button:focus {
  background: var(--gold);
  color: var(--primary);
  transform: translateY(-2px) scale(1.03);
}
.cta-button:hover:after,
.cta-button:focus:after {
  transform: scaleX(1.15);
}

/* ===================
   FILTER MENU
=================== */
.filter-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-size: 1.05rem;
  margin: 34px 0 0 0;
  color: var(--primary);
}
.filter-menu span {
  font-weight: 600;
  color: var(--gold-dark);
  margin-right: 4px;
}
.filter-menu a {
  color: var(--primary);
  font-weight: 500;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 3px 10px;
  transition: border-color var(--transition), color var(--transition);
}
.filter-menu a:hover {
  color: var(--gold);
  border-color: var(--gold);
}

/* ================================
   TESTIMONIALS/CARD/LIST LAYOUT
================================ */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 32px;
}
.testimonial-card {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  border: 1px solid var(--gold);
  padding: 24px 20px 20px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  min-width: 0;
  max-width: 430px;
  position: relative;
  font-size: 1rem;
  color: var(--text-dark);
}
.testimonial-card .stars {
  color: var(--gold-dark);
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: -7px;
  margin-top: -4px;
}
.testimonial-card p {
  color: var(--text-dark);
  font-size: 1.05rem;
  font-style: italic;
  margin-bottom: 7px;
}
.testimonial-card span, .testimonial-card strong {
  color: var(--primary);
  font-size: 1rem;
  font-weight: 600;
}
/* make sure dark text on light bg for accessibility */
.testimonial-card {
  background: #fff;
  color: #23281C;
}

/* ===================
   FOOTER
=================== */
footer {
  background: var(--primary);
  color: #fff;
  padding: 60px 0 32px 0;
  border-top: 4px solid var(--gold);
  margin-top: 90px;
}
footer .container { padding: 0 20px; }
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-brand img {
  height: 60px;
  margin-bottom: 20px;
  border-radius: 13px;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 1.03rem;
}
.footer-contact p, .footer-contact a {
  color: #fff;
}
.footer-contact img {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-right: 10px;
}
.footer-links {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  margin: 0 0 16px 0;
}
.footer-links nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links a {
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  transition: color var(--transition);
  padding: 2px 2px 2px 0;
  display: inline-block;
}
.footer-links a:hover { color: var(--gold); }
.footer-social a {
  margin-right: 10px;
  display: inline-flex;
  align-items: center;
  transition: transform 0.18s ease;
}
.footer-social a:hover {
  transform: scale(1.17);
}
.footer-social img {
  width: 32px;
  height: 32px;
}

@media (max-width: 1024px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
}
@media (max-width: 768px) {
  .footer-links { gap: 28px; }
}

/* =========================
   MOBILE MENU
========================= */
.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--primary);
  margin-left: 18px;
  cursor: pointer;
  z-index: 2040;
  transition: background 0.17s, color 0.11s;
  width: 46px;
  height: 46px;
  border-radius: 46px;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--accent);
  color: var(--gold);
  outline: 0;
}
.main-nav ul { display: flex; }
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(36,55,38,0.97);
  transform: translateX(-105%);
  transition: transform 0.38s cubic-bezier(.6,.07,.5,1.08);
  z-index: 4020;
  box-shadow: 2px 0 42px 0 rgba(32,46,24,0.15);
  display: flex;
  flex-direction: column;
  opacity: 1;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  appearance: none;
  border: none;
  background: none;
  color: var(--gold);
  font-size: 2.3rem;
  font-weight: 700;
  padding: 20px 18px 6px 18px;
  align-self: flex-end;
  cursor: pointer;
  z-index: 4100;
  transition: color var(--transition);
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  height: 94vh;
  padding: 34px 42px 38px 42px;
  overflow-y: auto;
  margin-top: -16px;
}
.mobile-nav a {
  font-size: 1.3rem;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 12px 0;
  border-bottom: 1px solid rgba(254,211,103,0.04);
  width: 100%;
  display: block;
  transition: color var(--transition), border-bottom var(--transition);
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
  outline: 0;
}

/* Hide desktop menu & show burger on mobile */
@media (max-width: 1024px) {
  .main-nav ul { display: none; }
  .mobile-menu-toggle { display: inline-flex; }
}
@media (min-width: 1025px) {
  .mobile-menu { display: none !important; }
  .mobile-menu-toggle { display: none !important; }
}

/* =========================
   COOKIE CONSENT BANNER
========================= */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #fff;
  color: var(--text-dark);
  box-shadow: 0 -2px 24px 0 rgba(44,60,32,0.10);
  border-top: 2px solid var(--gold);
  padding: 28px 20px 20px 20px;
  z-index: 5500;
  display: flex;
  align-items: center;
  gap: 22px;
  justify-content: space-between;
  transition: transform 0.33s cubic-bezier(.51,.29,.59,0.98);
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cookie-banner .cookie-text {
  flex: 1 1 0%;
  font-size: 1.05rem;
  margin-right: 18px;
  color: var(--text-dark);
  font-family: var(--font-body);
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.cookie-btn {
  font-family: var(--font-body);
  padding: 8px 21px;
  font-size: 1.02rem;
  border-radius: 23px;
  border: 1px solid var(--primary);
  background: #fff;
  color: var(--primary);
  font-weight: 600;
  margin-left: 0;
  margin-top: 0;
  transition: background var(--transition), color var(--transition), border var(--transition);
  cursor: pointer;
}
.cookie-btn.accept {
  background: var(--gold);
  color: #fff;
  border: 1px solid var(--gold);
}
.cookie-btn.accept:hover,
.cookie-btn.accept:focus {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.cookie-btn.reject {
  background: #fff;
  color: var(--gold-dark);
  border: 1px solid var(--gold);
}
.cookie-btn.reject:hover,
.cookie-btn.reject:focus {
  background: var(--accent);
  border: 1px solid var(--primary);
  color: var(--primary);
}
.cookie-btn.settings {
  background: var(--accent);
  color: var(--primary);
  border: 1px solid var(--border);
}
.cookie-btn.settings:hover,
.cookie-btn.settings:focus {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}

@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    gap: 18px;
    padding: 21px 14px 17px 14px;
    align-items: flex-start;
  }
  .cookie-banner .cookie-buttons {
    width: 100%;
    justify-content: flex-end;
  }
}

/* COOKIE MODAL */
.cookie-modal-overlay {
  background: rgba(44,60,32,0.43);
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: 5550;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  padding: 34px 28px 24px 28px;
  border-radius: 22px;
  min-width: 320px;
  max-width: 96vw;
  max-height: 94vh;
  border: 1px solid var(--gold);
  box-shadow: 0 6px 44px 0 rgba(44,60,32,0.23);
  position: relative;
  z-index: 5600;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: cookieModalIn 0.33s cubic-bezier(.57,.21,.69,1.25);
}
@keyframes cookieModalIn {
  0% { transform: translateY(22px) scale(0.89); opacity: 0; }
  75% { transform: translateY(-10px) scale(1.03); }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--gold-dark);
  cursor: pointer;
  z-index: 6000;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 10px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--accent);
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid var(--border);
  font-size: 1.07rem;
  font-family: var(--font-body);
}
.cookie-category .switch {
  margin-left: 18px;
}
.cookie-switch {
  appearance: none;
  width: 44px;
  height: 24px;
  background: #F3F3F2;
  border: 1px solid var(--border);
  border-radius: 12px;
  position: relative;
  outline: 0;
  transition: border 0.2s;
  cursor: pointer;
}
.cookie-switch:checked {
  background: var(--gold);
  border: 1px solid var(--gold);
}
.cookie-switch:before {
  content: '';
  display: block;
  position: absolute;
  left: 5px;
  top: 4px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.29s cubic-bezier(.51,.13,.59,0.98);
  box-shadow: 0 0.5px 3px 0 rgba(193,162,72,0.05);
}
.cookie-switch:checked:before {
  left: 23px;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

/* ===================
   MISC.
=================== */
.map-embed p {
  font-size: 1.055rem;
  color: var(--text-medium);
  padding: 18px;
  background: var(--accent);
  margin-bottom: 12px;
  border-radius: 13px;
}
.contact-form-message p {
  background: var(--offwhite);
  border-left: 3px solid var(--gold);
  padding: 16px 22px;
  border-radius: 15px;
}

/* ===================
   UTILITIES
=================== */
.text-center { text-align: center; }
.flex-row { display: flex; flex-direction: row; }
.flex-col { display: flex; flex-direction: column; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.gap-24 { gap: 24px; }
.m-0 { margin: 0; } .mb-2 { margin-bottom: 8px; } .mb-4 { margin-bottom: 16px; }

/* ===================
   RESPONSIVE LAYOUT
=================== */
@media (max-width: 600px) {
  html { font-size: 15px; }
  section { padding: 24px 0; }
  .container { padding: 0 8px; }
  .footer-brand img { height: 44px; }
}
@media (max-width: 450px) {
  html { font-size: 14px; }
  .cta-button { font-size: 1rem; padding: 10px 22px; }
  .cookie-modal { min-width: 0; padding: 24px 8px; }
  .footer-brand img { height: 38px; }
}

/* ===================
   MICRO-ANIMATIONS
=================== */
.card, .testimonial-card, .feature-grid > div,
.blog-teasers article, .blog-list article,
.featured-posts article {
  will-change: box-shadow, transform;
  /* subtle transition already set above */
}

/* ===================
   FORM FIELDS (if any)
=================== */
input, select, textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 11px 14px;
  transition: border 0.18s;
  background: #fff;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--gold);
  outline: none;
}

/* ===================
   GOLD ACCENT LINES
=================== */
h2:after, .h2:after {
  content: '';
  display: block;
  margin: 10px 0;
  width: 34px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
}

/* =====================
   CUSTOM SCROLLBARS
===================== */
::-webkit-scrollbar { width: 10px; background: var(--accent); }
::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 10px;
}

/* ENFORCE FLEXBOX ONLY. NO GRID. */
/* all layout containers above enforce flexbox patterns only */

/* ==============
   END OF CSS
=============== */
