/* 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,
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: 100%;
  -webkit-text-size-adjust: 100%;
  box-sizing: border-box;
}
body {
  background-color: #FAF6E9;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #212121;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
ul, ol {
  list-style: none;
}
img {
  max-width: 100%;
  height: auto;
  border-style: none;
  vertical-align: middle;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
button {
  font: inherit;
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
}
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  color: #7A662D;
  margin-bottom: 16px;
  line-height: 1.12;
  font-weight: 700;
}
h1 {font-size: 2.75rem; margin-bottom: 24px;}
h2 {font-size: 2rem; margin-bottom: 20px;}
h3 {font-size: 1.25rem; margin-bottom: 16px;}
strong, b {font-weight: 700;}
em, i {font-style: italic;}

/* ROOT BRAND COLORS & FONTS */
:root {
  --color-primary: #BFA046; /* warm gold from guidelines */
  --color-primary-dark: #7A662D;
  --color-secondary: #212121;
  --color-accent: #37693A;
  --color-bg: #FAF6E9;
  --color-bg-alt: #F3F0EA;
  --color-border: #D5C9A8;
  --color-success: #80b522;
  --color-warning: #e2b400;
  --color-error: #be2b18;
  --font-body: 'Montserrat', Arial, sans-serif;
  --font-display: 'Playfair Display', serif;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;
  --shadow-card: 0 6px 24px rgba(120, 100, 50, 0.08), 0 1px 3px rgba(85, 77, 51, 0.03);
  --shadow-btn: 0 2px 10px rgba(120,100,50,0.08);
}

body {
  background: var(--color-bg);
  color: var(--color-secondary);
}

/* LAYOUT */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

@media (max-width: 768px) {
  .section {
    margin-bottom: 36px;
    padding: 24px 8px;
    border-radius: var(--radius-md);
  }
  .container {
    padding: 0 8px;
  }
}

/* HEADER */
header {
  background: rgba(255,255,255,0.98);
  box-shadow: 0 2px 12px rgba(120, 100, 50, 0.07);
  position: sticky;
  top: 0;
  z-index: 50;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 16px;
  position: relative;
}
.logo img {
  height: 48px;
  max-width: 160px;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-secondary);
  padding: 8px 0;
  transition: color 0.2s;
  border-radius: var(--radius-sm);
  position: relative;
}
.main-nav a:hover,
.main-nav a:focus {
  color: var(--color-primary-dark);
  background: rgba(191, 160, 70, 0.08);
}
.main-nav .btn-primary {
  margin-left: 16px;
}

.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: var(--color-primary-dark);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  transition: background 0.2s, color 0.2s;
  z-index: 120;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--color-primary);
  color: var(--color-secondary);
}

