/* ========== RESET & BASE ========== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--clr-text);
  background: var(--clr-offwhite);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ========== CUSTOM PROPERTIES ========== */
:root {
  /* Greens — inspired by SLR's earth-tone palette but with Carbonfree's vivid green */
  --clr-green-700: #0d2b0d;
  --clr-green-600: #1a3a1a;
  --clr-green-500: #2a4d2a;
  --clr-green-400: #3c6b3c;
  --clr-green-accent: #00B341;
  --clr-green-bright: #4ddf7c;
  --clr-green-lime: #c8f560;

  /* Neutrals */
  --clr-offwhite: #f4f5f0;
  --clr-white: #ffffff;
  --clr-grey-100: #eaebe5;
  --clr-grey-200: #d4d6ce;
  --clr-grey-400: #8a8d82;
  --clr-grey-600: #51544a;
  --clr-black: #0a0a0a;

  /* Semantic */
  --clr-text: #2a2d24;
  --clr-text-light: #c8cbc0;
  --clr-text-muted: #7a7d72;

  /* Fonts */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;

  /* Sizing */
  --max-width: 1240px;
  --header-height: 80px;
  --header-compact: 60px;
  --cut: 72px;  /* Angular cut size — the SLR signature */
}

/* ========== SKIP LINK ========== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  padding: 8px 16px;
  background: var(--clr-green-accent);
  color: var(--clr-white);
  font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.1;
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 600;
}

.section-title {
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.section-intro {
  font-size: 1.1rem;
  max-width: 640px;
  line-height: 1.7;
}

/* ========== LAYOUT ========== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

/* Sections — JS animates non-hero sections */
.section {
  position: relative;
  opacity: 1;
  transform: none;
}
.js-animate .section:not(.section--hero) {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js-animate .section.visible {
  opacity: 1;
  transform: translateY(0);
}

.section--light {
  background: var(--clr-offwhite);
  color: var(--clr-text);
}

.section--light .section-title {
  color: var(--clr-green-700);
}

.section--dark {
  background: var(--clr-green-600);
  color: var(--clr-text-light);
}

.section--dark .section-title {
  color: var(--clr-offwhite);
}

.section--darker {
  background: var(--clr-green-700);
  color: var(--clr-text-light);
}

/* ========== DECORATIVE ANGULAR LINE (SLR-style) ========== */
.deco-line {
  position: absolute;
  pointer-events: none;
  z-index: 2;
}

.deco-line svg {
  display: block;
}

/* ========== GEOMETRIC PATTERN (SLR-style angular brackets) ========== */
.geo-pattern {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0.04;
  overflow: hidden;
}

.geo-pattern svg {
  width: 100%;
  height: 100%;
}

/* Subtle diagonal line pattern on dark sections */
.section--dark::after,
.section--darker::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 45%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.018;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 38px,
    rgba(255,255,255,1) 38px,
    rgba(255,255,255,1) 39px
  );
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: none;
  transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s, transform 0.2s;
  cursor: pointer;
  text-align: center;
  line-height: 1.2;
}

.btn--primary {
  background: var(--clr-green-accent);
  color: var(--clr-white);
}
.btn--primary:hover,
.btn--primary:focus-visible {
  background: #009a38;
}

.btn--lime {
  background: var(--clr-green-lime);
  color: var(--clr-green-700);
}
.btn--lime:hover,
.btn--lime:focus-visible {
  background: #b8e550;
}

.btn--outline {
  background: transparent;
  color: var(--clr-offwhite);
  border: 1.5px solid rgba(255,255,255,0.35);
}
.btn--outline:hover,
.btn--outline:focus-visible {
  background: var(--clr-offwhite);
  color: var(--clr-green-700);
  border-color: var(--clr-offwhite);
}

.btn--full {
  width: 100%;
  justify-content: center;
}

.btn:focus-visible {
  outline: 2px solid var(--clr-green-accent);
  outline-offset: 2px;
}

/* Arrow icon in buttons */
.btn .arrow {
  display: inline-block;
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}
.btn:hover .arrow {
  transform: translate(2px, -2px);
}

/* ========== HEADER & NAV ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 1000;
  background: var(--clr-green-600);
  transition: height 0.3s ease, background 0.3s;
}

.site-header.compact {
  height: var(--header-compact);
  background: rgba(26, 58, 26, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo .site-logo {
  height: 50px;
  width: auto;
  object-fit: contain;
  transition: height 0.3s;
}

.compact .logo .site-logo {
  height: 38px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.85rem;
  color: rgba(244,245,240,0.7);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  position: relative;
  padding: 4px 0;
  transition: color 0.25s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--clr-green-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--clr-offwhite);
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  transform: scaleX(1);
}

/* Hamburger */
.nav-toggle {
  display: none;
  width: 32px;
  height: 24px;
  position: relative;
  z-index: 1001;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--clr-offwhite);
  position: absolute;
  left: 0;
  transition: transform 0.3s, opacity 0.2s;
}

