/* ==== CSS RESET & NORMALIZE ==== */
html {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  background: #F4FAF7;
  color: #332e29;
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.65;
  font-size: 1rem;
  min-height: 100vh;
}
img {
  max-width: 100%;
  display: block;
  border-radius: 16px;
}
a {
  color: #2271B3;
  text-decoration: none;
  transition: color .2s;
}
a:hover, a:focus {
  color: #1A5E3D;
  text-decoration: underline;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #1A5E3D;
  margin-bottom: 16px;
  line-height: 1.2;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem;  margin-bottom: 20px; }
h3 { font-size: 1.375rem; margin-bottom: 14px; }
h4, h5, h6 { font-size: 1.125rem; }

p, ul, ol, blockquote {
  margin-bottom: 1.1em;
}
ul, ol {
  padding-left: 1.4em;
}
li {
  margin-bottom: 8px;
}
blockquote {
  font-style: italic;
  color: #453b27;
  border-left: 4px solid #FFD290;
  margin: 0;
  padding-left: 16px;
  background: #fff9ed;
  border-radius: 14px;
}
strong {
  font-weight: 700;
}
table {
  border-collapse: collapse;
  width: 100%;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 3px 18px rgba(50,25,0,0.06);
  margin: 22px 0;
}
th, td {
  padding: 16px 14px;
  border-bottom: 1px solid #E6E1DB;
  text-align: left;
}
th {
  background: #fbeed9;
  color: #1A5E3D;
  font-weight: 700;
}
tr:last-child td {
  border-bottom: none;
}
main {
  word-break: break-word;
}

/* ==== BRAND COLORS ==== */
:root {
  --color-primary: #1A5E3D;
  --color-secondary: #2271B3;
  --color-accent: #F4FAF7;
  --color-warm1: #FFD290;
  --color-warm2: #FFF8EC;
  --color-btn-hover: #1C7048;
  --color-btn-alt: #FFD290;
  --color-danger: #BB3333;
  --color-bg-card: #FFF;
  --color-border: #E6E1DB;
  --color-shadow: 0 2px 10px rgba(200,160,80,0.09);
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

/* ==== LAYOUT: CONTAINERS & FLEX ==== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
}
.header-flex {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
  min-height: 72px;
  padding: 22px 0 14px 0;
}
.footer-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 26px;
  justify-content: space-between;
  border-top: 1px solid var(--color-border);
  padding: 32px 0 24px 0;
}
.footer-flex nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.98em;
  color: #4e4736;
}

/* ==== SECTIONS AND SPACING (CRITICAL) ==== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.content-wrapper {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-bg-card);
  border-radius: 18px;
  margin-bottom: 20px;
  box-shadow: var(--color-shadow);
  padding: 26px 24px;
  position: relative;
  transition: box-shadow .18s;
}
.card:hover {
  box-shadow: 0 8px 26px rgba(200,160,80,0.12);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.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-radius: 16px;
  box-shadow: 0 2px 12px rgba(230,180,90,0.11);
  margin-bottom: 20px;
  color: #2C2518;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--color-bg-card);
  border-radius: 18px;
  box-shadow: var(--color-shadow);
  padding: 18px 18px 16px 18px;
}

/* ==== HERO SECTION ==== */
.hero {
  background: linear-gradient(110deg,#FFD290 18%, #F4FAF7 100%);
  padding: 54px 0 72px 0;
  border-bottom-left-radius: 60px;
  border-bottom-right-radius: 60px;
  box-shadow: 0 3px 16px rgba(230,196,120,0.14);
}
.hero h1 {
  font-size: 2.2rem;
  margin-bottom: 18px;
  color: #1A5E3D;
}
.hero p {
  font-size: 1.16em;
  color: #2C2518;
  margin-bottom: 22px;
}

/* ==== FEATURES (GRID STYLE) ==== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-bottom: 24px;
}
.feature-grid > div {
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 300px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 1.5px 10px rgba(200,160,80,0.09);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: box-shadow .18s, transform .13s;
}
.feature-grid > div:hover {
  box-shadow: 0 6px 20px rgba(200,160,80,0.16);
  transform: translateY(-4px) scale(1.025);
}
.feature-grid img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  margin-bottom: 2px;
  background: #fff8ec;
}

/* ==== FAQ, PRICING TABLE ==== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 28px 0;
}
.faq-list > div {
  background: #FFF8EC;
  border-radius: 13px;
  padding: 19px 16px 12px 18px;
  box-shadow: 0 2px 9px rgba(200,160,80,0.07);
}

.pricing-table tbody tr:nth-child(odd) {
  background: #FFF8EC;
}
.pricing-table tbody tr:hover {
  background: #FFEDC2;
}

/* ==== CONTACT DETAILS ==== */
.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.contact-details > div {
  flex: 1 1 220px;
  min-width: 200px;
  background: #fff9ed;
  border-radius: 16px;
  box-shadow: 0 2px 9px rgba(200,160,80,0.07);
  padding: 16px 14px;
  display: flex;
  gap: 8px;
  align-items: flex-start; 
  flex-direction: column;
  color: #332e29;
  font-size: 1em;
}
.contact-details img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  margin-top: 2px;
  margin-right: 8px;
}

.map-placeholder {
  border: 2px dashed #FFD290 !important;
  border-radius: 18px !important;
  font-size: 1.09em;
  color: #A58020;
  font-family: 'Montserrat', Arial, sans-serif;
}

/* ==== CTA (BUTTONS & LINKS) ==== */
.cta {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.13em;
  background: var(--color-btn-alt);
  color: var(--color-primary);
  border: none;
  border-radius: 30px;
  padding: 13px 34px;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 8px rgba(220,175,90,0.13);
  cursor: pointer;
  transition: background .18s, color .16s, box-shadow .13s, transform .15s;
  margin-top: 18px;
}
.cta.primary {
  background: var(--color-primary) !important;
  color: #fff;
}
.cta:hover,
.cta:focus {
  background: var(--color-btn-hover);
  color: #fff;
  box-shadow: 0 5px 22px rgba(120,90,40,0.12);
  transform: translateY(-2px) scale(1.04);
  text-decoration: none;
}

/* ==== NAVIGATION ==== */
.desktop-nav {
  display: flex;
  gap: 18px;
  align-items: center;
}
.desktop-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--color-primary);
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 8px;
  transition: background .18s, color .12s;
}
.desktop-nav a:hover, .desktop-nav a:focus {
  background: #FFD290;
  color: #1A5E3D;
}

