/* =============================================
   CLEAR 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;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.55;
  color: #232323;
  background: #fff;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  min-height: 100vh;
  letter-spacing: 0.01em;
  background-color: #F1FAEE;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s;
}
img {
  max-width: 100%;
  display: block;
}
ul, ol {
  list-style: none;
}

/* =============================================
   BRAND FONTS & VARIABLE SETUP
   ============================================= */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Open+Sans:wght@400;600&display=swap');
:root {
  --color-primary: #264653;
  --color-secondary: #F4A261;
  --color-accent: #F1FAEE;
  --color-gold: #C8B079;
  --color-gold-dark: #A38C47;
  --color-base: #F1FAEE;
  --color-light: #fff;
  --color-dark: #232323;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
}

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 18px;
  line-height: 1.12;
  letter-spacing: -0.01em;
}
h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 18px;
  line-height: 1.18;
  letter-spacing: -0.01em;
}
h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--color-primary);
}
h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
}
p, ul, ol {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-dark);
  margin-bottom: 14px;
}
strong {
  font-weight: 700;
  color: var(--color-primary);
}
a.cta, .cta.primary, .cta {
  font-family: var(--font-display);
  font-weight: 700;
}

@media (min-width: 600px) {
  h1 {font-size: 3rem;}
  h2 {font-size: 2.3rem;}
  h3 {font-size: 1.6rem;}
  p, ul, ol {font-size: 1.08rem;}
}
@media (min-width: 900px) {
  h1 {font-size: 3.4rem;}
  h2 {font-size: 2.8rem;}
  h3 {font-size: 1.8rem;}
}

/* =============================================
   CONTAINER & LAYOUT
   ============================================= */
.container {
  width: 100%;
  padding-left: 24px;
  padding-right: 24px;
  max-width: 1170px;
  margin-left: auto;
  margin-right: auto;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  width: 100%;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-base);
  border-radius: 22px;
  box-shadow: 0 4px 24px 0 rgba(38, 70, 83, 0.06), 0 1.5px 10px 0 rgba(200, 176, 121, 0.07);
}

@media (min-width: 900px) {
  .section {
    padding: 48px 42px;
    margin-bottom: 72px;
  }
}

/* =============================================
   HEADER & NAVIGATION
   ============================================= */
header {
  background: var(--color-light);
  border-bottom: 1px solid #ececec;
  box-shadow: 0 2px 16px 0 rgba(200,176,121,0.06);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 24px;
}

.main-nav {
  display: flex;
  align-items: center;
}

.main-nav a {
  position: relative;
  display: flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 1.08rem;
  border-radius: 18px;
  color: var(--color-primary);
  font-weight: 600;
  transition: color 0.18s, background 0.18s;
  background: transparent;
}
.main-nav a:after {
  content: '';
  display: block;
  position: absolute;
  bottom: 7px; left: 50%;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  border-radius: 1px;
  transition: width 0.3s, left 0.3s;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--color-gold-dark);
  background: rgba(244, 162, 97, 0.08);
}
.main-nav a:hover:after, .main-nav a:focus:after {
  width: 60%;
  left: 20%;
}
.main-nav .primary {
  background: var(--color-gold);
  color: var(--color-dark) !important;
  border: none;
  padding: 8px 22px;
  box-shadow: 0 3px 12px 0 rgba(200,176,121,0.10);
  font-size: 1.09rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-left: 7px;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}
.main-nav .primary:hover, .main-nav .primary:focus {
  background: var(--color-gold-dark);
  color: var(--color-light) !important;
  box-shadow: 0 3px 16px 0 rgba(163,140,71,0.17);
}

/* Hide nav for mobile, enable burger */
.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 16px;
  border: none;
  background: transparent;
  font-size: 2rem;
  color: var(--color-gold-dark);
  border-radius: 18px;
  cursor: pointer;
  z-index: 102;
  transition: background 0.18s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--color-gold-dark);
}

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

@media (max-width: 1099px) {
  .main-nav { display: none; }
}

/* ===============================
   MOBILE MENU OVERLAY
   =============================== */
