/* === 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; }
*, *:before, *:after { box-sizing: inherit; }
sup { vertical-align: super; font-size: smaller; }
body {
  line-height: 1.6;
  font-family: 'Roboto', serif;
  color: #2D363E;
  background: #F2F0EC;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #8B6745; text-decoration: underline; transition: color 0.2s; }
a:hover, a:focus { color: #2D363E; text-decoration: none; }
ul, ol { list-style: none; }

/* === BRAND FONTS === */
@import url('https://fonts.googleapis.com/css?family=Montserrat:400,700|Roboto:400,400italic,700&display=swap');
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', serif;
  color: #2D363E;
  letter-spacing: 0.01em;
  font-weight: 700;
}
h1 { font-size: 2.5rem; margin-bottom: 16px; }
h2 { font-size: 2rem; margin-bottom: 14px; }
h3 { font-size: 1.4rem; margin-bottom: 12px; }
h4 { font-size: 1.1rem; margin-bottom: 10px; }
p, li, blockquote { font-size: 1rem; font-family: 'Roboto', serif; color: #2D363E; margin-bottom: 12px; }
small { font-size: 0.92em; }

/* === CONTAINER & FLEXBOX LAYOUTS === */
.container {
  width: 100%;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}
.content-wrapper {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 16px rgba(45,54,62,0.07);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  min-width: 270px;
}
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #fff;
  color: #2D363E;
  box-shadow: 0 5px 36px rgba(45,54,62,0.09);
  border-radius: 12px;
  padding: 28px 28px 20px 28px;
  min-width: 270px;
  margin-bottom: 24px;
  border: 1px solid #eae7e1;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* === HEADER & NAVIGATION === */
header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(45,54,62,0.06);
  padding: 0 0 0 0;
  position: sticky;
  top: 0;
  z-index: 40;
  height: 70px;
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
}
header > a:first-child {
  margin-left: 24px;
  margin-right: 10px;
  display: flex;
  align-items: center;
  height: 55px;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-right: auto;
  margin-left: 10px;
}
header nav a {
  font-family: 'Montserrat', serif;
  color: #2D363E;
  padding: 0 8px;
  font-weight: 500;
  font-size: 1rem;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
header nav a:hover, header nav a.active {
  background: #F2F0EC;
  color: #8B6745;
}
.cta-btn {
  background: #8B6745;
  color: #fff;
  font-family: 'Montserrat', serif;
  font-size: 1rem;
  padding: 12px 28px;
  border: none;
  border-radius: 25px;
  font-weight: 700;
  text-decoration: none;
  margin-left: 18px;
  margin-right: 18px;
  cursor: pointer;
  box-shadow: 0 2px 15px rgba(139,103,69,0.09);
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
  display: inline-block;
  outline: none;
}
.cta-btn:hover, .cta-btn:focus {
  background: #2D363E;
  color: #fff0e2;
  box-shadow: 0 6px 24px rgba(139,103,69,0.13);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #2D363E;
  margin-right: 22px;
  cursor: pointer;
  z-index: 51;
  transition: color 0.2s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  color: #8B6745;
}

/* === MOBILE NAV === */
.mobile-menu {
  display: none; /* shown via JS */
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: 0 16px 48px rgba(45,54,62,0.23);
  z-index: 1001;
  transition: transform 0.36s cubic-bezier(.48,.16,.16,1), opacity 0.36s;
  transform: translateX(-100vw);
  opacity: 0;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
  opacity: 1;
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #8B6745;
  position: absolute;
  top: 24px;
  right: 28px;
  cursor: pointer;
  z-index: 1002;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 80px;
  padding: 24px 32px;
  gap: 24px;
}
.mobile-nav a {
  font-family: 'Montserrat', serif;
  color: #2D363E;
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 10px 0;
  text-decoration: none;
  border-radius: 6px;
  width: 100%;
  transition: background 0.2s, color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a.active {
  background: #F2F0EC;
  color: #8B6745;
}

/* =========================
   === SECTIONS & CARDS ===
   ========================= */
section {
  margin-bottom: 60px;
  padding: 40px 0 40px 0;
  background: transparent;
}
.card, .confirmation-box {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 3px 26px rgba(45,54,62,0.08);
  margin-bottom: 20px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.confirmation-box {
  border-left: 4px solid #8B6745;
  margin-bottom: 24px;
}
.feature-grid, .benefits-list, .service-list, .process-steps, .blog-list, .case-studies, .design-inspirations {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.feature-grid > div, .benefits-list > ul > li, .service-list > ul > li, .process-steps > ol > li, .case-studies > div, .blog-list > article, .design-inspirations > ul > li {
  background: #fff;
  color: #2D363E;
  border-radius: 10px;
  box-shadow: 0 2px 15px rgba(45,54,62,0.07);
  padding: 20px 18px;
  margin-bottom: 20px;
  font-size: 1rem;
  flex: 1 1 270px;
  min-width: 220px;
}
.benefits-list ul, .service-list ul, .process-steps ol, .design-inspirations ul, .blog-list ul {
  width: 100%;
  gap: 12px 0;
  display: flex;
  flex-direction: column;
}
.blog-list {
  align-items: stretch;
}
.featured-posts {
  background: #f3efe6;
  border-radius: 11px;
  padding: 22px 19px;
  margin-top: 24px;
  box-shadow: 0 2px 9px rgba(139,103,69,0.06);
}
.featured-posts h4 {
  margin-bottom: 7px;
}
.featured-posts ul {
  margin-left: 0;
}
.featured-posts li a {
  font-size: 1rem;
  color: #2D363E;
  text-decoration: underline;
}
.confirmation-box p {
  font-size: 1.1rem;
}

/* === TESTIMONIALS === */
.testimonial-card {
  flex-direction: column;
  gap: 17px;
  background: #fff;
  color: #2D363E;
  border-radius: 12px;
  box-shadow: 0 7px 24px rgba(45,54,62,0.09);
  border: 1px solid #e2ddcd;
  padding: 24px 30px 21px 30px;
  min-width: 254px;
  font-size: 1rem;
  transition: box-shadow 0.19s;
  margin-bottom: 20px;
}
.testimonial-card strong {
  color: #8B6745;
  font-family: 'Montserrat', serif;
  font-weight: bold;
  font-size: 1.06em;
  margin-top: 6px;
}
.testimonial-card div {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 5px;
}
.testimonial-card:hover {
  box-shadow: 0 16px 44px rgba(139,103,69,0.11);
}

/* === CONTACT DETAILS === */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  font-size: 1rem;
}
.contact-details div {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #2D363E;
}
.contact-details img {
  height: 19px;
  width: auto;
  opacity: 0.83;
}
.privacy-hint {
  background: #FFF6EE;
  color: #8B6745;
  border-radius: 10px;
  padding: 13px 15px;
  margin-top: 10px;
  font-size: 0.98rem;
}

/* === FOOTER === */
footer {
  background: #2D363E;
  color: #fff;
  padding: 38px 0 22px 0;
  margin-top: 70px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
footer div {
  color: white !important;
}
footer nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  justify-content: center;
}
footer nav a {
  font-family: 'Montserrat', serif;
  color: #fff;
  opacity: 0.87;
  font-size: 1rem;
  margin-right: 0;
  transition: color 0.2s, opacity 0.18s;
  text-decoration: underline;
}
footer nav a:hover,
footer nav a.active {
  color: #F2F0EC;
  opacity: 1;
  text-decoration: none;
}
footer .contact-details {
  color: #fff;
  font-family: 'Roboto', serif;
  align-items: center;
  margin: 0 auto;
  gap: 6px;
  font-size: 0.99rem;
}
footer .contact-details img { filter: invert(90%); }

/* ===============
   === BUTTONS ===
   =============== */
button, .cta-btn, input[type="submit"] {
  cursor: pointer;
  font-family: 'Montserrat', serif;
  border: none;
  transition: background 0.16s, color 0.16s, box-shadow 0.17s;
  outline: none;
}
button:focus-visible, .cta-btn:focus-visible {
  outline: 2px solid #8B6745;
  outline-offset: 1px;
}

/* ====================
   === RESPONSIVENESS ===
   ==================== */
@media (max-width: 1080px) {
  .container {
    max-width: 96vw;
    padding: 0 6vw;
  }
  section {
    padding-left: 10vw;
    padding-right: 10vw;
  }
}
@media (max-width: 900px) {
  header nav {
    gap: 10px;
  }
}
@media (max-width: 768px) {
  .container {
    max-width: 100vw;
    padding: 0 2vw;
  }
  header {
    height: 62px;
    gap: 4px;
    padding: 0 0 0 0;
  }
  header nav {
    display: none;
  }
  .cta-btn {
    margin-right: 0;
    padding: 10px 20px;
    font-size: 1rem;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
  /* section/card flex direction column, ensure minimum gap */
  .content-wrapper, .content-grid, .feature-grid, .benefits-list, .service-list, .process-steps, .case-studies, .blog-list, .design-inspirations {
    flex-direction: column !important;
    gap: 18px !important;
  }
  .testimonial-card, .card, .confirmation-box {
    padding: 22px 12px;
  }
  section {
    padding: 34px 0 34px 0;
  }
  .footer nav {
    flex-direction: column;
    gap: 10px;
  }
}
@media (max-width: 480px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.2rem; }
  h3, h4 { font-size: 1rem; }
  .container {
    padding: 0 5px !important;
  }
  .cta-btn, button, input[type="submit"] {
    font-size: 0.99rem;
    padding: 10px 14px;
  }
  footer {
    padding: 24px 0 14px 0;
    margin-top: 24px;
  }
  section {
    padding: 21px 0 21px 0;
    margin-bottom: 32px;
  }
}

/* ==============
   COOKIE BANNER
   ============== */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #fff;
  color: #2D363E;
  box-shadow: 0 -3px 22px rgba(45,54,62,0.09);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 17px 6vw 17px 6vw;
  font-size: 1rem;
  z-index: 9001;
  transition: transform 0.4s cubic-bezier(.48,.16,.16,1), opacity 0.4s;
  transform: translateY(0);
  opacity: 1;
}
#cookie-banner.hide {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
#cookie-banner p {
  margin: 0;
  flex: 1;
  min-width: 120px;
  color: #2D363E;
}
#cookie-banner .cookie-controls {
  display: flex;
  flex-direction: row;
  gap: 12px;
}
.cookie-btn, #cookie-banner .cookie-btn {
  border: none;
  border-radius: 21px;
  background: #8B6745;
  color: #fff;
  font-family: 'Montserrat', serif;
  padding: 10px 22px;
  font-size: 1rem;
  margin-left: 0;
  transition: background 0.16s, color 0.13s, box-shadow 0.18s;
  box-shadow: 0 1px 6px rgba(139,103,69,0.08);
}
.cookie-btn.alt, #cookie-banner .cookie-btn.alt {
  background: #fff;
  color: #8B6745;
  border: 1px solid #8B6745;
}
.cookie-btn.settings, #cookie-banner .cookie-btn.settings {
  background: #2D363E;
  color: #fff;
}
.cookie-btn:hover, .cookie-btn:focus, #cookie-banner .cookie-btn:hover, #cookie-banner .cookie-btn:focus {
  background: #2D363E;
  color: #fff;
  box-shadow: 0 4px 12px rgba(45,54,62,0.13);
}
.cookie-btn.alt:hover, .cookie-btn.alt:focus, #cookie-banner .cookie-btn.alt:hover, #cookie-banner .cookie-btn.alt:focus {
  background: #8B6745;
  color: #fff;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus, #cookie-banner .cookie-btn.settings:hover, #cookie-banner .cookie-btn.settings:focus {
  background: #8B6745;
}
@media (max-width: 700px) {
  #cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
    padding: 11px 6vw 11px 6vw;
  }
  #cookie-banner .cookie-controls {
    align-items: flex-start;
    gap: 8px;
    flex-wrap: wrap;
  }
}

