/* ============================================================
   MDStudio — components.css
   Nav, Footer, Cards, Ticker, Process, Page Hero, etc.
   ============================================================ */

/* ─── NAV ─────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  --nav-bg: rgba(17, 16, 9, 0.85);
  --nav-bg-scroll: rgba(17, 16, 9, 0.96);
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

[data-theme="light"] .nav {
  --nav-bg: rgba(244, 241, 235, 0.88);
  --nav-bg-scroll: rgba(244, 241, 235, 0.96);
}

.nav-inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
}

.logo-dot {
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 50%;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-links a {
  font-family: 'Jost', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-soft);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
  text-decoration: none;
}

.mobile-menu-footer {
  display: none;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .nav-links a:hover,
[data-theme="light"] .nav-links a.active {
  background: rgba(0, 0, 0, 0.06);
}

.nav-links .nav-hire a {
  background: var(--orange);
  color: var(--white);
  font-weight: 600;
  padding: 9px 20px;
}

.nav-links .nav-hire a:hover {
  background: var(--orange-dark);
}

/* Hamburger (mobile) */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(4.5px, 4.5px);
}

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

.nav-hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(4.5px, -4.5px);
}

@media (max-width: 860px) {
  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    height: calc(100vh - var(--nav-h));
    overflow-y: auto;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: center;
    padding: 40px 24px 80px;
    gap: 16px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
    display: flex;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .nav-links.open li {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-links.open li:nth-child(1) {
    transition-delay: 0.05s;
  }

  .nav-links.open li:nth-child(2) {
    transition-delay: 0.1s;
  }

  .nav-links.open li:nth-child(3) {
    transition-delay: 0.15s;
  }

  .nav-links.open li:nth-child(4) {
    transition-delay: 0.2s;
  }

  .nav-links.open li:nth-child(5) {
    transition-delay: 0.25s;
  }

  .nav-links.open li:nth-child(6) {
    transition-delay: 0.3s;
  }

  .nav-links.open li:nth-child(7) {
    transition-delay: 0.35s;
  }

  .nav-links.open li:nth-child(8) {
    transition-delay: 0.4s;
  }

  .nav-links a {
    width: auto;
    padding: 12px 16px;
    font-size: 30px;
    font-weight: 700;
    text-align: center;
    letter-spacing: -0.01em;
  }

  .nav-links .nav-hire {
    width: 100%;
    margin-top: 32px;
    display: flex;
    justify-content: center;
  }

  .nav-links .nav-hire a {
    width: auto;
    padding: 16px 32px;
    font-size: clamp(20px, 4vw, 24px);
    justify-content: center;
  }

  .nav-links .mobile-menu-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    width: 80%;
  }


  .mobile-footer-contacts {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .mobile-footer-contacts a,
  .mobile-footer-contacts span {
    font-size: 1rem !important;
    padding: 0 !important;
    text-align: center;
    color: var(--text-soft);
    font-weight: 400 !important;
    letter-spacing: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto !important;
  }

  .mobile-footer-contacts a i,
  .mobile-footer-contacts span i {
    color: var(--orange);
  }

  .mobile-footer-social {
    display: flex;
    gap: 16px;
    margin-top: 12px;
  }

  .mobile-footer-social a {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    color: var(--text) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.1rem !important;
    padding: 0 !important;
  }

  .mobile-footer-social a:hover {
    color: var(--orange) !important;
    border-color: var(--orange) !important;
  }

  .nav-inner {
    padding: 0 24px;
  }
}

/* ─── PAGE HERO (inner pages) ─────────────────── */
.page-hero {
  padding-top: var(--nav-h);
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bg-2);
  opacity: 0.8;
  z-index: 1;
}

.page-hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px 48px 72px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

.page-hero-img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  object-fit: cover;
  aspect-ratio: 4/3;
}

.page-hero .label {
  margin-bottom: 20px;
}

.page-hero h1 {
  margin-bottom: 20px;
  max-width: 700px;
}

.page-hero p {
  font-size: 1.1rem;
  max-width: 560px;
  color: var(--text-soft);
  font-weight: 300;
  line-height: 1.75;
  margin-bottom: 36px;
}

@media (max-width: 960px) {
  .page-hero-inner {
    padding: 64px 24px 56px;
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ─── HOME HERO OVERLAYS ──────────────────────── */
.home-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bg);
  opacity: 0.8;
  z-index: 0;
}

.home-hero>.container {
  position: relative;
  z-index: 1;
}

@keyframes tile-float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

.anim-float {
  animation: tile-float 5s ease-in-out infinite;
}

.anim-float-delay-1 {
  animation: tile-float 6.5s ease-in-out infinite 1s;
}

