/* === CSS RESET & BASE STYLES === */
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 {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  background: #faf9f7;
  color: #242c36;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}
img, picture, video, canvas, svg {
  display: inline-block;
  max-width: 100%;
  height: auto;
}
a {
  background-color: transparent;
  color: #991f36;
  text-decoration: underline;
  transition: color 0.15s;
}
a:hover, a:focus {
  color: #771728;
  outline: none;
}
ul, ol {
  padding-left: 28px;
  margin-bottom: 1.5em;
}
ul li, ol li {
  margin-bottom: 0.3em;
}
strong, b {
  font-weight: 700;
}
em, i {
  font-style: italic;
}


/* === BRAND FONTS FALLBACK === */
:root {
  --brand-primary: #991f36;
  --brand-primary-hover: #771728;
  --brand-secondary: #242c36;
  --brand-accent: #e8ecf0;
  --brand-surface: #faf9f7;
  --shadow: 0 2px 16px rgba(36,44,54,0.08);
  --radius: 14px;
  --font-serif: 'Georgia', 'Times New Roman', Times, serif;
  --font-sans: 'Montserrat', Arial, sans-serif;
  --font-ui: 'Roboto', Arial, sans-serif;
}


/* === TYPOGRAPHY FOR "elegant_classic" STYLE === */
h1, h2, h3, h4, h5, h6 {
  color: #242c36;
  font-family: var(--font-serif);
  font-weight: 600;
  margin-bottom: 18px;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.17;
}
h2 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.25;
}
h3 {
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.2;
}
h4 {
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.3;
}
p {
  font-family: var(--font-serif);
  color: #242c36;
  font-size: 1rem;
  margin-bottom: 1.2em;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-family: var(--font-ui);
  margin-bottom: 30px;
}
th, td {
  padding: 16px 14px;
  text-align: left;
  font-family: var(--font-serif);
  border-bottom: 1px solid #e4d8d5;
}
th {
  background: #f4ecea;
  font-weight: 700;
  color: var(--brand-primary);
}


/* === LAYOUT CONTAINERS === */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  width: 100%;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 0;
}


