/* ===== 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, 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;
    outline: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
    box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  color: #143249;
  background: #fff;
  line-height: 1.6;
  font-size: 1rem;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

ul, ol {
  list-style: none;
}

a {
  color: #277642;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover, a:focus {
  color: #143249;
}

button {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

/* ===== Brand Variables ===== */
:root {
  --primary: #277642;
  --secondary: #143249;
  --accent: #EAFAD0;
  --gray: #F7F8FA;
  --text: #143249;
  --muted: #8EA5B5;
  --radius: 12px;
  --shadow: 0 2px 16px rgba(20, 50, 73, 0.06);
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

body, html {
  background: #fff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* ===== Typography ===== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--secondary);
  letter-spacing: -0.02em;
}
h1 {
  font-size: 2.25rem;
  margin-bottom: 24px;
  line-height: 1.18;
}
h2 {
  font-size: 1.5rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.125rem;
  margin-bottom: 12px;
}
p {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.6;
}
strong, b {
  font-weight: 600;
}
ul li, ol li {
  padding-left: 0;
  margin-bottom: 8px;
}

.content-wrapper {
  width: 100%;
}

/* ===== Header & Navigation ===== */
header {
  background: #fff;
  box-shadow: 0 2px 12px rgba(20, 50, 73, 0.04);
  position: relative;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.logo img {
  height: 38px;
  width: auto;
  display: block;
}
header nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
header nav a {
  font-family: var(--font-body);
  color: var(--text);
  font-size: 1rem;
  padding: 6px 4px;
  border-radius: var(--radius);
  transition: background 0.18s, color 0.18s;
  text-align: center;
}
header nav a:hover, header nav a:focus {
  background: var(--accent);
  color: var(--primary);
}
.cta.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  background: var(--primary);
  color: #fff !important;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 24px;
  box-shadow: var(--shadow);
  cursor: pointer;
  text-align: center;
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
  outline: none;
  border: none;
}
.cta.primary:hover, .cta.primary:focus {
  background: var(--secondary);
  color: #fff !important;
  box-shadow: 0 4px 20px rgba(39,118,66,.15);
}
.cta.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--primary);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  padding: 10px 20px;
  box-shadow: none;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  outline: none;
  border: none;
}
.cta.secondary:hover, .cta.secondary:focus {
  background: var(--primary);
  color: #fff;
}

.mobile-menu-toggle {
  background: transparent;
  color: var(--secondary);
  font-size: 2rem;
  display: none;
  border: none;
  margin-left: 18px;
  z-index: 1301;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 50%;
  transition: background 0.2s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--accent);
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255,255,255,0.97);
  box-shadow: 0 8px 36px rgba(20,50,73,.14);
  z-index: 1300;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.36s cubic-bezier(.78,0,.22,1);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2rem;
  background: transparent;
  color: var(--secondary);
  margin: 18px 28px 10px 0;
  border-radius: 50%;
  transition: background 0.2s;
  padding: 8px;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
}
.mobile-nav a {
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 500;
  padding: 12px 0;
  border-radius: var(--radius);
  width: 100%;
  text-align: center;
  transition: background 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--accent);
  color: var(--primary);
}

