/* ============================================================
   Promopak — Polish Plastic Packaging Manufacturer
   Complete Stylesheet — style.css
   ============================================================ */

/* === 1. CSS CUSTOM PROPERTIES (:root) === */
:root {
  --accent: #8BBB29;
  --accent-rgb: 139, 187, 41;
  --accent-light: #a8d44a;
  --accent-dark: #6e9620;

  --gray-50: #f8f9f7;
  --gray-100: #f0f1ee;
  --gray-200: #e0e2dc;
  --gray-300: #c2c5bc;
  --gray-400: #9ea29a;
  --gray-500: #7c8078;
  --gray-600: #5c6058;
  --gray-700: #3d403a;
  --gray-800: #262823;
  --gray-900: #181a16;

  --easing-default: cubic-bezier(0.16, 1, 0.3, 1);
  --easing-anticipate: cubic-bezier(0.34, 1.56, 0.64, 1);
  --easing-settle: cubic-bezier(0.4, 0, 0.2, 1);
  --stagger-base: 30ms;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1120px;
  --section-py: 9rem;
  --container-px: 2.5rem;

  --bg: #ffffff;
  --bg-alt: var(--gray-50);
  --bg-card: #ffffff;
  --text: var(--gray-900);
  --text-secondary: var(--gray-600);
  --border: var(--gray-200);
  --footer-bg: var(--gray-900);
  --footer-text: var(--gray-300);

  /* Shadows */
  --shadow-subtle: 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-elevated: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-card-hover: 0 12px 40px -8px rgba(0, 0, 0, 0.1);
}

/* === 2. DARK MODE === */
[data-theme="dark"] {
  --bg: #121410;
  --bg-alt: #1a1c18;
  --bg-card: #1e201c;
  --text: #e8eae4;
  --text-secondary: #9ca098;
  --border: #2a2d26;
  --footer-bg: #0a0b08;
  --footer-text: #7a7e72;
  --hero-bg: #0e0f0c;
  --hero-stat-bg: #1a1c18;
  --input-bg: #161814;
  --stat-bar-bg: #0e0f0c;

  --shadow-subtle: 0 4px 12px rgba(0, 0, 0, 0.2);
  --shadow-elevated: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-card-hover: 0 12px 40px -8px rgba(0, 0, 0, 0.25);
}

/* Dark mode overrides */
[data-theme="dark"] .hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(14, 15, 12, 0.7) 0%,
    rgba(14, 15, 12, 0.4) 50%,
    rgba(14, 15, 12, 0.1) 100%
  );
}

[data-theme="dark"] .showcase-item img {
  filter: brightness(0.7) grayscale(1);
}

[data-theme="dark"] .showcase-item:hover img {
  filter: brightness(0.7) grayscale(0);
}

[data-theme="dark"] .process-image-wrap img {
  filter: brightness(0.8);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea,
[data-theme="dark"] .form-group select {
  background: var(--input-bg);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100vw;
}

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

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

::selection {
  background-color: var(--accent);
  color: #ffffff;
}

/* === 4. TYPOGRAPHY SCALE === */
h1 {
  font-family: var(--font-sans);
  font-size: clamp(3rem, 6.5vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

h2 {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
}

.body-lg {
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.75;
}

body,
p,
li {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
}

.label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.section-label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  display: block;
  margin-bottom: 0.75rem;
  position: relative;
}

.section-label::before {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  animation: lineDraw 0.6s var(--easing-settle) 0.2s forwards;
}

.stat-number {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

/* === 5. LAYOUT === */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-px);
  width: 100%;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 80px;
  align-items: center;
}

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

section {
  padding: var(--section-py) 0;
  overflow-x: hidden;
}

/* === 6. NAVIGATION === */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 24px 0;
  background: rgba(247, 249, 251, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.45s var(--easing-default),
              padding 0.45s var(--easing-default),
              box-shadow 0.45s var(--easing-default);
}

.nav-section-indicator {
  display: none; /* hidden, used only by JS */
}

nav.scrolled {
  background: rgba(255, 255, 255, 0.92);
  padding: 14px 0;
  box-shadow: var(--shadow-subtle);
}

[data-theme="dark"] nav {
  background: rgba(18, 20, 16, 0.85);
}

[data-theme="dark"] nav.scrolled {
  background: rgba(18, 20, 16, 0.92);
}

nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
}

