/* ---------------- CSS RESET & NORMALIZE ---------------- */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, figcaption, blockquote, dl, dd {
  margin: 0;
  padding: 0;
  font-weight: inherit;
}
ul, ol {
  list-style-position: outside;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
button, input, select, textarea {
  font: inherit;
}

/* ---------------- ROOT VARIABLES ---------------- */
:root {
  --primary: #1a1a1a;
  --primary-light: #232323;
  --on-primary: #fff;
  --secondary: #fff;
  --gray-100: #f5f5f5;
  --gray-200: #e4e4e7;
  --gray-300: #cccccc;
  --gray-400: #bababa;
  --gray-500: #7a7a7a;
  --gray-600: #454545;
  --accent: #137846;
  --brand-main: #185C37;
  --radius: 12px;
  --shadow-light: 0 2px 12px rgba(0,0,0,.06);
  --shadow-medium: 0 4px 16px rgba(0,0,0,.11);
  --transition: 0.24s cubic-bezier(.4,0,.2,1);

  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
}

/* ---------------- BODY & TYPOGRAPHY ---------------- */
body {
  font-family: var(--font-body);
  color: var(--primary);
  background: var(--secondary);
  font-size: 16px;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}

h1 {
  font-size: 2.75rem;
  line-height: 1.13;
}
h2 {
  font-size: 2rem;
  line-height: 1.21;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 16px;
}
.subtitle {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--gray-600);
  margin-bottom: 28px;
  max-width: 36rem;
}

p, ul, ol, li {
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--primary);
}
p:not(:last-child) {
  margin-bottom: 16px;
}
li {
  margin-bottom: 12px;
}
strong {
  font-weight: 700;
}

/* ---------------- LAYOUT CONTAINERS ---------------- */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.text-section {
  max-width: 720px;
}

/* Flex pattern helpers */
.card-container,
.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--secondary);
  border-radius: var(--radius);
  box-shadow: var(--shadow-light);
  margin-bottom: 20px;
  position: relative;
  padding: 28px 20px;
  min-width: 250px;
  flex: 1 1 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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  margin-bottom: 24px;
  background: var(--gray-100);
  border-radius: var(--radius);
  box-shadow: var(--shadow-light);
  transition: box-shadow var(--transition);
  border: 1px solid var(--gray-200);
}
.testimonial-card:hover {
  box-shadow: var(--shadow-medium);
  background: #fff;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --------------- HEADER & NAVIGATION --------------- */
header {
  width: 100%;
  background: var(--secondary);
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  position: sticky;
  top: 0;
  z-index: 80;
  min-height: 72px;
}
header .container {
  min-height: 72px;
}
header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  height: 54px;
  margin-right: 24px;
}
.logo img {
  height: 36px;
  width: auto;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: var(--primary);
  padding: 6px 4px;
  position: relative;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--gray-100);
  color: var(--accent);
}
.cta-btn {
  display: inline-block;
  border: none;
  border-radius: var(--radius);
  background: #fff;
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 1.08rem;
  padding: 12px 30px;
  margin-left: 32px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-light);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
  outline: none;
  letter-spacing: 0.02em;
}
.cta-btn:hover,
.cta-btn:focus {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px) scale(1.05);
  box-shadow: var(--shadow-medium);
}