.hamburger {
  top: 50%;
  transform: translateY(-50%);
}

.hamburger::before {
  content: '';
  top: -8px;
}

.hamburger::after {
  content: '';
  top: 8px;
}

.nav-toggle[aria-expanded="true"] .hamburger {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ========== HERO — SLR-STYLE SPLIT LAYOUT ========== */
.section--hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--clr-green-500);
  overflow: hidden;
  padding-top: var(--header-height);
  opacity: 1;
  transform: none;
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3rem, 6vw, 6rem) clamp(1.5rem, 4vw, 3rem);
  padding-left: clamp(1.5rem, 6vw, 5rem);
  position: relative;
  z-index: 2;
}

.hero-text h1 {
  color: var(--clr-offwhite);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  max-width: 580px;
}

.hero-subtitle {
  color: rgba(244,245,240,0.7);
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 480px;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero image — angular clip-path on bottom-left (SLR's signature) */
.hero-image-wrap {
  position: relative;
  overflow: hidden;
}

.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, calc(0% + var(--cut)) 100%, 0% calc(100% - var(--cut)));
}

/* Hero decorative line SVG — bottom-left */
.hero-deco-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: clamp(400px, 50vw, 700px);
  height: auto;
  z-index: 3;
  pointer-events: none;
}

.hero-deco-line svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Hero geometric pattern — right side */
.hero-pattern {
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 100%;
  z-index: 1;
  opacity: 0.035;
  pointer-events: none;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 38px,
    rgba(255,255,255,1) 38px,
    rgba(255,255,255,1) 39px
  );
}

/* ========== ANGULAR SECTION DIVIDER ========== */
/* Top angular cut on "splash" sections (SLR-style clip-path) */
.section--angular-top {
  clip-path: polygon(
    calc(0% + var(--cut)) 0%,
    100% 0%,
    100% 100%,
    0% 100%,
    0% var(--cut)
  );
  margin-top: calc(-1 * var(--cut));
  padding-top: calc(var(--cut) + clamp(4rem, 8vw, 7rem));
}

.section--angular-bottom {
  clip-path: polygon(
    0% 0%,
    100% 0%,
    100% calc(100% - var(--cut)),
    calc(100% - var(--cut)) 100%,
    0% 100%
  );
  padding-bottom: calc(var(--cut) + clamp(4rem, 8vw, 6rem));
}

.section--angular-both {
  clip-path: polygon(
    calc(0% + var(--cut)) 0%,
    100% 0%,
    100% calc(100% - var(--cut)),
    calc(100% - var(--cut)) 100%,
    0% 100%,
    0% var(--cut)
  );
  margin-top: calc(-1 * var(--cut));
  padding-top: calc(var(--cut) + clamp(4rem, 8vw, 7rem));
  padding-bottom: calc(var(--cut) + clamp(4rem, 8vw, 6rem));
}

/* ========== SECTION CONNECTOR LINES (SLR-style) ========== */
.section-connector {
  position: absolute;
  top: 20px;
  right: clamp(2rem, 5vw, 5rem);
  width: 200px;
  height: 100px;
  pointer-events: none;
  z-index: 2;
  opacity: 0.15;
}

/* ========== ABOUT ========== */
#about {
  padding: clamp(5rem, 10vw, 8rem) 0 clamp(4rem, 8vw, 6rem);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}

.about-text p {
  margin-bottom: 1.1rem;
  color: var(--clr-grey-600);
  font-size: 1.02rem;
  line-height: 1.75;
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* Angular clip on about image (SLR-style) */
.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: cover;
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, var(--cut) 100%, 0% calc(100% - var(--cut)));
}

/* ========== SERVICES ========== */
#services {
  padding: clamp(4rem, 8vw, 7rem) 0;
  position: relative;
  overflow: hidden;
}

#services .section-title {
  text-align: left;
  margin-bottom: 3rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.service-card {
  background: rgba(255,255,255,0.06);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

/* Angular accent line — top-left corner */
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--clr-green-accent);
  transition: width 0.3s;
}

.service-card:hover {
  background: rgba(255,255,255,0.1);
}

.service-card:hover::before {
  width: 80px;
}

.service-icon {
  width: 48px;
  height: 48px;
  color: var(--clr-green-accent);
  margin-bottom: 1.5rem;
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-title {
  color: var(--clr-offwhite);
  margin-bottom: 0.85rem;
  line-height: 1.3;
}

.service-desc {
  color: rgba(244,245,240,0.6);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ========== CIRCULAR ECONOMY ========== */
#circular {
  padding: clamp(4rem, 8vw, 7rem) 0;
  position: relative;
}

.circular-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 3.5rem;
}

