/* 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;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F7F2ED;
  color: #2E1812;
  min-height: 100vh;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  background: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button,
input,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  appearance: none;
}

/* BRAND COLOR VARIABLES (WITH FALLBACKS) */
:root {
  --primary: #7C2D12;
  --primary-dark: #592012;
  --secondary: #F7F2ED;
  --accent: #7A994E;
  --accent-light: #96B885;
  --bg: #F7F2ED;
  --card-bg: #FFFFFF;
  --gray-1: #DED7D0;
  --gray-2: #AAAAAA;
  --body-text: #2E1812;
  --white: #FFFFFF;
  --shadow: 0 2px 12px 2px rgba(44,36,27,0.07);
  --border-radius: 18px;
}

/* FONTS */
@import url('https://fonts.googleapis.com/css?family=Merriweather:700,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

body {
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--body-text);
  background: var(--bg);
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', serif;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.15;
}
h1 {
  font-size: 2.25rem;
  margin-bottom: 18px;
  text-transform: uppercase;
  font-style: normal;
}
h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  text-transform: uppercase;
  font-weight: 900;
}
h3 {
  font-size: 1.125rem;
  margin-bottom: 10px;
  font-weight: 700;
}
@media (min-width: 768px) {
  h1 {
    font-size: 3rem;
  }
  h2 {
    font-size: 2.125rem;
  }
  h3 {
    font-size: 1.25rem;
  }
}
p, ul, ol, li, dl, dd {
  font-size: 1rem;
  color: var(--body-text);
  font-family: 'Roboto', Arial, sans-serif;
}
strong {
  font-weight: 700;
}

/* CONTAINER & SECTION LAYOUTS */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  border-radius: var(--border-radius);
}
@media (max-width: 768px) {
  .section {
    margin-bottom: 40px;
    padding: 28px 10px;
  }
}

/* HERO SECTION */
.hero {
  background: linear-gradient(135deg, var(--secondary) 70%, var(--accent-light) 100%);
  border-radius: 0 0 56px 56px;
  position: relative;
  box-shadow: 0 2px 24px 0 rgba(124,45,18,0.09);
  margin-bottom: 48px;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 340px;
  padding: 48px 20px 36px 20px;
}
.hero h1 {
  text-align: center;
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 16px;
}
.hero p {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 24px;
  color: var(--body-text);
}
@media (min-width: 768px) {
  .hero .container {
    min-height: 420px;
    padding: 64px 32px 56px 32px;
  }
  .hero h1 {
    font-size: 2.7rem;
  }
}

/* HEADER STYLES */
header {
  width: 100%;
  background: var(--secondary);
  box-shadow: 0 6px 18px 0 rgba(124,45,18,0.07);
  z-index: 11;
  position: sticky;
  top: 0;
}
header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 14px 20px;
  position: relative;
}
header a img {
  height: 44px;
  width: auto;
  margin-right: 18px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
header nav a {
  font-family: 'Merriweather', serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--primary);
  transition: background 0.2s, color 0.2s;
}
header nav a:hover,
header nav a:focus {
  background: var(--accent-light);
  color: var(--white);
}
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--white);
  font-family: 'Merriweather', serif;
  font-weight: 900;
  font-size: 1.03rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 12px;
  padding: 12px 26px;
  box-shadow: 0 2px 10px 0 rgba(124,45,18,0.11);
  border: 2px solid var(--primary);
  transition: background 0.24s, color 0.24s, border 0.24s, box-shadow 0.2s;
  margin-left: 12px;
  cursor: pointer;
}
.cta-button:hover,
.cta-button:focus {
  background: var(--white);
  color: var(--primary);
  border: 2.4px solid var(--primary);
  box-shadow: 0 4px 20px 2px rgba(124,45,18,0.17);
}

