/* ====================================================
  CSS RESET & BASELINE NORMALIZATION
==================================================== */
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;
}

/* Remove default link underline, inherit color */
a { text-decoration: none; color: inherit; }

html {
  height: 100%;
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
}
body {
  min-height: 100vh;
  background: #F6F9F2; /* brand accent */
  font-family: 'Roboto', serif;
  color: #234135;
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
  border: 0;
}
ul, ol {
  padding-left: 24px;
}
button, input, select, textarea {
  font: inherit;
}

/* Selection color */
::selection {
  background: #e7ecdf;
}

/*
====================================================
  FONT FAMILIES & TYPOGRAPHY FOR 'elegant_classic'
====================================================
*/
:root {
  --primary: #234135;
  --secondary: #E85C4E;
  --accent: #F6F9F2;
  --white: #fff;
  --black: #153023;
  --grey-light: #e7ecdf;
  --grey-medium: #b6bfa8;
  --shadow: 0 6px 24px 0 rgba(35,65,53,0.09);
  --radius: 14px;
  --radius-sm: 8px;
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  src: local('Montserrat'), local('Montserrat-Regular'), url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  src: local('Roboto'), local('Roboto-Regular'), url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');
}

h1,h2,h3,h4,h5,h6 {
  font-family: 'Montserrat', serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--primary);
  margin-bottom: 12px;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}
h4, h5, h6 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}
p {
  margin-bottom: 14px;
  font-size: 1.05rem;
}
strong, b {
  font-weight: 700;
  color: var(--primary);
}
small { font-size: 0.95em; color: var(--grey-medium); }

/*
====================================================
  CONTAINER & LAYOUTS (FLEXBOX-ONLY)
====================================================
*/
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* Flex spacing for feature, card, testimonial grids */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 20px;
  margin-bottom: 20px;
}
.services-overview {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
  margin-bottom: 10px;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 10px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  margin-bottom: 20px;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow 0.22s cubic-bezier(.32,1.07,.55,.92);
}
.card:hover {
  box-shadow: 0 10px 36px 0 rgba(35,65,53,0.16);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  flex: 1 1 240px;
  max-width: 350px;
  background: var(--accent);
  border-radius: var(--radius-sm);
  padding: 24px 18px;
  box-shadow: 0 2px 10px 0 rgba(35,65,53,0.06);
  transition: transform 0.15s, box-shadow 0.15s;
}
.feature-item img {
  width: 42px;
  height: 42px;
  margin-bottom: 10px;
}
.feature-item:hover {
  transform: translateY(-6px) scale(1.021);
  box-shadow: 0 8px 22px 0 rgba(35,65,53,0.12);
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.text-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 12px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 24px 22px;
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  min-width: 250px;
  flex: 1 1 270px;
  transition: box-shadow 0.17s;
}
.testimonial-card:hover {
  box-shadow: 0 10px 36px 0 rgba(35,65,53,0.18);
}
.testimonial-card .stars {
  color: var(--secondary);
  font-size: 1.07rem;
  letter-spacing: 0.16em;
}
.review-author {
  font-size: 1rem;
  color: var(--grey-medium);
  letter-spacing: 0.01em;
  margin-top: 8px;
}
.trust-badges {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 20px;
}
.trust-badges img {
  width: 42px;
  height: 42px;
}

/*
====================================================
  HEADER & NAVIGATION STYLES
====================================================
*/
header {
  background: var(--white);
  box-shadow: 0 3px 16px 0 rgba(35,65,53,0.07);
  padding: 0; /* remove double padding */
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 20px;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
}
header nav a {
  color: var(--primary);
  font-size: 1.08rem;
  font-family: 'Montserrat', serif;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 5px;
  transition: color 0.17s, background 0.17s;
}
header nav a:hover,
header nav a:focus {
  color: var(--secondary);
  background: var(--grey-light);
}
header .button.primary {
  display: inline-block;
  font-family: 'Montserrat', serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  font-size: 1.03rem;
  background: var(--secondary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 11px 22px;
  margin-left: 16px;
  box-shadow: 0 2px 8px 0 rgba(232,92,78,0.05);
  cursor: pointer;
  transition: background 0.19s,box-shadow 0.23s, transform 0.14s;
}
header .button.primary:hover,
header .button.primary:focus {
  background: #ba3f31;
  box-shadow: 0 6px 24px 0 rgba(232,92,78,0.12);
  transform: translateY(-1px) scale(1.02);
}

header .mobile-menu-toggle {
  position: relative;
  z-index: 201;
  display: none;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: var(--primary);
  margin-left: 12px;
  padding: 6px 8px;
  cursor: pointer;
  transition: color 0.13s;
}
header .mobile-menu-toggle:focus,
header .mobile-menu-toggle:hover {
  color: var(--secondary);
}

/*
====================================================
  MOBILE NAVIGATION OVERLAY
====================================================
*/
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(246,249,242,1);
  box-shadow: 0 8px 32px 0 rgba(35,65,53,0.16);
  z-index: 9999;
  transform: translateX(-100vw);
  transition: transform 0.33s cubic-bezier(.71,.42,.27,1.03);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 0 0 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 22px 24px 10px 0;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--primary);
  padding: 3px 9px;
  border-radius: 50%;
  cursor: pointer;
  transition: color 0.13s, background 0.14s;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  color: var(--secondary);
  background: var(--grey-light);
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  padding: 25px 34px;
}
.mobile-nav a {
  color: var(--primary);
  font-family: 'Montserrat', serif;
  font-weight: 600;
  font-size: 1.15rem;
  padding: 14px 0 10px 5px;
  min-width: 200px;
  border-radius: 7px;
  margin-bottom: 4px;
  transition: background 0.13s, color 0.13s;
}
.mobile-nav a:focus,
.mobile-nav a:hover {
  background: var(--grey-light);
  color: var(--secondary);
}

