/* CSS RESET AND NORMALIZATION */
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;
}
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body { line-height: 1.5; -webkit-font-smoothing: antialiased; }
ol, ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img { border: 0; max-width: 100%; height: auto; }

/* MONOCHROME SOPHISTICATED BASE PALETTE */
:root {
  --color-dark: #191919;
  --color-black: #000;
  --color-primary: #33242b;
  --color-secondary: #d2b97b;
  --color-accent: #e8e4d8;
  --color-light: #fff;
  --color-grey-100: #f6f5f3;
  --color-grey-200: #ecebea;
  --color-grey-300: #deddd9;
  --color-grey-400: #b8b6b0;
  --color-grey-600: #616161;
  --color-grey-700: #383838;
  --brand-font-display: 'Playfair Display', serif;
  --brand-font-body: 'Lato', Arial, Helvetica, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-light: #524a47;
    --color-accent: #ecebea;
    --color-grey-100: #544d4b;
    --color-grey-200: #33242b;
    --color-grey-300: #917979;
    --color-grey-400: #626262;
  }
}

/* FONT IMPORTS (Google Fonts for widest support) */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700&family=Lato:wght@400;700&display=swap');

body {
  font-family: var(--brand-font-body);
  background: var(--color-light);
  color: var(--color-dark);
  font-size: 16px;
  min-height: 100vh;
  letter-spacing: 0.01em;
  background-color: var(--color-grey-100);
  transition: background 0.3s;
}

/* TYPOGRAPHY */
h1, .hero h1 {
  font-family: var(--brand-font-display);
  font-size: 2.7rem;
  font-weight: 700;
  color: var(--color-black);
  letter-spacing: -0.02em;
  line-height: 1.13;
  margin-bottom: 16px;
}

h2, .hero h2 {
  font-family: var(--brand-font-display);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--color-primary);
  line-height: 1.17;
  margin-bottom: 20px;
}
h3 {
  font-family: var(--brand-font-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--color-black);
  margin-bottom: 12px;
}

h4, h5, h6 {
  font-family: var(--brand-font-body);
  font-weight: 700;
  color: var(--color-grey-700);
}

p, ul, li, label {
  font-family: var(--brand-font-body);
  font-size: 1rem;
  color: var(--color-dark);
  margin-bottom: 16px;
  line-height: 1.7;
}

strong {
  font-weight: 700;
  color: var(--color-primary);
}

ul, ol {
  padding-left: 1.4em;
  margin-bottom: 18px;
}
ul li, ol li {
  margin-bottom: 8px;
}
ul li:last-child, ol li:last-child { margin-bottom: 0; }

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.content-wrapper {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* HEADER NAV */
header {
  background: var(--color-light);
  border-bottom: 1px solid var(--color-grey-200);
  padding: 0;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 20px 16px;
  gap: 24px;
}
header nav {
  display: flex;
  gap: 32px;
}
header nav a {
  font-family: var(--brand-font-body);
  font-size: 1rem;
  color: var(--color-primary);
  padding: 8px 0;
  position: relative;
  transition: color 0.18s;
}
header nav a:hover, header nav a:focus {
  color: var(--color-secondary);
}
header .cta.primary {
  margin-left: 18px;
}
header a img {
  height: 48px;
  width: auto;
  margin-right: 24px;
}

/* MOBILE MENU STYLES */
.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  font-size: 2.2rem;
  padding: 8px 14px;
  background: transparent;
  border: none;
  color: var(--color-primary);
  cursor: pointer;
  z-index: 1021;
  transition: color 0.2s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  color: var(--color-secondary);
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background: rgba(27,24,22,0.96);
  color: var(--color-accent);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .38s cubic-bezier(.4,.2,.3,1);
  justify-content: flex-start;
  align-items: flex-end;
  padding: 0;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  margin: 28px 24px 0 0;
  font-size: 2.2rem;
  background: none;
  border: 0;
  color: var(--color-secondary);
  cursor: pointer;
  z-index: 1201;
  align-self: flex-end;
}
.mobile-nav {
  width: 80vw;
  max-width: 330px;
  background: var(--color-black);
  box-shadow: -2px 0 32px 0 rgba(0,0,0,0.19);
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 44px 28px 40px 32px;
  border-radius: 16px 0 0 16px;
  min-height: 100vh;
  height: 100%;
  align-items: flex-start;
}
.mobile-nav a {
  font-family: var(--brand-font-display);
  font-size: 1.25rem;
  color: var(--color-accent);
  padding: 10px 0;
  border-bottom: 1px solid rgba(220,220,220,0.10);
  width: 100%;
  text-align: left;
  transition: color 0.18s;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-secondary);
}