.nav-brand img {
  height: 36px;
  width: auto;
}

/* Show one logo based on theme */
.nav-logo-dark { display: block; }
.nav-logo-light { display: none; }
[data-theme="dark"] .nav-logo-dark { display: none; }
[data-theme="dark"] .nav-logo-light { display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  flex-wrap: nowrap;
}

.nav-links li {
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.3s var(--easing-default);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s var(--easing-default);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 101;
  padding: 0;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--easing-anticipate),
              opacity 0.3s var(--easing-default);
  transform-origin: center;
}

.nav-hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* === 7. HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
  background: var(--hero-bg, var(--gray-900));
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: center;
  min-height: 100vh;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.15);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(24, 26, 22, 0.55) 0%,
    rgba(24, 26, 22, 0.25) 50%,
    rgba(24, 26, 22, 0.05) 100%
  );
  z-index: 1;
}

.hero-noise {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.035;
  mix-blend-mode: overlay;
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 var(--container-px);
}

.hero-image {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  min-height: 100vh;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.15);
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero h1 {
  max-width: 720px;
  color: #ffffff;
}

.hero-sub {
  font-size: 1.125rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  margin-top: 20px;
  line-height: 1.65;
}

.hero-stat-card {
  position: absolute;
  bottom: 60px;
  left: var(--container-px);
  background: #ffffff;
  border-top: 3px solid var(--accent);
  padding: 24px 32px;
  border-radius: 8px;
  box-shadow: var(--shadow-elevated);
  z-index: 3;
  display: flex;
  gap: 32px;
}

.hero-stat-card .stat-item {
  text-align: center;
}

.hero-stat-card .stat-number {
  color: var(--accent);
}

.hero-stat-card .stat-label {
  font-size: 0.75rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 4px;
}

/* === 8. STATS BAR === */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--gray-900);
  color: #ffffff;
}

.stat-item {
  padding: 48px 24px;
  text-align: center;
  border-top: 3px solid var(--accent);
}

.stat-item .stat-number {
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}

.stat-item .stat-label {
  font-size: 0.875rem;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* === 9. ABOUT === */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 0;
  filter: grayscale(0.1);
}

.about-strip {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(24, 26, 22, 0.88);
  color: #ffffff;
  padding: 20px 28px;
  border-radius: 0;
  backdrop-filter: blur(6px);
}

.about-strip .company-name {
  font-weight: 700;
  font-size: 1.125rem;
}

.about-details {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.about-details span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.about-details strong {
  color: var(--text);
  font-weight: 600;
}

/* === 10. SERVICES === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.service-card {
  border-top: 2px solid var(--border);
  padding: 28px 0 0;
  transition: border-color 0.4s var(--easing-default),
              transform 0.4s var(--easing-anticipate),
              box-shadow 0.4s var(--easing-default);
}

.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-card-hover);
  background: rgba(var(--accent-rgb), 0.03);
}

.service-number {
  font-size: 48px;
  font-weight: 200;
  color: var(--gray-300);
  line-height: 1;
  margin-bottom: 12px;
  transition: color 0.4s var(--easing-default),
              transform 0.4s var(--easing-anticipate);
}

.service-card:hover .service-number {
  color: var(--accent);
  transform: translateX(6px);
}

.service-card h3 {
  margin-bottom: 8px;
}

.service-card p {
  color: var(--text-secondary);
}

/* === 11. PROCESS === */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.process-step {
  position: relative;
}

.dot-line {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 20px;
}

.dot-line .dot {
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-line .line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.process-image-wrap {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.process-image-wrap img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.process-image-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: #ffffff;
  padding: 48px 20px 16px;
  font-weight: 600;
  font-size: 1rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.process-step h3 {
  margin-top: 16px;
}

.process-step p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

/* === 12. MATERIALS === */
.materials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 24px;
}

.material-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.35s var(--easing-default),
              box-shadow 0.35s var(--easing-default),
              transform 0.35s var(--easing-anticipate);
}

.material-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-subtle);
  transform: translateY(-3px) scale(1.02);
}

