/* ===== CSS RESET ===== */
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;
  min-height: 100vh;
  color: #2B2D33;
  background-color: #F7F3EC;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
*, *:before, *:after {
  box-sizing: inherit;
}
a {
  color: #6B3A16;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #B05D1D;
  outline: none;
}
ul, ol {
  padding-left: 24px;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ===== BRAND FONTS ===== */
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Merriweather:400,700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', serif;
  color: #1C2832;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}
h1 { font-size: 2.375rem; letter-spacing: -1px; }
h2 { font-size: 1.75rem; margin-top: 32px; }
h3 { font-size: 1.125rem; color: #6B3A16; }
h4, h5, h6 { font-size: 1rem; }
p, li { font-size: 1rem; color: #2B2D33; margin-bottom: 14px; }
p { line-height: 1.7; }

strong { color: #6B3A16; font-weight: 700; }
em, i { color: #8A5526; font-style: italic; }

/* ===== CONTAINER & LAYOUT ===== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 3px 14px 0 rgba(44,53,64,0.04);
}

@media (max-width: 768px) {
  .section {
    padding: 24px 10px;
    margin-bottom: 36px;
    border-radius: 12px;
  }
}

/* ===== HEADER & NAVIGATION ===== */
header {
  background: #fff;
  border-bottom: 1px solid #E8E6E2;
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 80px;
}
header img {
  height: 44px;
  width: auto;
  margin-right: 18px;
}
nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
}
nav a {
  font-size: 1rem;
  color: #4B554B;
  font-weight: 600;
  padding: 9px 0;
  border-bottom: 2px solid transparent;
  transition: color .18s, border-bottom .18s;
  position: relative;
  letter-spacing: 0.03em;
}
nav a:hover, nav a:focus {
  color: #B05D1D;
  border-bottom: 2px solid #B05D1D;
  cursor: pointer;
}
.btn-primary {
  background: #6B3A16;
  color: #fff;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1.06rem;
  font-weight: 700;
  padding: 10px 26px;
  border: none;
  border-radius: 24px;
  margin-left: 26px;
  box-shadow: 0 2px 6px rgba(44,53,64,0.1);
  outline: none;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  cursor: pointer;
  display: inline-block;
}
.btn-primary:hover, .btn-primary:focus {
  background: #8A4F23;
  color: #fff;
  box-shadow: 0 4px 16px rgba(44,53,64, 0.13);
  transform: translateY(-2px) scale(1.03);
}

/* ===== MOBILE NAV ===== */
.mobile-menu-toggle {
  display: none;
  background: #fff;
  border: none;
  color: #6B3A16;
  font-size: 2.2rem;
  position: fixed;
  top: 18px;
  right: 22px;
  z-index: 120;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 2px 5px 0 rgba(44,53,64,0.12);
  transition: background .2s, color .15s;
}
.mobile-menu-toggle:focus { outline: 2px solid #B05D1D; }
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(247,243,236,0.96);
  z-index: 130;
  transform: translateX(100vw);
  transition: transform 0.33s cubic-bezier(.8,.16,.28,1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0 0 0 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 24px 20px 0 0;
  background: none;
  border: none;
  font-size: 2.0rem;
  color: #B05D1D;
  cursor: pointer;
  z-index: 140;
  padding: 8px 12px;
  border-radius: 50%;
  transition: background .2s;
}
.mobile-menu-close:focus {
  outline: 2px solid #6B3A16;
  background: #fff8f2;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 48px;
  width: 100%;
  align-items: flex-start;
  padding: 0 34px;
}
.mobile-nav a {
  font-size: 1.16rem;
  color: #3C3631;
  font-weight: 600;
  padding: 12px 3px 12px 0;
  width: 100%;
  border-radius: 6px;
  transition: background 0.16s, color 0.16s;
  margin-bottom: 6px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #F7F3EC;
  color: #8A4F23;
}

/* Show mobile nav toggle on mobile, hide regular nav */
@media (max-width: 900px) {
  header .container {
    flex-direction: row;
    gap: 7px;
    height: 62px;
  }
  nav { display: none; }
  .btn-primary {
    margin-left: 6px;
    font-size: 0.98rem;
    padding: 9px 18px;
  }
  .mobile-menu-toggle { display: block; }
}

@media (max-width: 510px) {
  .mobile-nav { padding: 0 11vw; } 
}

@media (min-width: 901px) {
  .mobile-menu-toggle, .mobile-menu { display: none; }
}

/* ===== MAIN CONTENT & FLEX SECTIONS ===== */
main {
  margin-top: 34px;
  flex: 1;
  width: 100%;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.card {
  margin-bottom: 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(44,53,64,.05);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  min-width: 260px;
  flex: 1 1 240px;
  transition: box-shadow 0.22s, transform 0.17s;
}
.card:hover, .card:focus {
  box-shadow: 0 8px 26px rgba(44,53,64,.13);
  transform: translateY(-3px) scale(1.025);
  z-index: 2;
}
.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) {
  .text-image-section { flex-direction: column; gap: 20px; }
  .card-container, .content-grid { flex-direction: column; gap: 18px; }
}

/* ===== TESTIMONIALS ===== */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #F7F3EC;
  border-radius: 15px;
  box-shadow: 0 1px 7px rgba(44,53,64,.07);
  margin-bottom: 20px;
  max-width: 650px;
  color: #232529;
}
.testimonial-card p {
  font-size: 1.07rem;
  font-style: italic;
  color: #3B3022;
  margin: 0 0 0 0;
}
.testimonial-card span {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: .98rem;
  color: #6B3A16;
  font-weight: 600;
}
@media (max-width: 570px) {
  .testimonial-card {
    flex-direction: column;
    gap: 7px;
    padding: 14px 8px;
    max-width: 100%;
  }
}

/* ===== FEATURE/ITEM FLEX ===== */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

/* ===== SERVICE LIST/CARDS ===== */
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
  margin-bottom: 14px;
}
.service-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(44,53,64,0.06);
  padding: 28px 22px 20px 22px;
  flex: 1 1 260px;
  margin-bottom: 20px;
  min-width: 220px;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 17px;
  position: relative;
  transition: box-shadow .18s, transform .16s;
}
.service-card:hover, .service-card:focus {
  box-shadow: 0 8px 24px rgba(44,53,64,0.13);
  transform: translateY(-4px) scale(1.025);
}
.service-card h3 {
  font-size: 1.13rem;
  color: #6B3A16;
}
.service-price {
  margin-top: 12px;
  color: #B05D1D;
  font-size: 1rem;
  font-weight: 600;
}
@media (max-width: 600px) {
  .service-list { flex-direction: column; gap: 16px; }
  .service-card { min-width: unset; max-width: 100%; }
}

/* ===== FORM & INPUTS ===== */
input[type="search"], input[type="text"], input[type="email"], textarea {
  width: 100%;
  padding: 9px 14px;
  border: 1.5px solid #CE7D36;
  border-radius: 8px;
  background: #fff;
  font-size: 1.05rem;
  transition: border-color .15s, box-shadow .2s;
  margin-bottom: 14px;
  font-family: 'Open Sans', Arial, sans-serif;
}
input[type="search"]:focus, input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  border-color: #B05D1D;
  outline: none;
  box-shadow: 0 0 0 3px #FFE3CB22;
}
button, input[type=button], input[type=submit] {
  font-family: 'Open Sans', Arial, sans-serif;
}

/* ===== FOOTER ===== */
footer {
  background: #232529;
  color: #fff;
  padding: 50px 0 24px 0;
  font-size: 1.02rem;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  gap: 40px;
  justify-content: flex-start;
}
footer img {
  height: 40px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-right: 34px;
}
footer nav a {
  color: #f5e8db;
  font-size: 1rem;
  margin-bottom: 3px;
  border: none;
  padding: 0;
  font-weight: 500;
  transition: color .14s;
}
footer nav a:hover, footer nav a:focus {
  color: #FFC495;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.97rem;
  color: #FAF8F5;
  background-color: #FAF8F5;
}
.footer-contact a {
  color: #FFA556;
  text-decoration: underline;
}
.footer-contact a:hover, .footer-contact a:focus { color: #FFDDB8; }
@media (max-width: 850px) {
  footer .container { flex-direction: column; gap: 28px; align-items: flex-start; }
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  max-width: 100%;
  background: #1C2832;
  color: #FAFAFA;
  font-size: 1rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 22px 5vw 17px 5vw;
  z-index: 1400;
  box-shadow: 0 -2px 18px rgba(44,53,64,0.19);
  opacity: 0;
  pointer-events: none;
  transform: translateY(50px);
  transition: opacity .35s, transform .35s;
}
.cookie-banner.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.cookie-banner p {
  margin-bottom: 0;
  color: #FAFAFA;
  line-height: 1.6;
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 14px;
}
.btn-cookie, .btn-cookie-settings {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  background: #B05D1D;
  color: #fff;
  border: none;
  padding: 9px 22px;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: background .17s, box-shadow .19s;
  box-shadow: 0 2px 6px rgba(44,53,64,0.13);
}
.btn-cookie-settings {
  background: #fff;
  color: #6B3A16;
  border: 1.3px solid #B05D1D;
}
.btn-cookie:focus, .btn-cookie-settings:focus {
  outline: 2px solid #B05D1D;
}
.btn-cookie:hover {
  background: #CE7D36;
}
.btn-cookie-settings:hover {
  background: #FFE3CB;
  color: #B05D1D;
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 4vw 14px 4vw;
    font-size: .97rem;
  }
  .cookie-banner .cookie-btns { gap: 8px; }
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(30,38,50,0.55);
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .34s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal-content {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 38px rgba(44,53,64,0.21);
  padding: 32px 26px 26px 26px;
  min-width: 300px;
  max-width: 95vw;
  width: 370px;
  display: flex;
  flex-direction: column;
  gap: 17px;
  position: relative;
  animation: modalSlideIn .36s cubic-bezier(.8,.17,.22,1);
}
@keyframes modalSlideIn {
  from { transform: translateY(60px) scale(.95); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal-content h2 {
  color: #6B3A16;
  font-size: 1.17rem;
  margin-bottom: 6px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.cookie-category label {
  font-size: 1rem;
  color: #1C2832;
  font-weight: 500;
  cursor: pointer;
}
.cookie-toggle {
  appearance: none;
  width: 38px;
  height: 22px;
  background: #E5E4E2;
  border-radius: 18px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background .2s;
}
.cookie-toggle:checked {
  background: #CE7D36;
}
.cookie-toggle::before {
  content: '';
  position: absolute;
  top: 2.5px; left: 3px;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 5px rgba(44,53,64,.11);
  transition: left .19s;
}
.cookie-toggle:checked::before {
  left: 17.5px;
}
.cookie-category .category-desc {
  color: #4B554B;
  font-size: 0.94rem;
  margin-left: 7px;
}
.cookie-modal-content .modal-actions {
  display: flex;
  gap: 13px;
  margin-top: 11px;
}
.cookie-modal-close {
  position: absolute;
  top: 13px; right: 17px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: #B05D1D;
  cursor: pointer;
  padding: 4px 7px;
  border-radius: 50%;
  transition: background .16s;
}
.cookie-modal-close:focus {
  outline: 2px solid #B05D1D;
  background: #F7F3EC;
}

/* ===== UTILITY CLASSES ===== */
.d-none { display: none !important; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
@media (max-width: 500px) {
  .section { padding: 18px 3vw; margin-bottom: 22px; }
}

/* ===== WHITE SPACE & GAPS ===== */
main .section, .section, .card-container, .card, .content-grid, .text-image-section, .testimonial-card, .feature-item {
  /* Ensure mandated spacing */
}
.content-wrapper > *:not(:last-child) {
  margin-bottom: 18px;
}

/* ===== MISCELLANEOUS ===== */
::-webkit-input-placeholder { color: #AC8766; opacity: 1; }
::-moz-placeholder          { color: #AC8766; opacity: 1; }
:-ms-input-placeholder      { color: #AC8766; opacity: 1; }
::placeholder              { color: #AC8766; opacity: 1; }

hr {
  border: none;
  border-bottom: 1.6px solid #EFE7DC;
  margin: 20px 0;
}

/* ===== BUTTONS & INTERACTION ===== */
button {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  border: none;
  border-radius: 20px;
  background: #6B3A16;
  color: #fff;
  padding: 9px 22px;
  font-weight: 600;
  cursor: pointer;
  transition: background .18s, box-shadow .16s, color .17s, transform .15s;
  outline: none;
}
button:disabled { opacity: 0.53; cursor: not-allowed; }
button:hover, button:focus { background: #B05D1D; color: #fff; transform: translateY(-1px) scale(1.025); }

/* ===== VISUAL HIERARCHY ===== */
.section h1, .section h2 {
  margin-top: 0;
}
.section > .container > h1, .section > .container > h2 {
  margin-top: 0;
}
.section h1 {
  font-size: 2.1rem;
  color: #6B3A16;
}
.section h2 {
  font-size: 1.58rem;
  color: #8A4F23;
}

/* ===== ACCESSIBILITY ===== */
:focus {
  outline: 2px solid #B05D1D;
  outline-offset: 1px;
}

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