.circular-diagram img {
  max-width: 400px;
  margin: 0 auto;
  clip-path: polygon(var(--cut) 0%, 100% 0%, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0% 100%, 0% var(--cut));
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 2.5rem;
}

.principle-card {
  padding: 2rem 1.75rem;
  background: var(--clr-white);
  border-top: 3px solid var(--clr-green-accent);
  position: relative;
}

.principle-num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.5rem;
  color: var(--clr-green-accent);
  line-height: 1;
  display: block;
  margin-bottom: 0.85rem;
  opacity: 0.25;
}

.principle-title {
  margin-bottom: 0.5rem;
  color: var(--clr-green-700);
}

.principle-card p {
  font-size: 0.95rem;
  color: var(--clr-text-muted);
  line-height: 1.65;
}

.circular-closing {
  font-size: 1.05rem;
  color: var(--clr-text-muted);
  max-width: 60ch;
}

/* ========== TECHNOLOGY ========== */
#technology {
  padding: clamp(4rem, 8vw, 7rem) 0;
  position: relative;
  overflow: hidden;
}

.tech-intro-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 4rem;
  align-items: start;
}

.tech-text p {
  margin-bottom: 1rem;
  color: rgba(244,245,240,0.7);
  line-height: 1.75;
}

.tech-image img {
  width: 100%;
  object-fit: cover;
  clip-path: polygon(0% 0%, 100% 0%, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0% 100%);
}

.tech-data {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.data-card {
  background: rgba(255,255,255,0.05);
  padding: 2.25rem 2rem;
  border-top: 3px solid var(--clr-green-accent);
}

.data-card-title {
  color: var(--clr-green-accent);
  text-transform: uppercase;
  font-size: 0.82rem;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 1.75rem;
}

.data-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.data-item {
  border-left: 2px solid rgba(255,255,255,0.08);
  padding-left: 1.25rem;
}

.data-item dt {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--clr-offwhite);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.3rem;
}

.data-item dd {
  font-size: 0.92rem;
  color: rgba(244,245,240,0.6);
  line-height: 1.65;
}

.data-item strong {
  color: var(--clr-green-accent);
  font-weight: 600;
}

/* ========== SOLUTION ========== */
#solution {
  padding: clamp(5rem, 10vw, 8rem) 0 clamp(4rem, 8vw, 6rem);
}

#solution .section-title {
  color: var(--clr-green-700);
}

.solution-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  margin-bottom: 4.5rem;
  align-items: start;
}

.solution-text p {
  margin-bottom: 1.1rem;
  color: var(--clr-grey-600);
  line-height: 1.75;
}

.solution-diagram {
  position: relative;
}

.solution-diagram img {
  width: 100%;
  clip-path: polygon(var(--cut) 0%, 100% 0%, 100% 100%, 0% 100%, 0% var(--cut));
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--clr-grey-200);
  border-bottom: 1px solid var(--clr-grey-200);
}

.stat-block {
  padding: 2.5rem 2rem;
  text-align: center;
  border-right: 1px solid var(--clr-grey-200);
  position: relative;
}

.stat-block:last-child {
  border-right: none;
}

.stat-value {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  color: var(--clr-green-accent);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.88rem;
  color: var(--clr-text-muted);
  font-weight: 500;
}

/* ========== CONTACT ========== */
#contact {
  padding: clamp(4rem, 8vw, 7rem) 0;
  position: relative;
  overflow: hidden;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(244,245,240,0.6);
  margin-bottom: 0.4rem;
}

.required {
  color: var(--clr-green-accent);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--clr-offwhite);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.25s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--clr-green-accent);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.contact-form .btn {
  margin-top: 0.75rem;
}

.form-status {
  margin-top: 1rem;
  font-size: 0.95rem;
  min-height: 1.5em;
}

.form-status.success {
  color: var(--clr-green-accent);
}

.form-status.error {
  color: #e74c3c;
}

.form-group.has-error input,
.form-group.has-error textarea {
  border-color: #e74c3c;
}
.field-error {
  display: block;
  color: #e74c3c;
  font-size: 0.8rem;
  margin-top: 4px;
  font-family: var(--font-body);
}

.contact-info {
  padding-top: 4.5rem;
}

.contact-info h3 {
  color: var(--clr-offwhite);
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.contact-detail {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.75rem;
  color: rgba(244,245,240,0.6);
}

.contact-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--clr-green-accent);
}

.contact-icon svg {
  width: 100%;
  height: 100%;
}

.contact-detail a {
  color: var(--clr-green-accent);
  transition: color 0.2s;
}

.contact-detail a:hover {
  color: var(--clr-green-bright);
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--clr-green-700);
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}