.anim-float-delay-2 {
  animation: tile-float 5.5s ease-in-out infinite 2s;
}

/* ─── THEME TOGGLE ────────────────────────────── */
.theme-toggle {
  background: none;
  border: none;
  color: var(--text-soft);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  margin-left: 10px;
}

.theme-toggle:hover {
  background: rgba(125, 125, 125, 0.1);
  color: var(--orange);
}

.theme-toggle i {
  font-size: 1.1rem;
}

/* ─── TICKER ──────────────────────────────────── */
.ticker {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
  padding: 13px 0;
}

.ticker-track {
  display: flex;
  gap: 0;
  animation: ticker-scroll 32s linear infinite;
  white-space: nowrap;
}

.ticker-track:hover {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding-right: 52px;
  font-family: 'Syne', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.ticker-item::after {
  content: '';
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
  opacity: 0.6;
}

@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ─── PROCESS SECTION ─────────────────────────── */
.process-section {
  background: var(--bg-2);
  padding: 110px 0;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  margin-top: 64px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.process-step {
  background: var(--bg-2);
  padding: 44px 36px;
  position: relative;
  transition: background 0.3s;
}

.process-step:hover {
  background: var(--bg-3);
}

.process-step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: background 0.3s;
}

.process-step:hover::before {
  background: var(--orange);
}

.process-num {
  font-family: 'Syne', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--surface-2);
  line-height: 1;
  margin-bottom: 20px;
  transition: color 0.3s;
}

.process-step:hover .process-num {
  color: var(--orange);
}

.process-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: background 0.3s;
}

.process-step:hover .process-icon {
  background: rgba(246, 146, 30, 0.15);
}

.process-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--text-faint);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.3s;
}

.process-step:hover .process-icon svg {
  stroke: var(--orange);
}

.process-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.process-desc {
  font-size: 0.86rem;
  color: var(--text-faint);
  font-weight: 400;
  line-height: 1.74;
}

@media (max-width: 900px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .process-grid {
    grid-template-columns: 1fr;
  }

  .process-step {
    padding: 32px 28px;
  }
}

/* ─── SERVICE CARDS ───────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 56px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--orange);
  transition: width 0.35s ease;
}

.service-card:hover {
  border-color: rgba(246, 146, 30, 0.25);
  background: var(--surface-2);
  transform: translateY(-3px);
}

.service-card:hover::after {
  width: 100%;
}

.service-card.featured {
  background: var(--orange);
  border-color: transparent;
}

.service-card.featured .service-num,
.service-card.featured .service-title {
  color: var(--white);
}

.service-card.featured .service-desc {
  color: rgba(255, 255, 255, 0.75);
}

.service-card.featured .service-link {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
}

.service-card.featured .service-icon {
  background: rgba(255, 255, 255, 0.15);
}

.service-card.featured .service-icon svg {
  stroke: var(--white);
}

.service-card.featured::after {
  background: rgba(255, 255, 255, 0.5);
}

.service-card.featured:hover {
  background: var(--orange-dark);
}

.service-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--orange);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-num {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.service-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.service-desc {
  font-size: 0.86rem;
  color: var(--text-soft);
  line-height: 1.74;
  font-weight: 400;
  flex: 1;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-soft);
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  letter-spacing: 0.04em;
  align-self: flex-start;
  margin-top: 6px;
  transition: color 0.2s, gap 0.2s, border-color 0.2s;
  text-transform: uppercase;
}

.service-link:hover {
  gap: 10px;
  color: var(--orange);
  border-color: var(--orange);
}

.service-link svg {
  width: 11px;
  height: 11px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
}

@media (max-width: 700px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── PROJECT CARDS ───────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 56px;
}

.project-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
  aspect-ratio: 4/3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s, border-color 0.3s;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(246, 146, 30, 0.2);
}

.project-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.project-card-overlay {
  position: absolute;
  inset: 0;
}

.project-card-overlay img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card-info {
  position: relative;
  z-index: 2;
  padding: 24px;
}

.project-card-info::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(to top, rgba(10, 9, 6, 0.85) 0%, rgba(10, 9, 6, 0.5) 60%, transparent 100%);
  z-index: -1;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  pointer-events: none;
}

.project-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f6921e;
  margin-bottom: 6px;
}

.project-title {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

/* Placeholder when no image */
.project-card-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
}

.project-card-placeholder svg {
  width: 40px;
  height: 40px;
  stroke: var(--text-faint);
  fill: none;
  stroke-width: 1;
  opacity: 0.4;
}

@media (max-width: 860px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── CLIENT STRIP ────────────────────────────── */
.clients-strip {
  background: var(--bg-2);
  padding: 72px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.clients-marquee-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
  margin-top: 44px;
}

.clients-marquee-wrapper::before,
.clients-marquee-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.clients-marquee-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-2) 0%, transparent 100%);
}