/* MOBILE NAVIGATION */
.mobile-menu {
  position: fixed;
  z-index: 200;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(58,69,51,0.97);
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(0.83, 0, 0.17, 1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px 24px;
  box-shadow: 0 0 48px 12px rgba(33, 33, 33, 0.11);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2rem;
  background: var(--color-primary-dark);
  color: #fff;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  padding: 6px 14px;
  transition: background 0.2s, color 0.2s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--color-primary);
  color: var(--color-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}
.mobile-nav a {
  font-size: 1.25rem;
  color: #fff;
  padding: 16px 0 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: var(--color-primary);
  background: none;
}

@media (max-width:1020px) {
  .main-nav {
    gap: 14px;
  }
  .main-nav .btn-primary { margin-left: 4px; }
}
@media (max-width: 991px) {
  .main-nav a { font-size: 0.97rem; }
}
@media (max-width:900px) {
  .main-nav {
    gap: 8px;
  }
}

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

/* HERO */
.hero {
  background: linear-gradient(100deg, var(--color-bg-alt) 65%, #e8ecd9 100%);
  border-radius: var(--radius-lg);
  min-height: 280px;
  margin-bottom: 60px;
  padding: 36px 0 60px 0;
  box-shadow: 0 6px 36px rgba(120, 100, 50, .09);
  display: flex;
  align-items: center;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 32px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--color-primary-dark);
  text-shadow: 0 2px 14px rgba(160, 139, 70, 0.07);
}
.hero p {
  font-size: 1.12rem;
  max-width: 650px;
  margin-bottom: 18px;
  color: #3b3a28;
}
.hero .btn-primary {
  margin-top: 8px;
}

@media (max-width: 820px) {
  .hero h1 { font-size: 2rem; }
}
@media (max-width: 640px) {
  .hero {
    min-height: unset;
    padding: 22px 0 36px 0;
    margin-bottom: 36px;
    border-radius: var(--radius-md);
  }
  .hero .container {
    gap: 20px;
  }
}
@media (max-width: 450px) {
  .hero .container {
    padding: 0 4px;
  }
  .hero h1 {
    font-size: 1.24rem;
  }
}

/* BUTTONS */
.btn-primary {
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: var(--radius-md);
  padding: 13px 32px;
  box-shadow: var(--shadow-btn);
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s, transform 0.17s;
  outline: none;
  display: inline-block;
  letter-spacing: 0.04em;
}
.btn-primary:focus,
.btn-primary:hover {
  background: var(--color-primary-dark);
  color: #fff;
  box-shadow: 0 6px 36px rgba(120, 100, 50, .18);
  transform: translateY(-2px) scale(1.04);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--color-primary-dark);
  color: var(--color-primary-dark);
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: 11px 24px;
  transition: background 0.22s, color 0.22s, border 0.22s, transform 0.16s;
  font-size: 1rem;
}
.btn-secondary:focus,
.btn-secondary:hover {
  background: var(--color-primary-dark);
  color: #fff;
  border-color: var(--color-primary);
  transform: translateY(-2px) scale(1.025);
}
.btn-tertiary {
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 9px 16px;
  font-size: 0.98rem;
  font-weight: 500;
  transition: background 0.18s, color 0.18s;
}
.btn-tertiary:hover, .btn-tertiary:focus {
  background: #1d4739;
  color: #fff;
}

/* GENERAL CONTENT SPACING */
ul, ol {
  margin-bottom: 14px;
  margin-left: 1em;
  padding-left: 0.6em;
}
li {
  font-size: 1rem;
  margin-bottom: 10px;
}
.text-section {
  margin-bottom: 16px;
}

/* CARD, GRID & FLEXBOX PATTERNS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 36px;
}
.card {
  margin-bottom: 20px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 28px 24px 32px 24px;
  transition: box-shadow 0.18s, transform 0.17s;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 230px;
  max-width: 370px;
  flex: 1 1 300px;
}
.card:hover, .card:focus-within {
  box-shadow: 0 12px 40px 0 rgba(120, 100, 50, .14);
  transform: translateY(-3px) scale(1.023);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 32px;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
@media (max-width: 820px) {
  .text-image-section, .content-grid, .card-container {
    flex-direction: column;
    gap: 22px;
  }
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 20px 18px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
}
@media (max-width: 500px) {
  .feature-item { padding: 13px 6px; }
}

/* TESTIMONIALS */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 12px;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  min-width: 260px;
  max-width: 420px;
  flex: 1 1 280px;
  margin-bottom: 20px;
  flex-direction: column;
  position: relative;
}
.testimonial-card p {
  font-size: 1.12rem;
  color: #312b14;
  margin-bottom: 12px;
}
.testimonial-card span {
  font-size: 1rem;
  color: var(--color-primary-dark);
  font-weight: 500;
  align-self: flex-end;
  letter-spacing: 0.02em;
}
@media (max-width: 700px) {
  .testimonial-slider {
    flex-direction: column;
    gap: 12px;
  }
  .testimonial-card {
    max-width: 100%;
    min-width: 0;
    width: 100%;
    align-items: flex-start;
    padding: 16px 10px;
    border-radius: var(--radius-md);
  }
  .testimonial-card span {
    align-self: flex-start;
  }
}

/* TABLES */
table {
  width: 100%;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  margin-bottom: 28px;
  overflow: hidden;
}
thead {
  background: var(--color-bg-alt);
}
th, td {
  padding: 14px 16px;
  text-align: left;
  font-family: var(--font-body);
  border-bottom: 1px solid var(--color-border);
  font-size: 1rem;
}
th {
  color: var(--color-primary-dark);
  font-weight: 700;
}
tbody tr:last-child td {
  border-bottom: none;
}

