/* =========================================================
   G.E. Constructions — styles.css
   Premium dark theme | Vanilla CSS
   ========================================================= */

/* ── 1. CSS Custom Properties ────────────────────────────── */
:root {
  --bg:     #0b0d10;
  --panel:  #11151b;
  --card:   #121a22;
  --text:   #e9eef5;
  --muted:  rgba(233, 238, 245, 0.72);
  --accent: #d6b36a;
  --accent-dim: rgba(214, 179, 106, 0.18);
  --accent-hover: #e8c97e;
  --line:   rgba(233, 238, 245, 0.10);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.25);
  --radius: 18px;
  --radius-sm: 10px;
  --nav-h: 72px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui,
    'Inter', 'Helvetica Neue', Arial, sans-serif;
}

/* ── 2. Reset & Base ─────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

/* ── 3. Focus / Accessibility ────────────────────────────── */
:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.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;
}

/* ── 4. Typography ───────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 5rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3.4rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
h4 { font-size: 1.05rem; }

p { max-width: 65ch; }

.accent { color: var(--accent); }
.muted  { color: var(--muted); font-weight: 400; }
.mt-1   { margin-top: 1rem; }

/* ── 5. Layout Utilities ─────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

.section {
  padding-block: clamp(5rem, 10vw, 9rem);
  position: relative;
}

.section--dark {
  background: var(--panel);
}

.section-header {
  text-align: center;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.section-title {
  margin-bottom: 1rem;
}

.section-sub {
  color: var(--muted);
  font-size: 1.05rem;
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

/* ── 6. Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.8em 1.8em;
  border-radius: 100px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background var(--transition), color var(--transition),
    transform var(--transition), box-shadow var(--transition),
    border-color var(--transition);
  white-space: nowrap;
  cursor: pointer;
}

.btn--accent {
  background: var(--accent);
  color: #0b0d10;
  border: 2px solid var(--accent);
}

.btn--accent:hover,
.btn--accent:focus-visible {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(214, 179, 106, 0.35);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--line);
}

.btn--outline:hover,
.btn--outline:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn--sm {
  padding: 0.55em 1.3em;
  font-size: 0.85rem;
}

.btn--full {
  width: 100%;
  justify-content: center;
}

/* ── 7. Chips ────────────────────────────────────────────── */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.45em 1.1em;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1.5px solid var(--line);
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition),
    border-color var(--transition);
  letter-spacing: 0.02em;
}

.chip:hover,
.chip:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.chip--active {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}

.chip--sm {
  font-size: 0.7rem;
  padding: 0.3em 0.8em;
}

/* ── 8. Navigation ───────────────────────────────────────── */
.nav-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition),
    border-color var(--transition);
}