/* ==== FLEXBOX CUSTOM LAYOUTS ==== */
.feature-grid, .service-list-short, .service-catalog-grid, .testimonial-slider, .faq-accordion, .card-container, .content-grid, .text-image-section {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.feature-grid > div, .service-list-short > div, .service-catalog-grid > div {
  flex: 1 1 220px;
  min-width: 220px;
  background: #faf9f7;
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(36,44,54,0.05);
  padding: 28px 18px;
  margin-bottom: 20px;
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.18s, transform 0.18s;
}
.feature-grid > div:hover, .service-catalog-grid > div:hover {
  box-shadow: 0 4px 28px rgba(153,31,54,.20);
  transform: translateY(-2px) scale(1.015);
}
.service-list-short > div {
  background: #fff;
  box-shadow: var(--shadow);
}
.service-price {
  color: var(--brand-primary);
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 14px;
}


/* Testimonial styles */
.testimonial-slider {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin: 0 0 24px 0;
}
.testimonial-card {
  background: #f7f3f1;
  color: #242c36;
  border-radius: var(--radius);
  padding: 20px;
  flex: 1 1 300px;
  min-width: 240px;
  box-shadow: 0 2px 18px rgba(36,44,54,0.09);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: box-shadow 0.18s, transform 0.16s;
  margin-bottom: 20px;
}
.testimonial-card:hover {
  box-shadow: 0 6px 36px rgba(153,31,54,.10);
  transform: scale(1.035);
}
.testimonial-card p {
  font-size: 1.1rem;
  line-height: 1.5;
}
.testimonial-card span {
  font-size: 0.96rem;
  color: #821c2f;
  font-style: italic;
}
.customer-ratings {
  margin-top: 14px; 
  font-family: var(--font-ui);
  color: var(--brand-secondary);
}


/* FAQ Accordion */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-item {
  background: #f5ece8;
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 2px 12px rgba(36,44,54,0.03);
  margin-bottom: 10px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.faq-item:hover {
  box-shadow: 0 4px 26px rgba(153,31,54,.09);
  transform: scale(1.012);
}
.faq-item h2 {
  font-size: 1.13rem;
  color: var(--brand-primary);
  margin-bottom: 0.35em;
}
.faq-item p {
  margin-bottom: 0.1em;
}


/*== HERO SECTION ==*/
.hero {
  background: linear-gradient(120deg, #fff 0%, #e8ecf0 95%);
  padding: 64px 0 56px 0;
  margin-bottom: 36px;
}
.hero .content-wrapper {
  padding: 0 0 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero h1 {
  color: var(--brand-primary);
  margin-bottom: 24px;
  text-align: center;
  letter-spacing: 0.03em;
}
.hero p {
  color: var(--brand-secondary);
  font-size: 1.19rem;
  margin-bottom: 30px;
  text-align: center;
}


/* Buttons & Calls to Action */
.cta-primary, .cta-primary:visited {
  font-family: var(--font-serif);
  background: var(--brand-primary);
  color: #fff;
  font-size: 1.17rem;
  display: inline-block;
  padding: 15px 38px;
  border-radius: 22px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 1px 18px rgba(36,44,54,.09);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: background 0.18s, box-shadow 0.18s, transform 0.12s;
  margin-bottom: 4px;
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--brand-primary-hover);
  color: #fff;
  transform: translateY(-2px) scale(1.033);
  outline: 0;
}

/* Secondary Buttons */
.button-secondary {
  background: #fff;
  color: var(--brand-primary);
  border: 1.5px solid var(--brand-primary);
  border-radius: 22px;
  padding: 12px 30px;
  font-weight: 600;
  font-family: var(--font-serif);
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border 0.18s;
}
.button-secondary:hover, .button-secondary:focus {
  background: var(--brand-primary);
  color: #fff;
  border-color: var(--brand-primary-hover);
}


/*==== NAVIGATION ====*/
header {
  background: #fff;
  box-shadow: 0 2px 16px rgba(228,216,213,0.12);
  padding: 0 0;
  position: relative;
  z-index: 10;
}
header .container {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: space-between;
  padding: 18px 18px;
  gap: 18px;
}
.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.main-nav a {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  color: var(--brand-secondary);
  text-decoration: none;
  position: relative;
  padding: 4px 0;
  transition: color 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--brand-primary);
  text-decoration: underline;
}
header .cta-primary {
  margin-left: 20px;
}
header img {
  max-height: 43px;
  margin-right: 12px;
}


/* ==== MOBILE MENU ==== */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: var(--brand-secondary);
  cursor: pointer;
  z-index: 101;
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: 0 4px 40px 2px rgba(36,44,54,0.18);
  transform: translateX(-105vw);
  transition: transform 0.29s cubic-bezier(.73,.31,.48,.9);
  z-index: 101;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 26px 32px 0 24px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--brand-secondary);
  align-self: flex-end;
  margin-bottom: 18px;
  cursor: pointer;
  z-index: 102;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 16px;
}
.mobile-nav a {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--brand-secondary);
  text-decoration: none;
  padding: 8px 0;
  transition: color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--brand-primary);
}
/* Overlay mask for mobile menu - can be handled in main.js if needed */


/* ========== FOOTER ========== */
footer {
  background: #fff;
  border-top: 1px solid #e4d8d5;
  padding: 42px 0 32px 0;
  margin-top: 60px;
}
footer .container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}
footer img {
  max-width: 64px;
  margin-right: 16px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav a {
  color: var(--brand-secondary);
  font-family: var(--font-ui);
  font-size: 1rem;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--brand-primary);
}
.brand-contact {
  font-size: 0.98rem;
  color: #877976;
  font-family: var(--font-ui);
  line-height: 1.5;
}


