/* ========================== */
/* 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, 
main, 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: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  line-height: 1.5;
  background: #fff;
  color: #131313;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
img, svg {
  vertical-align: middle;
  max-width: 100%;
  height: auto;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  outline: none;
  background: none;
  border: none;
}
input[type="search"] {
  -webkit-appearance: none;
  -moz-appearance: none;
}

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

body {
  font-family: 'Roboto', Arial, sans-serif;
  background: #F8F8F8;
  color: #232323;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: 'Merriweather', serif;
  font-weight: 700;
  color: #131313;
  letter-spacing: -0.5px;
}
h1 {
  font-size: 2.25rem;
  margin-bottom: 24px;
  line-height: 1.2;
}
h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  line-height: 1.25;
}
h3 {
  font-size: 1.125rem;
  margin-bottom: 12px;
}
h4 {
  font-size: 1rem;
  margin-bottom: 10px;
}

p, li, blockquote {
  font-size: 1rem;
  color: #232323;
}
blockquote {
  font-style: italic;
  border-left: 4px solid #B48B4A;
  margin: 16px 0 16px 0;
  padding: 12px 24px;
  background: #F2F1EB;
  color: #333;
  border-radius: 4px;
}

strong {
  font-weight: 700;
  color: #232323;
}

/* =============== */
/* LAYOUT & SPACING*/
/* =============== */
.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 32px rgba(31,32,33, 0.07), 0 1.5px 4px rgba(55,66,61, 0.09);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Feature (Card) Grid & Flex Layouts */
.feature-grid, .card-container, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}

.card-container {
  gap: 24px;
}

.card {
  margin-bottom: 20px;
  position: relative;
  background: #fafafa;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(55,66,61, 0.08);
  padding: 24px 20px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.content-grid {
  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: #F2F1EB;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  color: #111;
  margin-bottom: 20px;
  transition: box-shadow 0.2s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 24px rgba(55,66,61, 0.13);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ========================= */
/* HEADER, NAV, CTA BUTTONS  */
/* ========================= */
header {
  background: #fff;
  border-bottom: 1px solid #E6E6E6;
  padding: 0;
  box-shadow: 0 1px 12px 0 rgba(0,0,0,0.04);
  position: sticky;
  top: 0;
  z-index: 25;
}
header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 18px;
}
header img[src$="logo.svg"] {
  height: 48px;
  width: auto;
  margin-right: 16px;
}

nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
nav a {
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 500;
  color: #232323;
  font-size: 1rem;
  padding: 8px 6px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}
nav a:hover,
nav a:focus {
  color: #fff;
  background: #37423D;
}
.cta-button {
  background: #232323;
  color: #fff;
  font-family: 'Merriweather', serif;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 6px;
  padding: 12px 30px;
  margin-left: 16px;
  box-shadow: 0 2px 8px rgba(55,66,61,0.10);
  text-align: center;
  border: 2px solid #232323;
  transition: background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
  display: inline-block;
}
.cta-button:hover, .cta-button:focus {
  background: #fff;
  color: #232323;
  border: 2px solid #232323;
  box-shadow: 0 6px 16px rgba(55,66,61,0.13);
  cursor: pointer;
}

/* =================== */
/* MOBILE NAVIGATION   */
/* =================== */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 18px;
  right: 24px;
  background: #232323;
  color: #fff;
  font-size: 2.2rem;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  z-index: 100;
  cursor: pointer;
  border: none;
  transition: background 0.2s, color 0.2s;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: #131313;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  background: #fff;
  top: 0;
  right: 0;
  height: 100vh;
  width: 92vw;
  max-width: 360px;
  transform: translateX(110%);
  box-shadow: -6px 0 30px rgba(30,30,30,0.15);
  z-index: 9999;
  transition: transform 0.45s cubic-bezier(.6,.44,.21,1);
  border-left: 1.5px solid #D5D5D5;
  padding-top: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: #232323;
  font-size: 2rem;
  border: none;
  align-self: flex-end;
  padding: 24px 24px 0 0;
  cursor: pointer;
  transition: color 0.2s;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  color: #B48B4A;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-left: 32px;
  margin-top: 32px;
}
.mobile-nav a {
  font-size: 1.15rem;
  font-family: 'Merriweather', serif;
  color: #232323;
  font-weight: 500;
  padding: 12px 6px 12px 0;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: #fff;
  background: #37423D;
}

