/* =========================
   CSS 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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #EBE7E2;
  color: #444755;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a {
  color: #A98968;
  text-decoration: none;
  transition: color 0.2s cubic-bezier(.4,0,.2,1);
}
a:hover, a:focus {
  color: #444755;
  text-decoration: underline;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol {
  list-style: none;
}

/* =========================
   VARIABLES (with fallback)
   ========================= */
:root {
  --primary: #444755;
  --secondary: #A98968;
  --accent: #EBE7E2;
  --radius: 14px;
  --radius-small: 8px;
  --shadow: 0 4px 16px rgba(68, 71, 85, 0.08), 0 1.5px 4px rgba(68, 71, 85, 0.08);
  --font-display: 'Roboto Slab', serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
  --transition: 0.25s cubic-bezier(.4,0,.2,1);
}

/* =========================
   TYPOGRAPHY
   ========================= */
h1, .h1 {
  font-family: var(--font-display), serif;
  font-weight: 700;
  font-size: 2.8rem;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 20px;
}
h2, .h2 {
  font-family: var(--font-display), serif;
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
}
h3, .h3 {
  font-family: var(--font-display), serif;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.15;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}
h4, .h4 {
  font-family: var(--font-display), serif;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 10px;
}
p, ul, ol {
  font-family: var(--font-body);
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--primary);
}
.subheadline {
  font-family: var(--font-body);
  font-size: 1.25rem;
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: 24px;
}
strong { font-weight: 700; }

/* =========================
   CONTAINER & STRUCTURE
   ========================= */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  padding: 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.text-section {
  width: 100%;
  max-width: 760px;
  margin: 0 auto 32px auto;
  padding: 0;
}

/* =========================
   HEADER & NAVIGATION
   ========================= */
header {
  background: var(--accent);
  box-shadow: 0 2px 10px rgba(68, 71, 85, 0.06);
  z-index: 50;
}
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0 16px 0;
}
header img {
  height: 48px;
}
.main-nav {
  display: flex;
  gap: 20px;
}
.main-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--primary);
  padding: 8px 0;
  position: relative;
  letter-spacing: 0.5px;
  transition: color var(--transition);
}
.main-nav a::before {
  content: '';
  display: block;
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  background: var(--secondary);
  border-radius: 2px;
  transition: width 0.22s cubic-bezier(.4,0,.2,1);
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--secondary);
}
.main-nav a:hover::before, .main-nav a:focus::before {
  width: 70%;
}
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 28px;
  background: var(--secondary);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: bold;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: background var(--transition), box-shadow var(--transition), color var(--transition);
  box-shadow: var(--shadow);
}
.cta-button:hover, .cta-button:focus {
  background: var(--primary);
  color: var(--secondary);
  box-shadow: 0 6px 22px rgba(68,71,85,0.13);
  outline: none;
}

/* =========================
   MOBILE MENU (BURGER)
   ========================= */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--secondary);
  color: #fff;
  border: none;
  border-radius: var(--radius-small);
  font-size: 2rem;
  padding: 6px 16px;
  margin-left: 12px;
  cursor: pointer;
  transition: background var(--transition);
  z-index: 120;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--primary);
  color: var(--accent);
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  max-width: 430px;
  height: 100vh;
  background: var(--accent);
  box-shadow: -4px 0 24px rgba(68,71,85,0.16);
  transform: translateX(100%);
  transition: transform 0.33s cubic-bezier(.4,0,.2,1);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 0;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0%);
  pointer-events: all;
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 18px 18px 0 0;
  font-size: 2.2rem;
  background: none;
  border: none;
  color: var(--secondary);
  cursor: pointer;
  padding: 0 6px;
  transition: color var(--transition);
  z-index: 210;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--primary);
  background: var(--secondary);
  color: #fff;
  border-radius: var(--radius-small);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 32px 0 0 0;
  width: 100%;
}
.mobile-nav a {
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  padding: 14px 34px 14px 24px;
  border-radius: var(--radius-small) 0 0 var(--radius-small);
  transition: background var(--transition), color var(--transition);
  width: 100%;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: #fff;
}