.material-card.active {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 2px var(--accent),
              0 0 20px rgba(var(--accent-rgb), 0.25);
}

.material-swatch {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.swatch-RPET { background: #8BBB29; }
.swatch-PP { background: #3B82F6; }
.swatch-PET { background: #F59E0B; }
.swatch-HDPE { background: #EF4444; }

.material-card h3 {
  margin-bottom: 4px;
}

.material-card p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.material-props {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.material-props span {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  background: var(--bg-alt);
  padding: 4px 10px;
  border-radius: 4px;
}

/* === 13. SHOWCASE === */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 16px;
}

.showcase-item {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  aspect-ratio: 4 / 3;
}

.showcase-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter 0.5s var(--easing-default),
              transform 0.5s var(--easing-default);
}

.showcase-item:hover img {
  filter: grayscale(0);
  transform: scale(1.04);
}

.showcase-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 20px 16px;
  background: linear-gradient(transparent, rgba(24, 26, 22, 0.88));
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9375rem;
  transform: translateY(8px);
  transition: transform 0.4s var(--easing-anticipate);
}

.showcase-item:hover .showcase-label {
  transform: translateY(0);
}

/* === 14. TRUST === */
.trust-grid {
  background: var(--bg-alt);
  padding: 80px 60px;
  border-radius: 12px;
  text-align: center;
}

.trust-grid .section-label {
  display: block;
  margin-bottom: 24px;
}

.trust-grid blockquote {
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 400;
  color: var(--text);
  max-width: 760px;
  margin: 0 auto 40px;
  line-height: 1.55;
  position: relative;
}

.trust-grid blockquote::before {
  content: '\201C';
  font-family: var(--font-sans);
  font-size: 6rem;
  color: var(--accent);
  opacity: 0.2;
  position: absolute;
  top: -50px;
  left: -40px;
  line-height: 1;
}

.trust-services {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

.trust-services .label {
  display: inline-flex;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  transition: all 0.3s var(--easing-default);
}

.trust-services .label:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* === 15. CONTACT === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-col h2 {
  margin-bottom: 24px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-detail .icon {
  width: 48px;
  height: 48px;
  background: var(--bg-alt);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-detail strong {
  display: block;
  font-weight: 600;
  margin-bottom: 2px;
}

.contact-detail span {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  margin-bottom: 8px;
  transition: color 0.3s var(--easing-default),
              transform 0.3s var(--easing-settle);
}

.form-group:focus-within label {
  color: var(--accent);
  transform: translateY(-1px);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0;
  transition: border-color 0.3s var(--easing-default),
              box-shadow 0.3s var(--easing-default);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.15);
}

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

/* Buttons */
.btn-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 14px 32px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s var(--easing-default),
              transform 0.2s var(--easing-settle),
              box-shadow 0.3s var(--easing-default);
}

.btn-solid:hover {
  background: var(--accent-dark);
  box-shadow: var(--shadow-elevated);
}

.btn-solid:active {
  transform: scale(0.95);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 14px 32px;
  border: 2px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.3s var(--easing-default),
              color 0.3s var(--easing-default),
              transform 0.2s var(--easing-settle);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-ghost:active {
  transform: scale(0.95);
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 14px 32px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  transition: background 0.3s var(--easing-default),
              transform 0.2s var(--easing-settle),
              box-shadow 0.3s var(--easing-default);
}

.btn-submit:hover {
  background: var(--accent-dark);
  box-shadow: var(--shadow-elevated);
}

.btn-submit:active {
  transform: scale(0.95);
}

/* === 16. FOOTER === */
footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 60px 0 32px;
}

footer .container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
}

.footer-col h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #ffffff;
  margin-bottom: 20px;
}

.footer-col p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--footer-text);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul a {
  font-size: 0.9375rem;
  color: var(--footer-text);
  display: inline-flex;
  align-items: center;
  transition: color 0.3s var(--easing-default),
              transform 0.3s var(--easing-anticipate);
}

.footer-col ul a:hover {
  color: var(--accent);
  transform: translateX(4px);
}

.footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 0.8125rem;
  color: var(--footer-text);
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--footer-text);
  transition: border-color 0.3s var(--easing-default),
              color 0.3s var(--easing-default);
}

