/* ====================
   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, 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;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}

body {
  min-height: 100vh;
  line-height: 1.6;
  background: #FAFAF6;
  color: #255042;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture {
  max-width: 100%;
  display: block;
}
a {
  color: #245C42;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #8C4F20;
}
ul, ol {
  list-style: none;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ====================
   BRAND COLOR PALETTE
   ==================== */
:root {
  --primary: #245C42;
  --primary-light: #4C9270;
  --secondary: #8C4F20;
  --secondary-light: #DBB267;
  --accent: #F4F1EB;
  --white: #FFFFFF;
  --gray-bg: #FAFAF6;
  --pastel-blue: #D7ECF3;
  --pastel-green: #DAF5E7;
  --pastel-orange: #FFE5CA;
  --pastel-pink: #FFEAF5;
  --pastel-yellow: #FFF9E6;
  --shadow: rgba(60, 80, 90, 0.06);
  --shadow-medium: rgba(60, 80, 90, 0.16);
}

/* ===================
   TYPOGRAPHY
   =================== */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

h1, .hero h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.01em;
  margin-bottom: 18px;
}
h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--primary);
  letter-spacing: 0.01em;
}
h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--secondary);
}
h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
}
p, li, blockquote, cite {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #255042;
}
blockquote {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--primary);
  margin-bottom: 12px;
}
cite {
  font-size: 1rem;
  color: var(--secondary);
  font-style: normal;
}

.section, main > section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* Typography scale on large screens */
@media (min-width: 900px) {
  h1 {
    font-size: 3rem;
  }
  h2 {
    font-size: 2.2rem;
  }
  h3 {
    font-size: 1.45rem;
  }
  p, ul li {
    font-size: 1.07rem;
  }
}

/* ===================
   LAYOUT CONTAINERS
   =================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}

/* Flexbox section spacing PATTERNS */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 320px;
  min-width: 280px;
}
.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;
  margin-bottom: 20px;
  box-shadow: 0 4px 18px var(--shadow);
  background: var(--white);
  border-radius: 18px;
  border: 1px solid #F6F6F6;
  transition: box-shadow 0.25s, transform 0.25s;
  max-width: 650px;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px var(--shadow-medium);
  transform: translateY(-2px) scale(1.01);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* For .feature-grid */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.feature {
  background: var(--pastel-blue);
  border-radius: 16px;
  box-shadow: 0 2px 12px var(--shadow);
  padding: 24px 22px 20px 22px;
  margin-bottom: 20px;
  flex: 1 1 280px;
  min-width: 240px;
  transition: box-shadow 0.2s, transform 0.2s, background 0.2s;
}
.feature:hover {
  background: var(--pastel-green);
  box-shadow: 0 8px 32px var(--shadow-medium);
  transform: translateY(-2px) scale(1.01);
}
.feature img {
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  filter: drop-shadow(0 2px 4px rgba(60,100,100,0.07));
}

/* Services & lists */
.services, .services-preview {
  background: var(--pastel-yellow);
  border-radius: 18px;
  margin-bottom: 40px;
}
.services .content-wrapper > ul,
.services-preview .content-wrapper > ul {
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.services .content-wrapper li,
.services-preview .content-wrapper li {
  background: var(--white);
  border-radius: 12px;
  padding: 22px 20px 18px 20px;
  box-shadow: 0 2px 8px var(--shadow);
}
.services .content-wrapper h3 span {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--secondary);
  margin-left: 10px;
}

/* ===================
   HERO AND CTA BLOCKS
   =================== */
.hero {
  background: linear-gradient(122deg, var(--pastel-blue) 0%, var(--pastel-pink) 100%);
  padding: 66px 0 56px 0;
  min-height: 330px;
  display: flex;
  align-items: center;
}
@media (max-width: 768px) {
  .hero {
    padding: 42px 0 32px 0;
    min-height: 200px;
  }
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 8px;
}

