/* ===================== 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, main, 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 {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.7;
  background: #F8F7F3;
  color: #232833;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  border: none;
}
a {
  color: #917E5B;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #C9B38C;
  outline: none;
}
ul, ol {
  margin-left: 1.2em;
  padding-left: 1em;
}
strong, b {
  font-weight: 600;
}
button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}
button {
  border: none;
  background: none;
  cursor: pointer;
}
:focus {
  outline: 2px solid #C9B38C;
  outline-offset: 2px;
}

/* ===================== COLORS & FONTS ===================== */
:root {
  --color-primary: #232833;
  --color-secondary: #C9B38C;
  --color-accent: #F3F1ED;
  --color-bg: #F8F7F3;
  --color-white: #fff;
  --color-shadow: rgba(143,146,166,0.15);
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Montserrat', Arial, sans-serif;
  --btn-gradient: linear-gradient(90deg, #FCECDA 0%, #C9B38C 100%);
  --transition: 0.25s cubic-bezier(0.4, .01, .19, .98);
}

/* ===================== LAYOUT STRUCTURE ===================== */
.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
  margin: 0 auto;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card {
  background: var(--color-white);
  border-radius: 18px;
  box-shadow: 0 6px 32px var(--color-shadow);
  padding: 32px 24px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow var(--transition);
}
.card:hover {
  box-shadow: 0 8px 48px var(--color-shadow);
}
.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;
  background: #FBFAF7;
  border-radius: 16px;
  box-shadow: 0 2px 16px var(--color-shadow);
  margin-bottom: 24px;
  flex-direction: column;
}
.testimonial-card blockquote {
  font-style: italic;
  color: #232833;
  font-size: 1.15rem;
  margin-bottom: 12px;
  line-height: 1.6;
}
.testimonial-meta {
  color: #7A6C53;
  font-size: 1rem;
  font-weight: 500;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ========== Flexbox-Only Grids for Features & Services ========== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
}
.feature {
  background: var(--color-white);
  border-radius: 18px;
  box-shadow: 0 4px 18px var(--color-shadow);
  padding: 28px 22px 22px 22px;
  flex: 1 1 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 220px;
  transition: box-shadow var(--transition), transform var(--transition);
  margin-bottom: 20px;
}
.feature img {
  height: 48px;
  margin-bottom: 10px;
  opacity: 0.94;
}
.feature:hover {
  box-shadow: 0 8px 32px var(--color-shadow);
  transform: translateY(-2px) scale(1.015);
}

/* ========== Services ========== */
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.service-item {
  background: var(--color-white);
  border-radius: 14px;
  box-shadow: 0 2px 14px var(--color-shadow);
  padding: 28px 20px;
  flex: 1 1 275px;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  transition: box-shadow var(--transition), transform var(--transition);
  margin-bottom: 20px;
}
.service-item:hover {
  box-shadow: 0 8px 28px var(--color-shadow);
  transform: scale(1.015);
}
.service-price {
  color: var(--color-secondary);
  font-weight: 500;
  font-size: 1.05rem;
  font-family: var(--font-body);
  margin-top: 10px;
}

/* ===================== TYPOGRAPHY ===================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.18;
  margin-bottom: 16px;
}
h2 {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 12px;
}
h3 {
  font-size: 1.32rem;
  margin-bottom: 10px;
}
h4, h5, h6 {
  font-size: 1.1rem;
}
p, li {
  font-family: var(--font-body);
  color: #2D3141;
  font-size: 1.07rem;
  margin-bottom: 10px;
  line-height: 1.8;
}
.subheadline {
  color: #877A62;
  font-family: var(--font-body);
  font-size: 1.17rem;
  margin-bottom: 24px;
  letter-spacing: 0.01em;
}
.cta-link {
  color: #947C62;
  font-weight: 500;
  transition: color var(--transition);
  border-bottom: 1px solid #E0D5B7;
  padding-bottom: 3px;
}
.cta-link:hover {
  color: var(--color-secondary);
  border-bottom: 1px solid var(--color-secondary);
}

/* ===================== HERO & CTA ===================== */
.hero {
  background: linear-gradient(170deg, #F8F7F3 60%, #ECE8F7 100%);
  padding: 60px 0 40px 0;
  margin-bottom: 32px;
  border-radius: 0 0 44px 44px;
  box-shadow: 0 8px 32px var(--color-shadow);
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 18px;
  max-width: 700px;
  margin-top: 0;
}
.cta-banner {
  background: linear-gradient(90deg, #F3F1ED 70%, #D8EAF8 100%);
  padding: 48px 0 40px 0;
  border-radius: 36px;
  margin: 60px 0 0 0;
  box-shadow: 0 6px 32px var(--color-shadow);
}
.cta-banner .content-wrapper {
  align-items: center;
  text-align: center;
  gap: 20px;
  max-width: 660px;
  margin-left: auto;
  margin-right: auto;
}

/* ===================== MAIN NAVIGATION ===================== */
header {
  background: var(--color-white);
  box-shadow: 0 2px 18px var(--color-shadow);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 30;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 78px;
}
.logo img {
  height: 44px;
  width: auto;
}
.main-nav {
  display: flex;
  gap: 18px;
  align-items: center;
}
.main-nav a {
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--color-primary);
  padding: 7px 0px;
  position: relative;
  transition: color var(--transition);
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--color-secondary);
}
.btn-primary {
  display: inline-block;
  background: var(--color-secondary);
  color: var(--color-primary);
  font-family: var(--font-body);
  font-size: 1.08rem;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 22px;
  box-shadow: 0 2px 14px var(--color-shadow);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
  letter-spacing: 0.04em;
}
.btn-primary:hover, .btn-primary:focus {
  background: #E7DAC2;
  color: #232833;
  box-shadow: 0 4px 22px var(--color-shadow);
  transform: translateY(-1px) scale(1.03);
}

