/* ===================================================
   CSS 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,
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;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  background: linear-gradient(135deg, #F4E6D4 0%, #FFFFFF 100%);
  color: #582C0C;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
ul, ol {
  padding-left: 1.25em;
  margin-bottom: 18px;
}
li {
  margin-bottom: 8px;
}
a {
  color: #93703A;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #B68953;
  text-decoration: underline;
}
button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  outline: none;
  border: none;
}
button {
  cursor: pointer;
}

/* ===================================================
   VARIABLE FALLBACKS (if custom props are supported)
=================================================== */
:root {
  --color-primary: #582C0C;
  --color-secondary: #F4E6D4;
  --color-accent: #93703A;
  --color-bg-light: #FFFFFF;
  --color-bg-gradient: linear-gradient(135deg, #F4E6D4 0%, #FFFFFF 100%);
  --color-card-bg: #fff;
  --color-card-shadow: rgba(88,44,12,0.10);
  --color-btn-bg: #582C0C;
  --color-btn-hover: #B68953;
  --color-btn-text: #fff;
  --color-section-bg: linear-gradient(135deg, #FFFFFF 0%, #F4E6D4 100%);
  --radius-base: 20px;
  --shadow-base: 0 4px 24px rgba(88,44,12,0.10);
  --font-display: 'Playfair Display', serif;
  --font-body: 'Montserrat', Arial, sans-serif;
}

/* ===================================================
   TYPOGRAPHY
=================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display, 'Playfair Display', serif);
  font-weight: 700;
  color: #582C0C;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.375rem;
  margin-bottom: 10px;
}
h4, h5, h6 {
  font-size: 1.1rem;
}
p, ul, ol {
  color: #582C0C;
  font-family: var(--font-body);
  font-size: 1rem;
}
strong {
  font-weight: bold;
}

/* ===================================================
   CONTAINERS & SECTIONS
=================================================== */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-section-bg);
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-base);
}