.mobile-menu-toggle {
  background: #FFD290;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  color: #1A5E3D;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 8px;
  box-shadow: 0 2px 10px rgba(220,175,90,0.12);
  transition: background .13s, transform .13s;
}
.mobile-menu-toggle:active {
  background: #FFEDC2;
  transform: scale(0.95);
}

.mobile-menu {
  position: fixed;
  z-index: 2000;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: 0 8px 36px rgba(120,90,40,0.22);
  transform: translateX(-102vw);
  transition: transform .38s cubic-bezier(.61,0,.48,1);
  display: flex;
  flex-direction: column;
  padding: 0;
  justify-content: flex-start;
  align-items: flex-start;
}
.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu-close {
  background: #FFD290;
  color: #1A5E3D;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 999;
  cursor: pointer;
  box-shadow: 0 2px 9px rgba(200,150,70,0.11);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #FFF0CE;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 80px;
  gap: 0;
  padding: 18px 40px 0 38px;
}
.mobile-nav a {
  color: #1A5E3D;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.24em;
  font-weight: 600;
  padding: 18px 0 16px 0;
  border-bottom: 1px solid #FFD290;
  text-align: left;
  text-decoration: none;
  transition: background .15s, color .13s;
  border-radius: 0 14px 14px 0;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #FFF0CE;
  color: #2271B3;
  outline: none;
}

/* Hide desktop nav & show burger on small screens */
@media (max-width: 980px) {
  .desktop-nav {
    display: none;
  }
}
@media (min-width:981px) {
  .mobile-menu-toggle {
    display: none !important;
  }
  .mobile-menu {
    display: none !important;
  }
}

/* ==== FOOTER ==== */
footer {
  background: #fff9ed;
  color: #392F18;
  font-size: 1.02em;
}
footer a {
  color: #1A5E3D;
  font-family: 'Montserrat', Arial, sans-serif;
}
footer a:hover {
  color: #2271B3;
}
footer .footer-flex {
  border-top: 1.5px solid #FFD290;
}
footer img {
  width: 44px;
  height: 44px;
  vertical-align: middle;
  margin-bottom: 0;
  border-radius: 12px;
  background: #fff;
}

/* ==== COOKIE BANNER & POPUP ==== */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 12000;
  width: 100vw;
  background: #1A5E3D;
  color: #fff;
  box-shadow: 0 -3px 24px rgba(44,34,10,0.16);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px 12px 18px 18px;
  gap: 26px;
  font-size: 1em;
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
}
.cookie-banner p {
  margin: 0 0 0 0;
  font-size: 1.04em;
  font-family: 'Roboto', Arial, sans-serif;
  color: #fff;
  max-width: 560px;
}
.cookie-banner button {
  margin-left: 12px;
}