/* COOKIE MODAL */
#cookie-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(45,54,62,0.23);
  justify-content: center;
  align-items: center;
}
#cookie-modal.open {
  display: flex;
  animation: fadeIn 0.35s cubic-bezier(.48,.16,.16,1);
}
@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal-content {
  background: #fff;
  padding: 38px 28px 28px 28px;
  border-radius: 16px;
  min-width: 300px;
  max-width: 98vw;
  box-shadow: 0 8px 48px rgba(45,54,62,0.16);
  display: flex;
  flex-direction: column;
  gap: 23px;
  align-items: flex-start;
  animation: slideInModal 0.35s;
}
@keyframes slideInModal {
  0% { transform: translateY(40px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-modal-header {
  width: 100%;
  font-family: 'Montserrat', serif;
  font-size: 1.3rem;
  color: #2D363E;
  margin-bottom: 9px;
}
.cookie-modal-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  padding: 9px 0 7px 0;
  width: 100%;
}
.cookie-modal-category label {
  font-size: 1rem;
  color: #2D363E;
  font-family: 'Roboto', serif;
  font-weight: 500;
}
.cookie-modal-category input[type="checkbox"] {
  accent-color: #8B6745;
  width: 19px;
  height: 19px;
}
.cookie-modal-category .essential {
  color: #8B6745;
  font-weight: bold;
  font-style: italic;
  font-size: 1rem;
}
.cookie-modal-actions {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  gap: 10px;
}
#cookie-modal .cookie-btn {
  padding: 10px 19px;
  font-size: 1rem;
}
#cookie-modal .cookie-btn.secondary {
  background: #fff;
  color: #8B6745;
  border: 1px solid #8B6745;
}
#cookie-modal .cookie-btn.secondary:hover { background: #8B6745; color: #fff; }

