/* ============================
   CSS RESET & ROOT VARIABLES
   ============================ */
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;
}
article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #FAFAFA;
  font-family: 'Georgia', 'Times New Roman', serif;
  color: #222;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
ul, ol { margin-left: 16px; }
button, input, select, textarea {
  font-family: inherit;
  font-size: 1em;
  line-height: 1.2;
  background: none;
  border: none;
  outline: none;
}

:root {
  --color-primary: #174266;
  --color-secondary: #5FC1B8;
  --color-accent: #F6F8FA;
  --color-bg: #FAFAFA;
  --color-text-primary: #242424;
  --color-text-muted: #636363;
  --color-border: #D8DBE3;
  --color-shadow: rgba(23,66,102,0.07);
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 18px var(--color-shadow);
  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Georgia', 'Times New Roman', serif;
}

/* Montserrat and Roboto Fallback */
@import url('https://fonts.googleapis.com/css?family=Playfair+Display:700,900&display=swap');

/* ===========================
   LAYOUT CONTAINERS & SECTIONS
   =========================== */
.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
  margin-left: auto;
  margin-right: auto;
}
section,
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
main > section:last-child {
  margin-bottom: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

/* ========================
   TYPOGRAPHY HIERARCHY
   ======================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}
h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}
h2 {
  font-size: 2rem;
  font-weight: 700;
}
h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}
p, li, td, th, blockquote {
  font-family: var(--font-body);
  font-size: 1.08rem;
  color: var(--color-text-primary);
  line-height: 1.8;
}
strong { font-weight: 700; }
blockquote {
  font-style: italic;
  border-left: 3px solid var(--color-secondary);
  margin: 0 0 12px 0;
  padding: 0 0 0 18px;
  color: var(--color-primary);
}

/* ============================
   BUTTONS & CTA
   ============================ */
.cta, .primary, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  background: var(--color-primary) !important;
  color: #fff !important;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  margin-top: 4px;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 10px var(--color-shadow);
  transition: background 0.22s, box-shadow 0.22s, transform 0.18s;
}
.cta.primary:hover, .primary:hover, .btn:hover, .cta.primary:focus {
  background: var(--color-secondary) !important;
  color: #fff;
  transform: translateY(-2px) scale(1.015);
  box-shadow: 0 4px 32px var(--color-shadow);
}

/* =============================
   HEADER, NAVBAR & MOBILE MENU 
   ============================= */
header {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 2px 8px var(--color-shadow);
  position: relative;
  z-index: 103;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}
header img {
  height: 38px;
  width: auto;
}
nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
nav a {
  font-family: var(--font-body);
  font-size: 1.04rem;
  color: var(--color-primary);
  font-weight: 600;
  padding: 6px 0;
  position: relative;
  border-radius: 2px;
  transition: color 0.2s, background 0.2s;
}
nav a:hover, nav a.active {
  color: var(--color-secondary);
  background: var(--color-accent);
}
header .cta.primary {
  margin-left: 24px;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: var(--color-primary);
  align-items: center;
  justify-content: center;
  z-index: 105;
}

/* ====== MOBILE NAVIGATION ====== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: 0 8px 48px rgba(23,66,102,0.14);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-100vw);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(.83,.01,.54,1.01), opacity 0.29s;
  z-index: 120;
  padding: 32px 26px 24px 26px;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 2rem;
  margin-bottom: 16px;
  color: var(--color-primary);
  cursor: pointer;
  transition: color 0.18s;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  color: var(--color-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 100%;
  margin-top: 16px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--color-primary);
  font-weight: 600;
  padding: 10px 4px;
  border-radius: 2px;
  transition: background 0.22s, color 0.2s;
}
.mobile-nav a:hover {
  color: var(--color-secondary);
  background: var(--color-accent);
}

/* Show/hide main nav and burger depending on screen size */
@media (max-width: 1024px) {
  header .container nav { display: none; }
  .mobile-menu-toggle {
    display: flex;
  }
  header .cta.primary {
    margin-left: auto;
  }
}
@media (min-width: 1025px) {
  .mobile-menu, .mobile-menu-toggle { display: none !important; }
}

/* ===============================
   HERO, FEATURES, CARDS, CTA
   =============================== */