/* Hide main nav and show mobile toggle on mobile */
@media (max-width: 1023px) {
  header nav {
    display: none;
  }
  header .button.primary {
    display: none;
  }
  header .mobile-menu-toggle {
    display: inline-block;
  }
}
@media (min-width: 1024px) {
  .mobile-menu {
    display: none !important;
  }
}

/*
====================================================
  HERO/CTA SECTIONS (Classic Spacing, Visual)
====================================================
*/
.hero {
  background: linear-gradient(90deg, #f6f9f2 88%, #e7ecdf 112%);
  padding: 54px 0 48px 0;
  margin-bottom: 38px;
  min-height: 240px;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 22px 0 rgba(35,65,53,0.04);
}
.hero .container { align-items: flex-start; }
.hero .content-wrapper {
  gap: 14px;
  max-width: 700px;
}
.hero h1 {
  color: var(--primary);
  font-size: 2.5rem;
  font-family: 'Montserrat', serif;
}
.hero p {
  font-size: 1.22rem;
  color: var(--black);
  margin-bottom: 20px;
}

.cta {
  background: linear-gradient(88deg, #e7ecdf 70%, #f6f9f2 111%);
  min-height: 120px;
  box-shadow: 0 0 0 0 rgba(0,0,0,0.02);
  border-radius: var(--radius);
  margin-bottom: 48px;
}
.cta .content-wrapper {
  align-items: flex-start;
  gap: 12px;
}
.cta h2 { margin-bottom: 10px; }
/*
====================================================
  BUTTONS
====================================================
*/
.button,
a.button {
  display: inline-block;
  font-family: 'Montserrat', serif;
  font-weight: 600;
  font-size: 1.07rem;
  padding: 11px 26px;
  border-radius: var(--radius-sm);
  border: none;
  transition: background 0.16s, color 0.16s, transform 0.12s, box-shadow 0.19s;
  box-shadow: 0 2px 8px 0 rgba(35,65,53,0.05);
  cursor: pointer;
  text-align: center;
  margin-top: 8px;
}
.button.primary,
a.button.primary {
  background: var(--secondary);
  color: var(--white);
  border: none;
}
.button.primary:hover,
.button.primary:focus {
  background: #ba3f31;
  color: var(--white);
  box-shadow: 0 6px 24px 0 rgba(232,92,78,0.16);
  transform: translateY(-1px) scale(1.03);
}
.button.secondary {
  background: var(--primary);
  color: var(--white);
}
.button.secondary:hover,
.button.secondary:focus {
  background: #153023;
  color: var(--accent);
  box-shadow: 0 4px 14px 0 rgba(35,65,53,0.11);
}
.button.outline {
  background: var(--white);
  border: 2px solid var(--secondary);
  color: var(--secondary);
}
.button.outline:hover,
.button.outline:focus {
  background: var(--secondary);
  color: var(--white);
}

/* For cookie banner specific small actions */
.button.small {
  font-size: 0.99rem;
  padding: 9px 16px;
  border-radius: 6px;
}

/*
====================================================
  FOOTER STYLING
====================================================
*/
footer {
  background: var(--primary);
  color: var(--accent);
  padding: 38px 0 15px 0;
  margin-top: 44px;
  box-shadow: 0 -2px 12px rgba(35,65,53,0.07);
}
footer .container {
  flex-direction: row;
  gap: 34px;
  align-items: flex-start;
  justify-content: space-between;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 9px;
  align-items: flex-start;
  margin-right: 22px;
}
footer nav a {
  color: var(--accent);
  font-family: 'Montserrat', serif;
  font-size: 1.09rem;
  transition: color 0.13s;
  padding: 3px 2px;
  border-radius: 4px;
}
footer nav a:hover,
footer nav a:focus {
  color: var(--secondary);
  background: #e7ecdf;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 1rem;
}
.footer-contact img {
  margin-bottom: -5px;
  margin-right: 7px;
  vertical-align: middle;
}

/*
====================================================
  MISCELLANEOUS & UTILITY
====================================================
*/
.map-replacement {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 14px;
}
.map-replacement img {
  border-radius: var(--radius-sm);
}

ul, ol {
  margin-top: 0;
  margin-bottom: 18px;
  color: var(--primary);
  font-size: 1.04rem;
}
li {
  margin-bottom: 8px;
}

/*
====================================================
  COOKIE CONSENT BANNER & MODAL
====================================================
*/
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 12030;
  width: 100vw;
  background: var(--white);
  border-top: 2px solid var(--grey-light);
  box-shadow: 0 -4px 18px rgba(35,65,53,0.12);
  padding: 24px 20px 19px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: cookie-in 0.44s cubic-bezier(.71,.42,.27,1.03);
}
@keyframes cookie-in {
  0% { transform: translateY(110%); opacity: 0; }
  65% { transform: translateY(-12px); opacity: 1; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  color: var(--primary);
  font-size: 1.02rem;
}
.cookie-banner .button {
  margin-top: 0;
  margin-right: 9px;
}
.cookie-banner .button:last-child { margin-right: 0; }
.cookie-banner .actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 2px;
}

.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(35,65,53,0.22);
  z-index: 14000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  animation: fade-in .28s;
}
@keyframes fade-in {
  0% { opacity: 0; }
  100% { opacity: 1; } 
}
.cookie-modal {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 8px 48px 0 rgba(35,65,53,0.18);
  padding: 42px 28px 32px 28px;
  min-width: 310px;
  max-width: 98vw;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  position: relative;
  animation: modal-in .38s cubic-bezier(.53,.41,.33,1.13);
}
@keyframes modal-in {
  0% { transform: scale(0.88); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--primary);
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  margin-bottom: 11px;
}
.cookie-category label {
  font-size: 1.09rem;
  color: var(--primary);
}
.cookie-modal input[type="checkbox"] {
  accent-color: var(--secondary);
  width: 20px; height: 20px;
}
.cookie-category input[disabled] {
  filter: grayscale(0.7);
  cursor: not-allowed;
}
.cookie-modal .button-group {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}
.cookie-modal .modal-close {
  position: absolute;
  top: 12px; right: 18px;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: var(--primary);
  border-radius: 50%;
  padding: 3px 10px;
  cursor: pointer;
  transition: background 0.14s;
}
.cookie-modal .modal-close:focus,
.cookie-modal .modal-close:hover {
  background: var(--grey-light);
  color: var(--secondary);
}

