/* ==================================================  
   CSS RESET & NORMALIZE (broad browser support)
   ================================================== */
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, menu, 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.6;
  background: #FAFAF8;
  color: #21190D;
  font-family: "Georgia", "Times New Roman", Times, serif;
  font-size: 16px;
  min-height: 100vh;
  overflow-x: hidden;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
img {
  border: 0;
  max-width: 100%;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  margin: 0;
  outline: none;
  border: none;
  background: none;
}
button {
  cursor: pointer;
  background: transparent;
}

/* ============================
   BRAND AND PALETTE VARIABLES
  ============================ */
:root {
  --color-primary: #007078;
  --color-primary-contrast: #FFFFFF;
  --color-secondary: #D0F4EA;
  --color-accent: #FFE274;
  --color-dark: #232420;
  --color-mid: #EDEAE3;
  --color-light: #FAFAF8;
  --color-footer: #F7F6F2;
  --shadow-main: 0 2px 16px 0 rgba(27,35,36,.08);
  --radius-main: 10px;
}

/* =======================
   TYPOGRAPHY
   ======================= */
body {
  font-family: 'Georgia', 'serif';
  font-size: 16px;
  color: var(--color-dark);
  background: var(--color-light);
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Georgia', 'serif';
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.6rem; margin-bottom: 20px; line-height:1.15;}
h2 { font-size: 2rem; margin-bottom: 18px; line-height:1.18;}
h3 { font-size: 1.4rem; margin-bottom: 10px; line-height:1.22;}
h4 { font-size: 1.18rem; margin-bottom: 9px; }
p, ul, ol, li, span, label {
  font-size: 1rem;
  font-family: 'Georgia', serif;
  color: #3C3426;
  line-height: 1.7;
}
strong, b {
  font-weight: 700;
}

a {
  color: var(--color-primary);
  text-underline-offset: 2px;
  font-weight: 500;
  transition: color .18s;
}
a:hover, a:focus {
  color: #00565f;
  text-decoration: underline;
}

/* =======================
    LAYOUT CONTAINERS
   ======================= */
.container {
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 18px;
  box-sizing: border-box;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-light);
  border-radius: var(--radius-main);
  box-shadow: var(--shadow-main);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.quick-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 22px;
  font-size: 1.08rem;
  color: var(--color-primary);
  font-family: 'Georgia', serif;
  font-weight: 600;
}

/* Card Containers and Grids
   Ensure only flexbox is used!  */
.feature-grid, .service-cards, .blog-list, .testimonial-slider, .testimonial-list, .footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card-container, .card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.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: #FFF;
  border: 1px solid #E3E5DB;
  border-radius: var(--radius-main);
  min-width: 0;
  box-shadow: var(--shadow-main);
  margin-bottom: 20px;
  max-width: 440px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ===============
   HEADER & NAVIGATION 
   =============== */
header {
  background: var(--color-light);
  border-bottom: 1px solid #EAE8E1;
  padding: 0 0 0 0;
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 51;
  box-shadow: 0 2px 12px 0 rgba(41,48,46,0.03);
}
header > a img {
  height: 56px;
  margin: 10px 0 10px 5px;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 8px 20px 7px 20px;
  min-height: 72px;
  position: relative;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 0 0 0 30px;
}
.main-nav a {
  font-family: 'Georgia', serif;
  font-size: 1rem;
  color: #37312c;
  padding: 10px 0;
  transition: color 0.16s;
  font-weight: 500;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--color-primary);
}
.cta-btn {
  padding: 11px 28px;
  background: var(--color-primary);
  color: var(--color-primary-contrast);
  border-radius: 35px;
  font-family: 'Georgia', serif;
  font-size: 1.03rem;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(0,112,120,0.06);
  margin-left: 30px;
  letter-spacing: .02em;
  border: none;
  cursor: pointer;
  transition: background 0.23s, box-shadow 0.2s, transform 0.15s;
}
.cta-btn:hover, .cta-btn:focus {
  background: #00565f;
  box-shadow: 0 4px 18px rgba(0,112,120,0.17);
  transform: translateY(-2px) scale(1.03);
}
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  color: var(--color-primary);
  border: none;
  margin-left: 16px;
  z-index: 110;
  cursor: pointer;
  height: 40px;
  width: 48px;
}