.cookie-btn {
  background: #FFD290;
  color: var(--color-primary);
  border: none;
  border-radius: 20px;
  padding: 10px 18px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1em;
  margin-left: 0;
  margin-right: 10px;
  transition: background .18s, color .12s, box-shadow .13s;
  cursor: pointer;
  box-shadow: 0 1.5px 7px rgba(220,175,90,0.13);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #FFEDC2;
  color: #1A5E3D;
}
.cookie-btn.danger {
  background: #fff;
  color: var(--color-danger);
  border: 1.1px solid #ffd290;
}
.cookie-btn.danger:hover, .cookie-btn.danger:focus {
  background: #ffe0de;
  color: #a82121;
}

.cookie-settings-btn {
  background: #2271B3;
  color: #fff;
}
.cookie-settings-btn:hover, .cookie-settings-btn:focus {
  background: #1A5E3D;
  color: #FFD290;
}

/* Cookie modal */
.cookie-modal {
  position: fixed;
  z-index: 14000;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(35,24,18,0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity .24s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal-content {
  background: #fff;
  color: #282008;
  border-radius: 22px;
  min-width: 320px;
  max-width: 95vw;
  padding: 36px 30px 30px 30px;
  box-shadow: 0 8px 36px rgba(120,90,40,0.13);
  text-align: left;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.cookie-modal-content h2 {
  color: #1A5E3D;
  font-size: 1.35em;
  margin-bottom: 10px;
}
.cookie-modal-content .cookie-category {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: flex-start;
  margin-bottom: 10px;
}
.cookie-switch {
  appearance: none;
  width: 40px;
  height: 22px;
  background: #FFD290;
  border-radius: 32px;
  position: relative;
  outline: none;
  margin-right: 10px;
  transition: background .16s;
  cursor: pointer;
}
.cookie-switch:checked {
  background: #1A5E3D;
}
.cookie-switch::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  transition: left .18s;
}
.cookie-switch:checked::before {
  left: 22px;
  background: #FFD290;
}
.cookie-modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: #FFD290;
  border: none;
  color: #1A5E3D;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.3em;
  cursor: pointer;
  transition: background .12s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #FFEDC2;
}

.cookie-modal-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 14px;
}

/* ==== MICRO-INTERACTIONS & TRANSITIONS ==== */
.button, .cta, .cookie-btn {
  transition: background .15s, color .13s, box-shadow .13s, transform .14s;
}
.testimonial-card, .card, .feature-grid > div, .faq-list > div, .contact-details > div {
  transition: box-shadow .17s, transform .15s;
}

/* ==== TYPOGRAPHY SCALE ==== */
body, p, li, span {
  font-size: 1rem;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }
.cta, .button, .cookie-btn { font-size: 1.13em; }

/* ==== SPECIAL CLASSES ==== */
.tagline {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.09em;
  color: #2271B3;
  margin-bottom: 10px;
}

/* ==== SPACING GENERAL ==== */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container, .feature-grid, .content-grid, .contact-details {
  gap: 20px;
}
.card, .testimonial-card, .faq-list > div, .contact-details > div {
  margin-bottom: 20px;
}

/* ==== RESPONSIVENESS (MOBILE-FIRST) ==== */
@media (max-width: 980px) {
  .container {
    max-width: 95vw;
    padding: 0 8px;
  }
  .header-flex, .footer-flex {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .footer-contact {
    width: 100%;
  }
  .feature-grid,
  .card-container,
  .content-grid,
  .contact-details {
    flex-direction: column;
    gap: 18px;
  }
  .feature-grid > div, .card {
    max-width: 100%;
    min-width: 0;
  }
  .hero {
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
    padding: 36px 0 44px 0;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.47rem; }
  .section,
  section {
    padding: 28px 8px 32px 8px;
    margin-bottom: 34px;
  }
  .hero { padding: 24px 0 26px 0; }
  .content-wrapper { padding: 0 6px; }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .desktop-nav { display: none !important; }
  .footer-flex {
    flex-direction: column;
    gap: 14px;
  }
  .cookie-banner {
    padding: 12px 6px;
    flex-direction: column;
    align-items: flex-start;
    font-size: 0.95em;
    gap: 12px;
  }
  .mobile-nav {
    padding: 14px 16px 0 22px;
  }
  .cookie-modal-content {
    min-width: 90vw;
    padding: 24px 10px 18px 10px;
    font-size: 0.97em;
  }
}

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

/* ==== ACCESIBILITY/FOCUS ==== */
a:focus, button:focus, .cta:focus, .cookie-btn:focus {
  outline: 2px dashed #2271B3;
  outline-offset: 2px;
  background: #fff9ed;
}

/* ==== CUSTOM CLASSES (FOR JS TEMPLATES) ==== */
.mobile-menu {
  visibility: hidden;
}
.mobile-menu.open {
  visibility: visible;
}

/* ============= END STYLE.CSS ============= */
