/* ===== 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;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #fff;
  color: #181818;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  min-height: 100vh;
}
a { 
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}
ul, ol {
  list-style: none;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
button, input, select, textarea {
  font: inherit;
}

/* ===== CSS VARIABLES ===== */
:root {
  --brand-primary: #181818; /* Use deeper charcoal for more drama */
  --brand-secondary: #222222;
  --brand-accent: #F7F7F3;
  --brand-green: #1B3E1F;
  --brand-brown: #8F5522;
  --brand-white: #fff;
  --mono-lt: #F7F7F3;
  --mono-md: #E2E2E2;
  --mono-dr: #181818;
  --mono-mid: #323232;
  --button-bg: var(--brand-green);
  --button-text: #fff;
  --button-hover-bg: #181818;
  --link-hover: var(--brand-brown);
  --focus-outline: 2px solid #222;
  --border-card: #e2e2e2;
  --shadow: 0 3px 16px 0 rgba(0,0,0,0.11);
  --radius-sm: 10px;
  --radius-md: 20px;
  --radius-btn: 30px;
}

/* ===== TYPOGRAPHY ===== */
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: var(--mono-dr);
  font-size: 1.15rem;
  letter-spacing: 0.015em;
  background: var(--brand-accent);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: var(--brand-primary);
  line-height: 1.15;
}
h1 {
  font-size: 2.6rem;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
h2 {
  font-size: 2rem;
  margin-bottom: 24px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}
p, li {
  font-size: 1.075rem;
  color: var(--brand-primary);
}
p.lead {
  font-size: 1.25rem;
  color: var(--mono-mid);
  margin-bottom: 22px;
  font-weight: 500;
}
blockquote {
  border-left: 4px solid var(--brand-primary);
  padding-left: 18px;
  color: var(--brand-mid, #414141);
  font-style: italic;
  margin: 22px 0 22px 0;
}
strong {
  font-weight: 700;
}

/* ===== LAYOUT CONTAINERS ===== */
.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 18px;
  box-sizing: border-box;
}

.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.text-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--brand-accent);
  border-radius: var(--radius-md);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card {
  background: var(--mono-lt);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 32px 24px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.25s, border-color 0.25s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 32px 0 rgba(0,0,0,0.17);
  border-color: var(--brand-green);
  z-index: 2;
}

.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: 16px;
  padding: 20px 28px;
  background: #fff;
  color: #161616;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 14px 0 rgba(0,0,0,0.12);
  border: 1px solid #e5e5e5;
  min-width: 240px;
  min-height: 135px;
  font-size: 1rem;
  margin-bottom: 20px;
  transition: box-shadow 0.22s, border-color 0.22s;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 6px 30px rgba(50,50,50,0.17);
  border-color: var(--brand-brown);
}
.testimonial-card .client {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  color: var(--brand-brown);
  font-size: 1rem;
}

.feature-item, .feature-grid li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: 0 1.5px 8px rgba(0,0,0,0.08);
  padding: 26px 18px;
  min-width: 210px;
  margin-bottom: 20px;
  border: 1px solid #ececec;
  transition: box-shadow 0.22s, border-color 0.18s;
}
.feature-item:hover, .feature-grid li:hover {
  box-shadow: 0 8px 24px rgba(30,30,30,0.13);
  border-color: var(--brand-green);
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding: 0;
  justify-content: flex-start;
}
.feature-grid img {
  height: 48px;
  width: 48px;
  object-fit: contain;
}
.feature-grid h3 {
  color: var(--brand-green);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
}

.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.service-list li {
  background: #f7f7f7;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 24px 18px;
  min-width: 210px;
  margin-bottom: 20px;
  border: 1px solid #ececec;
  flex: 1 1 230px;
}

.service-cta {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.contact-details p, .price {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--brand-primary);
}

/* ===== HEADER ===== */
header {
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  box-shadow: 0 2px 10px rgba(24,24,24,0.03);
  z-index: 99;
  position: relative;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  height: 80px;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  height: 58px;
  margin-right: 20px;
}
.logo img {
  height: 40px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 22px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat',Arial,sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #222;
  padding: 6px 0;
  border-radius: 2px;
  transition: color 0.2s, background 0.18s;
  position: relative;
}
.main-nav a:hover,
.main-nav a:focus {
  color: var(--link-hover);
  outline: none;
}
.main-nav .cta-primary {
  background: var(--brand-green);
  color: #fff;
  padding: 8px 28px;
  border-radius: var(--radius-btn);
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 1.5px 8px rgba(0,0,0,0.04);
  transition: background 0.22s, color 0.18s;
  border: none;
}
.main-nav .cta-primary:hover,
.main-nav .cta-primary:focus {
  background: #222;
  color: #fff;
  outline: var(--focus-outline);
}