/*
====================================================
  RESPONSIVE DESIGN (MOBILE-FIRST)
====================================================
*/
@media (max-width: 1023px) {
  footer .container {
    flex-direction: column;
    gap: 23px;
    align-items: flex-start;
  }
}

@media (max-width: 900px) {
  .features-grid, .services-overview, .testimonial-list, .content-grid {
    flex-direction: column;
    gap: 24px;
  }
  .feature-item, .testimonial-card {
    max-width: 100%;
    width: 100%;
  }
  .hero .content-wrapper { max-width: 100vw; }
}

@media (max-width: 768px) {
  html, body {
    font-size: 15px;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.65rem; }
  .section, .hero, .cta { padding: 32px 7px; }
  .text-image-section { flex-direction: column; gap: 28px; }
}

@media (max-width: 599px) {
  html, body {
    font-size: 14px;
  }
  .container {
    padding: 0 7px;
  }
  .hero {
    padding: 34px 0 26px 0;
    min-height: 120px;
  }
  .cta, .section { padding: 24px 5px; }
  .features-grid, .services-overview, .testimonial-list, .content-grid {
    gap: 18px;
  }
}

/*
====================================================
  FOCUS STYLES & ACCESSIBILITY
====================================================
*/
:focus-visible {
  outline: 2px dotted var(--secondary);
  outline-offset: 3px;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
  outline: none;
}

/*
====================================================
  UTILITY CLASSES
====================================================
*/
.hide { display: none !important; }

/*
====================================================
  END OF STYLES
==================================================== */