/* Hide desktop nav/hamburger appropriately */
@media (min-width: 901px) {
  .mobile-menu-toggle,
  .mobile-menu {
    display: none !important;
  }
}
@media (max-width: 900px) {
  header .container nav, header .cta.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
}

/* HERO STYLES */
.hero {
  background: linear-gradient(90deg, var(--color-grey-100), var(--color-accent) 90%);
  border-bottom: 1px solid var(--color-grey-200);
  min-height: 320px;
  display: flex;
  align-items: center;
}
.hero .container {
  align-items: center;
  padding-top: 36px;
  padding-bottom: 36px;
}
.hero .content-wrapper {
  align-items: center;
  text-align: center;
  gap: 16px;
}
.hero h1 {
  color: var(--color-primary);
  font-size: 2.3rem;
  margin-bottom: 4px;
}
.hero h2 {
  color: var(--color-grey-700);
  font-size: 1.18rem;
  margin-bottom: 24px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 900px) {
  .hero h1 { font-size: 3.2rem; }
  .hero h2 { font-size: 1.45rem; }
  .hero .container {
    padding-top: 60px;
    padding-bottom: 60px;
  }
}

/* SECTION GENERAL SPACING AND FLEX ALIGNMENT (MANDATORY) */
.features, .about, .services, .legal, .contact-details, .contact-form-section, .faq-main, .faq, .testimonials, .contact-cta, .cta, .faq-short, .contact-section, .feature-grid {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.features .content-wrapper, .about .content-wrapper, .services .content-wrapper, .legal .content-wrapper, .faq-main .content-wrapper, .testimonials .content-wrapper, .contact-section .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* FLEX LAYOUTS (MANDATORY FLEX ONLY, NO GRID) */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.feature-grid > div {
  flex: 1 1 220px;
  min-width: 230px;
  background: var(--color-light);
  padding: 28px 20px 18px 20px;
  border-radius: 16px;
  box-shadow: 0 1px 8px 2px rgba(51,36,43,0.04);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 0;
  border: 1px solid var(--color-grey-200);
  min-height: 280px;
  transition: box-shadow .23s;
}
.feature-grid > div:hover {
  box-shadow: 0 4px 32px 0 rgba(51,36,43,0.11), 0 1.5px 8px rgba(0,0,0,0.06);
}
.feature-grid img {
  width: 48px;
  height: 48px;
  filter: grayscale(0.7) brightness(0.84);
  margin-bottom: 2px;
}

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

/* CARDS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 60px;
}
.card {
  background: var(--color-light);
  border: 1px solid var(--color-grey-200);
  border-radius: 16px;
  box-shadow: 0 2px 16px 0 rgba(0,0,0,0.06);
  padding: 32px 24px;
  margin-bottom: 20px;
  position: relative;
  min-width: 280px;
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow 0.19s;
}
.card:hover {
  box-shadow: 0 6px 36px 0 rgba(51,36,43,0.14);
}

.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;
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--color-accent);
  border-radius: 14px;
  box-shadow: 0 1px 8px rgba(27,24,22,0.10);
  margin-bottom: 20px;
  flex-direction: column;
  border: 1px solid var(--color-grey-300);
}
.testimonial-card p {
  color: var(--color-primary);
  margin-bottom: 0;
}
.testimonial-card strong {
  color: var(--color-secondary);
}

@media (max-width: 700px) {
  .feature-grid, .content-grid {
    flex-direction: column;
    gap: 22px;
  }
  .feature-grid > div, .card {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 900px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .section, .features, .about, .services, .legal, .faq-main, .testimonials, .contact-cta, .cta, .contact-details, .contact-form-section, .faq-short, .contact-section {
    padding-left: 8px;
    padding-right: 8px;
  }
  .content-wrapper {
    padding-left: 0;
    padding-right: 0;
  }
}

/* FAQ */
.faq-main .faq-item,
.faq-short h3, .faq-short p,
.faq-item h3, .faq-item p {
  margin-bottom: 10px;
}
.faq-item {
  background: var(--color-grey-100);
  border: 1px solid var(--color-grey-300);
  border-radius: 11px;
  padding: 18px 18px 12px 24px;
  margin-bottom: 18px;
  transition: box-shadow .17s;
}
.faq-item:last-child { margin-bottom: 0; }
.faq-item h3 {
  font-size: 1.15rem;
  color: var(--color-primary);
  margin-bottom: 8px;
}
.faq-item p {
  color: var(--color-grey-700);
}

/* BUTTONS */
.cta, .cta.primary, button, input[type="submit"], .cookie-btn {
  font-family: var(--brand-font-display);
  font-size: 1.08rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  background: var(--color-primary);
  color: var(--color-accent);
  border: none;
  border-radius: 24px;
  padding: 12px 28px;
  transition: background 0.19s, color 0.13s, box-shadow .21s;
  margin-top: 6px;
  margin-bottom: 6px;
  cursor: pointer;
  display: inline-block;
  box-shadow: 0 2px 16px rgba(51,36,43,0.07);
  text-align: center;
}
.cta.primary:focus, .cta.primary:hover,
button:focus, button:hover, .cookie-btn:focus, .cookie-btn:hover {
  background: var(--color-secondary);
  color: var(--color-black);
  outline: none;
  box-shadow: 0 3px 18px rgba(224,206,106,0.12);
}

/* SECONDARY BUTTON */
.cta.secondary, .cookie-btn.secondary {
  background: var(--color-grey-200);
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  box-shadow: none;
}
.cta.secondary:hover, .cta.secondary:focus,
.cookie-btn.secondary:hover, .cookie-btn.secondary:focus {
  background: var(--color-primary);
  color: var(--color-accent);
  border-color: var(--color-secondary);
}

/* COOKIE CONSENT BANNER */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-black);
  color: var(--color-accent);
  padding: 32px 28px 26px 20px;
  z-index: 1600;
  box-shadow: 0 -4px 32px rgba(51,36,43,0.19);
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  transition: transform 0.33s cubic-bezier(.4,.2,.3,1), opacity 0.24s;
}
.cookie-consent-banner.hide {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-consent-banner p {
  color: var(--color-accent);
  margin-bottom: 0;
  font-size: 1rem;
  font-family: var(--brand-font-body);
  max-width: 560px;
}
.cookie-buttons {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin-left: 12px;
}
.cookie-btn {
  padding: 10px 24px;
  font-size: 1rem;
  box-shadow: none;
  margin: 0;
}

@media (max-width: 700px) {
  .cookie-consent-banner {
    flex-direction: column;
    gap: 16px;
    padding: 24px 12px 18px 12px;
  }
  .cookie-buttons {
    justify-content: flex-end;
    gap: 11px;
    margin-left: 0;
  }
}

/* COOKIE MODAL */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1700;
  background: rgba(27,24,22,0.84);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.22s;
}
.cookie-modal {
  background: var(--color-light);
  color: var(--color-primary);
  border-radius: 20px;
  padding: 40px 32px 28px 32px;
  max-width: 420px;
  width: 94vw;
  box-shadow: 0 13px 52px 0 rgba(51,36,43,0.18);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cookie-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cookie-modal-header h2 {
  font-size: 1.32rem;
  color: var(--color-primary);
  font-family: var(--brand-font-display);
}
.cookie-modal-close {
  font-size: 1.7rem;
  background: none;
  border: none;
  color: var(--color-secondary);
  cursor: pointer;
}
.cookie-mod-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 9px;
  font-family: var(--brand-font-body);
}
.cookie-mod-category input[type='checkbox'] {
  accent-color: var(--color-secondary);
  width: 18px;
  height: 18px;
  cursor: pointer;
}
.cookie-mod-category label {
  font-size: 1.02rem;
  color: var(--color-primary);
}
.cookie-category-essential {
  color: var(--color-grey-600);
  font-weight: 700;
}