/* FOOTER */
footer {
  background: #efe8d3;
  border-top: 3px solid var(--color-primary-dark);
  padding: 38px 0 20px 0;
  margin-top: 80px;
}
footer .container {
  padding: 0 14px;
}
footer .content-wrapper {
  display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 32px;
    flex-direction: row;
}
footer section {
  flex: 1 1 250px;
  min-width: 220px;
  margin-bottom: 20px;
}
footer h3 {
  font-family: var(--font-display);
  color: #5b4722;
  font-size: 1.12rem;
  margin-bottom: 11px;
}
footer ul, footer nav {
  margin-bottom: 6px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: #635b2e;
  font-size: 1rem;
  transition: color .17s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-primary-dark);
}
footer img {
  margin-right: 10px;
  vertical-align: middle;
  height: 18px;
}
footer a img {
  transition: transform 0.13s;
}
footer a:hover img, footer a:focus img {
  transform: scale(1.1);
}
@media (max-width:1020px) {
  footer .content-wrapper {
    gap: 12px;
  }
}
@media (max-width: 820px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 18px;
  }
  footer section { min-width: unset; }
}

/* TYPOGRAPHY */
p, li, table, td, th, ul, ol, .text-section {
  font-family: var(--font-body);
  font-size: 1rem;
  color: #232118;
  line-height: 1.65;
}
.text-section p {
  margin-bottom: 12px;
}
.text-section ul {
  margin-left: 1.1em;
}
.text-section > ul > li {
  margin-bottom: 6px;
}

/* ORGANIC SHAPE / NATURAL DESIGN DECOR */
.section, .card, .testimonial-card, .feature-item {
  border-radius: 32px 52px 36px 28px / 38px 30px 56px 24px;
  box-shadow: var(--shadow-card);
}
@media (max-width: 700px) {
  .section, .card, .testimonial-card, .feature-item {
    border-radius: 16px 22px 20px 14px / 18px 14px 26px 11px;
  }
}