/* --------------- MOBILE NAVIGATION --------------- */
.mobile-menu-toggle {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 2rem;
  cursor: pointer;
  padding: 6px 10px;
  margin-left: 24px;
  z-index: 101;
  display: none;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
}
.mobile-menu-toggle:hover {
  background: var(--gray-200);
  color: var(--accent);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(25, 25, 25, 0.97);
  transform: translateX(100%);
  transition: transform 0.33s cubic-bezier(.4,0,.2,1);
  z-index: 110;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 36px 24px;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  align-self: flex-end;
  margin-bottom: 36px;
  cursor: pointer;
  padding: 6px 14px;
  border-radius: 6px;
  transition: background var(--transition);
}
.mobile-menu-close:hover {
  background: var(--accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}
.mobile-nav a {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.4rem;
  padding: 12px 0;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
}
.mobile-nav a:hover {
  background: var(--accent);
  color: #fff;
}

/* Hide desktop nav, show burger on mobile */
@media (max-width: 980px) {
  .main-nav {
    display: none;
  }
  .cta-btn {
    margin-left: auto;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}

@media (max-width: 720px) {
  header .container {
    padding: 0 10px;
  }
}

/* --------------- HERO/GENERIC SECTIONS --------------- */
section {
  margin-bottom: 60px;
  padding: 40px 0;
  background: none;
}
section:nth-child(odd) {
  background: var(--gray-100);
}

/* -------------- FEATURE GRID & FEATURE LIST -------------- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: flex-start;
  margin: 0;
  list-style: none;
}
.feature-grid li {
  flex: 1 1 200px;
  min-width: 220px;
  max-width: 330px;
  background: var(--secondary);
  border-radius: var(--radius);
  box-shadow: var(--shadow-light);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.feature-grid li:hover {
  box-shadow: var(--shadow-medium);
  transform: translateY(-2px) scale(1.02);
}
.feature-grid img {
  height: 38px;
  width: 38px;
  object-fit: contain;
  margin-bottom: 10px;
}

/* --------------- SERVICE LIST --------------- */
.service-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 18px 0 28px 0;
}
.service-list li {
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-light);
  font-size: 1.08rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.service-list .price {
  font-weight: bold;
  color: var(--accent);
  margin-top: 6px;
  font-size: 1.08rem;
}

/* --------------- TESTIMONIALS --------------- */
blockquote {
  font-size: 1.17rem;
  line-height: 1.5;
  color: var(--primary);
  font-family: var(--font-display);
  font-style: italic;
  margin-bottom: 10px;
  quotes: '“' '”' '‘' '’';
}
blockquote:before {
  content: open-quote;
  font-size: 2.2rem;
  color: var(--accent);
  vertical-align: bottom;
  margin-right: 8px;
}
blockquote:after {
  content: close-quote;
  margin-left: 8px;
}
.testimonial-card p {
  font-size: 1rem;
  color: var(--gray-600);
}
.testimonial-card strong {
  color: var(--primary);
}

/* -------------- BLOG TEASERS & FEATURED -------------- */
.blog-teaser {
  background: var(--secondary);
  border-radius: var(--radius);
  box-shadow: var(--shadow-light);
  margin-bottom: 24px;
  padding: 24px 18px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.blog-teaser h2 {
  font-size: 1.36rem;
  margin-bottom: 12px;
}
.featured-post {
  background: var(--gray-100);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px 18px;
  margin-bottom: 24px;
}

.blog-categories {
  margin: 32px 0 8px 0;
  background: var(--secondary);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-light);
}
.blog-categories h3 {
  margin-bottom: 12px;
  font-size: 1.04rem;
  color: var(--gray-600);
}
.blog-categories ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  list-style: none;
}
.blog-categories li {
  color: var(--primary);
  background: var(--gray-100);
  border-radius: 14px;
  padding: 4px 14px;
  font-size: 0.98rem;
}

/* ----------------- BUTTONS & LINKS ------------------- */
button, .cta-btn, input[type="submit"] {
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
  outline: none;
}
input[type="submit"]:hover, button:hover, .cta-btn:hover {
  box-shadow: var(--shadow-medium);
}
a {
  transition: color var(--transition), text-decoration var(--transition);
}
a:hover, a:focus {
  color: var(--accent);
  text-decoration: underline;
}

/* --------------- FOOTER --------------- */
footer {
  margin-top: 60px;
  background: var(--gray-100);
  padding: 32px 0 0 0;
  border-top: 1px solid var(--gray-200);
}
footer .container {
  padding-bottom: 22px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}
footer .logo {
  margin-right: 30px;
}
footer img {
  height: 38px;
  width: auto;
}
.footer-nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
.footer-nav a {
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 1rem;
  padding: 3px 6px;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
}
.footer-nav a:hover {
  background: var(--gray-300);
  color: var(--accent);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.98rem;
  color: var(--gray-600);
  margin-top: 12px;
}
.footer-contact a {
  color: var(--primary);
  text-decoration: underline;
  transition: color var(--transition);
}
.footer-contact a:hover {
  color: var(--accent);
}

