/* =======================
   GLOBAL 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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  font-smooth: always;
  background: #F7F3EE;
  color: #2D3642;
  font-family: 'Georgia', 'Times New Roman', serif;
}
*, *:before, *:after {
  box-sizing: border-box;
}
a {
  color: #2D3642;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #D39D5B;
  outline: none;
}
ul, ol {
  padding-left: 28px;
  margin-bottom: 20px;
}
b, strong {
  font-weight: 600;
}
img {
  max-width: 100%;
  display: block;
}
table {
  border-collapse: collapse;
  width: 100%;
  margin: 24px 0;
  font-size: 16px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 3px 10px 0 rgba(45,54,66,0.08);
  overflow: hidden;
}
thead {
  background: #EFE9E0;
}
th, td {
  padding: 16px 14px;
  border-bottom: 1px solid #E0D8CE;
}
th {
  text-align: left;
  font-size: 18px;
  font-weight: 700;
}
tbody tr:last-child td {
  border-bottom: none;
}

/* =========================
   BRAND FONTS & TYPOGRAPHY
   ========================= */
:root {
  --font-display: 'Georgia', 'Times New Roman', serif;
  --font-body: 'Georgia', 'Times New Roman', serif;
  --font-alt: 'Montserrat', 'Arial', sans-serif;

  --color-primary: #2D3642;
  --color-secondary: #F7F3EE;
  --color-accent: #D39D5B;
  --color-bg: #F7F3EE;
  --color-text: #2D3642;
  --color-white: #fff;
  --color-shade: #EFE9E0;
  --color-muted: #AAA5A1;
  --shadow-soft: 0 2px 16px 0 rgba(45,54,66,0.10);

  --radius-base: 12px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display), serif;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 20px;
}
h1 {
  font-size: 2.75rem;
  line-height: 1.1;
  margin-bottom: 26px;
}
h2 {
  font-size: 2.0rem;
  margin-bottom: 24px;
  line-height: 1.15;
}
h3 {
  font-size: 1.375rem;
  margin-bottom: 18px;
}
h4 {
  font-size: 1.125rem;
}
p, li, blockquote, cite {
  font-family: var(--font-body), serif;
  font-size: 1.125rem;
  color: var(--color-text);
  margin-bottom: 16px;
}
blockquote {
  font-size: 1.2rem;
  font-style: italic;
  background: var(--color-shade);
  border-left: 4px solid var(--color-accent);
  padding: 18px 26px 18px 22px;
  margin-bottom: 14px;
  color: var(--color-primary);
}
cite {
  display: block;
  font-family: var(--font-alt), serif;
  color: var(--color-muted);
  margin-top: 4px;
  font-size: 1.06rem;
  letter-spacing: 0.04em;
}

/* ========================
   LAYOUT CONTAINER SYSTEM
   ======================== */
.container {
  max-width: 980px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-bg);
  border-radius: var(--radius-base);
  box-shadow: 0 2px 12px 0 rgba(45,54,66,0.08);
}

/* =============================
   MAIN NAV / HEADER STYLES
   ============================= */
header {
  background: var(--color-white);
  border-bottom: 1px solid #E4DED6;
  position: sticky;
  top: 0;
  z-index: 20;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 22px 0 14px 0;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.main-nav a {
  font-family: var(--font-alt), sans-serif;
  font-size: 1.05rem;
  color: var(--color-primary);
  letter-spacing: 0.01em;
  padding: 5px 0;
  transition: color 0.18s;
  position: relative;
}
.main-nav a.cta-btn {
  background: var(--color-accent);
  color: #fff !important;
  border-radius: 24px;
  font-weight: 700;
  font-size: 1.12rem;
  padding: 7px 24px;
  margin-left: 12px;
  box-shadow: 0 2px 12px 0 rgba(211,157,91,0.11);
  transition: background 0.22s, box-shadow 0.26s;
  border: none;
}
.main-nav a.cta-btn:hover, .main-nav a.cta-btn:focus {
  background: #C1894A;
  box-shadow: 0 4px 18px 0 rgba(211,157,91,0.18);
}
.main-nav img {
  height: 38px;
  width: auto;
  margin-right: 6px;
}

/* BURGER BUTTON */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: var(--color-primary);
  margin-left: auto;
  padding: 8px 16px;
  cursor: pointer;
  z-index: 30;
}