.nav-header.scrolled {
  background: rgba(11, 13, 16, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: var(--nav-h);
}

.nav__logo img {
  height: 48px;
  width: auto;
}

.footer__brand img {
  height: 68px;
  width: auto;
  align-self: flex-start;
  object-fit: contain;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex: 1;
  justify-content: center;
}

.nav__link {
  font-size: 0.87rem;
  font-weight: 500;
  padding: 0.4em 0.8em;
  border-radius: 6px;
  color: var(--muted);
  transition: color var(--transition), background var(--transition);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0.8em;
  right: 0.8em;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.nav__link:hover,
.nav__link.active {
  color: var(--text);
}

.nav__link.active::after {
  transform: scaleX(1);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.nav__hamburger:hover { background: var(--line); }

.bar {
  display: block;
  width: 22px;
  height: 1.8px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition),
    width var(--transition);
  transform-origin: center;
}

.nav-open .bar:nth-child(1) { transform: translateY(6.8px) rotate(45deg); }
.nav-open .bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-open .bar:nth-child(3) { transform: translateY(-6.8px) rotate(-45deg); }

/* Drawer */
.nav__drawer {
  display: none;
  background: var(--panel);
  border-top: 0px solid var(--line);
  padding: 0 clamp(1.25rem, 5vw, 3rem);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    border-top-width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav__drawer.open {
  max-height: 600px;
  padding-block: 1.5rem;
  border-top-width: 1px;
}

.nav__drawer ul {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav__drawer-link {
  display: block;
  padding: 0.7em 0.4em;
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  transition: color var(--transition);
  text-align: center;
}

.nav__drawer-link:hover { color: var(--accent); }

/* ── 8b. Language Toggle ─────────────────────────────────── */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: rgba(233, 238, 245, 0.06);
  border: 1.5px solid var(--line);
  border-radius: 100px;
  padding: 0.2em 0.5em;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  user-select: none;
}

.lang-option {
  padding: 0.2em 0.45em;
  border-radius: 100px;
  color: var(--muted);
  transition: color var(--transition), background var(--transition);
  cursor: pointer;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
}

.lang-option:hover { color: var(--text); }

.lang-option--active {
  color: var(--accent);
  background: var(--accent-dim);
}

.lang-sep {
  color: var(--line);
  font-size: 0.75em;
  padding: 0 0.1em;
  pointer-events: none;
}

/* ── 9. Hero ─────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: calc(var(--nav-h) + 4rem) 6rem;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(11, 13, 16, 0.88) 0%,
    rgba(11, 13, 16, 0.65) 60%,
    rgba(11, 13, 16, 0.82) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.hero__title {
  color: var(--text);
  margin-bottom: 1.4rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.hero__sub {
  font-size: clamp(0.97rem, 1.8vw, 1.18rem);
  color: var(--muted);
  margin-bottom: 2.4rem;
  max-width: 56ch;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 4rem;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
}

.stat-card {
  background: rgba(17, 21, 27, 0.72);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  padding: 1.4rem 2rem;
  border-radius: var(--radius-sm);
  flex: 1;
  min-width: 130px;
  max-width: 200px;
}

.stat-card__value {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.stat-card__label {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: var(--muted);
  animation: scrollBob 2.4s ease-in-out infinite;
  transition: color var(--transition);
}

.hero__scroll:hover { color: var(--accent); }

@keyframes scrollBob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ── 10. Services ────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.service-card { grid-column: span 2; }                 /* 3 per row = 6 cards in 2 rows */

.service-card {
  background: var(--card);
  padding: clamp(1.8rem, 4vw, 2.8rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
  transition: background var(--transition), transform var(--transition);
  cursor: pointer;
}

.service-card:hover {
  background: #14202c;
  z-index: 1;
}

.service-card__icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}

.service-card__icon svg {
  width: 100%;
  height: 100%;
}

.service-card__title {
  font-size: 1.1rem;
  font-weight: 700;
}

.service-card__desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
}

.service-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
  transition: gap var(--transition);
}

.service-card:hover .service-card__cta { gap: 0.7em; }

/* ── 11. Projects ────────────────────────────────────────── */
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.project-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: left;
  transition: transform var(--transition), box-shadow var(--transition),
    opacity var(--transition), border-color var(--transition);
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(214, 179, 106, 0.25);
}

.project-card.hidden {
  display: none;
}

.project-card.fade-out {
  opacity: 0;
  transform: scale(0.97);
}

.project-card__img {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--panel);
}

.project-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-card:hover .project-card__img img {
  transform: scale(1.06);
}