.mobile-menu {
  position: fixed;
  z-index: 1200;
  inset: 0;
  background: rgba(38,70,83, 0.98);
  backdrop-filter: blur(2px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(0.5, 0.2, 0.15, 1);
  will-change: transform;
  visibility: hidden;
  opacity: 0;
}
.mobile-menu.active {
  transform: translateX(0);
  visibility: visible;
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 18px 22px 0 0;
  font-size: 2.2rem;
  background: none;
  border: none;
  color: var(--color-gold);
  cursor: pointer;
  z-index: 1301;
  transition: color 0.18s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--color-gold-dark);
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
  align-items: flex-start;
  margin-top: 18px;
  padding-left: 30px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.38rem;
  color: var(--color-accent);
  padding: 9px 14px;
  border-radius: 14px;
  font-weight: 600;
  min-width: 180px;
  transition: background 0.21s, color 0.21s;
  letter-spacing: 0.01em;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: rgba(200,176,121,0.16);
  color: var(--color-gold);
}

@media (min-width: 1100px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ================================
   HERO SECTION
   ================================ */
.hero-section {
  background: linear-gradient(110deg, #fff 58%, var(--color-accent) 100%);
  border-bottom: 2px solid #ececec;
  padding: 0;
}
.hero-section .container {
  display: flex;
  flex-direction: column;
  min-height: 310px;
  justify-content: center;
  align-items: flex-start;
}
.hero-section .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  padding-top: 46px;
  padding-bottom: 46px;
}
.hero-section h1 {
  color: var(--color-primary);
  font-size: 2.2rem;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
}
.hero-section p {
  max-width: 600px;
  color: var(--color-primary);
  font-size: 1.1rem;
}

@media (min-width: 600px) {
  .hero-section .container {
    min-height: 360px;
  }
  .hero-section .content-wrapper {
    gap: 28px;
  }
}
@media (min-width: 900px) {
  .hero-section h1 {
    font-size: 3.2rem;
  }
  .hero-section .container {
    min-height: 410px;
  }
}

/* =============================================
   CARDS & FEATURE ELEMENTS (MANDATORY FLEX LAYOUTS)
   ============================================= */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  width: 100%;
}
.card {
  background: var(--color-light);
  box-shadow: 0 4px 18px rgba(38,70,83,0.07), 0 2px 8px rgba(200,176,121,0.06);
  border-radius: 18px;
  padding: 32px 26px;
  min-width: 290px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.2s, border-color 0.2s;
  border: 1.5px solid rgba(200,176,121,0.07);
}
.card:hover,
.card:focus-within {
  box-shadow: 0 8px 32px 0 rgba(163,140,71,0.19);
  border-color: var(--color-gold);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.service-card {
  /* as cards, but also emboldened with gold accent */
  background: var(--color-light);
  border: 1.3px solid var(--color-gold);
  border-radius: 16px;
  box-shadow: 0 3px 14px rgba(200,176,121,0.12);
  padding: 30px 22px 20px 22px;
  margin-bottom: 24px;
  margin-right: 20px;
  min-width: 250px;
  max-width: 410px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  transition: box-shadow 0.21s, border-color 0.21s;
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.22rem;
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 6px;
}
.service-card strong {
  color: var(--color-gold-dark);
  font-size: 1.06rem;
  background: rgba(200,176,121,0.11);
  border-radius: 10px;
  padding: 2px 12px;
  margin-top: 12px;
  align-self: flex-start;
}
.service-card:hover, .service-card:focus-within {
  box-shadow: 0 12px 34px 0 rgba(163,140,71,0.16);
  border-color: var(--color-gold-dark);
}

/* For pages with multiple services (like index) */
@media (min-width: 900px) {
  .content-wrapper {
    gap: 30px;
  }
  .service-card {
    max-width: 28%;
    min-width: 260px;
    margin-right: 0;
  }
}

.card-content,
.text-section,
.text-image-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.text-image-section {
  flex-direction: column;
  gap: 30px;
  align-items: center;
}
@media (min-width: 768px) {
  .text-image-section {
    flex-direction: row;
    align-items: center;
    gap: 30px;
  }
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

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

/* Testimonials */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px 0 rgba(38,70,83,0.10);
  margin-bottom: 24px;
  min-width: 220px;
  max-width: 600px;
  width: 100%;
  flex: 1 1 220px;
  position: relative;
}
.testimonial-card p {
  font-size: 1.08rem;
  font-family: var(--font-body);
  color: #191919;
  line-height: 1.53;
  font-weight: 400;
  margin-right: 12px;
}
.testimonial-card span {
  color: var(--color-gold-dark);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: 0.01em;
}

/* Enhanced contrast on testimonials */
.testimonial-card {
  background: var(--color-accent);
  color: #232323;
}

/* =============================================
   BUTTONS & CTA
   ============================================= */
.cta, .cta.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-gold);
  color: var(--color-dark);
  font-family: var(--font-display);
  font-weight: 700;
  border: none;
  border-radius: 22px;
  padding: 13px 32px;
  font-size: 1.11rem;
  margin-top: 14px;
  box-shadow: 0 2px 10px 0 rgba(200,176,121,0.09);
  cursor: pointer;
  transition: background 0.21s, color 0.21s, box-shadow 0.17s, transform 0.2s;
  letter-spacing: 0.01em;
  text-shadow: 0 1.5px 4px rgba(255,255,255,0.11);
  outline: none;
  position: relative;
}
.cta.primary:hover, .cta.primary:focus, a.cta:hover, a.cta:focus {
  background: var(--color-gold-dark);
  color: var(--color-light);
  box-shadow: 0 7px 18px 0 rgba(163,140,71,0.18);
  transform: translateY(-2px) scale(1.025);
}

