/* --- 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;
  scroll-behavior: smooth;
  background: #F5F5F0;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  font-family: 'Source Sans Pro', Arial, sans-serif;
  color: #23252B;
  background-color: #F5F5F0;
  min-height: 100vh;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
input, button, textarea, select {
  font: inherit;
}
a {
  color: #23252B;
  text-decoration: none;
  transition: color 0.2s cubic-bezier(.4,0,.2,1);
}
a:focus {
  outline: 2px dotted #AE9569;
  outline-offset: 2px;
}

/* --- BRAND VARIABLES --- */
:root {
  --brand-primary: #23252B;
  --brand-secondary: #AE9569;
  --brand-accent: #F5F5F0;
  --brand-danger: #D9382B;
  --brand-text-light: #F5F5F0;
  --brand-text-dark: #23252B;
  --brand-shadow: 0 4px 24px 0 rgba(35,37,43,0.08), 0 1.5px 0 rgba(174,149,105,0.03);
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 6px;
  --transition: 0.18s cubic-bezier(.55,.06,.68,.19);
  --shadow-elevate: 0 8px 32px 0 rgba(35,37,43,0.16);
  --shadow-hover: 0 4px 28px 0 rgba(174,149,105,0.13);
  --font-display: 'Playfair Display', serif;
  --font-body: 'Source Sans Pro', Arial, sans-serif;
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
}

/* --- TYPOGRAPHY --- */
h1, .hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.375rem;
  line-height: 1.1;
  margin-bottom: 16px;
  color: var(--brand-primary);
  letter-spacing: -0.02em;
  text-shadow: 0 1.5px 0 #AE9569;
}
@media (min-width:600px){
  h1, .hero h1 {
    font-size: 3rem;
  }
}
h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2rem;
  margin-bottom: 16px;
  color: var(--brand-primary);
  letter-spacing: -0.015em;
}
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--brand-secondary);
  letter-spacing: -0.01em;
}
h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--brand-primary);
}
p, li, ul, ol, span, blockquote {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: var(--brand-primary);
}
strong, b {
  font-weight: 700;
}
ul, ol {
  padding-left: 18px;
  margin-bottom: 16px;
}
ul li, ol li {
  margin-bottom: 8px;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8em 2.2em;
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 0.07em;
  border-radius: var(--radius-lg);
  margin: 8px 0 0 0;
  border: none;
  cursor: pointer;
  transition: background 0.13s cubic-bezier(.71,.07,.82,.47), color 0.16s cubic-bezier(.4,0,.2,1), box-shadow 0.16s cubic-bezier(.4,0,.2,1);
  box-shadow: var(--shadow-elevate);
  position: relative;
  text-transform: uppercase;
}
.btn:focus {
  outline: 2px solid var(--brand-secondary);
  outline-offset: 2px;
}
.btn.primary {
  background: var(--brand-primary);
  color: var(--brand-text-light);
  border: 2px solid var(--brand-primary);
}
.btn.primary:hover,
.btn.primary:active {
  background: var(--brand-secondary);
  color: var(--brand-primary);
  box-shadow: var(--shadow-hover);
}
.btn.secondary {
  background: var(--brand-accent);
  color: var(--brand-primary);
  border: 2px solid var(--brand-secondary);
}
.btn.secondary:hover,
.btn.secondary:active {
  background: var(--brand-secondary);
  color: var(--brand-text-light);
  box-shadow: var(--shadow-hover);
}


/* --- APP STRUCTURE & SPACING --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 18px 0;
}
@media (max-width: 768px) {
  .header-inner {
    gap: 12px;
  }
}
.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
  font-weight: 700;
}
.main-nav a {
  color: var(--brand-primary);
  font-weight: 700;
  font-family: var(--font-body);
  font-size: 1rem;
  letter-spacing: 0.03em;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  transition: background 0.16s cubic-bezier(.4,0,.2,1), color 0.18s cubic-bezier(.4,0,.2,1);
}
.main-nav a:hover {
  background: var(--brand-secondary);
  color: var(--brand-text-light);
}
.logo img {
  height: 40px;
  width: auto;
  display: block;
}

/* --- MOBILE MENU --- */
.mobile-menu-toggle {
  display: none;
  background: none;
  color: var(--brand-primary);
  font-size: 2.2rem;
  border: none;
  cursor: pointer;
  z-index: 130;
  outline: none;
}
@media (max-width: 992px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
  }
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100vw;
  background: var(--brand-primary);
  box-shadow: 0 6px 72px rgba(35,37,43,0.39);
  z-index: 200;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  transform: translateX(-120vw);
  transition: transform 0.35s cubic-bezier(.55,.14,.28,.99);
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  margin: 30px 0 16px 32px;
  background: none;
  color: var(--brand-secondary);
  font-size: 2.5rem;
  border: none;
  cursor: pointer;
  align-self: flex-start;
}
.mobile-menu nav.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin: 32px 0 0 48px;
}
.mobile-menu .mobile-nav a {
  color: var(--brand-text-light);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  padding: 6px 12px 6px 0;
  border-radius: var(--radius-sm);
}
.mobile-menu .mobile-nav a:hover {
  background: var(--brand-secondary);
  color: var(--brand-primary);
}
@media (max-width: 600px) {
  .mobile-menu nav.mobile-nav {
    margin-left: 22px;
  }
  .mobile-menu-close {
    margin-left: 14px;
  }
}