.project-card__body {
  padding: 1.2rem 1.4rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.project-card__title {
  font-size: 0.95rem;
  font-weight: 600;
}

/* ── 12. Process ─────────────────────────────────────────── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

/* Connecting line */
.process-grid::before {
  content: '';
  position: absolute;
  top: 4rem;
  left: calc(25% - 0px);
  right: calc(25% - 0px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.25;
  pointer-events: none;
  z-index: 1;
}

.process-card {
  background: var(--bg);
  padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  position: relative;
  transition: background var(--transition);
}

.process-card:hover { background: var(--card); }

.process-card__num {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent);
  opacity: 0.7;
}

.process-card__icon {
  width: 48px;
  height: 48px;
}

.process-card__icon svg {
  width: 100%;
  height: 100%;
}

.process-card__title {
  font-size: 1.12rem;
  font-weight: 700;
}

.process-card__desc {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ── 13. About ───────────────────────────────────────────── */

/* Background image wrapper (reusable) */
.section--bg-img {
  position: relative;
  isolation: isolate;
}

.section-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.section-bg__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.section-bg__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(11, 13, 16, 0.93) 0%,
    rgba(17, 21, 27, 0.87) 50%,
    rgba(11, 13, 16, 0.92) 100%
  );
}

/* Boost card opacity slightly when rendered over image */
.section--bg-img .value-card {
  background: rgba(18, 26, 34, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

.about-story .section-title {
  margin-bottom: 1.5rem;
}

.about-story__body {
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.75;
  margin-bottom: 1.2rem;
  max-width: 52ch;
}

.about-bullets {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.about-bullets li {
  display: flex;
  align-items: center;
  gap: 0.8em;
  font-size: 0.92rem;
  color: var(--text);
}

.about-bullets li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.value-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: border-color var(--transition), transform var(--transition);
}

.value-card:hover {
  border-color: rgba(214, 179, 106, 0.3);
  transform: translateY(-2px);
}

.value-card__icon {
  width: 36px;
  height: 36px;
}

.value-card__icon svg {
  width: 100%;
  height: 100%;
}

.value-card__title {
  font-size: 0.95rem;
  font-weight: 700;
}

.value-card__desc {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.55;
  max-width: none;
}

/* ── 14. Testimonials ────────────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.8rem, 3vw, 2.6rem);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  transition: border-color var(--transition), transform var(--transition);
}

.testimonial-card:hover {
  border-color: rgba(214, 179, 106, 0.2);
  transform: translateY(-2px);
}

.testimonial-card__stars {
  display: flex;
  gap: 4px;
}

.testimonial-card__stars svg {
  width: 16px;
  height: 16px;
}

.testimonial-card__quote {
  font-size: 0.97rem;
  color: var(--muted);
  line-height: 1.7;
  font-style: italic;
  flex: 1;
  max-width: none;
}

.testimonial-card__author {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-style: normal;
  border-top: 1px solid var(--line);
  padding-top: 1.2rem;
}

.testimonial-card__name {
  font-weight: 700;
  font-size: 0.92rem;
}

.testimonial-card__role {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

/* ── 15. Contact ─────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-row--half {
  flex-direction: row;
  gap: 1.2rem;
}

.form-row--half .form-group {
  flex: 1;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.form-label span {
  color: var(--accent);
}

.form-input {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.85em 1.1em;
  font-size: 0.95rem;
  font-family: var(--font);
  color: var(--text);
  width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition),
    background var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

.form-input::placeholder { color: rgba(233, 238, 245, 0.3); }

.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(214, 179, 106, 0.12);
  background: #14202c;
}

.form-input.error {
  border-color: #e05a5a;
  box-shadow: 0 0 0 3px rgba(224, 90, 90, 0.1);
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%23d6b36a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1em center;
  padding-right: 3em;
  cursor: pointer;
}

.form-select option {
  background: var(--card);
  color: var(--text);
}

.form-textarea {
  resize: vertical;
  min-height: 130px;
}

.form-error {
  font-size: 0.77rem;
  color: #e07878;
  font-weight: 500;
  min-height: 1em;
  display: block;
}

/* Contact Cards */
.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* When the contact form is removed or hidden, make the cards span the grid
   and centre them for a balanced layout. Keeps behaviour the same when the
   form is present. */
.contact-grid .contact-cards {
  grid-column: 1 / -1;
  max-width: 560px;
  margin-inline: auto;
}

.contact-info-card {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.2rem 1.4rem;
  transition: border-color var(--transition);
}

.contact-info-card:hover {
  border-color: rgba(214, 179, 106, 0.25);
}

.contact-info-card__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: var(--accent-dim);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.contact-info-card__icon svg {
  width: 100%;
  height: 100%;
}

.contact-info-card__label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.2rem;
  max-width: none;
}

.contact-info-card__value {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  max-width: none;
  display: block;
  transition: color var(--transition);
}

.contact-info-card__value:hover { color: var(--accent); }

.map-placeholder {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  margin-top: 0.5rem;
}

/* ── 16. Footer ──────────────────────────────────────────── */
.footer {
  background: #080a0d;
  border-top: 1px solid var(--line);
  padding-block: clamp(3.5rem, 7vw, 6rem) 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.footer__tagline {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 22ch;
}

.footer__nav-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 1.2rem;
  max-width: none;
}

.footer__nav ul,
.footer__services ul {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer__nav li a,
.footer__services li {
  font-size: 0.87rem;
  color: var(--muted);
  transition: color var(--transition);
}

.footer__nav li a:hover { color: var(--accent); }

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer__contact a {
  font-size: 0.87rem;
  color: var(--muted);
  transition: color var(--transition);
}

.footer__contact a:hover { color: var(--accent); }

.footer__bottom {
  text-align: center;
}

.footer__bottom p {
  font-size: 0.8rem;
  color: var(--muted);
  max-width: none;
}

.footer__credit {
  margin-top: 0.4rem;
}

.footer__credit a {
  color: var(--muted);
  text-decoration: none;
  transition: color var(--transition);
}

.footer__credit a:hover {
  color: var(--accent);
}

.footer__social {
  display: flex;
  gap: 0.9rem;
  margin-top: 1.2rem;
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--muted);
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.footer__social a:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-dim);
}