/* MODAL BUTTONS */
.cookie-modal-buttons {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}

/* CONTACT & FOOTER */
.contact-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.contact-footer p {
  color: var(--color-grey-600);
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
}
.contact-footer img {
  margin-right: 4px;
  width: 18px;
  height: 18px;
}

footer {
  background: var(--color-light);
  border-top: 1px solid var(--color-grey-200);
  padding: 32px 0 18px 0;
}
footer .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 44px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
footer nav a {
  color: var(--color-primary);
  font-size: 1rem;
  font-family: var(--brand-font-body);
  opacity: 0.82;
  transition: color 0.16s, opacity 0.13s;
}
footer nav a:hover, footer nav a:focus {
  color: var(--color-secondary);
  opacity: 1;
}

@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    gap: 18px;
  }
  .contact-footer {
    align-items: flex-start;
  }
}

/* MAP PLACEHOLDER */
.map-placeholder {
  width: 100%;
  min-height: 100px;
  background: var(--color-grey-300);
  border-radius: 10px;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  padding: 16px;
}

/* FORM & INPUT STYLES */
input, textarea, select {
  font-family: var(--brand-font-body);
  font-size: 1em;
  padding: 14px 15px;
  border: 1px solid var(--color-grey-300);
  border-radius: 8px;
  margin-bottom: 18px;
  width: 100%;
  background: var(--color-light);
  color: var(--color-primary);
  transition: border-color 0.19s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--color-secondary);
}

