/* RESET & BASE STYLES */
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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.45;
  font-family: 'Roboto', Arial, sans-serif;
  background: #F5F6F8; /* Soft off-white, gentle and quiet */
  color: #232326;
  min-height: 100vh;
}
*, *::before, *::after {
  box-sizing: border-box;
}
a {
  color: #1A1A22;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #C8AA5A;
}
img {
  max-width: 100%;
  display: block;
  border-radius: 8px;
}
ul, ol {
  margin-left: 1.4em;
  margin-top: 12px;
  margin-bottom: 12px;
}
li {
  margin-bottom: 8px;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
}

/* TYPOGRAPHY */
h1, .hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.25rem;
  color: #1A1A22;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.14;
}
h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: #1A1A22;
  font-weight: 600;
  margin-bottom: 14px;
}
h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.125rem;
  color: #232326;
  font-weight: 600;
  margin-bottom: 10px;
}
h4, h5, h6 {
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 500;
  color: #495057;
}
p, .subheadline {
  color: #33353A;
  font-size: 1rem;
  line-height: 1.6;
  font-family: 'Roboto', Arial, sans-serif;
  margin-bottom: 10px;
}
.subheadline {
  font-size: 1.15rem;
  color: #59595F;
  margin-bottom: 18px;
}
caption {
  font-size: 1rem;
  color: #847A5A;
  font-family: 'Playfair Display', serif;
  margin-bottom: 7px;
}

/* CONTAINER & LAYOUTS */
.container {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 18px 0 rgba(42,34,4,0.04);
}

/* HERO SECTION */
.hero {
  background: #EFEFEF;
  padding: 50px 0 36px 0;
  border-radius: 0 0 40px 40px;
  box-shadow: 0 6px 36px 0 rgba(24,24,31,0.10);
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 300px;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

/* FLEX CONTENT & CARDS */
.feature-grid, .service-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 12px;
}
.feature-grid > div,
.service-cards > div {
  flex: 1 1 210px;
  background: #FCFCFC;
  border-radius: 12px;
  box-shadow: 0 2px 8px 0 rgba(90,80,40,0.06);
  padding: 28px 22px 18px 22px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  min-width: 220px;
  margin-bottom: 20px;
  transition: box-shadow 0.22s, transform 0.22s;
}
.feature-grid > div:hover, .service-cards > div:hover {
  box-shadow: 0 8px 28px 0 rgba(42,34,4,0.10);
  transform: translateY(-4px) scale(1.018);
}
.feature-grid img, .service-cards img {
  width: 38px;
  height: 38px;
  margin-bottom: 5px;
}

.text-section {
  background: transparent;
  padding: 0;
  margin-bottom: 20px;
}
.text-section h2, .text-section h3 {
  margin-bottom: 8px;
}

/* TABLES */
table {
  width: 100%;
  border-collapse: collapse;
  background: #F9F9F6;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
}
th, td {
  text-align: left;
  padding: 13px 12px;
  border-bottom: 1px solid #ECEAE7;
  font-size: 1rem;
}
th {
  background: #EFEFEF;
  font-family: 'Playfair Display', serif;
  color: #887145;
  font-weight: 500;
}
tbody tr:last-child td {
  border-bottom: none;
}
.footnote {
  font-size: 0.96em;
  color: #6B6551;
  margin-top: 6px;
}

/* TESTIMONIALS */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  background: #F8F8F5;
  color: #222223;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 16px 0 rgba(42,34,4,0.04);
  border-left: 6px solid #C8AA5A;
  position: relative;
}
.testimonial-card .rating {
  display: flex;
  gap: 3px;
  align-items: center;
  margin-bottom: 4px;
}
.testimonial-card p {
  font-size: 1.12rem;
  color: #232326;
  font-style: italic;
  margin-bottom: 4px;
}
.testimonial-card span {
  font-size: 0.97rem;
  color: #887145;
  font-family: 'Playfair Display', serif;
  font-style: normal;
}

/* BUTTON STYLES */
.cta-primary,
button.cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1A1A22;
  color: #fff;
  border: none;
  border-radius: 32px;
  padding: 15px 38px;
  font-family: 'Playfair Display', serif;
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 12px 0 rgba(34,29,20,0.08);
  margin-top: 8px;
  margin-bottom: 8px;
  transition: background 0.18s, color 0.18s, transform 0.20s;
}
.cta-primary:hover, .cta-primary:focus {
  background: #C8AA5A;
  color: #151515;
  transform: translateY(-2px) scale(1.018);
}