/* ── 17. Modals ──────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(5, 7, 10, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  width: 100%;
  max-width: 600px;
  max-height: 90svh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.modal-panel--wide {
  max-width: 860px;
}

.project-modal-img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: 520px;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius) var(--radius) 0 0;
  flex-shrink: 0;
}

.modal-overlay.open .modal-panel {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  z-index: 10;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: background var(--transition), color var(--transition),
    border-color var(--transition);
}

.modal-close:hover {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: var(--accent);
}

.modal-body {
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 2.4rem;
}

.modal-title {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  margin-bottom: 1rem;
}

.modal-desc {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 1.8rem;
  max-width: none;
}

.modal-list-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.modal-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.modal-list li {
  display: flex;
  align-items: center;
  gap: 0.8em;
  font-size: 0.9rem;
  color: var(--muted);
}

.modal-list li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.project-modal-meta {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

.project-modal-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.4rem;
  margin-top: 1.6rem;
}

.project-detail-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.3rem;
  max-width: none;
}

.project-detail-value {
  font-size: 0.92rem;
  color: var(--text);
  max-width: none;
}

/* ── 18. Toast ───────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 3000;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  box-shadow: var(--shadow);
  max-width: 340px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.toast.success { border-left: 3px solid #5ec97e; }
.toast.error   { border-left: 3px solid #e07878; }

/* ── 19. Reveal Animation ────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(44px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero elements slide in from slightly below on load */
.hero .reveal {
  transform: translateY(30px);
}

/* Grid stagger delays */
.services-grid     .reveal:nth-child(2) { transition-delay: 0.10s; }
.services-grid     .reveal:nth-child(3) { transition-delay: 0.20s; }
.services-grid     .reveal:nth-child(4) { transition-delay: 0.30s; }
.services-grid     .reveal:nth-child(5) { transition-delay: 0.40s; }
.services-grid     .reveal:nth-child(6) { transition-delay: 0.50s; }

