/* ==========================================================================
   ASF Bouw Alkmaar — Main Stylesheet
   ========================================================================== */

/* CSS Variables / Design Tokens */
:root {
  /* Colors */
  --color-bg-dark: #0a0a0a;
  --color-bg-darker: #050505;
  --color-bg-light: #f5f5f5;
  --color-bg-card: #ffffff;
  --color-accent: #C99A5B;
  --color-accent-hover: #D4A86B;
  --color-accent-dark: #A87E45;
  --color-text-light: #ffffff;
  --color-text-muted: #b8b8b8;
  --color-text-dark: #1a1a1a;
  --color-text-grey: #6b6b6b;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-light: rgba(0, 0, 0, 0.08);

  /* Typography */
  --font-display: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --section-padding: 100px 0;
  --container-padding: 0 24px;
  --container-max: 1240px;

  /* Transitions */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-dark);
  background: var(--color-bg-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

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

input, textarea, select {
  font-family: inherit;
  font-size: 16px;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: 1.3rem; font-weight: 600; }

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
}

.section-title.centered {
  text-align: center;
}

.section-title.centered::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  margin: 18px auto 0;
  border-radius: 2px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 30px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 4px;
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(201, 154, 91, 0.35);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}

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

.btn-outline-dark {
  background: transparent;
  color: var(--color-accent);
  border: 1.5px solid var(--color-accent);
}

.btn-outline-dark:hover {
  background: var(--color-accent);
  color: #fff;
}

.btn-arrow {
  width: 16px;
  height: 16px;
  transition: transform var(--transition);
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* ============================ HEADER ============================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: all var(--transition);
}

.header.scrolled {
  background: rgba(5, 5, 5, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 30px;
}

.logo {
  display: block;
  flex-shrink: 0;
}

.logo img {
  height: 50px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 42px;
  margin-left: auto;
}

.nav-link {
  position: relative;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 8px 0;
  transition: color var(--transition);
}

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

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
}

.header .btn {
  padding: 14px 24px;
  font-size: 0.75rem;
}

/* Mobile menu */
.menu-toggle {
  display: none;
  width: 32px;
  height: 32px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  margin-left: auto;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all var(--transition);
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ============================ HERO ============================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--color-bg-dark);
  overflow: hidden;
  padding-top: 90px;
}

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

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(10, 10, 10, 0.98) 0%,
    rgba(10, 10, 10, 0.85) 35%,
    rgba(10, 10, 10, 0.5) 60%,
    rgba(10, 10, 10, 0.3) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 720px;
  color: #fff;
  padding: 60px 0;
}

.hero h1 {
  margin: 16px 0 28px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.05;
}

.hero h1 .accent {
  color: var(--color-accent);
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin-bottom: 40px;
  max-width: 480px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Compact hero for inner pages */
.page-hero {
  position: relative;
  padding: 180px 0 90px;
  background: var(--color-bg-dark);
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(201, 154, 91, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(201, 154, 91, 0.08) 0%, transparent 50%);
}

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

.page-hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.page-hero p {
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 18px;
}

.breadcrumb a:hover {
  color: var(--color-accent);
}

.breadcrumb .sep {
  color: var(--color-accent);
}

/* ============================ SERVICES ============================ */
.services {
  background: var(--color-bg-light);
  padding: var(--section-padding);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.service-card {
  text-align: center;
  padding: 30px 24px;
  position: relative;
  transition: all var(--transition);
}

.service-card:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  bottom: 20%;
  width: 1px;
  background: var(--color-border-light);
}

.service-card:hover {
  transform: translateY(-6px);
}

.service-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}

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

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 14px;
  color: var(--color-text-dark);
}

.service-card p {
  color: var(--color-text-grey);
  font-size: 0.92rem;
  line-height: 1.7;
}

.service-card .service-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--color-accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: all var(--transition);
}

.service-card:hover .service-link {
  opacity: 1;
  transform: translateY(0);
}

/* Services page expanded */
.services-detailed {
  padding: 90px 0;
  background: #fff;
}

.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
  margin-bottom: 100px;
}

.service-detail:last-child {
  margin-bottom: 0;
}

.service-detail.reverse .service-detail-image {
  order: 2;
}

.service-detail-image {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-lg);
}

.service-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-detail-content h2 {
  margin-bottom: 20px;
  color: var(--color-text-dark);
}

.service-detail-content p {
  color: var(--color-text-grey);
  margin-bottom: 16px;
}

.service-detail-content ul {
  list-style: none;
  margin-top: 24px;
}

.service-detail-content li {
  padding: 10px 0 10px 28px;
  position: relative;
  color: var(--color-text-dark);
}

.service-detail-content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18px;
  width: 16px;
  height: 2px;
  background: var(--color-accent);
}

/* ============================ PROJECTS ============================ */
.projects {
  background: var(--color-bg-dark);
  padding: var(--section-padding);
  color: #fff;
}

.projects > .container {
  max-width: 1480px;
}

.projects .section-title {
  color: #fff;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-bottom: 50px;
}

.project-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-8px);
}

.project-image {
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.project-card:hover .project-image img {
  transform: scale(1.08);
}

.project-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.6) 100%);
  opacity: 0;
  transition: opacity var(--transition);
}

.project-card:hover .project-image::after {
  opacity: 1;
}

.project-info {
  padding: 20px 4px 6px;
}

.project-info h3 {
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 8px;
  font-weight: 600;
}