button, .button {
  border-radius: 28px;
  padding: 10px 24px;
  background: #EFEFEF;
  color: #232326;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
  margin: 0 6px 0 0;
  box-shadow: 0 1px 4px 0 rgba(34,29,20,0.04);
}
button:hover, .button:hover {
  background: #C8AA5A;
  color: #fff;
}

/* NAVIGATION & HEADER */
header {
  background: #fff;
  box-shadow: 0 2px 10px 0 rgba(34,29,20,0.04);
  border-bottom: 1px solid #EEECE8;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 60;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 22px;
}
.logo {
  display: flex;
  align-items: center;
  height: 56px;
  margin-right: 38px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.main-nav a {
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 500;
  color: #232326;
  padding: 6px 18px;
  border-radius: 20px;
  transition: background 0.15s, color 0.15s;
}
.main-nav a.cta-primary {
  background: #C8AA5A;
  color: #fff;
  padding: 8px 24px;
  margin-left: 6px;
  font-weight: 600;
}
.main-nav a:hover, .main-nav a:focus {
  background: #EFEFEF;
  color: #C8AA5A;
}
.main-nav a.cta-primary:hover, .main-nav a.cta-primary:focus {
  background: #1A1A22;
  color: #fff;
}

/* MOBILE NAV BUTTON */
.mobile-menu-toggle {
  display: none;
  background: #1A1A22;
  color: #fff;
  font-size: 1.9rem;
  border-radius: 8px;
  padding: 7px 18px 7px 14px;
  margin-left: 20px;
  line-height: 1;
  transition: background 0.18s;
  z-index: 108;
  border: none;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #C8AA5A;
  color: #1A1A22;
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(237, 237, 232, 0.97);
  z-index: 120;
  transform: translateX(100%);
  transition: transform 0.39s cubic-bezier(0.4,0.52,0.31,1.02);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.active {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  font-size: 2.3rem;
  background: transparent;
  color: #1A1A22;
  margin: 26px 30px 18px 0;
  border: none;
  padding: 2px 11px;
  border-radius: 8px;
  z-index: 122;
  align-self: flex-end;
  transition: background 0.14s, color 0.14s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #C8AA5A;
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 90%;
  margin: 0 auto;
  gap: 18px;
}
.mobile-nav a {
  display: block;
  font-size: 1.18rem;
  color: #232326;
  padding: 15px 0 15px 10px;
  width: 100%;
  border-radius: 8px;
  margin-bottom: 8px;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 500;
  transition: background 0.13s, color 0.13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #C8AA5A;
  color: #fff;
}

/* FOOTER */
footer {
  background: #fff;
  border-top: 1px solid #E6E3D9;
  padding: 36px 0 26px 0;
  margin-top: 44px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 28px;
}
.logo-footer {
  display: flex;
  align-items: center;
  height: 48px;
  margin-right: 36px;
}
.footer-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.footer-nav a {
  font-size: 0.98rem;
  color: #998845;
  padding: 6px 8px;
  border-radius: 10px;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.footer-nav a:hover {
  background: #C8AA5A;
  color: #fff;
}
footer .text-section {
  margin-top: 9px;
  font-size: 0.98rem;
  color: #7D7662;
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
}


/* SPACING & ALIGNMENT PATTERNS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 36px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px 0 rgba(34,29,20,0.03);
  transition: box-shadow 0.17s, transform 0.17s;
}
.card:hover {
  box-shadow: 0 8px 22px 0 rgba(42,34,4,0.13);
  transform: translateY(-2px) scale(1.013);
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 18px;
}

/* Responsive - Mobile First */
@media (max-width: 1100px) {
  .container {
    max-width: 985px;
  }
  .feature-grid > div, .service-cards > div {
    min-width: 160px;
  }
}
@media (max-width: 880px) {
  .container {
    max-width: 98%;
    padding: 0 11px;
  }
  .feature-grid, .service-cards {
    flex-wrap: wrap;
    gap: 16px;
  }
  .card-container {
    gap: 12px;
  }
}
@media (max-width: 768px) {
  .container {
    max-width: 100%;
    padding: 0 7px;
  }
  header .container {
    min-height: 63px;
    gap: 9px;
  }
  .logo,
  .logo-footer {
    margin-right: 11px;
    height: 38px;
  }
  .section {
    margin-bottom: 33px;
    padding: 29px 7px;
    border-radius: 11px;
  }
  .feature-grid,
  .service-cards,
  .card-container,
  .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .feature-grid > div,
  .service-cards > div {
    min-width: 0;
    width: 100%;
    align-items: flex-start;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  footer .container {
    flex-direction: column;
    gap: 19px;
    align-items: flex-start;
  }
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

@media (min-width: 769px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
  .main-nav {
    display: flex !important;
  }
}

/* Utility Classes */
.hide-mobile {
  display: none !important;
}
@media (min-width: 769px) {
  .hide-desktop {
    display: none !important;
  }
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #f8f7f4;
  color: #1a1a22;
  box-shadow: 0 -2px 22px 0 rgba(34,29,20,0.12);
  z-index: 150;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  padding: 24px 11px 18px 11px;
  transition: transform 0.32s ease, opacity 0.22s;
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cookie-banner p {
  font-size: 1rem;
  color: #33353A;
  margin-bottom: 7px;
  text-align: center;
}
.cookie-banner .cookie-btns {
  display: flex;
  flex-direction: row;
  gap: 13px;
  margin-top: 5px;
  flex-wrap: wrap;
}
.cookie-banner .cookie-btns button {
  min-width: 120px;
  font-size: 1rem;
  padding: 8px 22px;
  border-radius: 20px;
  border: none;
}
.cookie-banner .accept {
  background: #C8AA5A;
  color: #fff;
  font-weight: 600;
  transition: background 0.16s, color 0.16s;
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: #1A1A22;
  color: #fff;
}
.cookie-banner .reject {
  background: #EFEFEF;
  color: #232326;
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: #C8AA5A;
  color: #fff;
}
.cookie-banner .settings {
  background: #fff;
  color: #C8AA5A;
  border: 1px solid #C8AA5A;
  font-weight: 500;
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: #C8AA5A;
  color: #fff;
}

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(1);
  z-index: 160;
  background: #fff;
  color: #1A1A22;
  border-radius: 16px;
  box-shadow: 0 8px 36px 0 rgba(34,29,20,0.22);
  padding: 28px 22px 22px 22px;
  width: 96vw;
  max-width: 400px;
  transition: opacity 0.2s, transform 0.35s;
  opacity: 0;
  pointer-events: none;
}
.cookie-modal.active {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal h2 {
  font-size: 1.27rem;
  font-family: 'Playfair Display', serif;
  margin-bottom: 10px;
}
.cookie-modal ul {
  list-style-type: none;
  margin-left: 0;
  margin-bottom: 12px;
}
.cookie-modal li {
  margin-bottom: 11px;
  display: flex;
  align-items: center;
  gap: 13px;
}
.cookie-modal label {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #232326;
}
.cookie-modal input[type="checkbox"] {
  width: 20px; height: 20px;
  accent-color: #C8AA5A;
}
.cookie-modal .modal-btns {
  display: flex;
  gap: 11px;
  justify-content: flex-end;
  margin-top: 14px;
}
.cookie-modal .modal-btns button {
  background: #C8AA5A;
  color: #fff;
  padding: 7px 18px;
  border-radius: 13px;
  font-size: 1rem;
  border: none;
  font-weight: 600;
  transition: background 0.15s;
}
.cookie-modal .modal-btns button:hover, .cookie-modal .modal-btns button:focus {
  background: #1A1A22;
}
.cookie-modal .modal-close {
  position: absolute;
  top: 15px; right: 16px;
  background: transparent;
  color: #1A1A22;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.13s, color 0.13s;
}
.cookie-modal .modal-close:hover, .cookie-modal .modal-close:focus {
  background: #C8AA5A;
  color: #fff;
}

/* MICRO-INTERACTIONS */
.cta-primary, .main-nav a, .footer-nav a, .card, .feature-grid > div,
.service-cards > div, .testimonial-card, button {
  transition: box-shadow 0.18s, background 0.18s, color 0.18s, transform 0.18s;
}
a:focus, button:focus {
  outline: 2px solid #C8AA5A;
  outline-offset: 2px;
}

/* Z-INDEXES */
.mobile-menu,
.cookie-banner,
.cookie-modal {
  z-index: 2000;
}

/* Print-Safe Optimization */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal {
    display:none !important;
    height:0 !important;
  }
  main {
    padding: 0 !important;
  }
  .container, .content-wrapper, .section, .feature-grid, .service-cards, .card-container {
    max-width: 100% !important;
    padding: 0 !important;
    gap: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
  }
}