.projects-grid     .reveal:nth-child(2) { transition-delay: 0.08s; }
.projects-grid     .reveal:nth-child(3) { transition-delay: 0.16s; }
.projects-grid     .reveal:nth-child(4) { transition-delay: 0.24s; }
.projects-grid     .reveal:nth-child(5) { transition-delay: 0.08s; }
.projects-grid     .reveal:nth-child(6) { transition-delay: 0.16s; }
.projects-grid     .reveal:nth-child(7) { transition-delay: 0.24s; }
.projects-grid     .reveal:nth-child(8) { transition-delay: 0.08s; }

.process-grid      .reveal:nth-child(2) { transition-delay: 0.12s; }
.process-grid      .reveal:nth-child(3) { transition-delay: 0.24s; }
.process-grid      .reveal:nth-child(4) { transition-delay: 0.36s; }

.values-grid       .reveal:nth-child(2) { transition-delay: 0.10s; }
.values-grid       .reveal:nth-child(3) { transition-delay: 0.20s; }
.values-grid       .reveal:nth-child(4) { transition-delay: 0.30s; }

.testimonials-grid .reveal:nth-child(2) { transition-delay: 0.12s; }
.testimonials-grid .reveal:nth-child(3) { transition-delay: 0.24s; }

/* ── 20. Scroll-lock (modal open) ────────────────────────── */
body.modal-open { overflow: hidden; }

/* ── 21. Responsive — 960px ──────────────────────────────── */
@media (max-width: 960px) {
  /* Nav */
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .nav__drawer { display: block; }
  .nav__actions { margin-left: auto; }
  /* Hide top CTA on mobile and style drawer CTA */
  .nav__actions #nav-cta { display: none; }
  .nav__drawer .nav__drawer-cta { display: block; width: 100%; margin-top: 1rem; text-align: center; }
  .nav__drawer .nav__drawer-cta.btn { padding: 0.6rem 1rem; }

  /* Hero */
  .hero__stats { gap: clamp(0.5rem, 2vw, 1rem); }
  .stat-card { min-width: 110px; }

  /* Services */
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card:nth-child(n) { grid-column: span 1; }

  /* Projects */
  .projects-grid { grid-template-columns: repeat(3, 1fr); }

  /* Process */
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid::before { display: none; }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  /* Testimonials */
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid > :last-child {
    grid-column: span 2;
    max-width: 380px;
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

/* ── 22. Responsive — 640px ──────────────────────────────── */
@media (max-width: 640px) {
  /* Hero */
  .hero__ctas { flex-direction: column; }
  .hero__ctas .btn { width: 100%; justify-content: center; }
  .hero__stats { flex-direction: column; }
  .stat-card { max-width: 100%; }

  /* Services */
  .services-grid { grid-template-columns: 1fr; }
  .service-card:nth-child(n) { grid-column: span 1; }

  /* Projects */
  .projects-grid { grid-template-columns: repeat(2, 1fr); }

  /* Process */
  .process-grid { grid-template-columns: 1fr; }

  /* About values */
  .values-grid { grid-template-columns: 1fr; }

  /* Testimonials */
  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonials-grid > :last-child { grid-column: span 1; max-width: none; }

  /* Contact form */
  .form-row--half { flex-direction: column; }

  /* Footer */
  .footer__grid { grid-template-columns: 1fr; }

  /* Center footer content on small screens */
  .footer__brand,
  .footer__nav,
  .footer__services,
  .footer__contact {
    align-items: center;
    text-align: center;
  }

  .footer__brand img { margin-inline: auto; }

  /* Toast */
  .toast { left: 1rem; right: 1rem; bottom: 1rem; }

  /* Modal */
  .modal-panel { max-height: 95svh; }
  .modal-body { padding: 1.6rem; }

  /* Chips */
  .filter-chips { flex-wrap: wrap; gap: 0.4rem; }
}

/* ── 23. Reduced Motion ──────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__scroll { animation: none; }
}