/* ==========================
   HEADER & NAVIGATION
===========================*/
header {
  position: sticky;
  top: 0;
  z-index: 30;
  width: 100%;
  background: #fff;
  box-shadow: 0 4px 18px rgba(88,44,12,0.07);
  min-height: 70px;
}
nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  padding: 12px 0;
}
nav a {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  color: #582C0C;
}
nav a.primary-cta {
  background: linear-gradient(90deg, #93703A 2%, #B68953 98%);
  color: #fff;
  font-weight: bold;
  font-size: 1.1rem;
  border-radius: 999px;
  margin-left: auto;
  box-shadow: 0 2px 12px rgba(182,137,83,0.13);
  transition: background 0.2s, transform 0.22s;
}
nav a.primary-cta:hover, nav a.primary-cta:focus {
  background: #582C0C;
  color: #fff;
  transform: scale(1.045);
  text-decoration: none;
}
nav a:hover:not(.primary-cta), nav a:focus:not(.primary-cta) {
  background: #F4E6D4;
  color: #93703A;
}
nav img {
  height: 40px;
  margin-right: 24px;
}

.mobile-menu-toggle {
  display: none;
  background: #fff;
  color: #582C0C;
  border: none;
  font-size: 2rem;
  padding: 8px 12px;
  cursor: pointer;
  position: absolute;
  top: 16px;
  right: 24px;
  z-index: 52;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(88,44,12,0.09);
  transition: background 0.16s;
}
.mobile-menu-toggle:active {
  background: #F4E6D4;
}

/* ==========================
   MOBILE MENU OVERLAY
===========================*/
.mobile-menu {
  position: fixed;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #FFF 0%, #F4E6D4 100%);
  transform: translateX(-100%);
  transition: transform 0.33s cubic-bezier(.61,.22,.35,1.01);
  z-index: 60;
  box-shadow: 0 2px 36px 0 rgba(88,44,12,0.16);
  padding: 32px 24px 18px 24px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: #fff;
  color: #582C0C;
  border: none;
  font-size: 2rem;
  border-radius: 8px;
  margin-bottom: 18px;
  padding: 4px 10px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(88,44,12,0.09);
  z-index: 100;
  transition: background 0.13s;
}
.mobile-menu-close:active {
  background: #F4E6D4;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}
.mobile-nav a {
  font-family: var(--font-body);
  font-size: 1.2rem;
  color: #582C0C;
  padding: 14px 0 14px 0;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  font-weight: 500;
  text-align: left;
  width: 100%;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #F4E6D4;
  color: #93703A;
}

/* Hide nav & show burger on mobile */
@media (max-width: 1020px) {
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 1021px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ==========================
   HERO / MAIN CTAs
===========================*/
.primary-cta,
button.primary-cta {
  display: inline-block;
  background: linear-gradient(90deg, #93703A 5%, #B68953 95%);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 12px 32px;
  border: none;
  box-shadow: 0 2px 14px 0 rgba(147,112,58,0.18);
  transition: background 0.17s, transform 0.17s;
  margin-top: 10px;
  margin-bottom: 10px;
  text-align: center;
}
.primary-cta:hover, .primary-cta:focus {
  background: #582C0C;
  color: #fff;
  transform: scale(1.055);
  text-decoration: none;
}
.secondary-cta,
button.secondary-cta {
  display: inline-block;
  background: #fff;
  color: #582C0C;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 10px 26px;
  border: 2px solid #B68953;
  margin-top: 8px;
  margin-bottom: 8px;
  transition: background 0.12s, color 0.15s;
  text-align: center;
}
.secondary-cta:hover, .secondary-cta:focus {
  background: #B68953;
  color: #fff;
}

/* ==========================
   SECTION LAYOUTS & SPACING
===========================*/
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-section-bg);
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-base);
}
.service-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.service-cards > div {
  background: #fff;
  border-radius: 16px;
  padding: 24px 18px;
  box-shadow: 0 2px 20px 0 rgba(88,44,12,0.08);
  flex: 1 1 280px;
  min-width: 220px;
  margin-bottom: 0;
  transition: box-shadow 0.13s, transform 0.15s;
}
.service-cards > div:hover {
  box-shadow: 0 8px 30px 0 rgba(147,112,58,0.17);
  transform: translateY(-2px) scale(1.025);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 18px rgba(147,112,58,0.11);
  padding: 24px 20px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.13s, transform 0.15s;
}
.card:hover {
  box-shadow: 0 8px 30px 0 rgba(182,137,83,0.16);
  transform: translateY(-2px) scale(1.02);
}

.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: #fff;
  border: 2px solid #F4E6D4;
  border-radius: 18px;
  box-shadow: 0 2px 18px 0 rgba(147,112,58,0.11);
  color: #582C0C;
  margin-bottom: 20px;
  font-family: var(--font-body);
  transition: box-shadow 0.13s, transform 0.13s, border-color 0.15s;
  min-width: 0;
  word-break: break-word;
}
.testimonial-card:hover {
  border-color: #B68953;
  box-shadow: 0 10px 32px 0 rgba(147,112,58,0.13);
  transform: translateY(-2px);
}
.testimonial-card strong {
  color: #93703A;
  font-size: 1rem;
  margin-left: auto;
  font-weight: bold;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* =============================
   FOOTER
==============================*/
footer {
  background: #582C0C;
  padding: 44px 0 0 0;
  color: #fff;
  border-top-left-radius: 36px;
  border-top-right-radius: 36px;
  box-shadow: 0 -4px 25px rgba(88,44,12,0.13);
}
footer .content-wrapper {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 24px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: 170px;
}
.footer-brand img {
  height: 44px;
  margin-bottom: 4px;
}
.footer-brand p {
  font-size: 1rem;
  color: #fff;
}
.footer-brand a img {
  height: 25px;
  width: 25px;
  margin-right: 8px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 150px;
}
.footer-links a {
  color: #f3ecd8;
  font-size: 1rem;
  font-weight: 500;
  padding: 2px 0;
  border-radius: 8px;
  transition: background 0.14s, color 0.14s;
}
.footer-links a:hover, .footer-links a:focus {
  color: #B68953;
  background: #fff1e0;
}
.footer-contact {
  font-size: 1rem;
  color: #f3ecd8;
  min-width: 240px;
  line-height: 1.5;
}
.footer-contact a {
  color: #B68953;
  text-decoration: underline;
  font-weight: 500;
}
.footer-contact a:hover {
  color: #fff;
}
.newsletter-signup {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 200px;
}
.newsletter-signup label {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 2px;
}
.newsletter-signup input[type="email"] {
  border-radius: 999px;
  padding: 12px 18px;
  border: none;
  background: #fff;
  color: #582C0C;
  font-size: 1rem;
  font-family: var(--font-body);
  margin-bottom: 5px;
  box-shadow: 0 2px 8px rgba(34,23,12,0.05);
  transition: box-shadow .12s, background .08s;
}
.newsletter-signup input[type="email"]:focus {
  border: 1.5px solid #B68953;
  background: #F4E6D4;
  box-shadow: 0 2px 18px 0 rgba(182,137,83,0.07);
}
.newsletter-signup button {
  background: linear-gradient(90deg, #93703A, #B68953);
  color: #fff;
  border-radius: 999px;
  border: none;
  font-size: 1rem;
  font-weight: bold;
  padding: 10px 26px;
  box-shadow: 0 2px 18px 0 rgba(182,137,83,0.10);
  transition: background 0.14s, transform 0.13s;
}
.newsletter-signup button:hover,
.newsletter-signup button:focus {
  background: #582C0C;
  color: #fff;
  transform: scale(1.045);
}

/* =============================
   COOKIE CONSENT BANNER
==============================*/
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  color: #582C0C;
  box-shadow: 0 -4px 20px 0 rgba(88,44,12,0.13);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  z-index: 990;
  padding: 24px 36px;
  gap: 26px;
  width: 100%;
  max-width: 100vw;
  transition: transform 0.3s cubic-bezier(.64,.09,.43,1.07), opacity 0.2s;
  opacity: 1;
}
.cookie-banner.hide {
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
}
.cookie-banner .cookie-text {
  font-size: 1rem;
  flex: 2 1 60%;
}
.cookie-banner .cookie-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.cookie-banner button {
  font-family: var(--font-body);
  border: none;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: bold;
  background: #B68953;
  color: #fff;
  transition: background 0.17s, color 0.16s;
}
.cookie-banner button.cookie-settings {
  background: #fff;
  color: #582C0C;
  border: 1.2px solid #B68953;
  font-weight: 500;
}
.cookie-banner button.cookie-settings:hover,
.cookie-banner button.cookie-settings:focus {
  background: #F4E6D4;
  color: #93703A;
}
.cookie-banner button:hover,
.cookie-banner button:focus {
  background: #582C0C;
  color: #fff;
}

/* COOKIE SETTINGS MODAL */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(34,23,12,0.38);
  transition: opacity 0.24s, visibility 0.26s;
  opacity: 1;
  visibility: visible;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}