/* Footer geometric pattern */
.footer-pattern {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  opacity: 0.03;
  pointer-events: none;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 38px,
    rgba(255,255,255,1) 38px,
    rgba(255,255,255,1) 39px
  );
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-logo {
  height: 25px;
  width: auto;
  object-fit: contain;
  opacity: 0.5;
  transition: opacity 0.3s;
}

.footer-logo:hover {
  opacity: 0.8;
}

.co2-badge {
  height: 48px;
  width: auto;
  opacity: 0.6;
  transition: opacity 0.3s;
}
.co2-badge:hover {
  opacity: 0.9;
}

.footer-nav {
  display: flex;
  gap: 1.75rem;
}

.footer-nav a {
  font-size: 0.85rem;
  color: rgba(244,245,240,0.4);
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--clr-green-accent);
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(244,245,240,0.3);
}

.footer-privacy {
  font-size: 0.75rem;
  color: rgba(244,245,240,0.25);
  text-decoration: none;
  transition: color 0.2s;
display: block;
  text-align: right;
}

.footer-credit {
  display: block;
  margin-top: 6px;
  font-size: 0.75rem;
}

.footer-credit a {
  color: #0d2b0d;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-credit a:hover {
  color: rgba(244,245,240,0.6);
}

.footer-privacy:hover {
  color: var(--clr-green-accent);
}

/* ========== RESPONSIVE ========== */

/* Tablet — hamburger kicks in at 960px to avoid cramped nav */
@media (max-width: 960px) {
  :root {
    --cut: 48px;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100vh;
    background: var(--clr-green-700);
    flex-direction: column;
    align-items: flex-start;
    padding: calc(var(--header-height) + 2rem) 2rem 2rem;
    gap: 0;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 999;
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .nav-link {
    font-size: 1rem;
    padding: 0.85rem 0;
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    color: rgba(244,245,240,0.8);
  }

  .section--hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-text {
    padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 4vw, 2.5rem);
    order: 1;
  }

  .hero-image-wrap {
    height: 340px;
    order: 0;
  }

  .hero-image-wrap img {
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, var(--cut) 100%, 0% calc(100% - var(--cut)));
  }

  .hero-deco-line {
    display: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-image {
    order: -1;
  }

  .about-image img {
    max-height: 360px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
  }

  .circular-top {
    grid-template-columns: 1fr;
  }

  .circular-diagram {
    order: -1;
    max-width: 360px;
    margin: 0 auto;
  }

  .circular-diagram img {
    max-width: 100%;
  }

  .principles-grid {
    grid-template-columns: 1fr;
  }

  .tech-intro-grid {
    grid-template-columns: 1fr;
  }

  .tech-data {
    grid-template-columns: 1fr;
  }

  .solution-grid {
    grid-template-columns: 1fr;
  }

  .stats-row {
    grid-template-columns: 1fr;
  }

  .stat-block {
    border-right: none;
    border-bottom: 1px solid var(--clr-grey-200);
    padding: 1.75rem;
  }

  .stat-block:last-child {
    border-bottom: none;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-info {
    padding-top: 0;
  }
}

/* Mobile */
@media (max-width: 768px) {
  html {
    scroll-padding-top: 60px;
  }

  :root {
    --cut: 36px;
  }

  .hero-text h1 {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .hero-image-wrap {
    height: 260px;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .hero-ctas .btn {
    text-align: center;
    justify-content: center;
  }

  .logo .site-logo {
    height: 34px;
  }

  .compact .logo .site-logo {
    height: 25px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .section-connector {
    display: none;
  }

  .geo-pattern {
    display: none;
  }
}

/* Mobile overlay backdrop */
.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
}

.nav-backdrop.active {
  display: block;
}

body.nav-open {
  overflow: hidden;
}

/* ========== Cookie Consent ========== */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(10, 10, 10, 0.96);
  border-top: 1px solid rgba(0, 179, 65, 0.3);
  padding: 1rem 1.5rem;
  backdrop-filter: blur(10px);
}
.cookie-consent-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.cookie-consent p {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: rgba(244, 245, 240, 0.7);
  margin: 0;
  line-height: 1.5;
}
.cookie-consent a {
  color: var(--clr-green-accent);
  text-decoration: underline;
}
.cookie-consent-buttons {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}
.cookie-btn {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.5rem 1.25rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.cookie-btn-reject {
  background: transparent;
  color: rgba(244, 245, 240, 0.5);
  border: 1px solid rgba(244, 245, 240, 0.2);
}
.cookie-btn-reject:hover {
  color: rgba(244, 245, 240, 0.8);
  border-color: rgba(244, 245, 240, 0.4);
}
.cookie-btn-accept {
  background: var(--clr-green-accent);
  color: #fff;
}
.cookie-btn-accept:hover {
  background: var(--clr-green-700);
}

@media (max-width: 600px) {
  .cookie-consent-inner {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  .cookie-consent-buttons {
    width: 100%;
    justify-content: center;
  }
}