@media (max-width: 480px) {
  .cookie-modal-content {
    padding: 19px 7vw 19px 7vw;
    min-width: 0;
  }
  #cookie-banner {
    font-size: 0.98rem;
    padding: 9px 1vw 11px 1vw;
  }
}

/* === MICRO-INTERACTIONS === */
.card, .testimonial-card, .confirmation-box, .featured-posts {
  transition: box-shadow 0.18s, transform 0.16s;
}
.card:hover, .confirmation-box:hover, .featured-posts:hover {
  box-shadow: 0 10px 29px rgba(139,103,69,0.13);
  transform: translateY(-3px) scale(1.012);
}
.card:active, .confirmation-box:active, .featured-posts:active {
  box-shadow: 0 4px 12px rgba(45,54,62,0.08);
  transform: scale(0.99);
}

/* === ANIMATIONS === */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .cta-btn, .cookie-btn {
    transition: background 0.2s, color 0.2s, box-shadow 0.24s, transform 0.16s;
  }
  .card, .testimonial-card, .confirmation-box {
    transition: box-shadow 0.18s, transform 0.14s;
  }
}

/* === MISC === */
blockquote {
  border-left: 4px solid #8B6745;
  color: #8B6745;
  background: #f8f4ef;
  font-size: 1.04rem;
  font-style: italic;
  padding: 15px 22px;
  margin-bottom: 16px;
  margin-top: 7px;
  border-radius: 8px;
}
ol { padding-left: 23px; }
ul { list-style: disc inside; padding-left: 14px; }
ul ul { padding-left: 23px; }

/* Utility for section background accent */
.section-accent {
  background: #f7f3ee !important;
}

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

/* === PRINT STYLES (Optional for classic elegance) === */
@media print {
  header, footer, .mobile-menu, #cookie-banner, #cookie-modal { display: none !important; }
  .container, section { width: 100% !important; max-width: 100% !important; padding: 0 !important; }
}
