/* ===================
   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;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  background: #fff;
  color: #1C2242;
  font-family: 'Montserrat', Arial, sans-serif;
  min-height: 100vh;
  line-height: 1.6;
  font-size: 1rem;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #1C2242;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #C4B998;
  outline-offset: 2px;
}

ul, ol {
  padding-left: 1.3em;
  margin-bottom: 24px;
}
li + li {
  margin-top: 8px;
}

/* =========
  TYPOGRAPHY
  ========= */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  color: #1C2242;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.18;
}
h1 {
  font-size: 2.75rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}
p, ul, ol {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #1C2242;
  font-size: 1rem;
  margin-bottom: 16px;
}
strong {
  font-weight: 700;
}
section h1, section h2, section h3 {
  margin-top: 0;
}

/* =======
  CONTAINER
  ======= */
.container {
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
@media (max-width: 900px) {
  .container {
    max-width: 100%;
    padding: 0 12px;
  }
}

/* =======
  HEADER
  ======= */
header {
  background: #fff;
  box-shadow: 0 2px 12px 0 rgba(28,34,66,0.04);
  position: sticky;
  top: 0;
  z-index: 120;
}
header .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  gap: 24px;
}
header img {
  height: 48px;
  width: auto;
}

.main-nav {
  display: flex;
  flex-direction: row;
  gap: 28px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: #1C2242;
  opacity: 0.9;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.17s, border-color 0.17s;
}
.main-nav a:hover,
.main-nav a.active {
  color: #C4B998;
  border-color: #C4B998;
}

.cta-btn {
  background: #1C2242;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 32px;
  padding: 12px 32px;
  cursor: pointer;
  box-shadow: 0 2px 8px 0 rgba(28,34,66,0.11);
  transition: background 0.17s, color 0.17s, box-shadow 0.23s;
  margin-left: 16px;
  display: inline-block;
  text-align: center;
}
.cta-btn:hover, .cta-btn:focus {
  background: #C4B998;
  color: #1C2242;
  box-shadow: 0 4px 16px 0 rgba(28,34,66,0.17);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #1C2242;
  cursor: pointer;
  margin-left: 16px;
  padding: 4px 12px;
  transition: color 0.15s;
  z-index: 130;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #C4B998;
}

@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* ===============
  MOBILE BURGER MENU
  =============== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #fff;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(.47,1.64,.41,.8);
  z-index: 999;
  padding-top: 56px;
  display: flex;
  flex-direction: column;
  box-shadow: 10px 0 32px 0 rgba(28,34,66,0.08);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 20px; right: 20px;
  background: #fff;
  color: #1C2242;
  border: 1px solid #1C2242;
  border-radius: 50%;
  font-size: 2rem;
  width: 44px;
  height: 44px;
  line-height: 41px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.19s, color 0.13s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #C4B998;
  color: #1C2242;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
  margin: 36px 0 0 32px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  color: #1C2242;
  font-weight: 500;
  padding: 6px 0;
  transition: color 0.18s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: #C4B998;
}
@media (min-width: 901px) {
  .mobile-menu { display: none !important; }
}

/* ============
  LAYOUT SECTIONS
  ============ */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.hero {
  background: #EDEAE2;
  padding: 56px 0;
  margin-bottom: 60px;
  box-shadow: 0 8px 24px 0 rgba(28,34,66,0.04);
}

.features, .about-snippet, .about-section, .cta-banner, .timeline-section, .services, .location, .contact-section, .faq, .testimonials, .thank-you-section, .legal-section {
  margin-bottom: 60px;
  padding: 40px 0;
}

.cta-banner {
  background: #EDEAE2;
  border-radius: 14px;
  box-shadow: 0 4px 18px 0 rgba(28,34,66,.06);
  margin-bottom: 60px;
}

@media (max-width: 768px) {
  .section, .features, .about-snippet, .about-section, .cta-banner, .timeline-section,
  .services, .location, .contact-section, .faq, .testimonials, .thank-you-section,
  .legal-section {
    margin-bottom: 32px;
    padding: 24px 0 16px 0;
  }
  .hero {
    padding: 36px 0;
  }
}

/* ================
  FLEXBOX PATTERNS
  ================ */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 14px 0 rgba(28,34,66,0.06);
  padding: 32px;
  display: flex;
  flex-direction: column;
  min-width: 260px;
  flex: 1 1 320px;
}

.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: #FAF9F5;
  border-radius: 10px;
  box-shadow: 0 2px 10px 0 rgba(28,34,66,.06);
  margin-bottom: 20px;
  max-width: 670px;
  font-size: 1.1rem;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 11px;
  box-shadow: 0 2px 10px 0 rgba(28,34,66,0.07);
  padding: 24px 20px;
  min-width: 220px;
  flex: 1 1 260px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-item img {
  height: 40px;
  width: 40px;
  display: block;
}
.feature-item span {
  font-weight: 600;
  background: #EDEAE2;
  border-radius: 14px;
  padding: 4px 12px;
  font-size: 0.95rem;
  color: #1C2242;
  margin-top: 3px;
}
.feature-item:hover {
  box-shadow: 0 8px 32px 0 rgba(28,34,66,0.10);
  transform: translateY(-2px) scale(1.018);
}