/* MOBILE MENU */
.mobile-menu-toggle {
  display: none;
  position: relative;
  z-index: 25;
  background: var(--primary);
  color: var(--white);
  font-size: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: box-shadow 0.2s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  box-shadow: 0 3px 12px 0 rgba(124,45,18,0.21);
  background: var(--accent-light);
  color: var(--primary);
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 340px;
  height: 100vh;
  background: var(--card-bg);
  box-shadow: -6px 0 32px 4px rgba(124,45,18,0.19);
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.4,0,0.2,1);
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 24px;
  padding: 38px 24px 20px 28px;
  overflow-y: auto;
  opacity: 1;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  color: var(--primary);
  font-size: 2.2rem;
  border: none;
  cursor: pointer;
  margin-bottom: 18px;
  padding: 4px 8px;
  border-radius: 8px;
  transition: background 0.18s;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  background: var(--accent-light);
  color: var(--white);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mobile-nav a {
  font-family: 'Merriweather', serif;
  font-weight: bold;
  font-size: 1.15rem;
  color: var(--primary);
  border-radius: 10px;
  padding: 12px 12px 12px 5px;
  transition: background 0.22s, color 0.22s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--accent-light);
  color: var(--white);
}
@media (max-width: 920px) {
  header nav,
  .cta-button {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
    margin-top: 0;
  }
}
@media (min-width: 921px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* FOOTER */
footer {
  background: var(--primary);
  color: var(--white);
  padding: 34px 0 18px 0;
  margin-top: 80px;
  border-radius: 56px 56px 0 0;
  box-shadow: 0 -6px 28px 0 rgba(124,45,18,0.10);
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
footer nav a {
  color: var(--white);
  background: none;
  font-family: 'Merriweather', serif;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 1rem;
  transition: background 0.2s, color 0.2s;
}
footer nav a:hover,
footer nav a:focus {
  background: var(--accent-light);
  color: var(--primary);
}
.footer-brand {
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.4;
  font-weight: 400;
  padding-top: 8px;
}
.footer-brand img {
  height: 42px;
  width: auto;
  margin-right: 8px;
}
@media (max-width: 620px) {
  footer .container {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}

/* FLEXBOX LAYOUTS */
.content-wrapper,
.card-container, .card-grid,
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.card-container {
  gap: 24px;
}
.card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 22px 18px 18px 18px;
  min-width: 220px;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  transition: box-shadow 0.2s, transform 0.23s;
}
.card:hover {
  box-shadow: 0 5px 22px 3px rgba(124,45,18,0.18);
  transform: scale(1.025) skewX(-1.5deg);
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .content-grid, .content-wrapper, .card-container, .card-grid {
    flex-direction: column;
    gap: 18px;
  }
}

/* FEATURES & LISTS */
ul {
  padding-left: 1.4em;
}
ul li {
  padding-left: 0;
  position: relative;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}
ul li img {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
dt {
  font-family: 'Merriweather', serif;
  font-weight: 700;
  font-size: 1.07rem;
  color: var(--primary);
  margin-bottom: 4px;
}
dd {
  margin-left: 0;
  margin-bottom: 13px;
}
dl {
  margin-bottom: 12px;
}

/* TESTIMONIALS */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--card-bg);
  color: var(--primary);
  border-radius: 22px;
  box-shadow: 0 2px 14px 1.5px rgba(124,45,18,0.08);
  min-width: 220px;
  max-width: 430px;
  margin-bottom: 20px;
  font-size: 1rem;
  transition: box-shadow 0.18s, transform 0.17s;
}
.testimonial-card:hover {
  box-shadow: 0 5px 32px 2px rgba(124,45,18,0.15);
  transform: scale(1.015) skewX(-1deg);
}
.testimonial-card p {
  color: var(--primary);
  font-size: 1.12rem;
  line-height: 1.5;
  font-family: 'Roboto', Arial, sans-serif;
  text-align: center;
  margin-bottom: 4px;
}
.testimonial-card div {
  font-size: 1rem;
  color: var(--body-text);
  font-weight: 600;
  text-align: center;
}
.testimonial-card .stars {
  color: var(--accent);
  font-size: 1.3rem;
  margin-top: 6px;
}

/* CARD SECTIONS */
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

/* BUTTONS & INTERACTIVES */
button, .cta-button {
  cursor: pointer;
  font-size: 1rem;
  font-family: 'Merriweather', serif;
  font-weight: 600;
  border-radius: 12px;
  transition: background 0.2s, color 0.2s, box-shadow 0.22s;
}
button:focus { outline: 2px solid var(--primary); outline-offset: 2px; }

a {
  transition: color 0.18s, background 0.18s;
}
a:hover, a:focus {
  color: var(--accent);
  background: rgba(122,153,78,0.10);
  border-radius: 6px;
}

/* SECTIONS & SPACING */
section {
  margin-bottom: 60px;
}
@media (max-width: 900px) {
  .section,
  section {
    margin-bottom: 36px;
    padding-top: 18px;
    padding-bottom: 18px;
  }
}

/* MODAL OVERLAY (FOR COOKIES) */
.modal-overlay {
  position: fixed;
  z-index: 1200;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(44,36,27,0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: var(--card-bg);
  border-radius: 20px;
  box-shadow: 0 8px 32px 8px rgba(124,45,18,0.17);
  max-width: 410px;
  width: 95vw;
  padding: 30px 28px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: center;
  z-index: 1201;
  opacity: 1;
  transform: translateY(24px) scale(0.98);
  animation: modalOpenAnim 0.34s cubic-bezier(.7,-0.14,.29,1.13) forwards;
}
@keyframes modalOpenAnim {
  0% { opacity: 0; transform: translateY(64px) scale(0.93); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.cookie-modal h3 {
  margin-bottom: 9px;
  color: var(--primary);
  font-size: 1.2rem;
}
.cookie-category {
  background: var(--gray-1);
  width: 100%;
  border-radius: 11px;
  padding: 13px 12px 10px 16px;
  margin-bottom: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 1rem;
}
.cookie-toggle {
  width: 38px;
  height: 22px;
  background: var(--gray-2);
  border-radius: 11px;
  position: relative;
  transition: background 0.18s;
  cursor: pointer;
  flex-shrink: 0;
}
.cookie-toggle[data-checked="true"] {
  background: var(--accent-light);
}
.cookie-toggle::after {
  content: '';
  display: block;
  position: absolute;
  top: 2px; left: 2px;
  width: 18px; height: 18px;
  background: var(--white);
  border-radius: 50%;
  transition: left 0.16s, background 0.19s;
}
.cookie-toggle[data-checked="true"]::after {
  left: 18px;
  background: var(--accent);
}
.cookie-modal-actions {
  width: 100%;
  display: flex;
  flex-direction: row;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 24px;
}
.cookie-btn {
  padding: 10px 26px;
  border-radius: 10px;
  font-size: 1rem;
  font-family: 'Roboto',Arial,sans-serif;
  font-weight: 600;
  border: none;
  background: var(--primary);
  color: var(--white);
  transition: background 0.18s, color 0.18s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--accent-light);
  color: var(--primary);
}
.cookie-btn.reject {
  background: var(--gray-2);
  color: var(--primary);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: var(--primary);
  color: var(--white);
}

/* COOKIE CONSENT BANNER */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 1050;
  width: 100%;
  background: var(--card-bg);
  color: var(--primary);
  box-shadow: 0 -4px 24px 0 rgba(124,45,18,0.13);
  border-radius: 28px 28px 0 0;
  padding: 20px 15px 18px 17px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  align-items: center;
  transition: transform 0.34s cubic-bezier(0.52,0,0.19,1);
  transform: translateY(0);
}
.cookie-consent-banner.hide {
  transform: translateY(140%);
}
.cookie-consent-text {
  color: var(--primary);
  font-size: 1rem;
  text-align: center;
}
.cookie-consent-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin-top: 3px;
  justify-content: center;
}
.cookie-consent-btn {
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  background: var(--primary);
  color: var(--white);
  transition: background 0.19s, color 0.19s;
  margin: 0 2px;
  outline: none;
  cursor: pointer;
}
.cookie-consent-btn.settings {
  background: var(--accent);
  color: var(--white);
}
.cookie-consent-btn.reject {
  background: var(--gray-2);
  color: var(--primary);
}
.cookie-consent-btn:hover,
.cookie-consent-btn:focus {
  background: var(--accent-light);
  color: var(--primary);
}
.cookie-consent-btn.reject:hover,
.cookie-consent-btn.reject:focus {
  background: var(--primary);
  color: var(--white);
}
@media (max-width: 600px) {
  .cookie-consent-banner {
    font-size: 0.95rem;
    padding: 13px 6px 13px 6px;
  }
  .cookie-consent-actions {
    flex-direction: column;
    gap: 7px;
    margin-top: 6px;
    width: 100%;
  }
  .cookie-consent-btn {
    width: 100%;
  }
}

/* TABLES (for FAQ or legal pages) */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 18px;
  background: var(--card-bg);
  border-radius: 14px;
  overflow: hidden;
}
th, td {
  padding: 17px 10px;
  text-align: left;
  border-bottom: 1px solid var(--gray-1);
}
th {
  background: var(--accent-light);
  color: var(--white);
}