/* --------------- COOKIE CONSENT BANNER ---------------- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 120;
  background: rgba(32,32,32,0.97);
  color: #fff;
  font-size: 1rem;
  padding: 18px 18px 16px 18px;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0;
  transform: translateY(120%);
  pointer-events: none;
  transition: transform 0.35s var(--transition), opacity 0.3s var(--transition);
}
.cookie-banner.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.cookie-banner-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.cookie-banner-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 8px;
}
.cookie-btn {
  border: none;
  background: var(--secondary);
  color: var(--primary);
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: 1rem;
  padding: 9px 22px;
  margin-right: 10px;
  font-weight: 600;
  box-shadow: var(--shadow-light);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-medium);
}
.cookie-btn.secondary {
  background: #333;
  color: #fff;
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(15,15,15,0.8);
  z-index: 130;
  align-items: center;
  justify-content: center;
}
.cookie-modal-overlay.show {
  display: flex;
}
.cookie-modal {
  background: #fff;
  color: var(--primary);
  border-radius: var(--radius);
  box-shadow: var(--shadow-medium);
  max-width: 98vw;
  width: 400px;
  padding: 30px 24px 24px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: modalIn .44s cubic-bezier(.45,1.2,.65,1.01);
}
@keyframes modalIn {
  0% { opacity: 0; transform: translateY(50px) scale(0.93); }
  100% { opacity: 1; transform: none; }
}
.cookie-modal h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.cookie-modal input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
}
.cookie-modal .cookie-category.essential label {
  color: var(--gray-500);
  font-style: italic;
}
.cookie-modal-close {
  position: absolute;
  top: 12px; right: 16px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--gray-500);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background var(--transition);
}
.cookie-modal-close:hover {
  color: var(--accent);
  background: var(--gray-200);
}
.cookie-modal-actions {
  margin-top: 10px;
  display: flex;
  gap: 16px;
}

/* -------------- MISC DECORATIVE & MICRO-INTERACTIONS -------------- */
.section, .card, .testimonial-card, .feature-grid li, .service-list li, .blog-teaser, .featured-post, .cookie-modal {
  transition: box-shadow var(--transition), background var(--transition), transform var(--transition);
}
::-webkit-scrollbar {
  background: var(--gray-200);
  width: 9px;
}
::-webkit-scrollbar-thumb {
  background: var(--gray-400);
  border-radius: 10px;
}

/* ------------- SPACING AND RESPONSIVE RULES ------------- */
@media (max-width: 1024px) {
  .container {
    max-width: 96vw;
  }
  .feature-grid, .card-container, .card-grid, .content-grid {
    gap: 16px;
  }
  .content-wrapper {
    gap: 20px;
  }
}
@media (max-width: 860px) {
  .footer-nav {
    flex-wrap: wrap;
    gap: 12px;
  }
  footer .content-wrapper {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
}
@media (max-width: 720px) {
  .section {
    margin-bottom: 38px;
    padding: 22px 4px;
  }
  .content-wrapper {
    gap: 14px;
  }
  .feature-grid, .card-container, .card-grid, .content-grid {
    gap: 8px;
  }
  .feature-grid li, .card {
    min-width: 95vw;
    max-width: 97vw;
    padding: 20px 8px;
  }
  .testimonial-card, .service-list li {
    padding: 14px 10px;
  }
  .blog-teaser {
    padding: 17px 6px 10px 6px;
  }
  .featured-post {
    padding: 12px 5px;
  }
  h1 {
    font-size: 1.75rem;
  }
  h2 {
    font-size: 1.29rem;
  }
  .logo img {
    height: 28px;
  }
  .text-image-section, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .container {
    padding: 0 7px;
  }
  .footer-contact {
    font-size: 0.92rem;
    gap: 2px;
  }
}

/* ------------- VISUAL HIERARCHY & CONTRAST ------------- */
.section:nth-child(odd) {
  background: #fff;
}
.text-section {
  background: none;
}
.testimonial-card {
  background: #fff;
  color: #181818;
  border: 1px solid var(--gray-200);
}
.testimonial-card blockquote,
.testimonial-card p {
  color: #181818;
}

/* ------------- ACCESSIBILITY & INTERACTIONS ------------- */
:focus {
  outline: 2px dashed var(--accent);
  outline-offset: 2px;
}

/* Hide hamburger/close button when menu is open/closed (for accessibility, managed by JS) */
.mobile-menu[aria-hidden='true'] {
  display: none !important;
}

/* -------------- UTILITY CLASSES -------------- */
.hidden {
  display: none !important;
}

/* ---------------- END OF STYLE.CSS ---------------- */