/**** Testimonials Slider/Group ****/
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.testimonials .testimonial-card:nth-child(odd) {
  background: #EDEAE2;
}
.testimonial-card p {
  color: #1C2242;
  font-size: 1.08rem;
  margin-bottom: 8px;
  font-style: italic;
}
.testimonial-card strong {
  color: #1C2242;
  font-size: 1rem;
  font-weight: 600;
}

/**** Services & Timelines & Info Cards ****/
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.service-item {
  background: #fff;
  box-shadow: 0 2px 10px 0 rgba(28,34,66,.07);
  border-radius: 12px;
  padding: 22px 20px 14px 20px;
  flex: 1 1 320px;
  min-width: 250px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.service-item:hover {
  box-shadow: 0 8px 32px 0 rgba(28,34,66,0.12);
  transform: translateY(-2px) scale(1.01);
}

.contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 14px 0 24px 0;
}
.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  flex: 1 1 196px;
  min-width: 130px;
}
.contact-detail img {
  height: 28px;
  width: 28px;
  margin-bottom: 2px;
}

/**** Legal Section and Thank you ****/
.legal-section {
  background: #FAF9F5;
  border-radius: 10px;
  box-shadow: 0 2px 10px 0 rgba(28,34,66,.04);
}
.thank-you-section {
  background: #EDEAE2;
  border-radius: 12px;
  box-shadow: 0 2px 10px 0 rgba(28,34,66,.06);
  text-align: left;
  align-items: flex-start;
}

/* ===== CTA Buttons on Section ===== */
section .cta-btn {
  margin-top: 10px;
}

/* =======
  FOOTER
  ======= */
footer {
  background: #FAF9F5;
  border-top: 1px solid #EDEAE2;
  padding: 32px 0 20px 0;
  font-size: 0.98rem;
  margin-top: 60px;
}
footer .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 38px;
}
.footer-nav {
  display: flex;
  gap: 18px;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
}
.footer-nav a {
  font-size: 0.99rem;
  color: #1C2242;
  opacity: 0.85;
  padding: 2px 0;
  border-bottom: 1px dotted transparent;
  transition: border-color 0.17s, color .18s;
}
.footer-nav a:hover {
  color: #C4B998;
  border-bottom: 1px dotted #C4B998;
}
.footer-contact {
  opacity: 0.8;
  font-size: 0.95rem;
}
footer img {
  height: 36px;
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    gap: 26px;
    align-items: flex-start;
  }
}

/* ===========
  RESPONSIVE
  =========== */
@media (max-width: 768px) {
  h1 {
    font-size: 2.1rem;
  }
  h2 {
    font-size: 1.48rem;
  }
  .feature-grid, .service-list, .card-container, .testimonial-slider, .contact-info {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .feature-item, .card, .service-item {
    min-width: 0;
    width: 100%;
    margin-bottom: 16px;
    padding: 17px 13px;
  }
  .cta-banner {
    padding: 20px 8px;
  }
  .testimonial-card {
    padding: 14px 12px;
    font-size: 1rem;
    margin-bottom: 16px;
    max-width: 100%;
  }
  .about-snippet ul, .about-section ul {
    margin-bottom: 8px;
  }
}

/* ===================
Button & Interactive Micro-interactions
=================== */
button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  border: none;
  background: none;
  cursor: pointer;
}
button:active {
  outline: none;
}

.cta-btn, .cookie-btn {
  transition: background 0.17s, color 0.17s, border-color 0.16s, box-shadow .23s;
}

a, button, .cta-btn, .cookie-btn {
  transition: color .15s, background .15s, border .15s, box-shadow .19s;
}
a:hover, a:focus {
  color: #C4B998;
}