@media (max-width: 950px) {
  header .container {
    gap: 12px;
  }
  nav {
    gap: 18px;
  }
}
@media (max-width: 864px) {
  header .container {
    gap: 8px;
    padding-left: 10px;
    padding-right: 10px;
  }
  nav {
    gap: 10px;
  }
  .cta-button {
    margin-left: 8px;
    padding: 11px 16px;
    font-size: 0.94rem;
  }
}
@media (max-width: 788px) {
  nav {
    display: none;
  }
  .cta-button {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

@media (max-width: 588px) {
  header .container {
    padding-left: 4px;
    padding-right: 4px;
  }
  .mobile-menu {
    width: 100vw;
    max-width: unset;
  }
}

/* ================ */
/* MAIN & SECTIONS  */
/* ================ */
main {
  padding-top: 18px;
  min-height: 70vh;
}
section {
  margin-bottom: 40px;
}

/* Feature Grid/Section Cards (mobile vertical) */
@media (max-width: 768px) {
  .feature-grid, .card-container, .content-grid, .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  .section {
    margin-bottom: 36px;
    padding: 30px 8px;
  }
}

/* =========== */
/* CARDS, ETC  */
/* =========== */
.card {
  border-left: 4px solid #B48B4A;
  background: #fafafa;
  box-shadow: 0 2px 16px rgba(55,66,61, 0.05);
  border-radius: 12px 8px 8px 12px;
}
.card h3 {
  margin-top: 0;
  margin-bottom: 10px;
}
.card:hover {
  box-shadow: 0 6px 24px rgba(55,66,61, 0.12);
  border-left: 4px solid #37423D;
}

/* ============= */
/* TESTIMONIALS  */
/* ============= */
.testimonial-card p {
  font-family: 'Merriweather', serif;
  font-size: 1.04rem;
  color: #181818;
  margin-bottom: 8px;
}
.testimonial-card strong {
  color: #1c1c1c;
  font-family: 'Roboto', Arial, sans-serif;
}
.testimonial-card img[src*="star"],
.testimonial-card img[src*="icon-star"] {
  height: 18px;
  filter: grayscale(0%) brightness(0.85) contrast(110%);
}

/* Ensure dark text on light testimonal bg for contrast */
.testimonial-card {
  background: #FAFAF9;
  color: #222;
}
/* ============= */
/* BUTTONS, INPUT*/
/* ============= */
button, .cta-button {
  cursor: pointer;
}
input[type="search"] {
  padding: 12px 18px;
  background: #fff;
  border: 1px solid #D5D5D5;
  border-radius: 5px;
  font-size: 1rem;
  color: #232323;
  margin-top: 8px;
  max-width: 270px;
  transition: border 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 0 0 rgba(180,139,74,0);
}
input[type="search"]:focus {
  border: 1.5px solid #B48B4A;
  box-shadow: 0 2px 10px rgba(55,66,61,0.09);
  outline: none;
}

/* Chip/Inline Tag Styles */
span {
  display: inline-block;
  border-radius: 14px;
  background: #F2F1EB;
  color: #232323;
  font-size: 0.97rem;
  font-family: 'Roboto', Arial, sans-serif;
  padding: 4px 12px;
  margin-right: 7px;
  margin-bottom: 4px;
}

/* ============= */
/* FOOTER        */
/* ============= */
footer {
  background: #232323;
  color: #fff;
  padding: 54px 0 24px 0;
  box-shadow: 0 -2px 16px 0 rgba(40,40,40,0.06);
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}
footer img {
  height: 42px;
  margin-bottom: 12px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
footer nav a {
  color: #F2F1EB;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 0.96rem;
  margin-bottom: 4px;
  opacity: 0.92;
  border-radius: 4px;
  padding: 4px 2px;
  transition: background 0.2s, color 0.2s;
}
footer nav a:hover, footer nav a:focus {
  color: #232323;
  background: #C3C3C1;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #F2F1EB;
  font-size: 0.93rem;
}
.contact-info img {
  height: 13px;
  width: 13px;
  margin-right: 7px;
  vertical-align: middle;
  opacity: 0.68;
}

@media (max-width: 760px) {
  footer .container {
    flex-direction: column;
    gap: 18px;
  }
}

@media (max-width: 450px) {
  footer {
    padding: 36px 0 12px 0;
  }
}

/* ================ */
/* MISC STYLES      */
/* ================ */
ol, ul {
  margin-left: 24px;
  margin-bottom: 16px;
}
ol li, ul li {
  margin-bottom: 8px;
  color: #1b1b1b;
}
ol li strong, ul li strong {
  color: #232323;
}

/* ================ */
/* TYPOGRAPHY SCALE */
/* ================ */
@media (max-width: 528px) {
  h1 {
    font-size: 1.55rem;
  }
  h2 {
    font-size: 1.2rem;
  }
  h3 {
    font-size: 1.01rem;
  }
  .cta-button {
    font-size: 0.96rem;
    padding: 10px 14px;
  }
  input[type="search"] {
    font-size: 0.98rem;
    padding: 9px 10px;
  }
}

/* ============= */
/* ANIMATIONS    */
/* ============= */
.cta-button, .card, .testimonial-card, .feature-item {
  transition: box-shadow 0.2s, border 0.14s, background 0.18s;
}
.card, .testimonial-card {
  transition: box-shadow 0.17s;
}
nav a, .mobile-nav a {
  transition: color 0.18s, background 0.18s;
}
input[type="search"] {
  transition: border-color 0.18s, box-shadow 0.2s;
}

/* Micro-interaction for card hover */
.card:hover {
  box-shadow: 0 8px 32px rgba(55,66,61,0.15), 0 2px 7px rgba(180,139,74,0.07);
  z-index: 6;
}

/* =============================== */
/* COOKIE CONSENT BANNER & MODAL   */
/* =============================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: rgba(30, 30, 30, 0.98);
  color: #fff;
  padding: 28px 16px 18px 16px;
  box-shadow: 0 -6px 32px 0 rgba(30, 32, 33, 0.13);
  z-index: 99998;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 1rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(60px);
  transition: opacity 0.4s, transform 0.4s;
}
.cookie-banner.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.cookie-banner-content {
  max-width: 580px;
  line-height: 1.6;
  color: #fff;
  margin-right: 24px;
  flex: 1 1 50%;
}
.cookie-banner-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.cookie-btn {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 5px;
  background: #fff;
  color: #232323;
  border: 2px solid #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  transition: background 0.25s, color 0.25s, border-color 0.2s;
}
.cookie-btn.accept {
  background: #232323;
  color: #fff;
  border-color: #B48B4A;
}
.cookie-btn.accept:hover,
.cookie-btn.accept:focus {
  background: #B48B4A;
  color: #fff;
  border-color: #B48B4A;
}
.cookie-btn.reject {
  background: #fff;
  color: #232323;
  border-color: #232323;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #232323;
  color: #fff;
  border-color: #232323;
}
.cookie-btn.settings {
  background: #F2F1EB;
  color: #232323;
  border-color: #E2D0B7;
}
.cookie-btn.settings:hover,
.cookie-btn.settings:focus {
  background: #B48B4A;
  color: #fff;
  border-color: #B48B4A;
}
@media (max-width: 660px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 18px 5px 10px 5px;
    gap: 8px;
  }
  .cookie-banner-content {
    margin-right: 0;
    max-width: 98vw;
  }
  .cookie-banner-buttons {
    gap: 7px;
  }
}

/* COOKIE MODAL */
.cookie-modal-backdrop {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(30,30,30,0.56);
  z-index: 100009;
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.35s;
  display: flex;
  justify-content: center;
  align-items: center;
}
.cookie-modal {
  background: #fff;
  color: #232323;
  border-radius: 12px;
  box-shadow: 0 3px 36px 0 rgba(50,52,55,0.14);
  padding: 36px 32px 32px 32px;
  max-width: 490px;
  width: 90vw;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: modal-in 0.43s cubic-bezier(.6,.44,.21,1);
}
@keyframes modal-in {
  0% {transform: translateY(38px) scale(.9); opacity: 0;}
  100% {transform: translateY(0) scale(1); opacity: 1;}
}
.cookie-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: #232323;
  opacity: 0.72;
  cursor: pointer;
  transition: color 0.2s, opacity 0.15s;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  color: #B48B4A;
  opacity: 1;
}
.cookie-modal h2 {
  font-size: 1.4rem;
  margin-bottom: 8px;
  margin-top: 0;
}
.cookie-options {
  display: flex;
  flex-direction: column;
  gap: 19px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #F2F1EB;
  border-radius: 7px;
  padding: 12px 16px;
}
.cookie-category .switch {
  position: relative;
  width: 44px;
  height: 24px;
}
.switch input[type="checkbox"] {
  opacity: 0;
  width: 0;
  height: 0;
}
.switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #cfcfcf;
  border-radius: 12px;
  transition: background 0.2s;
}
.switch input:checked + .slider {
  background: #B48B4A;
}
.switch .slider:before {
  content: "";
  position: absolute;
  left: 3px;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.22s;
  box-shadow: 0 1px 3px 0 rgba(99,99,99,0.13);
}
.switch input:checked + .slider:before {
  transform: translateX(19px);
}
.cookie-category .cookie-label {
  font-weight: 600;
  color: #232323;
}
.cookie-category .always-enabled {
  color: #A7A7A6;
  font-weight: 400;
  font-size: .92rem;
  margin-left: 12px;
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 18px;
}
@media (max-width: 480px) {
  .cookie-modal {
    padding: 16px 5px 21px 5px;
    gap: 12px;
  }
}

/* =========== */
/* MONOCHROME  */
/* =========== */
/* Dramatic contrast for monochrome_sophisticated theme */
body, .section {
  background: #fff;
  color: #131313;
}
h1, h2, h3, h4, h5 {
  color: #232323;
}
 a, a:visited {
  color: #37423D;
}
 a:hover, a:focus {
  color: #B48B4A;
}
.cta-button, .cookie-btn.accept {
  background: #232323;
  color: #fff;
}
.card, .testimonial-card, .cookie-modal, .feature-item, .contact-info, .cookie-banner-content {
  border-color: #E7E7E7;
}

/* Appropriate subtle shadow accents everywhere */
.card, .testimonial-card {
  box-shadow: 0 2px 14px rgba(20,20,20,0.07);
}
.section {
  box-shadow: 0 1.5px 8px rgba(55,66,61,0.07);
}

/* =========== */
/* VISUAL HIERS*/
/* =========== */
/* Space and structure */
main .section:not(:last-child) {
  margin-bottom: 52px;
}

@media (max-width: 520px) {
  .container {
    padding-left: 2vw;
    padding-right: 2vw;
  }
  .section {
    padding: 18px 0px;
    margin-bottom: 18px;
  }
  .card {
    padding: 9px 6px;
    min-width: 160px;
  }
}

/* ============== */
/* OVERRIDE BRAND */
/* ============== */
/* Brand primary: #37423D | secondary: #B48B4A | accent: #F2F1EB */
.brand-primary {
  color: #37423D;
}
.brand-secondary {
  color: #B48B4A;
}
.brand-accent {
  color: #F2F1EB;
}

/* ICONS tint for monochrome sophistication */
img[src*="icons/"] {
  filter: grayscale(100%) brightness(0.80) contrast(130%);
  opacity: 0.84;
}
img[src*="icon-star"] {
  filter: none;
  opacity: 1;
}

/* MICRO INTERACTIONS FOR FOCUS */
a:focus, button:focus, .cta-button:focus, .cookie-btn:focus {
  outline: 2px solid #B48B4A;
  outline-offset: 2px;
}

/* ============= */
/* PRINT         */
/* ============= */
@media print {
  header, footer, .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal-backdrop {
    display: none !important;
  }
}