.hero, .about, .contact, .thankyou {
  background: var(--color-accent);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px var(--color-shadow);
}
.hero .content-wrapper,
.about .content-wrapper,
.contact .content-wrapper,
.thankyou .content-wrapper {
  gap: 18px;
  text-align: left;
  align-items: flex-start;
}
.hero h1, .about h1, .contact h1, .thankyou h1 {
  font-size: 2.2rem;
}
.hero p, .about p, .contact p {
  color: var(--color-text-muted);
}

.features .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.feature-grid,
.category-grid,
.process-steps,
.core-values-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.feature-grid li,
.category-grid li,
.process-steps li,
.core-values-list li {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 12px var(--color-shadow);
  padding: 24px 18px 18px 18px;
  min-width: 240px;
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  transition: box-shadow 0.2s, border-color 0.18s, transform 0.18s;
  margin-bottom: 20px;
}
.feature-grid li:hover,
.category-grid li:hover,
.process-steps li:hover,
.core-values-list li:hover {
  border-color: var(--color-secondary);
  box-shadow: 0 6px 28px var(--color-shadow);
  transform: translateY(-4px) scale(1.02);
}
.feature-grid li img,
.category-grid li img,
.process-steps li img,
.core-values-list li img {
  width: 36px;
  height: 36px;
}
.feature-grid h3, .category-grid h3 { margin-bottom: 8px; }

.price-table {
  overflow-x: auto;
  min-width: 320px;
  margin-bottom: 18px;
}
.price-table table {
  border-collapse: collapse;
  width: 100%;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px var(--color-shadow);
  margin: 0;
}
.price-table th, .price-table td {
  font-family: var(--font-body);
  padding: 13px 10px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  font-size: 1.08rem;
}
.price-table thead {
  background: var(--color-accent);
  color: var(--color-primary);
  font-weight: 700;
}
.price-table tr:last-child td {
  border-bottom: none;
}

.included-services-list, .service-list, .form-steps, .directions-list, .next-steps ul, .process-steps, .core-values-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.included-services-list li, .service-list li, .form-steps li, .directions-list li, .next-steps ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 0;
  font-size: 1.04rem;
  color: var(--color-text-primary);
}
.included-services-list li img,
.service-list li img,
.process-steps li img,
.core-values-list li img {
  width: 22px;
  height: 22px;
  margin-top: 2px;
}
.form-steps span {
  font-family: var(--font-display);
  color: var(--color-secondary);
  font-weight: 900;
  margin-right: 8px;
  font-size: 1.22rem;
}

.contact .address-block, .contact .phone-email, .contact .opening-hours {
  margin-bottom: 14px;
  font-size: 1rem;
}
.contact .phone-email img {
  width: 18px; height: 18px; margin-right: 6px;
  vertical-align: middle;
  display: inline;
}
.map-embed {
  background: var(--color-accent);
  padding: 18px;
  border-radius: var(--radius-sm);
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
}

/* CTA Section */
.cta {
  background: linear-gradient(90deg, #f5f6fa 60%, #eef4f8 100%);
  box-shadow: 0 2px 12px var(--color-shadow);
  border-radius: var(--radius);
}
.cta .content-wrapper {
  gap: 10px;
  align-items: center;
  text-align: center;
}
.cta h2 { font-size: 2rem; color: var(--color-primary); }
.cta p { max-width: 540px; margin-bottom: 10px; }


/* ========================
   TESTIMONIAL CARDS & SLIDER
   ======================== */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 12px var(--color-shadow);
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 22px 18px 24px;
  margin-bottom: 20px;
  min-width: 280px;
  max-width: 420px;
  transition: box-shadow 0.22s, border-color 0.18s;
}
.testimonial-card:hover {
  border-color: var(--color-secondary);
  box-shadow: 0 8px 32px var(--color-shadow);
}
.testimonial-card blockquote {
  color: var(--color-primary);
  font-size: 1.14rem;
  line-height: 1.6;
}
.testimonial-meta {
  font-size: 1rem;
  color: var(--color-text-muted);
  font-style: normal;
  margin-top: -5px;
}

/* Ensure dark text on light backgrounds for testimonials */
.testimonials, .testimonial-card, .testimonial-meta {
  background: #fff;
  color: var(--color-text-primary);
}