/* =====================
  COOKIE CONSENT BANNER
  ===================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  color: #1C2242;
  box-shadow: 0 -4px 24px 0 rgba(28,34,66,0.07);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 20px 24px;
  z-index: 1600;
  font-size: 1rem;
  visibility: visible;
  opacity: 1;
  transition: opacity 0.38s, visibility 0.24s;
}
.cookie-banner.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.cookie-banner p {
  flex: 1 1 auto;
  margin-right: 16px;
  color: #1C2242;
  font-size: 1rem;
}
.cookie-btn {
  background: #EDEAE2;
  color: #1C2242;
  border: 1px solid #C4B998;
  border-radius: 22px;
  padding: 8px 22px;
  margin-left: 12px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  margin-right: 0;
}
.cookie-btn.accept {
  background: #1C2242;
  color: #fff;
  border-color: #1C2242;
}
.cookie-btn.accept:hover {
  background: #C4B998;
  color: #1C2242;
  border-color: #C4B998;
}
.cookie-btn.reject {
  border-color: #1C2242;
  background: #fff;
  color: #1C2242;
}
.cookie-btn.reject:hover {
  background: #EDEAE2;
}
.cookie-btn.settings {
  background: #FAF9F5;
  color: #1C2242;
  border-color: #C4B998;
}
.cookie-btn.settings:hover {
  background: #C4B998;
  color: #1C2242;
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 10px;
  }
  .cookie-btn {
    margin-left: 0;
    margin-top: 8px;
  }
}

/* Cookie Preferences Modal */
.cookie-modal-overlay {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(28,34,66, 0.28);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  visibility: hidden;
}
.cookie-modal {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 36px 0 rgba(28,34,66,0.13);
  max-width: 388px;
  width: 96vw;
  padding: 32px 26px 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 2200;
  position: relative;
}
.cookie-modal h2 {
  font-size: 1.3rem;
  margin-bottom: 6px;
}
.cookie-modal .category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  margin: 10px 0;
}
.cookie-modal .category label {
  font-size: 1rem;
  color: #1C2242;
  cursor: pointer;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 18px; right: 18px;
  background: none;
  color: #1C2242;
  border: none;
  font-size: 2rem;
  border-radius: 50%;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.18s;
}
.cookie-modal .cookie-modal-close:hover {
  background: #EDEAE2;
}

.cookie-toggle {
  width: 38px; height: 22px;
  border-radius: 22px;
  background: #EDEAE2;
  border: 1px solid #C4B998;
  position: relative;
  transition: background 0.18s;
  cursor: pointer;
  margin-left: 4px;
}
.cookie-toggle input {
  display: none;
}
.cookie-toggle-slider {
  position: absolute;
  left: 1.5px;
  top: 1px;
  width: 18px; height: 18.5px;
  border-radius: 50%;
  background: #C4B998;
  transition: left 0.2s, background 0.16s;
}
.cookie-toggle input:checked + .cookie-toggle-slider {
  left: 17px;
  background: #1C2242;
}
.cookie-modal .desc {
  color: #585858;
  font-size: 0.95rem;
  margin-left: 8px;
  line-height: 1.62;
}

.cookie-modal .cookie-btn {
  padding: 8px 20px;
  font-size: 1rem;
  margin-top: 12px;
  margin-left: 0;
}
.cookie-modal .cookie-btn + .cookie-btn {
  margin-left: 8px;
}

@media (max-width: 468px) {
  .cookie-modal {
    max-width: 98vw;
    padding: 22px 8px 16px 8px;
  }
}

/* ======
  UTILITIES
  ====== */
.hide {
  display: none !important;
}
.text-center { text-align: center; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.gap-8 { gap: 8px; }
.gap-20 { gap: 20px; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }

/**** Misc spacing tweaks ****/
section + section {
  margin-top: 30px;
}
@media (max-width: 480px) {
  header .container {
    padding: 12px 7px;
  }
  .container {
    padding-left: 4px; padding-right: 4px;
  }
}

/* ENFORCE MINIMALIST SPACING BETWEEN CARDS/SECTIONS */
.card, .feature-item, .service-item, .testimonial-card {
  margin-bottom: 20px;
}
.section, .features, .about-snippet, .about-section, .cta-banner, .timeline-section,
.services, .location, .contact-section, .faq, .testimonials, .thank-you-section, .legal-section {
  margin-bottom: 60px;
}

/**** Visual Hierarchy: Section Headings ****/
section h2 {
  font-weight: 700;
  color: #1C2242;
  margin-top: 0;
  margin-bottom: 16px;
}
section h3 {
  margin-bottom: 7px;
}

/* Subtle Shadow Utility */
.shadow-subtle {
  box-shadow: 0 1.5px 8px 0 rgba(28,34,66,0.07)!important;
}

/* ===== Inputs & Forms (for future extensibility) ===== */
input, textarea, select {
  border: 1px solid #C4B998;
  border-radius: 8px;
  padding: 8px 13px;
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
  color: #1C2242;
  margin-bottom: 12px;
}
input:focus, textarea:focus, select:focus {
  border-color: #1C2242;
  outline: 1.5px solid #C4B998;
}

/* Prevent content overlapping */
.card, .feature-item, .service-item, .testimonial-card, .content-wrapper, .container {
  z-index: 1;
}
.hero, .cookie-banner, .mobile-menu, .cookie-modal-overlay {
  z-index: 1000;
}

/* === Accessibility & Contrast (esp. testimonials) === */
.testimonials, .testimonials * {
  color: #1C2242 !important;
  background: none;
}
.testimonial-card [class*="icon"] {
  color: #C4B998;
}

/**** Accessibility outline for all focusable elements ****/
a:focus, button:focus, input:focus, .cta-btn:focus, .cookie-btn:focus {
  outline: 2px solid #C4B998;
  outline-offset: 2px;
}

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