/* =========================
   HERO SECTION
   ========================= */
.hero {
  position: relative;
  padding: 68px 0 48px 0;
  background: var(--color-white);
  box-shadow: 0 8px 32px 0 rgba(45,54,66,0.045);
  border-bottom-left-radius: 38px;
  border-bottom-right-radius: 38px;
  margin-bottom: 54px;
}
.hero .container {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero .content-wrapper {
  gap: 18px;
  align-items: flex-start;
}
.hero h1 {
  font-size: 2.5rem;
  font-family: var(--font-display), serif;
  color: var(--color-primary);
}
.hero p {
  font-size: 1.24rem;
  color: var(--color-primary);
  margin-bottom: 12px;
}

/* =========================
   FEATURES GRID
   ========================= */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: flex-start;
  margin-top: 12px;
  margin-bottom: 10px;
}
.features-grid > div {
  background: var(--color-white);
  flex: 1 1 240px;
  min-width: 210px;
  box-shadow: 0 2px 14px 0 rgba(80,70,56,0.08);
  border-radius: 18px;
  padding: 30px 28px 23px 28px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.21s, transform 0.19s;
  border: 1px solid #EEE6DB;
}
.features-grid > div:hover, .features-grid > div:focus-within {
  box-shadow: 0 6px 32px 0 rgba(211,157,91,0.09);
  transform: translateY(-5px) scale(1.017);
  border-color: var(--color-accent);
}
.features-grid img {
  height: 38px;
  width: 38px;
  margin-bottom: 18px;
  filter: grayscale(20%);
}
.features-grid h3 {
  font-size: 1.22rem;
  font-family: var(--font-display), serif;
  color: var(--color-primary);
  margin-bottom: 10px;
}
.features-grid p {
  color: #665B49;
  font-size: 1.02rem;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ============================
   SECTION: GENERAL LAYOUTS
   ============================ */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.text-section {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
.text-section ul, .text-section ol {
  margin-bottom: 8px;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  width: 100%;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-white);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(45,54,66,0.09);
  display: flex;
  flex-direction: column;
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 18px;
  gap: 8px;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

/* =============================
   CTA BUTTON (ALL PAGES)
   ============================= */
.cta-btn {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-alt), sans-serif;
  font-weight: 700;
  font-size: 1.11rem;
  padding: 11px 32px;
  border-radius: 28px;
  border: none;
  box-shadow: 0 2px 12px 0 rgba(211,157,91,0.10);
  margin-top: 8px;
  margin-bottom: 4px;
  transition: background 0.22s, transform 0.18s, box-shadow 0.19s;
  cursor: pointer;
  letter-spacing: 0.01em;
}
.cta-btn:hover, .cta-btn:focus {
  background: #C1894A;
  transform: translateY(-2px) scale(1.025);
  box-shadow: 0 6px 22px 0 rgba(211,157,91,0.14);
  color: #fff;
  outline: none;
}

/* =============================
   TESTIMONIAL CARD
   ============================= */
.testimonials {
  background: var(--color-shade);
  border-radius: var(--radius-base);
  padding: 38px 0;
  margin-bottom: 0;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(45,54,66,0.07);
  margin-bottom: 22px;
  padding: 20px 28px 16px 28px;
  flex-direction: column;
  /* Ensures readable dark text */
  color: var(--color-primary);
  border-left: 4px solid var(--color-accent);
}
.testimonial-card blockquote {
  background: transparent;
  border-left: none;
  padding-left: 0;
  color: var(--color-primary);
}
.testimonial-card cite {
  margin-top: 0;
  font-style: normal;
}
.testimonial-card:last-child {
  margin-bottom: 0;
}

/* ==== Cards for other content (FAQ, Service, etc.) ==== */
.service-list, .faq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.service-list > .text-section, .faq-list > .text-section {
  background: var(--color-white);
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(45,54,66,0.08);
  padding: 22px 22px 16px 24px;
  flex: 1 1 280px;
  min-width: 220px;
  margin-bottom: 0;
}
.service-list > .text-section h2,
.faq-list > .text-section h3 {
  margin-bottom: 8px;
}

/* =============================
   TABLES
   ============================= */
@media (max-width: 600px) {
  table, thead, tbody, th, td, tr { display: block; width: 100%; }
  thead {
    display: none;
  }
  tr { margin-bottom: 18px; }
  td {
    padding: 10px 10px;
    border-bottom: none;
    border-top: 1px solid #EEE6DB;
    position: relative;
    text-align: left;
  }
  td:before {
    content: attr(data-label);
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
    padding-right: 10px;
    color: var(--color-muted);
    font-size: 95%;
  }
}

/* =============================
   FOOTER
   ============================= */
footer {
  background: var(--color-white);
  padding: 38px 0 12px 0;
  border-top: 1.5px solid #EFE9E0;
  margin-top: 82px;
}
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  font-size: 1rem;
  color: var(--color-muted);
  margin-bottom: 15px;
}
.footer-menu a {
  color: var(--color-primary);
  font-family: var(--font-alt), serif;
}
.company-info {
  text-align: center;
  font-size: 1rem;
  color: var(--color-muted);
  margin-bottom: 13px;
  line-height: 1.35;
}
.company-info a {
  color: var(--color-accent);
}
.short-note {
  text-align: center;
  font-style: italic;
  font-family: var(--font-alt);
  color: var(--color-muted);
  margin-top: 11px;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
}