/* ========== TABLES (Pricing etc) ==========*/
.service-pricing-grid {
  width: 100%;
  margin-top: 18px;
  margin-bottom: 30px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 18px rgba(36,44,54,0.06);
}
.service-pricing-grid th, .service-pricing-grid td {
  background: #fff;
}
.service-pricing-grid th {
  background: #f9f5f3;
  border-bottom: 2px solid #e4d8d5;
  color: var(--brand-primary);
}
.service-pricing-grid td {
  font-family: var(--font-ui);
  color: #242c36;
}
.service-highlights ul {
  margin-left: 20px;
}
.service-highlights li {
  margin-bottom: 0.6em;
  color: #242c36;
  font-family: var(--font-ui);
}


/* ===== CONTENT GRIDS AND FLEX UTILITIES ===== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.18s, transform 0.15s;
}
.card:hover {
  box-shadow: 0 6px 36px rgba(153,31,54,0.14);
  transform: scale(1.02);
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

/* ========== DETAILS & SUMMARIES ========== */
details, summary {
  font-family: var(--font-ui);
  font-size: 1rem;
}
details {
  background: #f7f3f1;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 15px;
}
summary {
  cursor: pointer;
  font-weight: bold;
}


/* ========== UTILITY CLASSES ========== */
.text-section {
  margin-bottom: 24px;
  color: #242c36;
  font-family: var(--font-serif);
}
.eco-summary,
.water-usage-info {
  margin-top: 20px;
  background: #f7f3f1;
  border-radius: var(--radius);
  padding: 14px 18px;
  color: #232728;
  font-family: var(--font-ui);
  box-shadow: 0 1px 10px rgba(36,44,54,0.04);
}
.badges {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 14px;
}


/* ============== CONTACT INFO ============== */
.contact-info {
  margin: 18px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: var(--font-ui);
}
.confirmation-message {
  background: #f5ece8;
  color: #242c36;
  padding: 20px 26px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 1.09rem;
}
.next-steps {
  margin-bottom: 32px;
}
.next-steps ul {
  padding-left: 18px;
}


/* =========== COOKIE CONSENT BANNER =========== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #fff7f4;
  color: #242c36;
  box-shadow: 0 -2px 22px 0 rgba(153,31,54,0.08);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 998;
  animation: cookieBannerIn 0.6s cubic-bezier(.82,.01,.43,1);
  font-family: var(--font-serif);
  gap: 24px;
}
@keyframes cookieBannerIn {
  0% { transform: translateY(100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner-message {
  max-width: 500px;
}
.cookie-banner-buttons {
  display: flex;
  gap: 14px;
  align-items: center;
}
.cookie-banner .cookie-accept, .cookie-banner .cookie-reject {
  font-family: var(--font-serif);
  background: var(--brand-primary);
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 20px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s, transform 0.12s;
}
.cookie-banner .cookie-accept:hover, .cookie-banner .cookie-accept:focus,
.cookie-banner .cookie-reject:hover, .cookie-banner .cookie-reject:focus {
  background: var(--brand-primary-hover);
  outline: none;
}
.cookie-banner .cookie-settings {
  font-family: var(--font-serif);
  background: #fff;
  color: var(--brand-primary);
  border: 1px solid var(--brand-primary);
  border-radius: 20px;
  padding: 10px 18px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.cookie-banner .cookie-settings:hover, .cookie-banner .cookie-settings:focus {
  background: #f3e8e5;
  color: var(--brand-primary-hover);
}


/* ============ COOKIE PREFERENCES MODAL =========== */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(32,24,24,0.35);
  z-index: 1002;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookieOverlayIn 0.34s cubic-bezier(.82,.01,.43,1);
}
@keyframes cookieOverlayIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 4px 40px rgba(153,31,54,.11);
  padding: 38px 32px 34px 32px;
  max-width: 440px;
  width: 95%;
  font-family: var(--font-serif);
  animation: cookieModalIn 0.37s cubic-bezier(.82,.01,.43,1);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
