/* ---------------------------
   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;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  font-family: 'Montserrat', Arial, sans-serif;
  background: #F4F1ED;
  color: #24324F;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  font-size: 1rem;
  position: relative;
}
img, picture, video, canvas, svg {
  max-width: 100%;
  display: block;
}
a {
  color: #A77C4F;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #24324F;
  text-decoration: underline;
}
ul, ol {
  list-style: none;
}
button, input, textarea {
  font-family: inherit;
}

/* ---------------------------
   BRAND TYPOGRAPHY
---------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: #24324F;
}
h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: -1px;
}
h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
}
h4 {
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 10px;
}
p, li, address {
  font-size: 1rem;
  color: #3e4c64;
}
strong {
  font-weight: 600;
  color: #24324F;
}
small {
  font-size: 0.91rem;
  color: #4b5056;
}

/* ---------------------------
   FLEX LAYOUT HELPERS
---------------------------- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 12px;
}
@media (min-width: 700px) {
  .content-wrapper {
    gap: 24px;
    margin-top: 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;
  margin-bottom: 24px;
  background: #f7f6f2;
  border-radius: 18px;
  box-shadow: 0 1px 6px rgba(36,50,79,0.08);
  color: #24324F;
  max-width: 680px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ---------------------------
   MAIN PAGE LAYOUTS & SECTIONS
---------------------------- */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
section:nth-of-type(odd) {
  background: linear-gradient(120deg, #f7ece6 0%, #f4f1ed 100%);
}
section:nth-of-type(even) {
  background: #fff;
}
@media (max-width:600px) {
  section {
    padding: 28px 8px 32px 8px;
  }
}

.card, .service-card, .case-study-snippet {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 18px rgba(36, 50, 79, 0.07);
  padding: 28px 22px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, transform 0.15s;
}
.card:hover, .service-card:hover, .case-study-snippet:hover {
  box-shadow: 0 4px 30px rgba(36,50,79,0.14);
  transform: translateY(-4px) scale(1.01);
}
@media (min-width:750px) {
  .services-grid, .service-list-details {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: space-between;
  }
  .service-card {
    width: calc(33% - 16px);
    min-width: 260px;
    flex: 1 1 280px;
  }
  .service-list-details .service-card {
    width: calc(50% - 12px);
  }
}
@media (max-width:749px) {
  .services-grid, .service-list-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .service-card {
    width: 100%;
  }
}

.features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.features-list li {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 8px rgba(36,50,79,0.06);
  padding: 26px 20px;
  min-width: 210px;
  max-width: 300px;
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  transition: box-shadow .23s, transform .16s;
}
.features-list li:hover {
  box-shadow: 0 8px 38px -8px #A77C4F1a;
  transform: translateY(-4px);
}
.features-list img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  margin-bottom: 0.1em;
}

.step-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
  justify-content: flex-start;
}
.step-list li {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 8px rgba(36,50,79,0.06);
  padding: 26px 20px;
  min-width: 175px;
  max-width: 235px;
  flex: 1 1 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  margin-bottom: 18px;
  transition: box-shadow .23s, transform .16s;
}
.step-list li img {
  width: 40px;
  height: 40px;
}
.step-list li:hover {
  box-shadow: 0 9px 35px -8px #24324F16;
  transform: scale(1.03);
}

.case-study-snippet {
  border-left: 5px solid #A77C4F;
  padding-left: 20px;
  background: #fcfaf7;
  margin-bottom: 16px;
  position: relative;
}
.case-study-snippet h3 {
  font-size: 1.19rem;
  margin-bottom: 8px;
  color: #24324F;
}