.footer-social a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* === 17. RESPONSIVE === */

/* Breakpoint 1: 968px — tablets / small laptops */
@media (max-width: 968px) {
  :root {
    --section-py: 6rem;
    --container-px: 1.5rem;
  }

  .grid-2,
  .grid-3,
  .about-grid,
  .services-grid,
  .process-grid,
  .materials-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    padding: 120px 0 60px;
  }

  .hero-stat-card {
    position: relative;
    bottom: auto;
    left: auto;
    margin-top: 32px;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-form {
    padding: 28px;
  }

  .trust-grid {
    padding: 56px 32px;
  }

  footer .container {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* Breakpoint 2: 768px — mobile landscape / small tablets */
@media (max-width: 768px) {
  :root {
    --section-py: 5rem;
    --container-px: 1.25rem;
  }

  /* Hamburger visible */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 28px;
    padding: 80px 32px;
    background: var(--bg);
    box-shadow: var(--shadow-elevated);
    transition: right 0.4s var(--easing-default);
    z-index: 100;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-hamburger {
    display: flex;
  }

  h1 {
    font-size: clamp(2rem, 6vw, 2.75rem);
  }

  h2 {
    font-size: clamp(1.625rem, 5vw, 2.25rem);
  }

  .hero {
    min-height: auto;
    padding: 100px 0 48px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(2rem, 6vw, 2.75rem);
  }

  .hero-sub {
    max-width: 100%;
  }

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

  .stat-item {
    padding: 32px 16px;
  }

  .contact-grid {
    gap: 40px;
  }

  .trust-grid {
    padding: 48px 20px;
  }

  .trust-grid blockquote {
    font-size: 1.25rem;
  }

  .trust-grid blockquote::before {
    font-size: 4rem;
    top: -35px;
    left: -20px;
  }

  footer .container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Breakpoint 3: 480px — mobile */
@media (max-width: 480px) {
  :root {
    --section-py: 4rem;
    --container-px: 1rem;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: clamp(1.5rem, 6vw, 1.875rem);
  }

  .hero {
    padding: 90px 0 40px;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero-stat-card {
    flex-direction: column;
    gap: 16px;
    padding: 20px 24px;
  }

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

  .section-label {
    font-size: 0.75rem;
  }

  .service-card {
    padding: 20px 0 0;
  }

  .material-card {
    padding: 24px;
  }

  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .trust-grid {
    padding: 40px 16px;
    border-radius: 8px;
  }

  .trust-grid blockquote {
    font-size: 1.125rem;
  }

  .trust-services {
    gap: 10px;
  }

  .trust-services .label {
    padding: 6px 14px;
    font-size: 0.6875rem;
  }

  .contact-form {
    padding: 20px;
  }

  .btn-solid,
  .btn-ghost,
  .btn-submit {
    padding: 12px 24px;
    font-size: 0.875rem;
  }

  footer {
    padding: 56px 0 24px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* === 18. ANIMATIONS === */

/* Keyframes */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes imgBlurIn {
  from {
    filter: blur(4px);
    transform: scale(1.02);
    opacity: 0.92;
  }
  to {
    filter: blur(0);
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes lineDraw {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes counterPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1);
  }
}

/* Utility animation classes */
.anim-fu {
  animation: fadeUp 0.7s var(--easing-anticipate) forwards;
}

.anim-fi {
  animation: imgBlurIn 0.9s var(--easing-anticipate) forwards;
}

/* Scroll-triggered animations — hidden initially, revealed on scroll */
[data-animate],
[data-animate-stagger] > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--easing-anticipate),
              transform 0.8s var(--easing-anticipate);
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
[data-animate-stagger] > *.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s var(--easing-anticipate),
              transform 0.6s var(--easing-anticipate);
}

[data-animate-stagger] > *:nth-child(1).visible { transition-delay: calc(var(--stagger-base) * 0); }
[data-animate-stagger] > *:nth-child(2).visible { transition-delay: calc(var(--stagger-base) * 1); }
[data-animate-stagger] > *:nth-child(3).visible { transition-delay: calc(var(--stagger-base) * 2); }
[data-animate-stagger] > *:nth-child(4).visible { transition-delay: calc(var(--stagger-base) * 3); }
[data-animate-stagger] > *:nth-child(5).visible { transition-delay: calc(var(--stagger-base) * 4); }
[data-animate-stagger] > *:nth-child(6).visible { transition-delay: calc(var(--stagger-base) * 5); }
[data-animate-stagger] > *:nth-child(7).visible { transition-delay: calc(var(--stagger-base) * 6); }
[data-animate-stagger] > *:nth-child(8).visible { transition-delay: calc(var(--stagger-base) * 7); }

/* Button active press */
button:active,
.btn-solid:active,
.btn-ghost:active,
.btn-submit:active {
  transform: scale(0.95);
}

/* Loading / progress bar */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--accent);
  z-index: 200;
  transition: width 0.1s linear;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-alt);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* Firefox scrollbar */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--gray-300) var(--bg-alt);
}