/* ================
   FORMS & LEGAL TEXT
   ================ */
.legal-text {
  background: #fff;
  padding: 32px 18px;
  border-radius: var(--radius);
  box-shadow: 0 2px 12px var(--color-shadow);
  margin-bottom: 60px;
}
.legal-text .content-wrapper {
  gap: 18px;
}
.confirmation-message {
  background: var(--color-accent);
  border-left: 3px solid var(--color-secondary);
  padding: 18px 16px;
  border-radius: 6px;
  color: var(--color-primary);
  margin-bottom: 12px;
}
.next-steps ul {
  flex-direction: column;
  gap: 8px;
}

/* ===============
   FOOTER SECTION
   =============== */
footer {
  background: #fff;
  border-top: 1px solid var(--color-border);
  margin-top: 60px;
  padding: 36px 0 0 0;
  box-shadow: 0 -2px 8px var(--color-shadow);
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.footer-menu {
  display: flex;
  gap: 32px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.footer-menu a {
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--color-primary);
  opacity: 0.78;
  transition: color 0.14s, opacity 0.14s;
}
.footer-menu a:hover { color: var(--color-secondary); opacity: 1; }
.footer-contact {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.footer-contact img {
  width: 40px;
  height: 40px;
}
.footer-contact p {
  font-size: 0.98rem;
  color: var(--color-text-muted);
}
.footer-social {
  display: flex;
  gap: 20px;
  margin-top: 10px;
}
.footer-social a img {
  width: 28px;
  height: 28px;
  opacity: 0.84;
  transition: opacity 0.21s, transform 0.16s;
}
.footer-social a:hover img {
  opacity: 1;
  transform: scale(1.11);
}
.copyright {
  font-family: var(--font-body);
  font-size: 0.93rem;
  color: #95A4B8;
  padding: 20px 0 24px 0;
  text-align: left;
}

/* =============================
   COOKIE CONSENT BANNER & MODAL
   ============================= */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 140;
  width: 100vw;
  background: #fff;
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -2px 24px var(--color-shadow);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 30px 19px 30px;
  font-size: 1rem;
  animation: cookie-banner-fadeIn 0.7s cubic-bezier(.26,.22,.58,1);
}
@keyframes cookie-banner-fadeIn { from { opacity: 0; transform: translateY(30px);} to { opacity: 1; transform: translateY(0);} }
.cookie-banner p {
  flex: 1 1 230px;
  color: var(--color-text-primary);
  margin-right: 18px;
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 16px;
}
.cookie-banner button {
  font-family: var(--font-body);
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: #f7f9fa;
  color: var(--color-primary);
  font-size: 1.02rem;
  font-weight: 600;
  padding: 9px 22px;
  box-shadow: none;
  transition: background 0.18s, color 0.18s, border 0.15s;
  cursor: pointer;
}
.cookie-banner button.accept {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  color: #fff;
}
.cookie-banner button.accept:hover, .cookie-banner button.accept:focus {
  background: var(--color-primary);
  color: #fff;
}
.cookie-banner button.settings {
  background: #fff;
}
.cookie-banner button.settings:hover, .cookie-banner button.settings:focus {
  color: var(--color-secondary);
  border-color: var(--color-secondary);
}

/* Cookie Settings Modal */
.cookie-modal {
  position: fixed;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  z-index: 160;
  background: rgba(27,40,64,0.23);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.23s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal-content {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 24px var(--color-shadow);
  min-width: 320px;
  max-width: 95vw;
  min-height: 280px;
  padding: 38px 28px 26px 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  animation: modal-zoomIn 0.25s;
}
@keyframes modal-zoomIn {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}
.cookie-modal-content h2 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: var(--color-primary);
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--color-accent);
  border-radius: 9px;
  padding: 14px 18px;
  margin-bottom: 10px;
}
.cookie-category input[type='checkbox'] {
  accent-color: var(--color-secondary);
  width: 19px;
  height: 19px;
}
.cookie-modal-close {
  position: absolute;
  top: 18px; right: 18px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--color-primary);
  cursor: pointer;
  transition: color 0.16s;
}
.cookie-modal-close:focus,
.cookie-modal-close:hover {
  color: var(--color-secondary);
}
.cookie-preferences-btns {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}
.cookie-preferences-btns button {
  font-family: var(--font-body);
  border-radius: 7px;
  border: 1px solid var(--color-border);
  background: #f5f7fa;
  color: var(--color-primary);
  font-size: 1.01rem;
  font-weight: 600;
  padding: 8px 20px;
  cursor: pointer;
  transition: background 0.17s, color 0.18s, border 0.14s;
}
.cookie-preferences-btns button.save {
  background: var(--color-secondary);
  color: #fff;
  border-color: var(--color-secondary);
}
.cookie-preferences-btns button.save:focus,
.cookie-preferences-btns button.save:hover {
  background: var(--color-primary);
  color: #fff;
}