.cookie-modal .cookie-modal-content {
  background: #fff;
  color: #582C0C;
  border-radius: 22px;
  padding: 36px 26px 28px 26px;
  min-width: 310px;
  max-width: 96vw;
  box-shadow: 0 6px 48px 0 rgba(182,137,83,0.17);
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: slideDown 0.45s cubic-bezier(.7,1.65,.68,1.01);
}
@keyframes slideDown {
  from { transform: translateY(-18%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1;   }
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.cookie-modal .cookie-category label {
  font-weight: 500;
  font-size: 1.01rem;
  color: #582C0C;
}
.cookie-modal .cookie-category input[type="checkbox"] {
  accent-color: #B68953;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  margin-right: 5px;
}
.cookie-modal .cookie-category input[disabled] {
  opacity: 0.55;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
  align-items: center;
  justify-content: flex-end;
}
.cookie-modal button {
  font-family: var(--font-body);
  border: none;
  padding: 10px 24px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: bold;
  background: #B68953;
  color: #fff;
  transition: background 0.16s, color 0.16s;
}
.cookie-modal button.cancel {
  background: #fff;
  color: #582C0C;
  border: 1.2px solid #B68953;
  font-weight: 500;
}
.cookie-modal button.cancel:hover,
.cookie-modal button.cancel:focus {
  background: #F4E6D4;
  color: #93703A;
}
.cookie-modal button:hover,
.cookie-modal button:focus {
  background: #582C0C;
  color: #fff;
}

/* =============================
   RESPONSIVE DESIGN
==============================*/
@media (max-width: 1020px) {
  .content-wrapper, .service-cards, .content-grid, footer .content-wrapper {
    flex-direction: column;
    gap: 24px;
    align-items: stretch;
  }
  .footer-brand, .footer-links, .footer-contact, .newsletter-signup {
    min-width: unset;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 96vw;
    padding: 0 10px;
  }
  section {
    padding: 32px 9px;
    margin-bottom: 48px;
  }
  .footer-brand img {
    height: 39px;
  }
}
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  .content-wrapper, .service-cards, .content-grid, .card-container, .footer .content-wrapper {
    gap: 17px;
  }
  nav img {
    height: 34px;
    margin-right: 14px;
  }
  .testimonial-card {
    font-size: 0.95rem;
    gap: 12px;
    padding: 15px;
  }
  .section {
    padding: 26px 5px;
    margin-bottom: 36px;
  }
}
@media (max-width: 600px) {
  html {
    font-size: 15px;
  }
  .container {
    padding-left: 3px;
    padding-right: 3px;
  }
  footer .content-wrapper {
    gap: 18px;
    padding-bottom: 9px;
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 16px;
    padding: 17px 10px 13px 10px;
    text-align: left;
    align-items: stretch;
  }
  .cookie-banner .cookie-btn-group {
    gap: 7px;
  }
  .cookie-modal .cookie-modal-content {
    padding: 18px 10px 14px 10px;
    min-width: 80vw;
  }
}
@media (max-width: 480px) {
  h1 {
    font-size: 1.4rem;
  }
  h2 {
    font-size: 1.2rem;
  }
  ul, li, p {
    font-size: 0.94rem;
  }
}

/* =======================
 * UTILITY CLASSES
 *======================*/
.text-center { text-align: center; }
.mt-1 { margin-top: 8px !important; }
.mb-1 { margin-bottom: 8px !important; }
.mt-2 { margin-top: 20px !important; }
.mb-2 { margin-bottom: 20px !important; }
.rounded { border-radius: var(--radius-base); }

/* =============================
   MICRO-INTERACTIONS
==============================*/
input[type="email"], input[type="text"], input[type="password"] {
  transition: box-shadow 0.11s, border 0.11s, background 0.11s;
}

/* Hide focus outline except via keyboard */
:focus:not(:focus-visible) {
  outline: none;
}

/* =============================
   SPECIAL: Accessibility
==============================*/
.testimonial-card {
  color: #582C0C;
  background: #fff;
}

/* =======================
  FLEX REQ: force flex wrap for cards & grid
=======================*/
.card-container, .service-cards, .content-grid, .footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

/* =======================
  MANDATORY: text-image-section layout
=======================*/
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
}

/* =======================
   MANDATORY: testimonial-card FLEX
=======================*/
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
}
@media (max-width: 768px) {
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

/* ===============================
   Hide mobile menu overlay backdrop on desktop
===============================*/
@media (min-width: 1021px) {
  .mobile-menu {
    display: none !important;
  }
}

/* =========== END ============= */