/* Responsive Nav */
@media (max-width: 1020px) {
  header nav {
    gap: 14px;
  }
}
@media (max-width: 900px) {
  header .cta.primary {
    display: none;
  }
}
@media (max-width: 850px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (max-width: 850px) {
  .mobile-menu {
    display: flex;
  }
}

/* ===== Main Content & Sections ===== */
.section, main section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
.hero {
  background: var(--accent);
  margin-bottom: 60px;
  padding: 50px 0 50px 0;
}
.hero h1 {
  color: var(--primary);
  font-size: 2.7rem;
}
.hero p {
  color: var(--secondary);
  font-size: 1.125rem;
  margin-bottom: 28px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

/* ===== Flexible Grids with Flexbox ===== */
.feature-grid, .product-grid, .guide-list, .blog-previews, .post-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-top: 24px;
}
.feature-grid > div, .product-grid > div, .guide-list > div, .blog-previews > div, .post-grid > div {
  flex: 1 1 260px;
  min-width: 260px;
  background: #fff;
  border-radius: var(--radius);
  padding: 24px 18px 24px 18px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  transition: box-shadow 0.24s, transform 0.16s;
}
.feature-grid > div:hover, .product-grid > div:hover, .guide-list > div:hover, .blog-previews > div:hover, .post-grid > div:hover {
  box-shadow: 0 4px 30px rgba(20,50,73,0.10);
  transform: translateY(-4px);
}

/* Blog/Post Grid tweaks for home & blog pages */
.blog-previews > div, .post-grid > div {
  padding: 22px 14px 22px 14px;
}

/* ===== Testimonials ===== */
.testimonials-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 30px;
  justify-content: flex-start;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 24px 30px;
  background: #fff;
  border-radius: var(--radius);
  margin-bottom: 20px;
  box-shadow: 0 4px 26px rgba(39,118,66,0.09);
  max-width: 370px;
  min-width: 230px;
  border-left: 4px solid var(--primary);
  font-size: 1.03rem;
}
.testimonial-text {
  color: var(--secondary);
  font-size: 1.09rem;
  font-family: var(--font-display);
}
.testimonial-meta {
  font-size: .97rem;
  color: var(--muted);
  font-family: var(--font-body);
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* ===== Tables (Tips, Comparison) ===== */
.tips-table, .comparison-table {
  width: 100%;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-top: 18px;
  margin-bottom: 24px;
  border-collapse: separate;
  border-spacing: 0;
}
.tips-table td, .comparison-table td, .comparison-table th {
  padding: 18px 10px;
  text-align: left;
  font-size: 1rem;
  color: var(--secondary);
  vertical-align: middle;
  border-bottom: 1px solid #e9edf2;
}
.tips-table img {
  width: 32px;
  margin-bottom: 4px;
  vertical-align: middle;
}
.comparison-table th {
  background: var(--accent);
  color: var(--primary);
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 1.01rem;
}
.comparison-table tr:last-child td {
  border-bottom: none;
}

/* ===== FAQ ===== */
.faq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
}
.faq-item {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 20px;
  flex: 1 1 300px;
  min-width: 240px;
  margin-bottom: 20px;
  transition: box-shadow 0.22s, transform 0.12s;
}
.faq-item h3 {
  font-size: 1.07rem;
  font-family: var(--font-display);
}
.faq-item:hover, .faq-item:focus {
  box-shadow: 0 6px 28px rgba(20,50,73,0.11);
  transform: translateY(-2px);
}

/* ===== Contact Info ===== */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 32px;
}
.contact-info p {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.06rem;
  color: var(--text);
  margin-bottom: 0;
}
.contact-info img {
  height: 22px;
  width: 22px;
  opacity: 0.65;
}

/* ===== CTA Section ===== */
.cta-section {
  background: var(--accent);
  text-align: center;
  margin-bottom: 0;
  padding: 38px 0;
}
.cta-section h2 {
  color: var(--primary);
  margin-bottom: 26px;
  font-size: 1.65rem;
}
.cta-section .cta.primary {
  margin-top: 9px;
}

/* ===== Thanks Section ===== */
.thanks-section {
  text-align: center;
  padding: 70px 20px;
}
.thanks-section h1 {
  font-size: 2.25rem;
  color: var(--primary);
}
.thanks-section p {
  color: var(--secondary);
  font-size: 1.12rem;
}