/* Hide desktop nav on mobile, show on desktop */
.main-nav {
  display: none;
}
.cta-button {
  display: none;
}
.mobile-menu-toggle {
  display: flex;
}
@media (min-width: 992px) {
  .main-nav {
    display: flex;
  }
  .mobile-menu-toggle {
    display: none;
  }
  .mobile-menu {
    display: none !important;
  }
  .cta-button {
    display: inline-flex;
  }
}

/* =========================
   HERO SECTIONS & PAGE SECTIONS
   ========================= */
.hero {
  background: linear-gradient(120deg, #EBE7E2 68%, #A98968 100%);
  border-bottom: 3px solid var(--secondary);
  padding: 64px 0 52px 0;
  margin-bottom: 42px;
}
.hero h1, .hero .h1 {
  color: var(--primary);
  margin-bottom: 22px;
}
.hero p, .hero .subheadline {
  color: var(--secondary);
}

.section {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 768px) {
  .section {
    margin-bottom: 40px;
    padding: 26px 8px;
  }
  .hero {
    padding: 46px 0 30px 0;
    margin-bottom: 24px;
  }
}


/* =========================
   FEATURE GRID/CARDS
   ========================= */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 16px;
}
.feature-grid li {
  background: var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  flex: 1 1 210px;
  min-width: 220px;
  max-width: calc(25% - 20px);
  padding: 26px 22px 20px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  position: relative;
  border: 2.5px solid #ddd0c0;
  transition: box-shadow var(--transition), border-color var(--transition), transform 0.17s cubic-bezier(.4,0,.2,1);
}
.feature-grid li:hover, .feature-grid li:focus-within {
  border-color: var(--secondary);
  box-shadow: 0 8px 24px rgba(68,71,85,0.13);
  transform: translateY(-4px) scale(1.025);
}
.feature-grid img {
  width: 42px;
  height: 42px;
  margin-bottom: 6px;
}
@media (max-width: 1000px) {
  .feature-grid li {
    max-width: calc(50% - 22px);
  }
}
@media (max-width: 768px) {
  .feature-grid {
    flex-direction: column;
    gap: 18px;
  }
  .feature-grid li {
    max-width: 95%;
    min-width: 0;
    width: 100%;
  }
}

/* =========================
   COLUMNS/FEATURES FLEX
   ========================= */
.features-columns, .services-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.feature-item, .service-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 22px 22px 22px;
  flex: 1 1 220px;
  min-width: 220px;
  border: 1.8px solid #dedede;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow var(--transition), border-color var(--transition), transform 0.16s cubic-bezier(.4,0,.2,1);
}
.feature-item:hover, .feature-item:focus-within, .service-item:hover, .service-item:focus-within {
  border-color: var(--secondary);
  box-shadow: 0 6px 22px rgba(68,71,85,0.13);
  transform: translateY(-2px) scale(1.019);
}
@media (max-width: 900px) {
  .features-columns, .services-columns {
    flex-direction: column;
    gap: 16px;
  }
  .feature-item, .service-item {
    width: 100%;
    min-width: 0;
    flex: 1 1 100%;
  }
}

/* =========================
   LISTS STYLING
   ========================= */
ul, ol {
  padding-left: 0;
}
ul li, ol li {
  margin-bottom: 10px;
  line-height: 1.62;
  font-size: 1rem;
  position: relative;
  padding-left: 0;
}
.text-section ul li::before, .content-wrapper>ul li::before {
  content: "■";
  color: var(--secondary);
  font-size: 0.67em;
  margin-right: 10px;
  display: inline-block;
  vertical-align: middle;
}
.content-wrapper>ul, .text-section ul {
  margin-bottom: 20px;
}

/* =========================
   TESTIMONIALS
   ========================= */