/* Hamburger mobile button */
.mobile-menu-toggle {
  display: none;
  background: var(--brand-primary);
  color: #fff;
  font-size: 2.1rem;
  border: none;
  border-radius: 7px;
  padding: 8px 20px;
  cursor: pointer;
  transition: background 0.19s;
  z-index: 101;
}
.mobile-menu-toggle:focus {
  outline: var(--focus-outline);
}

/* MOBILE MENU */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(20,20,20,0.98);
  z-index: 1000;
  transform: translateX(-110%);
  transition: transform 0.37s cubic-bezier(.48,.55,.63,1.01);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 34px 28px 0 28px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  align-self: flex-end;
  margin-bottom: 24px;
  cursor: pointer;
  z-index: 1001;
  transition: color 0.2s;
}
.mobile-menu-close:focus {
  outline: var(--focus-outline);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.28rem;
  font-weight: 600;
  padding: 10px 6px;
  border-radius: 4px;
  transition: background 0.13s, color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #fff;
  color: var(--brand-green);
}

/* ===== HERO SECTION ===== */
.hero {
  padding: 60px 0 38px 0;
  margin-bottom: 48px;
  background: linear-gradient(117deg,#fff 89%,#ececec 100%);
}
.hero .container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: 260px;
}
.hero .content-wrapper {
  max-width: 670px;
  padding-top: 16px;
  gap: 18px;
}
.hero h1 {
  color: var(--brand-green);
  font-size: 2.8rem;
  font-family: 'Montserrat',Arial,sans-serif;
}
.hero .cta-primary {
  margin-top: 16px;
}

/* ===== CTA BUTTONS ===== */
.cta-primary, .cta-btn, .service-cta a, .feature-grid a {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 10px 32px;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: var(--radius-btn);
  border: none;
  background: var(--button-bg);
  color: var(--button-text);
  box-shadow: 0 3px 21px rgba(27,62,31,0.08);
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.19s, color 0.19s, box-shadow 0.21s;
}
.cta-primary:hover, .cta-btn:hover, .service-cta a:hover, .feature-grid a:hover,
.cta-primary:focus, .cta-btn:focus, .service-cta a:focus, .feature-grid a:focus {
  background: var(--button-hover-bg);
  color: var(--brand-accent);
  outline: var(--focus-outline);
  box-shadow: 0 9px 30px rgba(0,0,0,0.10);
}

/* ===== SECTIONS ===== */
section {
  margin-bottom: 60px;
  padding: 40px 0;
  background: var(--brand-accent);
  border-radius: var(--radius-md);
}
.features, .services, .about, .testimonials, .contact {
  margin-bottom: 64px;
}

.testimonials {
  background: #fafafa;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
  padding: 40px 0 30px 0;
}
.testimonials .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  margin-top: 20px;
}