.cta {
  background: var(--pastel-green);
  border-radius: 18px;
  padding: 38px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 30px;
  box-shadow: 0 2px 14px var(--shadow);
}
.cta h2 {
  margin-bottom: 10px;
}
.cta .cta {
  margin-top: 8px;
}
.cta-secondary {
  background: var(--pastel-orange);
  color: var(--primary);
  padding: 9px 22px;
  border-radius: 23px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  border: none;
  text-decoration: none;
  margin-top: 12px;
  transition: background 0.19s, color 0.19s, box-shadow 0.19s;
  box-shadow: 0 2px 8px var(--shadow);
  display: inline-block;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: var(--pastel-yellow);
  color: var(--secondary);
  box-shadow: 0 4px 18px var(--shadow-medium);
}

/* ===================
   BUTTONS & CTAS
   =================== */
.cta, .main-cta {
  display: inline-block;
  background: var(--primary);
  color: var(--white) !important;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  border: none;
  border-radius: 25px;
  padding: 12px 28px;
  margin-top: 18px;
  cursor: pointer;
  transition: background 0.19s, color 0.19s, box-shadow 0.19s, transform 0.19s;
  outline: none;
  box-shadow: 0 2px 12px var(--shadow);
}
.cta:hover, .main-cta:hover, .cta:focus, .main-cta:focus {
  background: var(--secondary);
  color: var(--white);
  box-shadow: 0 6px 24px var(--shadow-medium);
  transform: translateY(-1px) scale(1.03);
  text-decoration: none;
}

button {
  background: var(--secondary);
  color: var(--white);
  border: none;
  border-radius: 20px;
  padding: 9px 20px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  margin: 0;
  cursor: pointer;
  box-shadow: 0 1px 4px var(--shadow);
  transition: background 0.18s, box-shadow 0.18s, transform 0.18s;
}
button:hover, button:focus {
  background: var(--primary);
  box-shadow: 0 4px 18px var(--shadow-medium);
  transform: translateY(-1px) scale(1.02);
}

/* Link Buttons Navigation */
nav a.main-cta {
  margin-left: 24px;
  margin-top: 0;
  font-size: 1rem;
  padding: 9px 22px;
}

/* ===================
   NAVIGATION & HEADER
   =================== */
header {
  background: var(--accent);
  box-shadow: 0 2px 12px var(--shadow);
  padding: 0;
  position: relative;
  z-index: 100;
}
header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 18px;
}
header nav > a > img {
  height: 46px;
  width: auto;
  margin-right: 18px;
  vertical-align: middle;
}
header nav ul {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0 22px;
  align-items: center;
}
header nav ul li a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
  font-weight: 500;
  padding: 6px 7px;
  border-radius: 6px;
  font-size: 1rem;
  transition: background 0.15s, color 0.15s;
}
header nav ul li a:hover, header nav ul li a:focus {
  background: var(--pastel-green);
  color: var(--secondary);
}

/* Hide main nav & cta on mobile*/
@media (max-width: 980px) {
  header nav ul,
  nav a.main-cta {
    display: none;
  }
}

/* ===================
   MOBILE BURGER MENU
   =================== */
.mobile-menu-toggle {
  background: var(--primary);
  color: var(--white);
  font-size: 2rem;
  line-height: 1;
  border: none;
  border-radius: 10px;
  padding: 6px 18px;
  margin-right: 0;
  display: none;
  position: relative;
  z-index: 110;
  box-shadow: 0 2px 10px var(--shadow);
  transition: background 0.18s, box-shadow 0.18s;
}
.mobile-menu-toggle:focus {
  outline: 3px solid var(--secondary-light);
  background: var(--secondary);
}

@media (max-width: 980px) {
  .mobile-menu-toggle {
    display: block;
  }
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: linear-gradient(120deg, var(--pastel-blue), var(--accent) 75%);
  box-shadow: 0 4px 24px var(--shadow-medium);
  transform: translateX(-105vw);
  transition: transform 0.35s cubic-bezier(.79,.15,.39,.85);
  z-index: 9999;
  padding: 0 0 0 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 24px 24px 0 0;
  background: var(--secondary);
  color: var(--white);
  font-size: 2rem;
  padding: 3px 12px 6px 12px;
  border-radius: 8px;
  border: none;
  line-height: 1;
  box-shadow: 0 1px 6px var(--shadow-medium);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  margin: 60px 0 0 40px;
  width: 75vw;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.16rem;
  color: var(--primary);
  padding: 9px 0 8px 4px;
  border-radius: 7px;
  width: 95%;
  transition: background 0.18s, color 0.16s;
  margin: 0;
  outline: none;
}
.mobile-nav a:active, .mobile-nav a:focus, .mobile-nav a:hover {
  background: var(--pastel-green);
  color: var(--secondary);
}