/* ===========================
   MOBILE MENU STYLES
   =========================== */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(37, 36, 31, 0.88);
  z-index: 1010;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  transition: opacity 0.3s, transform 0.4s cubic-bezier(.6,.04,0,1.03);
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  display: flex;
  opacity: 1;
  pointer-events: all;
}
.mobile-nav {
  background: var(--color-white);
  border-radius: 20px 0 0 20px;
  min-width: 77vw;
  max-width: 430px;
  margin-right: 0;
  margin-top: 0;
  height: 100vh;
  box-shadow: -4px 0 22px 0 rgba(37,36,31,0.15);
  display: flex;
  flex-direction: column;
  gap: 0px;
  padding: 46px 24px 18px 28px;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(.48,.38,.24,1.05);
}
.mobile-menu.open .mobile-nav {
  transform: translateX(0%);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #2D3642;
  font-size: 2.2rem;
  font-weight: 500;
  position: absolute;
  right: 22px;
  top: 20px;
  cursor: pointer;
  z-index: 1020;
  padding: 10px 18px;
  border-radius: 8px;
  transition: background 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #f8ece0;
  color: var(--color-accent);
}
.mobile-nav a {
  display: block;
  font-family: var(--font-alt), sans-serif;
  font-size: 1.2rem;
  color: var(--color-primary);
  padding: 15px 6px 15px 4px;
  margin-bottom: 8px;
  border-radius: 8px;
  transition: background 0.16s, color 0.16s;
}
.mobile-nav a:last-child {
  margin-bottom: 0;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-shade);
  color: var(--color-accent);
}

@media (max-width: 1024px) {
  .container {
    max-width: 96vw;
  }
  .features-grid {
    gap: 16px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 12px;
    padding-top: 14px;
  }
}
@media (max-width: 800px) {
  .main-nav {
    gap: 6px;
    padding-bottom: 7px;
  }
}
@media (max-width: 768px) {
  /* HEADER responsive */
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    position: absolute;
    right: 15px;
    top: 10px;
  }
  .hero {
    padding: 46px 0 36px 0;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
  }
  /* Section vertical layout */
  .features-grid,
  .service-list, .faq-list {
    flex-direction: column;
    gap: 16px;
  }
  .features-grid > div, .service-list > .text-section, .faq-list > .text-section {
    min-width: 0;
    width: 100%;
  }
  .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card {
    padding: 17px 12px 15px 15px;
  }
  .footer-menu {
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }
}
@media (max-width: 520px) {
  h1 {
    font-size: 1.65rem;
  }
  h2 {
    font-size: 1.23rem;
  }
  .section {
    padding: 24px 6px;
  }
  .container {
    padding-left: 6px;
    padding-right: 6px;
  }
}