.clients-marquee-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-2) 0%, transparent 100%);
}

[data-theme="light"] .clients-marquee-wrapper::before {
  background: linear-gradient(to right, #f6f7fa 0%, transparent 100%);
}
[data-theme="light"] .clients-marquee-wrapper::after {
  background: linear-gradient(to left, #f6f7fa 0%, transparent 100%);
}

.clients-wrap {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: scroll-clients 55s linear infinite;
}

.clients-wrap:hover {
  animation-play-state: paused;
}

@keyframes scroll-clients {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 8px)); }
}

.client-tile {
  padding: 14px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  cursor: default;
}

.client-tile:hover {
  border-color: rgba(246, 146, 30, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.client-tile.hl {
  border-color: rgba(11, 239, 243, 0.15);
  color: rgba(143, 191, 200, 0.9);
}

/* ─── CTA BANNER ──────────────────────────────── */
.cta-banner-wrap {
  padding: 0 48px 110px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.cta-banner {
  background: var(--orange);
  border-radius: var(--radius-xl);
  padding: 72px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
}

.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -60px;
  right: 120px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(11, 239, 243, 0.1);
}

.cta-text h2 {
  color: var(--white);
  margin-bottom: 10px;
}

.cta-text p {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 300;
}

.cta-banner .btn-white {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

@media (max-width: 700px) {
  .cta-banner-wrap {
    padding: 0 20px 80px;
  }

  .cta-banner {
    padding: 48px 32px;
    flex-direction: column;
    text-align: center;
  }

  .cta-banner .btn-white {
    width: 100%;
    justify-content: center;
  }
}

/* ─── INTRO PILLARS ───────────────────────────── */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 56px;
}

.pillar {
  background: var(--surface);
  padding: 44px 36px;
  transition: background 0.25s;
}

.pillar:hover {
  background: var(--surface-2);
}

.pillar-num {
  font-family: 'Syne', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 14px;
}

.pillar h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 10px;
}

.pillar p {
  font-size: 0.86rem;
  color: var(--text-faint);
  line-height: 1.72;
}

@media (max-width: 720px) {
  .pillars-grid {
    grid-template-columns: 1fr;
  }

  .pillar {
    padding: 32px 28px;
  }
}

/* ─── FORM ────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-family: 'Jost', sans-serif;
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  outline: none;
  appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-faint);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: rgba(246, 146, 30, 0.5);
  box-shadow: 0 0 0 3px rgba(246, 146, 30, 0.1);
}

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

.form-group select {
  cursor: pointer;
  color: var(--text);
}

.form-group select option {
  background: var(--bg-2);
  color: var(--text);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 580px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ─── FOOTER ──────────────────────────────────── */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 40px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 36px;
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 16px;
  display: inline-flex;
}

.footer-brand p {
  font-size: 0.86rem;
  color: var(--text-faint);
  line-height: 1.75;
  font-weight: 500;
  margin-bottom: 24px;
}

.footer-contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-faint);
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 0.2s;
}

.footer-contact-row:hover {
  color: var(--orange);
}

.footer-contact-row svg {
  width: 13px;
  height: 13px;
  stroke: var(--orange);
  fill: none;
  stroke-width: 1.8;
  flex-shrink: 0;
}

.footer-col h5 {
  font-family: 'Syne', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 20px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 0.86rem;
  color: var(--text-faint);
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 500;
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 36px;
  font-size: 0.76rem;
  color: var(--text-faint);
  flex-wrap: wrap;
  gap: 12px;
}

.socials {
  display: flex;
  gap: 8px;
}

.social-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  font-size: 0.72rem;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.social-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: rgba(246, 146, 30, 0.08);
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 500px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 12px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* ─── LIGHTBOX ────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox-content {
  position: relative;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

.lightbox.active .lightbox-content {
  transform: translateY(0);
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  font-size: 1.2rem;
  transition: background 0.2s, color 0.2s;
  padding: 0;
}

.lightbox-close:hover {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}

.lightbox-img-wrapper {
  width: 100%;
  height: 400px;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.lightbox-details {
  padding: 32px 40px;
  background: var(--surface);
}

.lightbox-details h3 {
  margin-bottom: 8px;
  color: var(--white);
  font-family: 'Syne', sans-serif;
  font-size: 1.6rem;
}

.lightbox-meta {
  font-size: 0.85rem;
  color: var(--orange);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.lightbox-meta strong {
  color: var(--text-soft);
}

#lightbox-desc {
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.7;
}

@media(max-width: 768px) {
  .lightbox-details {
    padding: 24px;
  }

  .lightbox-img-wrapper {
    height: 250px;
  }
}