/* No scroll while mobile menu open */
body.mobile-menu-open {
  overflow: hidden;
  touch-action: none;
}

/* ===================
   FOOTER
   =================== */
footer {
  background: var(--accent);
  border-top: 1px solid #E6E5DC;
  box-shadow: 0 -4px 20px var(--shadow);
  padding: 32px 0 2px 0;
  min-height: 140px;
  margin-top: 60px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  justify-content: flex-start;
}
footer nav {
  display: flex;
  flex-direction: row;
  gap: 20px;
  margin-bottom: 8px;
}
footer nav a {
  color: var(--primary);
  font-size: 1.02rem;
  border-radius: 6px;
  padding: 3px 6px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  transition: background 0.14s, color 0.14s;
}
footer nav a:hover, footer nav a:focus {
  background: var(--pastel-orange);
  color: var(--secondary);
}
footer .text-section {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.99rem;
  color: #747169;
}

/* ===================
   TESTIMONIALS
   =================== */
.testimonial-card {
  background: var(--pastel-yellow);
  color: #234733;
  border-left: 7px solid var(--secondary-light);
  border-radius: 16px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px var(--shadow);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.testimonial-card blockquote {
  margin: 0;
  color: #234733;
}
.testimonial-card cite {
  font-size: 1rem;
  color: var(--secondary);
  margin-top: 4px;
  font-style: normal;
  display: block;
}
.testimonial-card:hover {
  box-shadow: 0 8px 36px var(--shadow-medium);
  transform: translateY(-2px) scale(1.01);
}

/* ===============
   OTHER SECTIONS
   =============== */
.about-preview {
  background: var(--pastel-pink);
  border-radius: 16px;
  margin-bottom: 44px;
  box-shadow: 0 1px 10px var(--shadow);
}
.map {
  background: var(--pastel-blue);
  border-radius: 16px;
  margin-bottom: 44px;
  box-shadow: 0 1px 10px var(--shadow);
}
.contact {
  background: var(--pastel-green);
  border-radius: 16px;
  margin-bottom: 32px;
  box-shadow: 0 1px 10px var(--shadow);
}

.text-section {
  background: none;
  border-radius: 0;
  padding: 0;
  color: #435046;
  margin-top: 10px;
}

/* Thank-you block */
.thank-you .content-wrapper {
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 17px;
  margin-top: 40px;
}
.thank-you .cta {
  margin-top: 20px;
}

/* ===============
   RESPONSIVE STYLES
   =============== */
@media (max-width: 900px) {
  .feature-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 24px;
  }
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
}
@media (max-width: 768px) {
  .feature-grid, .content-grid, .card-container {
    flex-direction: column;
    gap: 16px;
  }
  .section, main > section, .cta, .about-preview, .map, .contact, .services, .services-preview {
    padding: 28px 6px;
    margin-bottom: 38px;
  }
  h1 {
    font-size: 1.7rem;
  }
  h2 {
    font-size: 1.27rem;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 12px;
  }
  .thank-you .content-wrapper {
    gap: 12px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
}
@media (max-width: 540px) {
  .footer .container {
    padding-left: 3px;
    padding-right: 3px;
  }
  .hero {
    min-height: 60px;
    padding: 24px 0 10px 0;
  }
}

/* ===============
   TABLE & LIST STYLES
   =============== */
table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
  margin: 20px 0;
  font-size: 1rem;
  background: var(--pastel-yellow);
  border-radius: 10px;
  overflow: hidden;
}
th, td {
  text-align: left;
  padding: 10px 12px;
}
th {
  background: var(--pastel-blue);
}
td {
  background: var(--white);
}

ul li {
  margin-bottom: 8px;
  padding-left: 0.2em;
  position: relative;
}
ul li strong {
  color: var(--primary);
  font-weight: 600;
}

/* ===============
   FORM ELEMENTS
   =============== */