/* ===== FOOTER ===== */
footer {
  width: 100%;
  background: #161616;
  color: #ececec;
  padding: 60px 0 0 0;
  font-size: 0.97rem;
  box-shadow: 0 -2px 16px rgba(0,0,0,0.10);
  border-top: 1px solid #232323;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 26px;
}
.footer-nav nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav nav a {
  color: #ececec;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  transition: color 0.18s;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}
.footer-nav nav a:hover,
.footer-nav nav a:focus {
  color: var(--brand-brown);
  outline: none;
}
.social-links {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}
.social-links img {
  height: 38px;
  width: 38px;
  filter: grayscale(100%) contrast(190%);
}
.copyright {
  margin: 0;
  color: #ccc;
  padding-bottom: 30px;
}

/* ===== FORMS & INPUTS ===== */
input, textarea, select {
  border: 1px solid #e4e4e4;
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  background: #fff;
  color: #191919;
  font-size: 1rem;
  transition: border-color 0.18s;
  margin-bottom: 16px;
  width: 100%;
  resize: vertical;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--brand-green);
  outline: none;
}
label {
  margin-bottom: 6px;
  color: var(--brand-primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100vw;
  background: #161616;
  color: #fff;
  z-index: 2000;
  padding: 18px 20px;
  box-shadow: 0 -3px 21px rgba(18,18,18,0.17);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 1rem;
  animation: banner-slide-up 0.44s cubic-bezier(.42,.91,.61,1.12);
}
@keyframes banner-slide-up {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
}
.cookie-banner button {
  background: var(--brand-green);
  color: #fff;
  border: none;
  border-radius: var(--radius-btn);
  padding: 7px 20px;
  font-size: 1rem;
  font-family: 'Montserrat',Arial,sans-serif;
  font-weight: 700;
  margin-left: 4px;
  cursor: pointer;
  transition: background 0.18s, color 0.19s;
}
.cookie-banner button.cookie-settings {
  background: #fff;
  color: var(--brand-green);
  border: 1px solid var(--brand-green);
  margin-left: 12px;
}
.cookie-banner button:hover,
.cookie-banner button:focus {
  background: #fff;
  color: var(--brand-green);
  outline: var(--focus-outline);
}
.cookie-banner button.cookie-settings:hover,
.cookie-banner button.cookie-settings:focus {
  background: var(--brand-green);
  color: #fff;
}

/* COOKIE MODAL POPUP */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(25, 25, 25, 0.83);
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fade-in-modal 0.25s cubic-bezier(.34,.98,.61,1.1);
}
@keyframes fade-in-modal {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: #171717;
  border-radius: var(--radius-md);
  max-width: 98vw;
  min-width: 310px;
  width: 400px;
  padding: 32px 28px 32px 28px;
  box-shadow: 0 6px 44px 0 rgba(40,40,40,0.22);
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: modal-slide-down 0.29s cubic-bezier(.34,.98,.61,1.1);
}
@keyframes modal-slide-down {
  from { transform: translateY(-40px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-modal h3 {
  margin-top: 0;
  color: var(--brand-green);
  font-size: 1.21rem;
}
.cookie-modal ul {
  margin-bottom: 18px;
}
.cookie-modal li {
  margin-bottom: 10px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cookie-modal label {
  font-family: 'Open Sans', Arial, sans-serif;
  margin-bottom: 0;
  color: #171717;
  font-size: 1rem;
  font-weight: 400;
}
.cookie-modal input[type="checkbox"]:not(:disabled) {
  accent-color: var(--brand-green);
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 13px;
  justify-content: flex-end;
}
.cookie-modal button {
  background: var(--brand-green);
  border: none;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: var(--radius-btn);
  padding: 8px 26px;
  font-size: 1rem;
  font-weight: 700;
  margin-left: 6px;
  cursor: pointer;
}
.cookie-modal .essential-cookies {
  font-size: 1rem;
  color: var(--brand-green);
  font-weight: 700;
}

/* ===== SCROLLBARS ===== */
::-webkit-scrollbar{ width:10px; }
::-webkit-scrollbar-thumb{ background:#d6d6d6; border-radius:6px; }
::-webkit-scrollbar-track{ background: #fff; }

/* ======= RESPONSIVE ======= */
@media (max-width: 1120px) {
  .container { max-width: 99vw; }
}
@media (max-width: 920px) {
  h1 { font-size: 2rem; }
  .hero h1 { font-size: 2.2rem; }
  .container { padding: 0 11px; }
  .main-nav {
    gap: 15px;
    font-size: 0.975rem;
  }
  .footer-nav {
    gap: 11px;
    flex-direction: column;
  }
}
@media (max-width: 820px) {
  header .container {
    flex-direction: row;
    gap: 8px;
    height: 68px;
  }
  section, .section {
    margin-bottom: 36px;
    padding: 25px 0;
  }
  .hero { padding: 28px 0 14px 0; margin-bottom: 24px; }
}
@media (max-width: 760px) {
  /* MOBILE NAV */
  .main-nav { display: none !important; }
  .mobile-menu-toggle { 
    display: block;
    margin-left: 12px; 
  }
  .hero .container { min-height: 150px; }

  /* FLEX LAYOUTS TO COLUMNS */
  .content-wrapper, .footer-nav, .service-list, .feature-grid, .card-container, .testimonials .content-wrapper {
    flex-direction: column !important;
    gap: 20px !important;
  }
  .service-list li, .feature-grid li, .feature-item, .testimonial-card, .card {
    min-width: 0;
    width: 100%;
  }
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .footer-nav {
    gap: 18px;
    flex-direction: column;
  }
  .footer-nav nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 9px;
  }
  .footer-nav nav a {
    margin-right: 12px;
    margin-bottom: 0;
  }
  .section, section {
    padding: 18px 0 16px 0;
  }
}
@media (max-width: 540px) {
  .container { padding: 0 3vw; }
  .hero h1 { font-size: 1.38rem; }
  h1 { font-size: 1.19rem; }
  h2 { font-size: 1.1rem; }
  .card, .testimonial-card, .feature-item, .feature-grid li, .service-list li {
    padding: 12px 8px;
    font-size: 0.99rem;
  }
  .cookie-modal { width: 99vw; min-width: 0px; padding: 15px 5vw;
  }
}

/* === UTILITIES === */
.d-none { display: none !important; }
.d-flex { display: flex !important; }
.flex-row { flex-direction: row !important; }
.flex-col { flex-direction: column !important; }
.align-center { align-items: center !important; }
.align-start { align-items: flex-start !important; }
.justify-center { justify-content: center !important; }
.justify-between { justify-content: space-between !important; }
.gap-20 { gap: 20px !important; }
.m-0 { margin: 0 !important; }

/* ===== PRINT ===== */
@media print {
  .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal-overlay {
    display: none !important;
  }
}