/* --- MOBILE MENU STRUCTURE --- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(209, 244, 234, 0.99);
  box-shadow: 0 18px 40px rgba(56,80,64,0.13);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.5,.05,.1,1);
  overflow-y: auto;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  transition: transform 0.45s cubic-bezier(.2,.8,.3,1);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 22px 18px 10px 0;
  font-size: 2.3rem;
  color: var(--color-primary);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2011;
  transition: color 0.15s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: #00565f;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 18px 32px 30px 32px;
}
.mobile-nav a {
  font-family: 'Georgia', serif;
  font-size: 1.15rem;
  color: var(--color-primary);
  padding: 13px 0;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-bottom: 1px solid #cde4e2;
  transition: color .19s, background 0.17s;
  border-radius: 5px; /* Touch highlight */
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:active, .mobile-nav a:focus {
  color: #00565f;
  background: var(--color-accent);
  outline: 2px solid var(--color-primary);
}

/* Responsive Header */
@media (max-width: 1040px) {
  .main-nav { gap: 16px; }
  .cta-btn { margin-left: 10px; }
}
@media (max-width: 900px) {
  header {
    flex-wrap: wrap;
    padding: 8px 8px 7px 8px;
  }
}
@media (max-width: 768px) {
  .main-nav,
  .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* =======================
   HERO / GENERAL SECTIONS
   ======================= */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-light);
  border-radius: var(--radius-main);
}
.hero, .section.hero {
  background: linear-gradient(108deg, #fff 80%, #f5fcfa 100%);
  box-shadow: none;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-family: 'Georgia', serif;
}
.text-section h2 { margin-top: 18px; }

.categories-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  font-family: 'Georgia', serif;
  color: #453d30;
  margin-bottom: 18px;
}
.categories-filter a {
  padding: 6px 15px;
  border-radius: 4px;
  background: var(--color-mid);
  color: var(--color-primary);
  font-weight: 500;
  margin-right: 8px;
  transition: background 0.16s;
}
.categories-filter a:hover, .categories-filter a:focus {
  background: var(--color-secondary);
  text-decoration: underline;
}

/* --- Cards --- */
.feature-card {
  flex: 1 1 240px;
  min-width: 210px;
  max-width: 313px;
  background: #fff;
  border-radius: var(--radius-main);
  box-shadow: var(--shadow-main);
  padding: 30px 24px 26px 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 20px;
  position: relative;
  border: 1px solid #E9E4D8;
  transition: box-shadow 0.21s, transform 0.17s;
}
.feature-card img {
  height: 48px;
  width: auto;
  margin-bottom: 8px;
}
.feature-card h3 {
  font-size: 1.24rem;
  font-weight: 700;
  color: #38332b;
  margin-bottom: 6px;
}
.feature-card p {
  font-size: 1rem;
  color: #524c40;
  line-height: 1.6;
  margin-bottom: 0;
}
.feature-card:focus-within,
.feature-card:hover {
  box-shadow: 0 8px 28px rgba(0,112,120,0.14);
  transform: translateY(-2px) scale(1.013);
}

/* Testimonials */
.testimonial-slider, .testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-card {
  background: #fff;
  color: #1a1946;
  border: 1px solid #D7E9E3;
  border-radius: var(--radius-main);
  box-shadow: 0 2px 8px rgba(44,72,55,.09);
  padding: 26px 28px 14px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 1rem;
}
.testimonial-card p {
  font-family: 'Georgia', serif;
  font-style: italic;
  color: #33352E;
  margin-bottom: 6px;
}
.testimonial-card span {
  font-size: .98rem;
  color: #74818F;
  margin-top: 10px;
}
.customer-ratings {
  margin-top: 19px;
  font-size: 1.15rem;
  color: var(--color-primary);
  font-weight: 600;
}

/* Before/after highlight */
.before-after-text {
  background: #f2ede8;
  border-radius: var(--radius-main);
  padding: 23px 18px;
  margin-top: 32px;
  margin-bottom: 0;
}

/* Blog articles */
.blog-list {
  gap: 24px;
}
.blog-list article {
  flex: 1 1 270px;
  min-width: 230px;
  background: #fff;
  border-radius: var(--radius-main);
  box-shadow: var(--shadow-main);
  border: 1px solid #E9E4D8;
  padding: 24px 21px 20px 21px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.16s, transform .13s;
}
.blog-list h2 {
  font-size: 1.12rem;
}
.blog-list p {
  font-size: .98rem;
  color: #4D4638;
}
.blog-list a {
  color: var(--color-primary);
  font-weight: 500;
  align-self: flex-start;
}
.blog-list article:hover {
  box-shadow: 0 6px 21px rgba(0,112,120,0.13);
  transform: translateY(-2px) scale(1.015);
}