/* NATURAL TEXTURE BACKGROUNDS */
.section {
  background: repeating-linear-gradient(135deg,#f5eacc,#ede4c0 12px,#f5eacc 20px);
}
.card, .feature-item, .testimonial-card {
  background: linear-gradient(105deg, #fff, #faf7ec 68%, #f3f0e7 100%);
  border: 1.5px solid #e4dbbe;
}

/* ACCENTED HEADINGS */
h2, h3 {
  position: relative;
}
h2:after, h3:after {
  content: '';
  display: block;
  width: 54px;
  height: 4px;
  background: var(--color-primary);
  border-radius: 2px;
  margin-top: 8px;
}

/* INTERACTIONS */
.card, .feature-item, .testimonial-card, .btn-primary, .btn-secondary {
  transition: box-shadow 0.18s, transform 0.16s, background 0.17s, color 0.17s;
}
.card:active, .feature-item:active, .testimonial-card:active, .btn-primary:active, .btn-secondary:active {
  transform: scale(0.97);
}

/* FORMS -- placeholder styles for newsletter */
input[type='text'], input[type='email'], textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1.5px solid #b6a47e;
  border-radius: var(--radius-md);
  padding: 10px 13px;
  outline: none;
  background: #f5f3ea;
  transition: border 0.18s;
}
input[type='text']:focus,
input[type='email']:focus,
textarea:focus {
  border: 1.5px solid var(--color-primary-dark);
  background: #fffce5;
}

/* MISC */
::-webkit-input-placeholder { color: #a7986a; }
::-moz-placeholder { color: #a7986a; }
:-ms-input-placeholder { color: #a7986a; }
::placeholder { color: #a7986a; }

/* Cookie Consent Banner */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  z-index: 999;
  background: #ede9d7;
  box-shadow: 0 -2px 9px rgba(120,100,50,0.09);
  padding: 32px 20px 16px 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  justify-content: center;
  transition: transform 0.37s cubic-bezier(.65,.05,.36,1), opacity 0.23s;
  font-size: 1rem;
  color: #33321c;
  border-top: 2px solid var(--color-primary-dark);
}
.cookie-consent-banner.hide {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-consent-banner .btn-primary,
.cookie-consent-banner .btn-secondary,
.cookie-consent-banner .btn-tertiary {
  margin: 0 4px;
  font-size: 0.95rem;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
}
.cookie-consent-banner .btn-primary {
  background: var(--color-success);
  color: #fff;
}
.cookie-consent-banner .btn-secondary {
  background: var(--color-warning);
  color: #fff;
}
.cookie-consent-banner .btn-tertiary {
  background: #fff;
  color: var(--color-accent);
  border: 1.5px solid var(--color-accent);
}
@media (max-width: 780px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 20px 10px 8px 10px;
    font-size: 0.98rem;
  }
  .cookie-consent-banner .btn-primary, .cookie-consent-banner .btn-secondary, .cookie-consent-banner .btn-tertiary {
    padding: 7px 10px;
    font-size: 0.95rem;
  }
}

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 1001;
  transform: translate(-50%, -50%) scale(1);
  background: #fffdf7;
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 80px 4px rgba(120,100,50,0.11);
  padding: 32px 32px 24px 32px;
  width: 95vw;
  max-width: 410px;
  opacity: 1;
  transition: opacity .23s, transform 0.38s cubic-bezier(.65,.05,.36,1);
}
.cookie-modal.hide {
  opacity: 0;
  transform: translate(-50%, -44%) scale(0.98);
  pointer-events: none;
}
.cookie-modal h3 {
  color: var(--color-primary-dark);
  margin-top: 0;
  margin-bottom: 16px;
}
.cookie-modal .category {
  margin-bottom: 19px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.cookie-modal .switch {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}
.cookie-modal .switch input[type='checkbox'] {
  display: none;
}
.cookie-modal .slider {
  width: 38px;
  height: 20px;
  background: #dddfc3;
  border-radius: 14px;
  position: relative;
  transition: background 0.19s;
  margin-right: 8px;
}
.cookie-modal .slider:before {
  content: '';
  position: absolute;
  left: 2.5px;
  top: 2.5px;
  width: 15px;
  height: 15px;
  background: #fff;
  border-radius: 24px;
  transition: left 0.19s, background 0.22s;
  box-shadow: 0 1px 5px rgba(120,100,50,0.11);
}
.cookie-modal .switch input:checked + .slider {
  background: var(--color-success);
}
.cookie-modal .switch input:checked + .slider:before {
  left: 20px;
  background: #eaffd3;
}
.cookie-modal .category .desc {
  flex: 1 1 auto;
  font-size: 0.96rem;
  color: #645b39;
}
.cookie-modal .close-modal {
  display: block;
  background: var(--color-error);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 6px 20px;
  border: none;
  float: right;
  margin-left: 8px;
  margin-top: 5px;
  font-size: .97rem;
  font-weight: 600;
  transition: background 0.18s, color 0.18s;
}
.cookie-modal .close-modal:hover,
.cookie-modal .close-modal:focus {
  background: #682f1e;
}
@media (max-width:580px) {
  .cookie-modal {
    padding: 16px 7px 14px 7px;
    max-width: 98vw;
  }
}

/* Organic Details and Accents */
hr {
  border: none;
  border-bottom: 2px solid var(--color-border);
  margin: 32px 0;
  border-radius: 2px;
}

/* Animations for Microinteractions */
.btn-primary, .btn-secondary, .btn-tertiary, .mobile-menu-toggle, .mobile-menu-close {
  transition: background 0.25s, color 0.19s, transform 0.13s;
}
.main-nav a:after, .footer-nav a:after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: var(--color-primary-dark);
  transition: width .24s;
}
.main-nav a:hover:after,
.main-nav a:focus:after,
.footer-nav a:hover:after,
.footer-nav a:focus:after {
  width: 94%;
}

/* Accessibility: Focus States */
:focus-visible {
  outline: 2.5px solid var(--color-accent);
  outline-offset: 1.5px;
}

/* RESPONSIVE UTILITY */
@media (max-width: 1200px) {
  .container { max-width: 98vw; }
}
@media (max-width: 480px) {
  html { font-size: 97%; }
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.13rem; }
}

/* Hide visually but keep accessible */
.sr-only {
  border: 0 !important;
  clip: rect(1px,1px,1px,1px) !important;
  -webkit-clip-path: inset(50%) !important;
  clip-path: inset(50%) !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  width: 1px !important;
  white-space: nowrap !important;
}

/* Elevation/Stack */
header,
.mobile-menu.open,
.cookie-modal {
  z-index: 1000;
}
.cookie-consent-banner,
footer {
  z-index: 900;
}

/* Organic Animations */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
  .testimonials-card, .feature-item, .card {
    transition: box-shadow 0.19s, transform 0.16s;
  }
}