input[type=email], input[type=text], textarea {
  border: 1px solid var(--secondary-light);
  border-radius: 11px;
  padding: 10px 13px;
  margin-bottom: 16px;
  background: var(--accent);
  transition: border 0.14s;
  font-size: 1rem;
  width: 100%;
  color: #324E36;
}
input:focus, textarea:focus {
  border-color: var(--primary-light);
  outline: none;
}

/* ===============
   COOKIE CONSENT BANNER & MODAL
   =============== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: var(--white);
  border-top: 2px solid var(--secondary-light);
  box-shadow: 0 -2px 12px var(--shadow);
  z-index: 9900;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 22px 18px 14px 18px;
  gap: 14px;
  animation: banner-slide-in 0.45s cubic-bezier(.56,.04,.39,1.01);
}
@keyframes banner-slide-in {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  font-size: 1rem;
  margin-bottom: 8px;
}
.cookie-banner .cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.cookie-banner .cookie-btn {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 18px;
  padding: 9px 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.13s, box-shadow 0.13s;
  box-shadow: 0 1px 7px var(--shadow);
}
.cookie-banner .cookie-btn.secondary {
  background: var(--secondary);
}
.cookie-banner .cookie-btn.settings {
  background: var(--pastel-pink);
  color: var(--primary);
  font-weight: 500;
  border: 1px solid var(--secondary-light);
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: var(--secondary);
  color: var(--white);
  box-shadow: 0 2px 10px var(--shadow-medium);
}
.cookie-banner .cookie-btn.settings:hover, .cookie-banner .cookie-btn.settings:focus {
  background: var(--pastel-orange);
  color: var(--secondary);
}

/* Cookie Settings Modal */
.cookie-modal {
  position: fixed;
  z-index: 10000;
  left: 0; top:0; right:0; bottom:0;
  width: 100vw; height: 100vh;
  background: rgba(60, 84, 60, 0.12);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transition: background 0.26s;
  animation: modal-fade-in 0.24s;
}
@keyframes modal-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal .modal-content {
  width: 95vw;
  max-width: 420px;
  background: var(--white);
  border-radius: 23px 23px 0 0;
  box-shadow: 0 12px 32px var(--shadow-medium);
  padding: 36px 23px 28px 23px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: modal-slide-up 0.27s cubic-bezier(.56,.04,.39,1.02);
}
@keyframes modal-slide-up {
  from { transform: translateY(133px); opacity: 0.1; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-modal h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
  color: var(--primary);
}
.cookie-modal label {
  display: flex;
  align-items: center;
  font-size: 1rem;
  margin-bottom: 13px;
  gap: 11px;
  user-select: none;
}
.cookie-modal input[type='checkbox'] {
  width: 1.2em; height: 1.2em;
  accent-color: var(--secondary-light);
}
.cookie-modal .modal-buttons {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
.cookie-modal .modal-close {
  background: var(--secondary);
  color: var(--white);
  font-size: 1.3rem;
  border: none;
  border-radius: 7px;
  align-self: flex-end;
  padding: 2px 13px;
  margin-bottom: 6px;
  box-shadow: 0 1px 6px var(--shadow-medium);
}
.cookie-modal .modal-close:focus {
  outline: 2px solid var(--primary-light);
  background: var(--primary);
}

/* Hide cookie elements when closed */
.cookie-banner[aria-hidden='true'], .cookie-modal[aria-hidden='true'] {
  display: none !important;
}

/* ===============
   ACCESSIBILITY FOCUS
   =============== */
a, button, input, select, textarea, .cta, .main-cta {
  outline-color: var(--secondary-light);
  outline-width: 2px;
}
a:focus, .main-cta:focus {
  outline: 2px solid var(--secondary-light);
  outline-offset: 2px;
}

/* ===============
   SHADOWS & EFFECTS
   =============== */
.card, .feature, .testimonial-card, .cta, .about-preview, .map, .contact, .services, .services-preview {
  box-shadow: 0 2px 16px var(--shadow);
}

/* ===============
   CUSTOM SCROLLBARS
   =============== */
::-webkit-scrollbar {
  width: 11px;
  background: var(--accent);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb {
  background: var(--pastel-blue);
  border-radius: 10px;
}

/* ===============
   PRINT FRIENDLY
   =============== */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal {
    display: none !important;
  }
  .container, main, section {
    padding: 0 !important;
    margin: 0 !important;
  }
}