/* =============================
   COOKIE CONSENT BANNER
   ============================= */
#cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-top: 2px solid var(--color-accent);
  box-shadow: 0 -2px 14px 0 rgba(45,54,66,0.08);
  padding: 28px 20px 18px 20px;
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  min-height: 56px;
  transition: transform 0.37s cubic-bezier(.35,.3,0,1.22), opacity 0.2s;
  opacity: 1;
  transform: translateY(0);
}
#cookie-banner.hide {
  opacity: 0;
  transform: translateY(105%);
  pointer-events: none;
}
#cookie-banner .cookie-text {
  font-family: var(--font-body), serif;
  font-size: 1.1rem;
  color: var(--color-primary);
  margin-right: 14px;
  max-width: 540px;
}
#cookie-banner .cookie-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.cookie-btn {
  font-family: var(--font-alt), sans-serif;
  font-size: 1rem;
  border-radius: 22px;
  padding: 8px 22px;
  border: none;
  margin-left: 0;
  cursor: pointer;
  transition: background 0.19s, color .20s;
  font-weight: 600;
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 1px 8px 0 rgba(211,157,91,0.06);
}
.cookie-btn.accept {
  background: var(--color-accent);
}
.cookie-btn.settings {
  background: var(--color-primary);
}
.cookie-btn.reject {
  background: #aaa5a1;
  color: #fff;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #C1894A;
  color: #fff;
}
@media (max-width: 700px) {
  #cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 7vw 14px 7vw;
    gap: 15px;
  }
  #cookie-banner .cookie-text {
    margin-right: 0;
  }
}

/* Cookie Modal Styles */
#cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(37,36,31, 0.76);
  z-index: 3000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.28s;
}
#cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-content {
  background: #fff;
  border-radius: 20px;
  max-width: 380px;
  width: 90vw;
  padding: 38px 28px 21px 28px;
  box-shadow: 0 8px 38px 0 rgba(45,54,66,0.18);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}
.cookie-modal-content h2 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: var(--color-primary);
}
.cookie-categories {
  list-style: none;
  margin: 0 0 10px 0;
  padding: 0;
}
.cookie-categories li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 1.085rem;
  color: var(--color-text);
}
.cookie-category-toggle {
  appearance: none;
  outline: none;
  width: 30px;
  height: 18px;
  background: #DFD6C8;
  border-radius: 11px;
  position: relative;
  transition: background 0.17s;
  cursor: pointer;
}
.cookie-category-toggle:checked {
  background: var(--color-accent);
}
.cookie-category-toggle:before {
  content: '';
  display: block;
  position: absolute;
  left: 3px;
  top: 3px;
  width: 12px; height: 12px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.16s;
}
.cookie-category-toggle:checked:before {
  left: 15px;
}
.cookie-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 17px;
}
.cookie-modal-close {
  position: absolute;
  right: 14px;
  top: 14px;
  background: none;
  border: none;
  font-size: 1.61rem;
  color: var(--color-primary);
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 8px;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #f7f2eb;
  color: var(--color-accent);
}

/* ===========================
   SMALL UTILITY STYLES
   =========================== */
.mt-2 { margin-top: 8px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mt-6 { margin-top: 24px; }
.text-center { text-align: center; }

/* ===============
   ANIMATIONS
   =============== */
@keyframes fade-in {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(50px); }
  to { opacity: 1; transform: none; }
}
.hero, .cta-btn, .service-list > .text-section, .features-grid > div, .testimonial-card, .section {
  animation: fade-in 0.7s cubic-bezier(.28,.5,0,1.04);
}

/* Improve focus for accessibility */
a:focus, .cta-btn:focus, .cookie-btn:focus, .mobile-menu-close:focus, .cookie-modal-close:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Hide visually but keep for screen readers */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(1px,1px,1px,1px) !important;
  border: 0 !important;
}

/* =========================
   END OF STYLE.CSS
   ========================= */