/* ================
   RESPONSIVE DESIGN
   ================ */
@media (max-width: 1024px) {
  .container { max-width: 930px; }
  .feature-grid, .category-grid, .testimonial-slider, .core-values-list, .content-wrapper {
    gap: 16px;
  }
}
@media (max-width: 900px) {
  .container { max-width: 700px; }
  .footer-contact { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer-menu, .footer-social { gap: 18px; }
  .price-table th, .price-table td { font-size: 0.98rem; }
}
@media (max-width: 768px) {
  .container { max-width: 98vw; padding: 0 10px; }

  .content-wrapper, .feature-grid, .category-grid, .testimonial-slider, .core-values-list, .service-list, .process-steps {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .feature-grid li, .category-grid li, .process-steps li, .core-values-list li {
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }
  .testimonial-card {
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }
  section, .section {
    padding: 27px 0 34px 0;
    margin-bottom: 34px;
    border-radius: 0;
  }
  .hero, .about, .contact, .thankyou {
    border-radius: 0;
    box-shadow: none;
    padding: 18px 4px 24px 4px;
  }
  .cta {
    border-radius: 0;
    box-shadow: none;
  }
  .footer-menu {
    gap: 10px;
    flex-wrap: wrap;
    font-size: 0.96rem;
  }
  .footer-social { gap: 9px; }
  .cookie-banner { flex-direction: column; align-items: stretch; gap: 11px; padding: 17px 14px; font-size: 0.98rem; }
  .cookie-banner p { margin-bottom: 6px; margin-right: 0; }
  .cookie-banner .cookie-btns { gap: 10px; }
}
@media (max-width: 540px) {
  h1 { font-size: 1.3rem; }
  h2 { font-size: 1.1rem; }
  .hero h1, .about h1, .thankyou h1, .contact h1 { font-size: 1.25rem; }
  .feature-grid li, .category-grid li, .testimonial-card, .content-wrapper { padding: 13px; }
  .cta .content-wrapper { padding: 0; }
  footer { padding: 13px 0 0 0; }
  .copyright { padding: 5px 0 13px 0; font-size: 0.92rem; }
  .cookie-modal-content {
    padding: 16px 8px 12px 12px;
    min-width: 0; max-width: 99vw;
  }
}

/* =======================
   Miscellaneous Details
   ======================= */
::-webkit-scrollbar { width: 9px; background: #EEEEEE; }
::-webkit-scrollbar-thumb { background: #D2DFE8; border-radius: 7px; }
::-webkit-scrollbar-thumb:hover { background: #B3C8DE; }

/* Micro-interactions */
a, button, .feature-grid li, .category-grid li, .testimonial-card {
  transition: box-shadow 0.20s, border-color 0.18s, transform 0.17s, color 0.16s, background 0.15s;
}
.btn:active, .cta.primary:active {
  transform: scale(0.98);
}

/* Z-Index Stacking for overlay elements */
.mobile-menu { z-index: 120; }
.cookie-banner { z-index: 140; }
.cookie-modal { z-index: 160; }

/* Accessibility focus states */
a:focus, .cta.primary:focus, button:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 1px;
}

/* ===================
   Flex Layouts (MANDATORY)
   =================== */

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 12px var(--color-shadow);
  padding: 24px 20px 20px 20px;
  min-width: 250px;
  max-width: 400px;
  transition: box-shadow 0.18s, border-color 0.17s;
}
.card:hover {
  border-color: var(--color-secondary);
  box-shadow: 0 8px 32px 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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

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