/* ===================== FOOTER ===================== */
footer {
  background: #F5F4F1;
  border-top: 1px solid #EFE7DA;
  padding: 40px 0 22px 0;
  margin-top: 60px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
  flex-direction: row;
}
.footer-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-nav a {
  font-size: 0.98rem;
  color: #877A62;
  transition: color var(--transition);
}
.footer-nav a:hover {
  color: var(--color-secondary);
}
.footer-logo img {
  height: 44px;
  opacity: 0.93;
}
.footer-contact, .copyright {
  color: #9A947A;
  font-size: 0.98rem;
  margin-top: 12px;
}
.copyright {
  width: 100%;
  margin-top: 28px;
  text-align: center;
}

/* ===================== CARDS & CASES ===================== */
.case {
  background: #F7F3EE;
  border-radius: 14px;
  padding: 26px 18px 18px 18px;
  margin-bottom: 18px;
  box-shadow: 0 2px 12px var(--color-shadow);
}
.success-metrics {
  margin-top: 12px;
  background: #E8F3ED;
  color: #1A3420;
  border-radius: 12px;
  padding: 13px 19px;
  font-weight: 600;
  font-size: 1.09rem;
}

/* ===================== BUTTONS & INTERACTIONS ===================== */
.cta-link, .btn-primary {
  transition: color var(--transition), background var(--transition), box-shadow var(--transition), border var(--transition), transform var(--transition);
}
.btn-primary:active {
  background: #C9B38C;
  color: #fff;
  box-shadow: 0 1px 4px var(--color-shadow);
}

/* ===================== MOBILE MENU ===================== */
.mobile-menu-toggle {
  display: none;
  background: var(--color-secondary);
  color: var(--color-primary);
  position: fixed;
  top: 22px;
  right: 24px;
  z-index: 1001;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 2rem;
  box-shadow: 0 4px 18px var(--color-shadow);
  border: none;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
.mobile-menu-toggle:focus {
  background: #E8E1D0;
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 320px;
  background: var(--color-bg);
  box-shadow: -6px 0 32px var(--color-shadow);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, .01, .19, .98);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  padding-top: 14px;
  padding-bottom: 18px;
}
.mobile-menu.open {
  transform: translateX(0%);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 2rem;
  position: absolute;
  right: 20px;
  top: 16px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition);
}
.mobile-menu-close:hover {
  background: #EFEADC;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 56px;
  padding: 0 18px;
}
.mobile-nav a {
  color: var(--color-primary);
  font-size: 1.18rem;
  font-family: var(--font-body);
  font-weight: 500;
  padding: 14px 0;
  border-bottom: 1px solid #ECE7E1;
  transition: color var(--transition), background var(--transition);
  border-radius: 12px;
}
.mobile-nav a:active, .mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-secondary);
  background: #F5F4F1;
}