/* === 19. TWEAKS PANEL === */
.tweaks {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 150;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.tweaks-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: var(--shadow-elevated);
  transition: transform 0.3s var(--easing-anticipate),
              background 0.3s var(--easing-default);
}

.tweaks-toggle:hover {
  background: var(--accent-dark);
  transform: rotate(30deg);
}

.tweaks-toggle.active {
  transform: rotate(45deg);
}

.tweaks-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  width: 280px;
  box-shadow: var(--shadow-elevated);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s var(--easing-default),
              transform 0.3s var(--easing-anticipate);
}

.tweaks-panel.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.tweaks-panel h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  margin-bottom: 16px;
}

.tweaks-group {
  margin-bottom: 16px;
}

.tweaks-group label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 6px 0;
}

.tweaks-group input[type="checkbox"] {
  appearance: none;
  width: 40px;
  height: 22px;
  background: var(--border);
  border-radius: 11px;
  position: relative;
  cursor: pointer;
  transition: background 0.3s var(--easing-default);
}

.tweaks-group input[type="checkbox"]::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: #ffffff;
  border-radius: 50%;
  transition: transform 0.3s var(--easing-anticipate);
}

.tweaks-group input[type="checkbox"]:checked {
  background: var(--accent);
}

.tweaks-group input[type="checkbox"]:checked::after {
  transform: translateX(18px);
}

/* === 20. SHADOWS (utilized throughout) === */
/* Shadow variables are defined in :root and [data-theme="dark"].
   They are applied contextually above in relevant components:
   - .service-card:hover uses --shadow-card-hover
   - .showcase-item:hover implicitly via transform
   - .material-card.active uses accent glow
   - nav.scrolled uses --shadow-subtle
   - .tweaks-toggle uses --shadow-elevated
   - .tweaks-panel uses --shadow-elevated
*/

/* Additional utility classes */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  [data-animate],
  [data-animate-stagger] > *,
  [data-animate].visible {
    opacity: 1;
    transform: none;
  }
}

/* === 21. SECTION PADDING OVERRIDES === */
.section.services,
.section.showcase {
  padding: 12rem 0;
}

.section.process,
.section.materials,
.section.trust {
  padding: 4rem 0;
}

.section.about,
.section.contact {
  padding: var(--section-py) 0;
}

/* === 22. HERO 2-COLUMN LAYOUT === */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  position: relative;
  z-index: 0;
}

.hero-grid .hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px var(--container-px) 80px;
  position: relative;
  z-index: 2;
}

.hero-grid .hero-bg {
  position: relative;
  height: 100vh;
}

.hero-grid .hero-bg picture,
.hero-grid .hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.15);
}

.hero-grid .hero-bg-caption {
  position: absolute;
  bottom: 16px;
  right: 16px;
  color: rgba(255,255,255,0.6);
  font-size: 0.75rem;
}