/* ---------------------------
  BUTTONS & CTAs
---------------------------- */
.cta-btn, .cta-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 30px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.09rem;
  background: linear-gradient(93deg, #24324F 45%, #A77C4F 93%);
  color: #fff;
  border: none;
  border-radius: 32px;
  cursor: pointer;
  box-shadow: 0 2px 12px -2px #24324F38;
  letter-spacing: 0.5px;
  transition: background 0.18s, transform 0.11s, box-shadow 0.14s;
  margin-top: 12px;
}
.cta-btn:hover, .cta-main:hover,
.cta-btn:focus, .cta-main:focus {
  background: linear-gradient(90deg, #A77C4F 12%, #24324F 100%);
  color: #fff;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 7px 28px -8px #24324F60;
  outline: none;
}
.cta-main {
  margin-left: 18px;
}
@media (max-width: 900px) {
  .cta-main {
    display: none;
  }
}

.view-all-link {
  display: inline-block;
  color: #24324F;
  font-weight: 600;
  padding: 10px 20px;
  border: 2px solid #A77C4F;
  border-radius: 24px;
  background: #F4F1ED;
  transition: background 0.13s, color 0.15s;
  margin-top: 10px;
}
.view-all-link:hover {
  background: #A77C4F;
  color: #fff;
}
.price {
  color: #A77C4F;
  font-weight: 700;
  margin-top: 8px;
  font-size: 1.1rem;
}

/* ---------------------------
  TESTIMONIALS & CARDS
---------------------------- */
.testimonial-card {
  background: #faf9f6;
  border: 1px solid #ece7e1;
  box-shadow: 0 2px 12px rgba(36, 50, 79, 0.07);
  color: #24324F;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
  max-width: 600px;
  font-size: 1.08rem;
  font-style: italic;
  transition: box-shadow .22s, border-color .22s;
}
.testimonial-card strong {
  font-size: 1rem;
  color: #A77C4F;
  font-style: normal;
}
.testimonial-card:hover {
  border-color: #A77C4F;
  box-shadow: 0 7px 30px -6px #A77C4F13;
}

/* ---------------------------
  FOOTER
---------------------------- */
footer {
  background: linear-gradient(100deg, #24324F 90%, #A77C4F 100%);
  color: #fff;
  padding: 38px 0 14px 0;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 6px;
}
.footer-nav a {
  color: #fff;
  font-weight: 600;
  opacity: 0.85;
  font-size: 1.04rem;
}
.footer-nav a:hover {
  text-decoration: underline;
  color: #a1b5de;
}
.footer-info {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  margin-bottom: 12px;
}
.footer-info img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  margin-right: 8px;
}
.footer-info p {
  color: #fff;
  font-size: 1rem;
}
footer small {
  font-size: 0.94rem;
  color: #eee;
  opacity: 0.77;
}
@media (max-width:700px) {
  .footer-nav, .footer-info {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  .footer-info img {
    margin-bottom: 7px;
  }
}

/* ---------------------------
  HEADER & NAVIGATION
---------------------------- */
header {
  background: #fff;
  border-bottom: 1px solid #f4f1ed;
  box-shadow: 0 1px 12px #24324F10;
  position: sticky;
  top: 0;
  z-index: 20;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 8px;
  padding-bottom: 8px;
}
header img {
  height: 50px;
  width: auto;
  min-width: 47px;
}
nav {
  display: flex;
  gap: 22px;
}
nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  color: #24324F;
  font-size: 1.08rem;
  opacity: 0.93;
  padding: 5px 3px;
  border-radius: 6px;
  transition: background .14s, color .17s;
}
nav a:hover, nav a:focus {
  color: #A77C4F;
  background: #f7ece6;
  outline: none;
}

/* ---------------------------
  MOBILE MENU
---------------------------- */
.mobile-menu-toggle {
  display: none;
  background: linear-gradient(93deg, #24324F 50%, #A77C4F 100%);
  color: #fff;
  border: none;
  padding: 9px 17px;
  border-radius: 8px;
  font-size: 1.7rem;
  margin-left: 12px;
  cursor: pointer;
  transition: background .18s, box-shadow .18s;
  align-items: center;
  z-index: 40;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #A77C4F;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(36,50,79,0.89);
  z-index: 2000;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.85,0,.25,1);
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: #fff;
  border: none;
  font-size: 2.2rem;
  margin: 18px 30px 8px 0;
  cursor: pointer;
  transition: color .2s, transform .18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #A77C4F;
  transform: scale(1.20);
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #fff;
  padding: 36px 30px 60px 35px;
  border-radius: 20px 0 0 20px;
  box-shadow: 0 4px 30px rgba(36, 50, 79, 0.14);
  min-width: 240px;
  margin: 0 0 0 0;
  align-items: flex-start;
}
.mobile-nav a {
  color: #24324F;
  font-weight: 600;
  font-size: 1.12rem;
  opacity: 0.97;
  padding: 8px 0;
  border-radius: 3px;
  width: 100%;
  transition: color 0.19s, background 0.14s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #A77C4F;
  background: #F4F1ED;
  outline: none;
}
@media (max-width: 900px) {
  .mobile-menu-toggle {
    display: flex;
  }
  nav {
    display: none;
  }
}
@media (min-width: 901px) {
  .mobile-menu {
    display: none !important;
  }
}
/* Mobile touch targets */
.mobile-nav a {
  min-height: 32px;
  display: flex;
  align-items: center;
}

/* ---------------------------
  GENERAL SPACING AND ALIGNMENT
---------------------------- */
.text-section, .service-list-details {
  display: flex;
  flex-direction: row;
  gap: 12px;
}
@media(min-width: 750px) {
  .text-section, .service-list-details {
    gap: 18px;
  }
}

/*  Ensure 20px min between all cards */
.card + .card, .service-card + .service-card, .testimonial-card + .testimonial-card, .case-study-snippet + .case-study-snippet {
  margin-left: 0;
  margin-top: 20px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Container for content prevent overlap */
.container, .content-wrapper, .services-grid, .features-list, .step-list, .service-list-details {
  gap: 20px;
}

/* Lists inside content */
ul li:not(:last-child), ol li:not(:last-child) {
  margin-bottom: 8px;
}

/* Tables (if ever used) */
table {
  width: 100%;
  border-collapse: collapse;
}
th, td {
  padding: 10px 8px;
  border-bottom: 1px solid #F4F1ED;
}

/* ---------------------------
  RESPONSIVE FLEXBOX RULES
---------------------------- */
@media (max-width: 768px) {
  .text-image-section, .footer-info, .content-grid, .features-list, .card-container, .step-list, .services-grid {
    flex-direction: column !important;
    gap: 20px !important;
    align-items: stretch !important;
  }
  .service-card, .card, .case-study-snippet {
    min-width: 0;
    width: 100% !important;
    max-width: 100% !important;
  }
  .footer-info img {
    margin-bottom: 7px;
  }
}

/* Hide navigation links for accessibility on mobile overlay */
@media (max-width:900px) {
  nav[aria-hidden="true"] {
    display: none !important;
  }
}

/* ---------------------------
  ANIMATIONS & MICROINTERACTIONS
---------------------------- */
.cta-btn, .cta-main, .view-all-link,
.card, .service-card, .case-study-snippet, .testimonial-card {
  transition: box-shadow .2s, background .16s, transform .12s, color .17s;
}

/* Focus states for accessibility */
a:focus, button:focus {
  outline: 2px solid #A77C4F;
  outline-offset: 3px;
}

/* ---------------------------
  FORM & INPUTS (Dummy)
---------------------------- */
input, textarea, select {
  padding: 11px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1.01rem;
  background: #fff;
  transition: border .14s;
}
input:focus, textarea:focus, select:focus {
  border-color: #A77C4F;
  background: #faf8f2;
  outline: none;
}

/* ---------------------------
  COOKIE CONSENT BANNER
---------------------------- */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #24324F;
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 26px;
  justify-content: center;
  padding: 22px 16px 20px 16px;
  z-index: 9999;
  box-shadow: 0 -4px 30px #24324F28;
  animation: cookieFadeIn .5s cubic-bezier(.33,.88,.57,1.23);
}
@keyframes cookieFadeIn {
  from { transform: translateY(70px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-consent-banner p {
  font-size: 1rem;
  color: #fff;
  margin-right: 8px;
  flex: 2 1 220px;
  min-width: 160px;
  margin-bottom: 8px;
}
.cookie-btns {
  display: flex;
  gap: 18px;
  flex: 1 0 auto;
}
.cookie-btn {
  padding: 9px 18px;
  font-size: 1rem;
  border-radius: 24px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  transition: background .17s, color .13s, transform .12s;
}
.cookie-accept {
  background: #A77C4F;
  color: #fff;
}
.cookie-accept:hover, .cookie-accept:focus {
  background: #D1AA7F;
  color: #24324F;
}
.cookie-reject {
  background: #fff;
  color: #A77C4F;
  border: 1.5px solid #A77C4F;
}
.cookie-reject:hover, .cookie-reject:focus {
  background: #f8eee2;
  color: #24324F;
}
.cookie-settings {
  background: #f4f1ed;
  color: #24324F;
  border: 1.5px solid #A77C4F;
}
.cookie-settings:hover, .cookie-settings:focus {
  background: #A77C4F;
  color: #fff;
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal-overlay {
  position: fixed;
  z-index: 10001;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(36,50,79,0.78);
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInCookieModal 0.25s ease;
}
@keyframes fadeInCookieModal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 14px 60px #24324F22;
  max-width: 400px;
  padding: 32px 28px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  color: #24324F;
}
.cookie-modal h3 {
  margin-bottom: 8px;
  font-family: 'Playfair Display', serif;
  font-size: 1.38rem;
  color: #24324F;
  font-weight: 700;
}
.cookie-modal-categories {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 15px;
}
.cookie-category label {
  font-weight: 600;
  color: #24324F;
}
.cookie-category input[type="checkbox"] {
  accent-color: #A77C4F;
  width: 19px;
  height: 19px;
}
.cookie-category .always-on {
  color: #8E8E8E;
  font-size: 0.97rem;
  margin-left: 5px;
}
.cookie-modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 6px;
}
.cookie-modal-close {
  position: absolute;
  top: 13px;
  right: 18px;
  background: none;
  color: #24324F;
  border: none;
  font-size: 1.7rem;
  cursor: pointer;
  transition: color .18s;
}
.cookie-modal-close:hover {
  color: #A77C4F;
}

@media(max-width:600px) {
  .cookie-modal {
    width: 92vw;
    min-width: 0;
    max-width: 99vw;
    padding: 22px 7vw 22px 7vw;
  }
}

/* Hide cookie banner or modal by default */
.cookie-consent-banner[aria-hidden="true"], .cookie-modal-overlay[aria-hidden="true"] {
  display: none !important;
}

/* ---------------------------
   CUSTOM UTILITIES
---------------------------- */
.hide {
  display: none !important;
}

@media (max-width: 480px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.32rem; }
  h3 { font-size: 1.1rem; }
}

::-webkit-input-placeholder { color: #A0A0A0; }
:-moz-placeholder { color: #A0A0A0; }
::-moz-placeholder { color: #A0A0A0; }
:-ms-input-placeholder { color: #A0A0A0; }
::placeholder { color: #A0A0A0; }

/* ---------------------------
   END CSS
---------------------------- */