/* Featured blog post */
.featured-post-highlight {
  padding: 26px 17px;
  background: var(--color-secondary);
  border-left: 5px solid var(--color-primary);
  border-radius: 0 var(--radius-main) var(--radius-main) 0;
  margin-top: 14px;
}

/* Accordions (FAQ) */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.faq-item {
  background: #FCFDFB;
  border-radius: var(--radius-main);
  border: 1px solid #E7E7DB;
  box-shadow: 0 1px 5px rgba(39,48,36,.07);
  padding: 17px 19px;
  transition: box-shadow .16s;
}
.faq-item h2 {
  font-size: 1.1rem;
  color: var(--color-primary);
  margin-bottom: 9px;
  font-weight: 700;
}
.faq-item p {
  color: #564a38;
}
.faq-item:hover {
  box-shadow: 0 7px 17px rgba(0,112,120,0.13);
  border-color: var(--color-accent);
}

/* Contact details and map */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
  font-size: 1rem;
  color: #2b2a1a;
}
.map-placeholder img {
  width: 85%;
  max-width: 330px;
  margin: 16px auto 0 auto;
  display: block;
}

/* =======================
   FOOTER
  ======================= */
footer {
  background: var(--color-footer);
  border-top: 1px solid #E7E1CC;
  padding: 40px 0 24px 0;
  width: 100vw;
}
footer .container {
  max-width: 1100px;
  padding: 0 18px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}
.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 7px 0;
}
.footer-menu a {
  color: #555145;
  font-family: 'Georgia', serif;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.17s;
}
.footer-menu a:hover, .footer-menu a:focus {
  color: var(--color-primary);
  text-decoration: underline;
}
.contact-summary {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 0.98rem;
  color: #39393E;
  margin-top: 7px;
  font-family: 'Georgia', serif;
}
.contact-summary img {
  height: 18px;
  width: auto;
  margin-right: 7px;
  vertical-align: middle;
  display: inline;
}
.footer-logo {
  margin-bottom: 15px;
  width: 70px;
}

/* =======================
   BUTTONS & INTERACTIVE
  ======================= */
button, .cta-btn, .cookie-btn {
  font-family: 'Georgia', serif;
  border: none;
  border-radius: 35px;
  font-weight: 700;
  transition: background 0.17s, color 0.17s, box-shadow 0.18s, transform 0.18s;
}
.cookie-btn {
  padding: 10px 28px;
  background: var(--color-primary);
  color: #fff;
  font-size: 1rem;
  margin-right: 14px;
  margin-bottom: 6px;
  box-shadow: 0 3px 10px rgba(0,112,120,0.06);
}
.cookie-btn.accept {
  background: var(--color-primary);
  color: #fff;
}
.cookie-btn.reject {
  background: #e0e0e0;
  color: #2c3241;
}
.cookie-btn.settings {
  background: var(--color-accent);
  color: #3a3933;
}
.cookie-btn:focus, .cookie-btn:hover {
  background: #00565f;
  color: #fff;
  box-shadow: 0 7px 20px rgba(0,112,120,0.18);
  outline: none;
  transform: translateY(-1px) scale(1.01);
}
.cookie-btn.reject:focus, .cookie-btn.reject:hover {
  background: #cabfb3;
  color: #1c232b;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #fae09f;
}