.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-bottom: 20px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  min-width: 260px;
  max-width: 380px;
  flex: 1 1 32%;
  border: 2px solid #EBE7E2;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.testimonial-card:hover, .testimonial-card:focus-within {
  border-color: var(--secondary);
  box-shadow: 0 8px 24px rgba(68,71,85,0.13);
  transform: translateY(-3px) scale(1.018);
}
.review-stars {
  font-size: 1.2rem;
  color: #A98968;
  font-family: var(--font-display);
  letter-spacing: 0.11em;
}
.testimonial-card p {
  color: #2A2B32;
  font-size: 1.02rem;
  line-height: 1.45;
  font-style: italic;
  margin-bottom: 0;
  text-align: left;
}
.testimonial-author {
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--secondary);
  font-weight: 500;
  text-align: right;
  width: 100%;
}
@media (max-width: 900px) {
  .testimonial-list {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card {
    max-width: 98%;
    min-width: 160px;
  }
}

/* =========================
   FOOTER
   ========================= */
footer {
  background: var(--primary);
  color: var(--accent);
  padding: 44px 0 26px 0;
}
.footer-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-nav, .footer-legal {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-nav a, .footer-legal a {
  color: var(--accent);
  font-size: 1rem;
  font-family: var(--font-display);
  opacity: 0.88;
  transition: color var(--transition), opacity var(--transition);
}
.footer-nav a:hover, .footer-legal a:hover, .footer-nav a:focus, .footer-legal a:focus {
  color: var(--secondary);
  opacity: 1;
}
.footer-contact, .footer-address {
  font-size: 0.99rem;
  color: var(--accent);
  font-family: var(--font-body);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 400;
}
.footer-contact img, .footer-address img {
  width: 19px;
  height: 19px;
  margin-right: 6px;
  vertical-align: middle;
}
@media (max-width: 900px) {
  .footer-wrapper {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
}

/* =========================
   CONTACT DETAILS BLOCKS
   ========================= */
.contact-details, .location-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 22px;
}
.contact-details div, .location-block div {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  color: var(--primary);
}
.location-block img, .contact-details img {
  width: 23px;
  height: 23px;
}

/* =========================
   BUTTONS, FORMS
   ========================= */
button, .cta-button, input[type="submit"] {
  font-family: var(--font-display);
  font-size: 1rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  outline: none;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}

/* Cookie Banner Buttons styled in cookie section below! */

/* =========================
   RESPONSIVE FLEX & SPACING MANDATORY PATTERNS
   ========================= */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 32px 20px;
}
.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;
}
@media (max-width: 768px) {
  .content-grid, .card-container, .text-image-section {
    flex-direction: column;
    gap: 16px;
  }
}