@keyframes cookieModalIn {
  0% { transform: translateY(60px) scale(0.98); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal h3 {
  color: var(--brand-primary);
  font-size: 1.29rem;
  margin-bottom: 8px;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
  font-size: 1.06rem;
  font-family: var(--font-ui);
}
.cookie-modal input[type="checkbox"] {
  accent-color: var(--brand-primary);
}
.cookie-category-desc {
  font-size: 0.97rem;
  color: #534c4a;
  margin-bottom: 10px;
  font-family: var(--font-ui);
}
.cookie-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  align-items: center;
}
.cookie-modal-close {
  position: absolute;
  top: 11px;
  right: 16px;
  font-size: 1.4rem;
  background: none;
  border: none;
  color: #a09388;
  cursor: pointer;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--brand-primary);
}


/* ============ RESPONSIVE DESIGN ============ */
@media (max-width: 1100px) {
  .container {
    max-width: 98vw;
    padding: 0 10px;
  }
  .feature-grid > div, .service-catalog-grid > div {
    min-width: 200px;
    padding: 22px 10px;
  }
}
@media (max-width: 950px) {
  .main-nav {
    gap: 18px;
  }
  footer .container {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}
@media (max-width: 850px) {
  .feature-grid > div,
  .service-catalog-grid > div,
  .testimonial-card {
    min-width: 160px;
    font-size: 0.96rem;
  }
}
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.31rem;
  }
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
  header .cta-primary {
    display: none;
  }
  .hero {
    padding: 38px 0 30px 0;
  }
  .hero .content-wrapper {
    padding: 0;
  }
  .feature-grid, .service-list-short, .service-catalog-grid, .testimonial-slider, .card-container, .content-grid, .faq-accordion, .badges {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 0 10px;
  }
  table, .service-pricing-grid {
    font-size: 0.92rem;
    overflow-x: auto;
    display: block;
  }
  th, td {
    padding: 14px 10px;
  }
  .hero h1, .hero p {
    text-align: left;
  }
  .cookie-banner {
    flex-direction: column;
    padding: 18px 6vw 18px 6vw;
    gap: 14px;
    align-items: flex-start;
  }
}
@media (max-width: 560px) {
  .container {
    padding: 0 2vw;
  }
  h1 {
    font-size: 1.35rem;
  }
  h2 {
    font-size: 1.14rem;
  }
  .hero .content-wrapper,
  .section,
  .eco-summary,
  .water-usage-info,
  .card,
  .testimonial-card,
  .faq-item {
    padding-left: 10px;
    padding-right: 10px;
  }
  .cookie-modal {
    padding: 18px 8px 18px 10px;
    font-size: 0.94rem;
  }
  .cookie-banner {
    padding: 12px 5vw 14px 5vw;
  }
}

/* ===== FOCUS VISIBLE ENHANCEMENT FOR ACCESSIBILITY ===== */
a:focus-visible, .cta-primary:focus-visible, .button-secondary:focus-visible, .mobile-menu-close:focus-visible, .cookie-modal-close:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 1px;
}


/* ===== MICRO-INTERACTIONS & TRANSITIONS ===== */
.button-secondary, .cta-primary, .feature-grid > div, .service-catalog-grid > div, .testimonial-card, .faq-item, .card {
  transition: box-shadow 0.17s, transform 0.15s, background 0.14s, color 0.14s;
}

/* Modal animation transitions */
.cookie-modal, .cookie-modal-overlay, .cookie-banner {
  transition: all 0.22s cubic-bezier(.73,.31,.48,.9);
}

/* ===== ENSURE ADEQUATE SPACING BETWEEN ALL ELEMENTS ===== */
.section, .card, .testimonial-card, .faq-item, .service-catalog-grid > div, .feature-grid > div, .service-list-short > div {
  margin-bottom: 20px;
}

/* ==== Hide elements only if needed for scripts: e.g. .mobile-menu { display:none } is handled by JS */