/* Hero overlay: darkened left side */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(24, 26, 22, 0.55) 0%,
    rgba(24, 26, 22, 0.25) 50%,
    rgba(24, 26, 22, 0.05) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.hero h1 {
  max-width: 720px;
  color: #ffffff;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

/* === 23. HERO CTA BUTTONS === */
.hero-cta-group {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 0;
  transition: background 0.3s var(--easing-default),
              transform 0.2s var(--easing-settle),
              box-shadow 0.3s var(--easing-default);
}

.hero-cta:hover {
  background: var(--accent-dark);
  box-shadow: var(--shadow-elevated);
}

.hero-cta:active {
  transform: scale(0.95);
}

.hero-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.4);
  font-size: 1rem;
  font-weight: 500;
  padding: 14px 32px;
  border-radius: 0;
  transition: border-color 0.3s var(--easing-default),
              color 0.3s var(--easing-default),
              transform 0.2s var(--easing-settle);
}

.hero-cta-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-cta-secondary:active {
  transform: scale(0.95);
}

/* === 24. HERO STAT CARD === */
.hero-stat-card {
  position: absolute;
  bottom: 60px;
  left: var(--container-px);
  background: #ffffff;
  border-top: 3px solid var(--accent);
  padding: 24px 32px;
  border-radius: 8px;
  box-shadow: var(--shadow-elevated);
  z-index: 3;
  display: flex;
  gap: 32px;
}

.hero-stat-card .stat-item {
  text-align: center;
}

.hero-stat-card .stat-number {
  color: var(--accent);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.hero-stat-card .stat-label {
  font-size: 0.75rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 4px;
}

/* === 25. NAV BRAND TEXT === */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-brand-text {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.nav-brand-accent {
  color: var(--accent);
}

/* === 26. NAV CTA BUTTON === */
.nav-cta-wrap {
  margin-left: 8px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #ffffff !important;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 0;
  transition: background 0.3s var(--easing-default),
              transform 0.2s var(--easing-settle);
}

.nav-cta:hover {
  background: var(--accent-dark);
  color: #ffffff !important;
}

.nav-cta:active {
  transform: scale(0.95);
}

/* === 27. PROCESS CONNECTOR === */
.process-steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 32px;
  align-items: start;
}

.process-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
}

.process-connector .dot {
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.process-connector .line {
  width: 60px;
  height: 1px;
  background: var(--border);
}

/* === 28. FORM SUCCESS === */
.form-success {
  text-align: center;
  padding: 24px;
  background: var(--bg-alt);
  border: 1px solid var(--accent);
  border-radius: 0;
  color: var(--accent);
  font-weight: 600;
  margin-top: 16px;
}

/* === 29. ABOUT STRIP META === */
.about-strip-meta {
  font-size: 0.75rem;
  opacity: 0.8;
}

/* === 30. RESPONSIVE OVERRIDES === */
@media (max-width: 968px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid .hero-content {
    padding: 120px var(--container-px) 40px;
  }

  .hero-grid .hero-bg {
    height: 400px;
    order: -1;
  }

  .hero-stat-card {
    position: relative;
    bottom: auto;
    left: auto;
    margin: 32px var(--container-px);
  }

  .process-steps {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .process-connector {
    display: none;
  }

  .section.services,
  .section.showcase {
    padding: 8rem 0;
  }
}

@media (max-width: 768px) {
  .hero-grid .hero-content {
    padding: 90px var(--container-px) 32px;
  }

  .hero-grid .hero-bg {
    height: 300px;
  }

  .hero-stat-card {
    flex-direction: column;
    gap: 16px;
    padding: 20px 24px;
    margin: 24px var(--container-px);
  }

  .hero-cta-group {
    flex-direction: column;
  }

  .process-connector {
    display: none;
  }

  .section.services,
  .section.showcase {
    padding: 6rem 0;
  }

  .section.process,
  .section.materials,
  .section.trust {
    padding: 3rem 0;
  }

  .nav-brand-text {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-grid .hero-content {
    padding: 70px 16px 24px;
  }

  .hero h1 {
    font-size: 2rem;
  }
  
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-cta,
  .hero-cta-secondary {
    width: 100%;
    text-align: center;
  }
  
  .hero-stat-card {
    margin: 16px 16px;
    padding: 16px 20px;
    flex-direction: column;
    left: 0 !important;
    right: auto !important;
    width: calc(100% - 32px);
    max-width: 100%;
  }
  
  .container {
    padding: 0 16px;
  }
}