/* ===============
   COOKIE CONSENT BANNER
   =============== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #fff8ec;
  border-top: 1px solid #EFE3C0;
  box-shadow: 0 -2px 14px 0 rgba(43,36,22,0.08);
  z-index: 4001;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 25px 38px 21px 38px;
  font-family: 'Georgia', serif;
  font-size: 1rem;
  transition: transform 0.22s ease;
  animation: slide-up-banner 0.7s cubic-bezier(.22,1,.36,1) 1;
}
@keyframes slide-up-banner {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner.hide {
  transform: translateY(150%);
  transition: transform 0.25s cubic-bezier(.6,0,.33,1);
}
.cookie-banner p {
  color: #3D3D31;
  line-height: 1.56;
  max-width: 470px;
  margin-bottom: 11px;
  font-size: 1rem;
}
.cookie-banner .buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Cookie Preferences Modal */
.cookie-modal-overlay {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(37,61,38,0.21);
  z-index: 4050;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: modal-fadein 0.28s;
}
@keyframes modal-fadein {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -2px 34px rgba(20,43,38,0.22);
  width: 98vw;
  max-width: 468px;
  padding: 36px 24px 28px 24px;
  animation: modal-slidein .35s cubic-bezier(.39,1.25,.42,1);
}
@keyframes modal-slidein {
  from { transform: translateY(80px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.2rem;
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 19px;
}
.cookie-category {
  display: flex;
  align-items: center;
  margin-bottom: 13px;
  gap: 17px;
}
.cookie-category label {
  font-size: 1rem;
  color: #1B1B13;
  font-weight: 600;
}
.cookie-toggle {
  width: 36px;
  height: 20px;
  border-radius: 10px;
  background: #e4e4e4;
  position: relative;
  margin-left: 8px;
  margin-right: 3px;
  cursor: pointer;
  transition: background 0.21s;
}
.cookie-toggle[data-enabled="true"] {
  background: var(--color-primary);
}
.cookie-toggle .circle {
  position: absolute;
  left: 3px;
  top: 2px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.18s;
  box-shadow: 0 1px 3px rgba(41,42,33,0.13);
}
.cookie-toggle[data-enabled="true"] .circle {
  left: 17px;
}
.cookie-modal .cookie-btn {
  margin-top: 22px;
}

/* ============
   GENERAL ELEMENTS
   ============ */
ul {
  list-style-type: disc;
  padding-left: 27px;
  margin-bottom: 9px;
}
li {
  margin-bottom: 8px;
}
hr {
  border: 0;
  border-top: 1px solid #DDDAC9;
  margin: 11px 0;
}

/* Spacing Rules */
.card, .feature-card, .testimonial-card, .blog-list article {
  margin-bottom: 20px;
  min-width: 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container, .card-grid, .feature-grid, .testimonial-slider, .content-grid {
  gap: 24px;
}
.text-image-section, .content-grid {
  gap: 20px;
}

/* =======================
   RESPONSIVE DESIGN
   ======================= */
@media (max-width: 992px) {
  .feature-grid, .service-cards {
    gap: 20px;
  }
  .container { max-width: 97vw; }
  .footer-menu { flex-direction: row; gap: 16px; }
  .footer-menu a { font-size: 0.97rem; }
}
@media (max-width: 768px) {
  .container { padding: 0 11px; }
  header { padding: 9px 8px; }
  .section { padding: 27px 7px; }
  .content-wrapper, .footer .content-wrapper {
    gap: 16px;
  }
  .feature-grid, .service-cards, .testimonial-slider, .testimonial-list, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .before-after-text, .featured-post-highlight {
    padding: 16px 8px;
  }
  .blog-list {
    flex-direction: column;
    gap: 12px;
  }
  .map-placeholder img {
    width: 100%;
    max-width: 99vw;
  }
  .footer-menu {
    flex-direction: column;
    gap: 7px;
  }
  .footer .content-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  .cookie-banner {
    padding: 19px 10px 15px 14px;
    flex-direction: column;
    gap: 16px;
  }
}
@media (max-width: 560px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.3rem; }
  .main-nav { gap: 8px; }
  .featured-post-highlight {
    padding: 10px 5px;
  }
  .testimonial-card,
  .feature-card,
  .blog-list article {
    padding: 18px 11px;
    font-size: .97rem;
  }
  .cookie-modal {
    padding: 20px 2vw 16px 2vw;
    min-height: 0;
    font-size: .97rem;
  }
}

/* ===========
   MICRO-INTERACTIONS & FOCUS
   =========== */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.cta-btn:focus:not(:active) {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* ===========
   UTIL CLASSES
   =========== */
.text-center {
  text-align: center;
}
.bg-accent {
  background: var(--color-accent) !important;
}
.bg-secondary {
  background: var(--color-secondary) !important;
}
.mt-32 { margin-top: 32px !important; }
.mb-32 { margin-bottom: 32px !important; }
.mt-16 { margin-top: 16px !important; }
.mb-16 { margin-bottom: 16px !important; }

.fw-700 { font-weight: 700; }
.fs-large { font-size: 1.22rem; }
.fs-small { font-size: .93rem; }

/* ===========
   PRINT/BACKGROUND
   =========== */
@media print {
  .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal-overlay {
    display: none !important;
  }
}