/* --- HERO --- */
.hero {
  background: var(--brand-accent);
  border-radius: var(--radius-lg);
  margin-bottom: 60px;
  padding: 40px 0 25px 0;
  box-shadow: 0 4px 24px 0 rgba(35,37,43,0.04);
  position: relative;
  overflow: hidden;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
@media (min-width: 700px) {
  .hero .container {
    min-height: 360px;
  }
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.hero p {
  color: var(--brand-primary);
  font-size: 1.125rem;
  max-width: 700px;
  margin-bottom: 10px;
  font-weight: 500;
}

/* --- SECTION SPACING --- */
.section,
.features,
.about,
.services,
.testimonials,
.contact-details {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* --- FEATURES & CARDS --- */
.features .content-wrapper,
.about .content-wrapper,
.services .content-wrapper,
.testimonials .content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.feature-list, .service-list, .process-steps, .custom-steps, .topic-list-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0;
  align-items: flex-start;
  list-style: none;
}
.feature-list li,
.service-list li,
.process-steps li,
.custom-steps li,
.topic-list-grid li {
  display: flex;
  align-items: center;
  gap: 15px;
  background: var(--brand-accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-elevate);
  padding: 20px 28px 20px 20px;
  font-weight: 600;
  font-size: 1.1rem;
  min-width: 230px;
  margin-bottom: 20px;
  flex: 1 1 220px;
  transition: box-shadow 0.16s cubic-bezier(.55,.14,.28,.99);
}
.feature-list li:hover, .service-list li:hover, .process-steps li:hover, .custom-steps li:hover, .topic-list-grid li:hover {
  box-shadow: var(--shadow-hover);
}
.feature-list img, .service-list img, .process-steps img, .custom-steps img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}
/* Value lists and steps */
.values-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 0;
  list-style: disc inside;
}
.process-steps {
  counter-reset: step;
  flex-direction: column;
}
.process-steps li {
  position: relative;
  padding-left: 0;
  min-width: 200px;
}
/* Card containers */
.card-container,
.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  background: var(--brand-accent);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  box-shadow: var(--shadow-elevate);
  padding: 32px 28px;
  min-width: 220px;
  position: relative;
  transition: box-shadow 0.17s cubic-bezier(.55,.14,.28,.99);
}
.card:hover {
  box-shadow: var(--shadow-hover);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.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: flex-start;
    gap: 20px;
  }
}

/* --- TESTIMONIALS --- */
.testimonials .content-wrapper {
  gap: 32px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  background: #fff;
  padding: 20px 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-elevate);
  margin-bottom: 20px;
  max-width: 650px;
  border-left: 5px solid var(--brand-secondary);
  transition: box-shadow 0.16s cubic-bezier(.4,0,.2,1);
}
.testimonial-card p {
  color: var(--brand-primary);
  font-size: 1.13rem;
  font-style: italic;
  margin-bottom: 4px;
  font-weight: 500;
}
.testimonial-card span {
  color: var(--brand-secondary);
  font-size: 0.97rem;
  font-weight: 700;
}
.testimonial-card:hover {
  box-shadow: 0 4px 32px 0 rgba(174,149,105,0.12);
}
.brand-awards {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(174,149,105,0.07);
  border-radius: var(--radius-md);
  padding: 12px 22px;
  font-size: 1.1em;
  margin-top: 15px;
  color: var(--brand-primary);
  font-weight: 700;
}