/* ===== Footer ===== */
footer {
  background: #fff;
  border-top: 1px solid #f2f4f7;
  margin-top: 80px;
  padding: 40px 0 28px 0;
  font-size: 1rem;
  color: var(--muted);
}
.footer-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-logo img {
  height: 38px;
  margin-bottom: 20px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
footer nav a {
  color: var(--primary);
  font-family: var(--font-body);
  font-size: .99rem;
  margin-bottom: 0;
  transition: color 0.2s;
}
footer nav a:hover, footer nav a:focus {
  color: var(--secondary);
}
.footer-contact {
  min-width: 200px;
}
.footer-contact p {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: .97rem;
}
.footer-social {
  display: flex;
  gap: 18px;
  margin-top: 8px;
}
.footer-social a img {
  width: 28px; height: 28px;
  transition: opacity 0.2s;
}
.footer-social a:hover img, .footer-social a:focus img {
  opacity: 0.75;
}

/* ===== Cookie Consent Banner ===== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  background: #fff;
  color: var(--text);
  box-shadow: 0 -2px 16px rgba(20,50,73,0.07);
  z-index: 1500;
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  padding: 24px 18px;
  font-size: 1rem;
  border-top: 1px solid #eafad0;
  animation: cookie-slide-in 0.38s cubic-bezier(.82,0,.18,1);
}
@keyframes cookie-slide-in {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-text {
  flex: 1 1 180px;
  min-width: 180px;
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.cookie-banner button, .cookie-banner a {
  border-radius: 6px;
  border: none;
  font-family: var(--font-display);
  font-size: .97rem;
  font-weight: 500;
  outline: none;
  transition: background 0.20s, color 0.20s, box-shadow 0.18s;
}
.cookie-banner .accept-cookies {
  background: var(--primary);
  color: #fff;
  padding: 8px 22px;
}
.cookie-banner .accept-cookies:hover {
  background: var(--secondary);
}
.cookie-banner .reject-cookies {
  background: var(--accent);
  color: var(--primary);
  padding: 8px 18px;
}
.cookie-banner .reject-cookies:hover {
  background: #f2f4f7;
}
.cookie-banner .cookie-settings {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--accent);
  padding: 8px 17px;
}
.cookie-banner .cookie-settings:hover, .cookie-banner .cookie-settings:focus {
  background: var(--accent);
  color: var(--primary);
}

.cookie-modal-overlay {
  position: fixed;
  z-index: 1550;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(20,50,73,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInBg 0.21s ease;
}
@keyframes fadeInBg {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  min-width: 320px;
  max-width: 95vw;
  padding: 30px 22px 20px 22px;
  border-radius: var(--radius);
  box-shadow: 0 8px 42px rgba(20,50,73,0.13);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  animation: cookieModalIn 0.25s cubic-bezier(.87,0,.13,1);
}
@keyframes cookieModalIn {
 from { transform: translateY(60px) scale(0.98); opacity: 0; }
 to { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal h3 {
  color: var(--secondary);
  font-size: 1.20rem;
  margin-bottom: 7px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: .99rem;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--primary);
  width: 18px; height: 18px;
  margin-right: 2px;
}
.cookie-category.disabled input[type="checkbox"] {
  accent-color: #bbb;
}
.cookie-modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 13px;
}
.cookie-modal .close-cookie-modal {
  position: absolute; top: 18px; right: 16px;
  font-size: 1.7rem;
  color: var(--muted);
  background: none;
  border: none;
  border-radius: 50%;
  height: 32px; width: 32px;
  display: flex;
  align-items: center; justify-content: center;
  transition: background 0.18s;
}
.cookie-modal .close-cookie-modal:hover, .cookie-modal .close-cookie-modal:focus {
  background: var(--accent);
}

/* ===== Utility Flex Patterns ===== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 18px;
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ===== White space, consistent padding/margins ===== */
section, .section {
  margin-bottom: 60px !important;
  padding: 40px 20px;
}
.card, .testimonial-card, .faq-item, .blog-previews > div, .post-grid > div, .feature-grid > div, .product-grid > div {
  margin-bottom: 20px !important;
}

/* ===== Media Queries: Responsive Design ===== */
@media (max-width: 1000px) {
  .container {
    max-width: 96vw;
  }
  .footer-wrapper {
    gap: 30px;
  }
  .feature-grid, .product-grid, .guide-list, .blog-previews, .post-grid, .testimonials-list {
    gap: 18px;
  }
}
@media (max-width: 800px) {
  .feature-grid > div, .product-grid > div, .guide-list > div, .blog-previews > div, .post-grid > div, .faq-item, .testimonial-card {
    min-width: 180px;
    flex: 1 1 100%;
  }
  .footer-wrapper {
    flex-wrap: wrap;
    gap: 22px;
  }
}
@media (max-width: 768px) {
  h1 {
    font-size: 1.85rem;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .container {
    padding: 0 8px;
  }
  .feature-grid, .product-grid, .guide-list, .blog-previews, .post-grid, .testimonials-list, .faq-list {
    flex-direction: column !important;
    gap: 16px;
  }
  .feature-grid > div, .product-grid > div, .guide-list > div, .blog-previews > div, .post-grid > div, .faq-item, .testimonial-card {
    min-width: 90vw;
    flex: 1 1 99%;
    padding: 20px 11px;
  }
  section, .section, .hero {
    margin-bottom: 38px !important;
    padding: 22px 5px !important;
  }
  .text-image-section {
    flex-direction: column;
    gap: 13px;
  }
  .footer-wrapper {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 3px;
  }
}
@media (max-width: 425px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    font-size: 0.98rem;
    padding: 14px 6px;
  }
  .cookie-banner .cookie-buttons {
    flex-direction: column;
    gap: 7px;
    align-items: stretch;
  }
  .cookie-modal {
    min-width: 98vw;
    padding: 16px 4px 12px 6px;
  }
}
@media (max-width: 340px) {
  .footer-social a img {
    width: 22px; height: 22px;
  }
  .logo img, .footer-logo img {
    height: 26px;
  }
}

/* ===== Microinteractions & Transitions ===== */
.card, .faq-item, .testimonial-card, .footer-logo img {
  transition: box-shadow 0.22s, transform 0.12s;
}
.card:hover, .faq-item:hover, .testimonial-card:hover {
  box-shadow: 0 6px 30px rgba(20,50,73,0.14);
  transform: translateY(-2px);
}

/* ===== Misc ===== */
ul, ol {
  margin-left: 1.2em;
  margin-bottom: 16px;
}
ul li, ol li {
  list-style: disc;
}
strong {
  color: var(--primary);
  font-weight: 600;
}

/* ===== Accessibility ===== */
:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ===== Hide mobile menu by default (shown via JS or menu-open class) ===== */
.mobile-menu {
  display: none;
}
@media (max-width: 850px) {
  .mobile-menu {
    display: flex;
  }
}

/* ===== Hide Cookie Modal Overlay by Default - shown via .show ===== */
.cookie-modal-overlay {
  display: none !important;
}
.cookie-modal-overlay.show {
  display: flex !important;
}