/* OTHER GEOMETRIC / STRUCTURED DETAILS */
section, .card, .testimonial-card, .cookie-modal, .cookie-consent-banner {
  /* geometric feel */
  border-radius: var(--border-radius);
}
hr {
  border: none;
  height: 2px;
  background: var(--gray-1);
  margin: 24px 0;
  width: 60%;
}

/* VISUAL MICRO-INTERACTIONS */
.card,
.cta-button,
.testimonial-card,
footer nav a,
header nav a,
.mobile-nav a,
button,
.cookie-consent-btn,
.cookie-btn {
  transition: box-shadow 0.18s, background 0.21s, color 0.18s, transform 0.18s;
}

/* RESPONSIVE DESIGN */
@media (max-width: 900px) {
  .container {
    padding: 0 10px;
    max-width: 99vw;
  }
  header .container {
    gap: 14px;
    padding: 8px 10px;
  }
}
@media (max-width: 600px) {
  .hero .container, .section, section {
    padding: 20px 7px;
  }
}
@media (max-width: 420px) {
  h1 {
    font-size: 1.35rem;
  }
  h2 {
    font-size: 1.12rem;
  }
}

/* PRINT STYLE (OPTIONAL) */
@media print {
  header, footer, .cookie-consent-banner, .mobile-menu { display: none !important; }
}

/* ACCESSIBILITY */
:focus {
  outline: 2px solid var(--accent-light);
  outline-offset: 2px;
}

/* Hide visually but keep for a11y (for example, labels) */
.visually-hidden {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