/* =========================
   COOKIE CONSENT BANNER & MODAL
   ========================= */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  z-index: 10000;
  background: #fff;
  box-shadow: 0 -1.5px 20px rgba(68,71,85,0.14);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  font-family: var(--font-body);
  font-size: 1rem;
  border-top: 4px solid var(--secondary);
  animation: cookie-slide-in 0.6s cubic-bezier(.4,0,.2,1);
}
@keyframes cookie-slide-in {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner-message {
  color: var(--primary);
  max-width: 650px;
}
.cookie-banner-actions {
  display: flex;
  gap: 14px;
  flex-shrink: 0;
}
.cookie-btn {
  background: var(--secondary);
  color: #fff;
  padding: 6px 18px;
  font-size: 1rem;
  border: none;
  border-radius: var(--radius-small);
  cursor: pointer;
  box-shadow: var(--shadow);
  font-family: var(--font-display);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--primary);
  color: var(--secondary);
  box-shadow: 0 6px 18px rgba(68,71,85,0.15);
}
.cookie-btn-settings {
  background: #fff;
  color: var(--secondary);
  border: 2px solid var(--secondary);
  box-shadow: none;
}
.cookie-btn-settings:hover, .cookie-btn-settings:focus {
  background: var(--secondary);
  color: #fff;
}
/* Cookie Modal Overlay */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(68,71,85,0.45);
  z-index: 11000;
  align-items: center;
  justify-content: center;
  animation: cookie-modal-fadein 0.3s;
}
@keyframes cookie-modal-fadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal-overlay.open {
  display: flex;
}
.cookie-modal {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 4px 38px rgba(68,71,85,0.18);
  padding: 34px 28px 22px 28px;
  max-width: 420px;
  width: 96vw;
  font-family: var(--font-body);
  color: var(--primary);
  display: flex;
  flex-direction: column;
  gap: 19px;
  position: relative;
  animation: cookie-modal-slideup 0.3s cubic-bezier(.4,0,.2,1);
}
@keyframes cookie-modal-slideup {
  from { transform: translateY(24px); opacity: 0.2; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--secondary);
  cursor: pointer;
  transition: color var(--transition);
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--primary);
}
.cookie-modal h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 8px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #F5F3F0;
  border-radius: var(--radius-small);
  padding: 10px 12px;
  font-size: 1rem;
}
.cookie-category label {
  font-size: 1rem;
}
.cookie-toggle {
  width: 46px;
  height: 24px;
  background: #dedede;
  border-radius: 12px;
  position: relative;
  transition: background 0.17s cubic-bezier(.4,0,.2,1);
  cursor: pointer;
}
.cookie-toggle[data-checked="true"] {
  background: var(--secondary);
}
.cookie-toggle input[type="checkbox"] {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.cookie-slider {
  position: absolute;
  left: 2px; top: 2px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(68,71,85,0.10);
  transition: transform 0.2s cubic-bezier(.4,0,.2,1);
}
.cookie-toggle[data-checked="true"] .cookie-slider {
  transform: translateX(22px);
}
.cookie-category.essential .cookie-toggle {
  background: #ccc;
  cursor: not-allowed;
}
.cookie-category.essential .cookie-slider {
  opacity: 0.38;
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    gap: 13px;
    padding: 14px 10px 20px 10px;
    font-size: 0.99rem;
  }
  .cookie-banner-message {
    max-width: 96vw;
    margin-bottom: 8px;
  }
  .cookie-modal {
    padding: 22px 10px 18px 10px;
  }
}

/* =========================
   GEOMETRIC STRUCTURED ELEMENTS
   ========================= */
/* Angular/Geometric divider for hero and feature sections */
.hero, .section {
  position: relative;
}
.hero::after {
  content: '';
  display: block;
  position: absolute;
  left: 0;
  bottom: -14px;
  width: 100%;
  height: 14px;
  background: linear-gradient(90deg, var(--secondary) 60%, rgba(0,0,0,0));
  clip-path: polygon(0 0, 100% 100%, 0 100%);
  z-index: 2;
  pointer-events: none;
}
.section::before {
  content: '';
  display: block;
  position: absolute;
  left: 0;
  top: -14px;
  width: 100%;
  height: 14px;
  background: linear-gradient(90deg, rgba(0,0,0,0), var(--secondary) 40%);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  z-index: 2;
  pointer-events: none;
}

/* Geometric/accent backgrounds for some cards */
.feature-grid li, .feature-item, .service-item {
  background: repeating-linear-gradient(120deg, #EBE7E2, #EBE7E2 16px, #f2ece5 22px, #EBE7E2 34px);
}
.section {
  border-radius: 0px 22px 22px 0px;
  border-left: 0.5rem solid var(--secondary);
}
.card {
  border-radius: 12px 28px 12px 28px;
  border-right: 3px solid var(--secondary);
  border-bottom: 3px solid #ddd0c0;
}

/* =========================
   UTILITIES & ANIMATION
   ========================= */
.fade-in {
  animation: fadein 0.9s cubic-bezier(.4,0,.2,1);
}
@keyframes fadein {
  from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:translateY(0)}
}

/* =========================
   RESPONSIVE TYPOGRAPHY
   ========================= */
@media (max-width: 600px) {
  h1, .h1 {font-size: 2rem;}
  h2, .h2 {font-size: 1.3rem;}
  .subheadline { font-size: 1.07rem; }
}

/* =========================
   PRINT/ACCESSIBILITY
   ========================= */
@media print {
  .cookie-banner, .cookie-modal-overlay, .mobile-menu, .mobile-menu-toggle { display: none !important; }
  a { color: #222; text-decoration: underline; }
}