/* --- ABOUT / TEXT BLOCKS / SPECIALS --- */
.about .content-wrapper > ul, .about .content-wrapper > ol {
  padding-left: 16px;
  margin: 0 0 0 0;
}
.about .content-wrapper li {
  margin-bottom: 10px;
  font-size: 1.05rem;
}
.value-statements, .design-process-features, .guarantee-descriptions {
  background: var(--brand-accent);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  color: var(--brand-primary);
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 2px 18px 0 rgba(174,149,105,0.09);
  margin-top: 8px;
  margin-bottom: 10px;
}

/* --- CONTACT --- */
.contact-details .content-wrapper {
  gap: 16px;
}
.contact-block {
  background: var(--brand-accent);
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  margin-bottom: 10px;
  font-weight: 600;
  box-shadow: 0 1px 6px 0 rgba(35,37,43,0.04);
}

/* --- FAQ & ARTICLE BLOCKS --- */
.popular-articles, .faq-block {
  background: var(--brand-accent);
  border-left: 5px solid var(--brand-secondary);
  border-radius: var(--radius-md);
  padding: 12px 24px;
  margin: 0 0 18px 0;
  box-shadow: 0 1.5px 7px 0 rgba(174,149,105,0.09);
}

/* --- FOOTER --- */
footer {
  background: var(--brand-primary);
  color: var(--brand-text-light);
  padding: 40px 0 20px 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-logo img {
  height: 60px;
  width: auto;
}
.footer-nav, .footer-legal {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav a, .footer-legal a {
  color: var(--brand-text-light);
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.012em;
  transition: color 0.16s cubic-bezier(.4,0,.2,1);
  padding: 2px 0;
  border-radius: var(--radius-sm);
}
.footer-nav a:hover, .footer-legal a:hover {
  color: var(--brand-secondary);
  background: rgba(255,255,255,0.04);
}
.footer-contact {
  font-size: 1rem;
  color: var(--brand-text-light);
  font-family: var(--font-body);
  font-weight: 500;
}
.footer-contact a {
  color: var(--brand-secondary);
  text-decoration: underline;
}
.footer-social {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 8px;
}
.footer-social img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  padding: 3px;
  box-shadow: 0 1.5px 6px 0 rgba(174,149,105,0.12);
  transition: background 0.15s cubic-bezier(.4,0,.2,1), box-shadow 0.16s;
}
.footer-social img:hover {
  background: var(--brand-secondary);
  box-shadow: 0 2.5px 9px 0 rgba(35,37,43,0.12);
}
@media (max-width: 992px) {
  .footer-inner {
    flex-direction: column;
    gap: 30px;
    align-items: flex-start;
  }
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: var(--brand-primary);
  color: #fff;
  z-index: 9999;
  box-shadow: 0 -3px 18px 0 rgba(35,37,43,0.20);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 24px 18px 24px;
  font-family: var(--font-body);
  font-size: 1rem;
  flex-wrap: wrap;
  gap: 20px;
  transition: transform 0.25s cubic-bezier(.50,.05,.1,1);
}
.cookie-banner.hide {
  transform: translateY(120%);
}
.cookie-banner .cookie-text {
  color: #fff;
  max-width: 680px;
  font-weight: 600;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-banner .btn {
  min-width: 140px;
  font-size: 0.95rem;
  padding: 0.7em 1.3em;
}
.cookie-banner .btn.primary {
  background: var(--brand-secondary);
  border: 2px solid var(--brand-secondary);
  color: var(--brand-primary);
}
.cookie-banner .btn.primary:hover {
  background: #fff;
  color: var(--brand-secondary);
}
.cookie-banner .btn.secondary {
  background: #fff;
  border: 2px solid var(--brand-secondary);
  color: var(--brand-secondary);
}
.cookie-banner .btn.secondary:hover {
  background: var(--brand-secondary);
  color: #fff;
}

/* --- COOKIE PREFERENCES MODAL --- */
.cookie-modal-overlay {
  position: fixed;
  z-index: 99999;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(35,37,43,0.30);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(.4,0,.2,1);
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  color: var(--brand-primary);
  border-radius: var(--radius-lg);
  padding: 38px 24px 24px 24px;
  min-width: 340px;
  max-width: 95vw;
  font-family: var(--font-body);
  box-shadow: 0 8px 36px 0 rgba(35,37,43,0.17);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: cookie-modal-in 0.29s cubic-bezier(.7,.11,.3,.97);
}
@keyframes cookie-modal-in {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.cookie-modal h3 {
  font-family: var(--font-display);
  color: var(--brand-primary);
  font-size: 1.28rem;
  margin-bottom: 12px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 12px;
}
.cookie-category label {
  font-weight: 600;
  font-size: 1.02em;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--brand-secondary);
  width: 21px;
  height: 21px;
}
.cookie-category.essential label {
  color: var(--brand-primary);
}
.cookie-category.essential input[type="checkbox"] {
  accent-color: var(--brand-primary);
}
.cookie-modal .btn-row {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 8px;
}
.cookie-modal .btn {
  font-size: 0.97rem;
  padding: 0.65em 1.2em;
  min-width: 120px;
}
.cookie-modal-close {
  position: absolute;
  top: 11px;
  right: 12px;
  background: none;
  border: none;
  color: var(--brand-primary);
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 9;
  padding: 2px 8px;
}
.cookie-modal-close:focus {
  outline: 2px solid var(--brand-secondary);
}

/* --- SPECIAL UTILITY FLEX CLASSES (MANDATORY PATTERNS) --- */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.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; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* --- RESPONSIVE LAYOUTS --- */
@media (max-width:992px) {
  .container {
    padding: 0 12px;
  }
  .main-nav, .footer-nav {
    gap: 14px;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 8px;
  }
  .section,
  .features,
  .about,
  .services,
  .testimonials,
  .contact-details {
    padding: 28px 4px;
    margin-bottom: 32px;
  }
  .feature-list, .service-list, .process-steps, .custom-steps, .topic-list-grid {
    flex-direction: column;
    gap: 12px;
  }
  .card, .feature-list li, .service-list li, .process-steps li, .custom-steps li, .topic-list-grid li {
    min-width: 0;
    width: 100%;
  }
  .footer-inner {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .testimonial-card {
    max-width: 100%;
    padding: 18px 10px;
  }
  .brand-awards {
    padding: 10px 8px;
    max-width: 100%;
  }
}

@media (max-width:500px) {
  h1, .hero h1 {
    font-size: 1.6rem !important;
  }
  h2 {
    font-size: 1.20rem;
  }
  .hero {
    padding: 18px 0 13px 0;
  }
  .testimonial-card {
    padding: 10px 5px;
  }
}

/* --- SCROLLBAR STYLING --- */
::-webkit-scrollbar {
  width: 8px;
  background: var(--brand-accent);
}
::-webkit-scrollbar-thumb {
  background: var(--brand-secondary);
  border-radius: 7px;
}

/* --- ANIMATIONS AND MICRO-INTERACTIONS --- */
.btn,
.card,
.testimonial-card,
.feature-list li,
.service-list li {
  transition: box-shadow 0.14s cubic-bezier(.71,.07,.82,.47), background 0.14s cubic-bezier(.4,0,.2,1), color 0.14s cubic-bezier(.4,0,.2,1);
}
a, .main-nav a, .footer-nav a, .footer-legal a {
  transition: color 0.17s, background 0.12s;
}

/* --- FOCUS STYLES --- */
a:focus, button:focus, .btn:focus, .mobile-menu-close:focus, .cookie-modal-close:focus {
  outline: 2px solid var(--brand-secondary);
  outline-offset: 2px;
}

/* --- FORM CONTROLS (If needed) --- */
input, textarea, select {
  border: 2px solid #ddd;
  border-radius: var(--radius-md);
  padding: 12px;
  font-size: 1rem;
  font-family: var(--font-body);
  margin-bottom: 16px;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--brand-secondary);
  outline: none;
}

/* --- HEADINGS GEOMETRY (modern_bold) --- */
h1, h2, h3 {
  text-transform: none;
  border: none;
}
h1::after, h2::after {
  display: block;
  content: '';
  width: 40px;
  height: 5px;
  background: var(--brand-secondary);
  border-radius: 2.5px;
  margin-top: 11px;
}

/* --- SHADOWS/DEPTH --- */
.card, .feature-list li, .service-list li, .testimonial-card {
  box-shadow: 0 6px 22px 0 rgba(35,37,43,0.09);
}

/* --- Z-INDEX ENSURE NAVS OVER BANNER --*/
header {
  z-index: 2000;
  position: relative;
}
.main-nav, .mobile-menu, .mobile-menu-toggle, .mobile-nav {
  z-index: 3000;
}

/* Prevent accidental content overlap */
main, .about, .features, .services, .testimonials, .contact-details, .section {
  position: relative;
  z-index: 10;
}

/* --- PRINT OPTIMIZATION --- */
@media print {
  * { background: transparent !important; color: #23252B !important; box-shadow: none !important; }
  .btn, .mobile-menu, .cookie-banner, .cookie-modal, .footer-social { display: none !important; }
}