/* LEGAL/LIST STYLES */
.legal ul li,
.features ul li, .about ul li {
  margin-bottom: 9px;
  color: var(--color-primary);
}
.legal ul, .legal ol { margin-bottom: 16px; }

/* SCROLLBAR */
::-webkit-scrollbar {
  width: 8px;
  background: var(--color-grey-200);
}
::-webkit-scrollbar-thumb {
  background: var(--color-grey-400);
  border-radius: 8px;
}

/* ANIMATIONS & TRANSITIONS */
.section, .feature-grid > div, .card, .testimonials, .contact-section, .legal, .faq-item {
  animation: fadeinSection 0.7s;
}
@keyframes fadeinSection {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.cta, .cta.primary, .cta.secondary, .cookie-btn {
  transition: background 0.19s, color 0.15s, box-shadow 0.23s, border 0.18s;
}

/* ACCESSIBILITY */
a:focus, button:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

/* RESPONSIVE LAYOUTS */
@media (max-width: 768px) {
  .feature-grid, .content-grid, .section .container {
    flex-direction: column;
  }
  .feature-grid > div {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }
  body { font-size: 15px; }
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.18rem; }
}
@media (max-width: 525px) {
  .section, .features, .about, .services, .legal, .faq-main, .testimonials, .contact-cta, .cta, .contact-details, .contact-form-section, .faq-short, .contact-section {
    padding: 24px 2px;
  }
  .hero .container {
    padding-top: 18px;
    padding-bottom: 18px;
  }
  .hero h1 { font-size: 1.35rem; }
}

/* VISUAL SEPARATORS */
.features .content-wrapper > h2,
.about .content-wrapper > h2,
.services .content-wrapper > h2,
.legal .content-wrapper > h1,
.testimonials .content-wrapper > h2,
.contact-cta .content-wrapper > h2 { border-left: 4px solid var(--color-secondary); padding-left: 16px; }

/* OVERLAY Z-INDEX SAFEGUARD */
.mobile-menu,
.cookie-consent-banner, .cookie-modal-overlay { z-index: 1600; }

/* CARD SHADOW/HIGHLIGHT ON HOVER */
.card, .feature-grid > div, .testimonial-card, .faq-item {
  transition: box-shadow .22s, border-color .11s;
}
.card:focus-within, .feature-grid > div:focus-within, .testimonial-card:focus-within, .faq-item:focus-within {
  box-shadow: 0 4px 20px 0 rgba(51,36,43,0.13);
  border-color: var(--color-secondary);
}

/* MICRO-INTERACTIONS */
.card:hover, .feature-grid > div:hover, .cta:hover, .cta.primary:hover, .cta:focus, .cta.primary:focus {
  box-shadow: 0 8px 44px 0 rgba(51,36,43,0.13);
  border-color: var(--color-secondary);
}

/* Hide banner/modal when not shown */
.cookie-consent-banner, .cookie-modal-overlay {
  display: none;
}
.cookie-consent-banner.show,
.cookie-modal-overlay.show {
  display: flex;
}

/* Validates MANDATORY SPACING AND FLEX RULES */
.section, .features, .about, .services, .legal, .faq-main, .contact-cta, .cta, .testimonials, .contact-details, .contact-form-section, .faq-short, .contact-section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container, .feature-grid, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card { margin-bottom: 20px; position: relative; }
.text-image-section { display: flex; align-items: center; gap: 30px; flex-wrap: wrap;}
.testimonial-card { display: flex; align-items: center; gap: 20px; padding: 20px; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* END OF CSS */