/* ===================== COOKIE BANNER & MODAL ===================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #F9F6F0;
  color: #232833;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  padding: 18px 20px;
  box-shadow: 0 -2px 32px var(--color-shadow);
  z-index: 2100;
  font-family: var(--font-body);
  border-radius: 18px 18px 0 0;
  justify-content: space-between;
  animation: cookieSlideIn 0.6s;
}
@keyframes cookieSlideIn {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.cookie-banner-text {
  font-size: 1.03rem;
  color: #55504A;
  flex: 1 1 auto;
  margin-right: 20px;
}
.cookie-banner-actions {
  display: flex;
  gap: 14px;
}
.cookie-btn, .cookie-settings-btn {
  padding: 10px 20px;
  border-radius: 22px;
  font-family: var(--font-body);
  font-weight: 600;
  background: var(--color-secondary);
  color: var(--color-primary);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  box-shadow: 0 2px 8px var(--color-shadow);
}
.cookie-btn.reject {
  background: #E6E5E1;
  color: #6A6159;
}
.cookie-btn:hover, .cookie-settings-btn:hover {
  background: #EDE5D0;
  color: #232833;
}
.cookie-modal {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) scale(0.98);
  background: #fffefb;
  border-radius: 20px;
  box-shadow: 0 8px 42px var(--color-shadow);
  z-index: 2200;
  padding: 36px 18px 24px 24px;
  min-width: 330px;
  max-width: 98vw;
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: cookieModalIn 0.5s;
}
@keyframes cookieModalIn {
  from { opacity:0; transform: translateX(-50%) scale(0.92); }
  to { opacity:1; transform: translateX(-50%) scale(1); }
}
.cookie-modal-header {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--color-primary);
  margin-bottom: 5px;
  letter-spacing: 0.01em;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}
.cookie-toggle {
  width: 42px;
  height: 24px;
  border-radius: 24px;
  background: #ECE8F7;
  position: relative;
  transition: background var(--transition);
  margin-left: 6px;
}
.cookie-toggle input[type="checkbox"] {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-toggle-slider {
  position: absolute;
  top: 2px;
  left: 2px;
  height: 20px;
  width: 20px;
  background: #E0D5B7;
  border-radius: 50%;
  transition: transform var(--transition), background var(--transition);
}
.cookie-toggle input[type="checkbox"]:checked + .cookie-toggle-slider {
  transform: translateX(18px);
  background: var(--color-secondary);
}
.cookie-modal-actions {
  display: flex;
  gap: 13px;
  margin-top: 12px;
  justify-content: flex-end;
}
.cookie-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-primary);
  cursor: pointer;
  border-radius: 50%;
  padding: 4px;
  transition: background var(--transition);
}
.cookie-modal-close:hover {
  background: #ECE8F7;
}

/* ========== Utility Spacing Classes ========== */
.mt-4 {
  margin-top: 16px !important;
}
.mb-4 {
  margin-bottom: 16px !important;
}
.mt-8 {
  margin-top: 32px !important;
}
.mb-8 {
  margin-bottom: 32px !important;
}

/* ========== Success Metrics Stylings ========== */
.success-metrics {
  font-family: var(--font-display);
  color: #217242;
  background: #EDF6EE;
  border: 1px solid #C7E2D1;
}

/* ===================== RESPONSIVE DESIGN ===================== */
@media (max-width: 1060px) {
  .container { max-width: 97vw; }
}
@media (max-width: 968px) {
  .feature-grid, .service-list, .card-container, .content-grid {
    gap: 18px;
  }
  .footer-nav {
    gap: 12px;
  }
}
@media (max-width: 900px) {
  header .container {
    gap: 12px;
  }
  .main-nav {
    gap: 10px;
  }
}
@media (max-width: 768px) {
  /* Header/Nav to mobile layout */
  header .container {
    flex-direction: row;
    gap: 4px;
    height: 54px;
  }
  .main-nav, .btn-primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .feature-grid, .service-list, .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .section, .card, .feature, .service-item, .testimonial-card, .case {
    padding-left: 16px;
    padding-right: 16px;
  }
  .cta-banner, .hero {
    padding: 32px 0 24px 0;
    border-radius: 0 0 28px 28px;
  }
  .footer-logo, .footer-contact {
    margin-top: 18px;
  }
  footer .container {
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }
  .content-wrapper, .content-wrapper.text-section {
    gap: 16px;
  }
}
@media (max-width: 560px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.3rem; }
  .service-item, .feature, .card, .case {
    padding-left: 10px;
    padding-right: 10px;
  }
  .container {
    padding: 0 7px;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 13px;
    font-size: 0.97rem;
    align-items: flex-start;
  }
  .cookie-modal {
    min-width: 92vw;
    max-width: 98vw;
    padding: 25px 10px;
  }
}

/* ===================== FONT IMPORTS ===================== */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600;700&family=Montserrat:wght@400;500;600&display=swap');

/* ===================== VISUAL EFFECTS & HIERARCHY ===================== */
.card, .feature, .service-item, .testimonial-card, .case {
  box-shadow: 0 2px 14px var(--color-shadow);
  border-radius: 16px;
}
.card:hover, .feature:hover, .service-item:hover {
  box-shadow: 0 8px 28px var(--color-shadow);
}

/* ===================== TRANSITIONS, HOVERS & MICRO-INTERACTIONS ===================== */
a, .btn-primary, .cta-link, .feature, .service-item, .card {
  transition: color var(--transition), background var(--transition), box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}

/* ===================== ACCESSIBILITY FOCUS STATES ===================== */
.btn-primary:focus, .cta-link:focus, .feature:focus, .service-item:focus, .card:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 1px;
}

/* ========== Section and Card Spacing & Prevent Overlap ========== */
section, .section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card, .feature, .service-item, .testimonial-card, .case {
  margin-bottom: 20px;
}
.card-container, .feature-grid, .service-list, .content-grid {
  gap: 20px;
}
.text-image-section {
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  padding: 20px;
  margin-bottom: 24px;
}
.feature-item {
  gap: 15px;
}

/* ========== Additional Helpers for Breathing Space ========== */
.text-section {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* =================== SPECIAL: DARK ON LIGHT FOR TESTIMONIALS =================== */
.testimonial-card, .testimonial-card * {
  color: #232833;
  background: #FBFAF7;
}

/* =================== HIDE/SHOW ON RESPONSIVE =================== */
@media (max-width: 768px) {
  .main-nav, .btn-primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 769px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
}

/* ===================== END OF CSS ===================== */