/* Links & Interactive Elements */
a {
  cursor: pointer;
  transition: color 0.22s;
}
a:hover, a:focus {
  color: var(--color-secondary);
}

/* Lists */
ul li, ol li {
  padding-left: 0;
  margin-bottom: 12px;
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--color-primary);
  position: relative;
}
ul li:before {
  content: '';
  display: inline-block;
  margin-right: 10px;
  margin-left: 2px;
  vertical-align: middle;
  background: var(--color-gold);
  border-radius: 50%;
  width: 8px;
  height: 8px;
  position: relative;
  top: -1px;
}

/* =============================================
   FOOTER
   ============================================= */
footer {
  background: var(--color-light);
  border-top: 2px solid #ececec;
  padding: 36px 0 8px 0;
  font-size: 1.01rem;
  color: var(--color-primary);
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
footer .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.footer-menu {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 7px;
}
.footer-menu a {
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 1.01rem;
  border-radius: 12px;
  padding: 5px 14px;
  transition: background 0.16s, color 0.16s;
}
.footer-menu a:hover,
.footer-menu a:focus {
  background: var(--color-gold);
  color: var(--color-dark);
}
.social-links {
  display: flex;
  gap: 10px;
  opacity: 0.8;
}
.social-links img {
  height: 31px;
  transition: opacity 0.18s;
}
.social-links img:hover {
  opacity: 1;
}

/* =============================================
   COOKIE CONSENT BANNER & COOKIE MODAL
   ============================================= */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  color: var(--color-primary);
  border-top: 2px solid var(--color-gold);
  box-shadow: 0 -2px 22px 0 rgba(200,176,121,0.10);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 23px 14px 19px 14px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
  transition: opacity 0.35s, transform 0.4s;
}
.cookie-banner.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.cookie-banner p {
  font-size: 1.03rem;
  margin-bottom: 7px;
  text-align: center;
}
.cookie-banner .cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 7px;
}
.cookie-btn {
  font-family: var(--font-display);
  font-weight: 700;
  padding: 8px 22px;
  border: none;
  border-radius: 14px;
  min-width: 110px;
  font-size: 1rem;
  background: var(--color-gold);
  color: var(--color-dark);
  margin-right: 3px;
  transition: background 0.17s, color 0.17s, box-shadow 0.17s;
  cursor: pointer;
  box-shadow: 0 2px 7px 0 rgba(200,176,121,0.04);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--color-gold-dark);
  color: var(--color-light);
  box-shadow: 0 5px 14px rgba(163,140,71,0.16);
}
.cookie-btn.secondary {
  background: var(--color-light);
  border: 1.5px solid var(--color-gold);
  color: var(--color-primary);
}
.cookie-btn.secondary:hover, .cookie-btn.secondary:focus {
  background: var(--color-gold);
  color: var(--color-dark);
}