.project-info p {
  color: var(--color-text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.project-meta {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--color-accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 6px;
}

.projects-cta {
  text-align: center;
  margin-top: 30px;
}

/* Projects page grid - bigger */
.projects-detailed {
  padding: 90px 0;
  background: var(--color-bg-light);
}

.projects-detailed .projects-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.projects-detailed .project-card {
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.projects-detailed .project-card:hover {
  box-shadow: var(--shadow-lg);
}

.projects-detailed .project-info {
  padding: 24px;
}

.projects-detailed .project-info h3 {
  color: var(--color-text-dark);
}

.projects-detailed .project-info p {
  color: var(--color-text-grey);
}

.project-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.project-filter {
  padding: 10px 22px;
  background: transparent;
  color: var(--color-text-dark);
  border: 1px solid var(--color-border-light);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all var(--transition);
}

.project-filter:hover,
.project-filter.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

/* ============================ ABOUT ============================ */
.about {
  background: var(--color-bg-light);
  padding: var(--section-padding);
}

.about-content {
  max-width: 820px;
  margin: 0 auto 60px;
  text-align: center;
}

.about-content h2 {
  margin: 16px 0 24px;
  color: var(--color-text-dark);
}

.about-content p {
  color: var(--color-text-grey);
  margin-bottom: 16px;
  line-height: 1.75;
}

.about-content .btn {
  margin-top: 28px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-card {
  background: #fff;
  padding: 34px 26px;
  text-align: center;
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.stat-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 16px;
  color: var(--color-accent);
}

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

.stat-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.stat-label {
  color: var(--color-text-grey);
  font-size: 0.92rem;
}

/* About page extended */
.about-extended {
  padding: 90px 0;
  background: #fff;
}

.about-mission {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
  margin-bottom: 90px;
}

.about-mission-image {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-lg);
}

.about-mission-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 50px;
}

.value-card {
  padding: 36px 28px;
  background: var(--color-bg-light);
  border-radius: 8px;
  text-align: center;
  border-top: 3px solid var(--color-accent);
  transition: all var(--transition);
}

.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.value-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 18px;
  color: var(--color-accent);
}

.value-card h3 {
  margin-bottom: 12px;
  font-size: 1.15rem;
}

.value-card p {
  color: var(--color-text-grey);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ============================ CONTACT ============================ */
.contact {
  background: var(--color-bg-dark);
  padding: var(--section-padding);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  right: -100px;
  top: 50%;
  transform: translateY(-50%);
  width: 600px;
  height: 600px;
  background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 25%, transparent 25%),
    linear-gradient(225deg, rgba(255, 255, 255, 0.02) 25%, transparent 25%);
  background-size: 40px 40px;
  opacity: 0.5;
  z-index: 1;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 70px;
  position: relative;
  z-index: 2;
}

.contact-info h2 {
  margin: 16px 0 30px;
  text-transform: none;
}

.contact-info h2 .accent {
  color: var(--color-accent);
}

.contact-details {
  list-style: none;
  margin-top: 30px;
}

.contact-details li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.contact-details li svg {
  width: 18px;
  height: 18px;
  color: var(--color-accent);
  flex-shrink: 0;
}

.contact-details a:hover {
  color: var(--color-accent);
}

/* Form */
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group {
  position: relative;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  color: #fff;
  font-size: 0.92rem;
  transition: all var(--transition);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  background: rgba(255, 255, 255, 0.06);
}

.form-textarea {
  resize: vertical;
  min-height: 130px;
  font-family: inherit;
}

.form-submit {
  background: var(--color-accent);
  color: #fff;
  padding: 16px 30px;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: all var(--transition);
  justify-self: start;
  margin-top: 6px;
}

.form-submit:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
}

.form-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.form-status {
  grid-column: 1 / -1;
  padding: 14px 18px;
  border-radius: 4px;
  font-size: 0.9rem;
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
}

.form-status.error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

/* WhatsApp button */
.whatsapp-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  z-index: 999;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: all var(--transition);
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

.whatsapp-btn svg {
  width: 30px;
  height: 30px;
}

/* ============================ FOOTER ============================ */
.footer {
  background: var(--color-bg-darker);
  color: #fff;
  padding: 50px 0 30px;
  border-top: 1px solid var(--color-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 24px;
}

.footer-brand img {
  height: 56px;
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 18px;
}

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

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

.footer-col a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  transition: color var(--transition);
}

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

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--color-text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.footer-contact svg {
  width: 14px;
  height: 14px;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 4px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a:hover {
  color: var(--color-accent);
}

/* ============================ ANIMATIONS ============================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ============================ RESPONSIVE ============================ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card:not(:last-child)::after { display: none; }
  .service-card:nth-child(1)::after,
  .service-card:nth-child(2)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    bottom: 20%;
    width: 1px;
    background: var(--color-border-light);
    display: block;
  }
  .service-card:nth-child(2)::after { display: none; }

  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-detailed .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }

  .service-detail,
  .about-mission,
  .about-inner,
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .service-detail.reverse .service-detail-image { order: 0; }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 70px 0;
  }

  .menu-toggle { display: flex; }

  .nav {
    position: fixed;
    top: 86px;
    left: 0;
    right: 0;
    background: rgba(5, 5, 5, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 24px;
    gap: 18px;
    transform: translateX(100%);
    transition: transform var(--transition);
    height: calc(100vh - 86px);
    margin-left: 0;
  }

  .nav.open { transform: translateX(0); }
  .nav-link { font-size: 1rem; }

  .header .btn { display: none; }
  .nav .btn { display: inline-flex; margin-top: 12px; }

  .hero { min-height: 90vh; }
  .hero-overlay {
    background: linear-gradient(180deg,
      rgba(10, 10, 10, 0.92) 0%,
      rgba(10, 10, 10, 0.7) 100%);
  }

  .services-grid { grid-template-columns: 1fr; }
  .service-card::after { display: none !important; }

  .projects-grid,
  .projects-detailed .projects-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .btn { padding: 14px 22px; font-size: 0.8rem; }
  .logo img { height: 42px; }
}