/* COOKIE MODAL OVERLAY */
.cookie-modal-backdrop {
  position: fixed;
  z-index: 2500;
  inset: 0;
  background: rgba(38,70,83,0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.34s;
}
.cookie-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  border-radius: 22px;
  max-width: 420px;
  box-shadow: 0 14px 64px 0 rgba(38,70,83,0.23);
  padding: 36px 22px 28px 22px;
  border-top: 2.3px solid var(--color-gold);
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 2600;
  position: relative;
  transform: translateY(30px);
  opacity: 0;
  transition: opacity 0.26s, transform 0.28s;
}
.cookie-modal.active {
  opacity: 1;
  transform: translateY(0);
}
.cookie-modal h3 {
  font-size: 1.16rem;
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 7px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 8px 0;
  border-radius: 7px;
}
.cookie-modal .cookie-category.essential {
  background: rgba(200,176,121,0.11);
  color: var(--color-gold-dark);
  font-weight: 600;
}
.cookie-modal .cookie-category label {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 600;
}
.cookie-modal .toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.cookie-modal .toggle-switch input[type="checkbox"] {
  opacity: 0;
  width: 0; height: 0;
}
.cookie-modal .slider {
  position: absolute;
  cursor: pointer;
  left: 0; top: 0;
  width: 100%;
  height: 100%;
  background: #ececee;
  border-radius: 24px;
  transition: background 0.18s;
}
.cookie-modal .toggle-switch input[type="checkbox"]:checked + .slider {
  background: var(--color-gold);
}
.cookie-modal .slider:before {
  position: absolute;
  content: '';
  height: 18px; width: 18px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.24s;
  box-shadow: 0 2px 4px 0 rgba(38,70,83,0.10);
}
.cookie-modal .toggle-switch input[type="checkbox"]:checked + .slider:before {
  transform: translateX(20px);
}
.cookie-modal .cookie-modal-actions {
  margin-top: 16px;
  display: flex;
  flex-direction: row;
  gap: 12px;
  justify-content: flex-end;
}
.cookie-modal .cookie-btn {
  min-width: 90px;
  font-size: 1.01rem;
}
.cookie-modal-close {
  position: absolute;
  top: 14px; right: 15px;
  color: var(--color-gold);
  font-size: 1.7rem;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.16s;
  z-index: 2;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  color: var(--color-gold-dark);
}

/* =============================================
   GENERAL RESPONSIVE SETTINGS
   ============================================= */
@media (max-width: 900px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  .hero-section .content-wrapper {
    padding-top: 30px;
    padding-bottom: 30px;
  }
}
@media (max-width: 600px) {
  .footer-menu {
    gap: 8px;
    flex-wrap: wrap;
  }
  .content-wrapper {
    gap: 18px;
  }
  .testimonial-card {
    padding: 15px;
    gap: 12px;
    max-width: 100%;
  }
  .service-card {
    padding: 20px 10px 15px 13px;
    min-width: 180px;
    max-width: 100%;
  }
}

/* Flex rules to ensure spacing and NO OVERLAP */
section > .container > .content-wrapper > * + * {
  margin-top: 20px;
}

/* Ensuring min gap everywhere (for cards, testimonials, etc) */
.card + .card, .service-card + .service-card, .testimonial-card + .testimonial-card {
  margin-top: 20px !important;
}

/* =============================================
   FORM & TEXT SECTIONS (CONTACT FORMS)
   ============================================= */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--color-base);
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: 0 2px 9px 0 rgba(38,70,83,0.05);
}
.text-section ul li {
  color: var(--color-primary);
  font-size: 1rem;
  margin-bottom: 11px;
}
@media (max-width: 600px) {
  .text-section {
    padding: 10px 4px;
    gap: 9px;
  }
}

/* =============================================
   LUXURY & PREMIUM REFINE (GOLD ACCENTS)
   ============================================= */
.section,
.card,
.service-card,
.hero-section,
footer,
header {
  border-radius: 22px 22px 16px 16px / 12px 12px 26px 26px;
}
.section,
.card,
.service-card, .testimonial-card,
.hero-section {
  box-shadow: 0 4px 24px 0 rgba(38, 70, 83, 0.06), 0 1.5px 10px 0 rgba(200, 176, 121, 0.06);
}
hr {
  height: 1px;
  background: var(--color-gold);
  border: none;
  margin: 25px 0;
}

/* =============================================
   UTILITIES & FOCUS STATES
   ============================================= */
:focus {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

::-webkit-scrollbar {
  width: 10px;
  background: #e4e1d3;
  border-radius: 13px;
}
::-webkit-scrollbar-thumb {
  background: var(--color-gold);
  border-radius: 13px;
}

/* =============================================
   PRINT STYLES (OPTIONAL)
   ============================================= */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-backdrop {display: none !important;}
  section, .section {box-shadow: none !important;}
}
.service-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.service-card.cm-fade-init.cm-fade-in {
    max-height: 300px;
    margin-bottom: 0px;
    margin-top: 0px !important;
}
section {
  padding: 10px 0;
}