/* =========================================================
   GRUPO DALLAZEN — Design System
   Paleta: aço/carvão + verde industrial + laranja-segurança
   Tipografia: Poppins (display) + Inter (texto)
   Assinatura: cantos de "esquadro técnico" (blueprint corners)
   ========================================================= */

:root {
  --steel-900: #12181c;
  --steel-800: #1b2328;
  --steel-700: #2a3438;
  --steel-600: #47555a;
  --steel-300: #b9c3c6;
  --steel-100: #eef1f2;
  --paper: #f7f6f2;
  --white: #ffffff;

  --green-700: #1f6b3a;
  --green-600: #2c8a4c;
  --green-500: #37a35c;
  --teal-800: #0c4a48;
  --teal-700: #106a63;

  --safety-600: #d84315;
  --safety-500: #e8571f;

  --font-display: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;

  --shadow-sm: 0 2px 8px rgba(18,24,28,.08);
  --shadow-md: 0 10px 30px rgba(18,24,28,.12);
  --shadow-lg: 0 20px 50px rgba(18,24,28,.18);

  --ease: cubic-bezier(.22,1,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--steel-800);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
.icon { width: 18px; height: 18px; fill: currentColor; stroke: none; flex-shrink: 0; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--green-700); color: #fff; padding: 10px 16px; z-index: 999; }
.skip-link:focus { left: 12px; top: 12px; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; margin: 0; color: var(--steel-900); }
p { margin: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 13px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--green-600);
  margin-bottom: 12px;
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--safety-500); display: inline-block; }
.eyebrow-light { color: #bfe7cf; }
.eyebrow-light::before { background: var(--safety-500); }

.underline { position: relative; color: var(--green-600); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 28px; border-radius: var(--radius-sm); font-family: var(--font-display);
  font-weight: 600; font-size: 14px; letter-spacing: .03em; text-transform: uppercase;
  border: none; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--safety-600); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--safety-500); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--steel-900); border: 2px solid var(--steel-700); }
.btn-outline:hover { background: var(--steel-900); color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.5); }
.btn-outline-light:hover { background: #fff; color: var(--steel-900); }
.btn-whatsapp { background: #25d366; color: #fff; box-shadow: var(--shadow-sm); }
.btn-whatsapp:hover { background: #1ebe5b; box-shadow: var(--shadow-md); }
.btn-ghost { background: rgba(18,24,28,.05); color: var(--steel-800); }
.btn-ghost:hover { background: rgba(18,24,28,.1); }
.btn-sm { padding: 10px 16px; font-size: 12px; }
.btn-block { width: 100%; }

/* ---------- Topbar ---------- */
.topbar { background: var(--steel-900); color: #cfd8da; font-size: 13px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; height: 40px; }
.topbar-left { display: flex; gap: 22px; }
.topbar-item { display: inline-flex; align-items: center; gap: 6px; opacity: .9; transition: opacity .2s; }
.topbar-item .icon { width: 14px; height: 14px; }
.topbar-item:hover { opacity: 1; color: var(--green-500); }
.topbar-right { display: flex; gap: 14px; }
.topbar-right a { opacity: .85; }
.topbar-right a:hover { opacity: 1; color: var(--green-500); }
@media (max-width: 680px) { .topbar-item-hide-sm { display: none; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px); border-bottom: 1px solid rgba(18,24,28,.08);
  transition: box-shadow .3s var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 82px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { height: 46px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-main { font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--green-700); letter-spacing: .01em; }
.brand-tagline { font-family: var(--font-display); font-weight: 600; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--safety-600); }

.main-nav { display: flex; gap: 34px; }
.main-nav a { font-family: var(--font-display); font-weight: 500; font-size: 14.5px; color: var(--steel-700); position: relative; padding: 6px 0; transition: color .2s; }
.main-nav a::after { content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--safety-500); transition: width .3s var(--ease); }
.main-nav a:hover, .main-nav a.active { color: var(--green-700); }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; background: none; border: none; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2px; background: var(--steel-900); transition: all .3s var(--ease); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .main-nav {
    position: fixed; inset: 82px 0 0 0; background: #fff; flex-direction: column; gap: 0;
    padding: 10px 24px 30px; transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: all .3s var(--ease); border-top: 1px solid rgba(18,24,28,.08);
  }
  .main-nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid rgba(18,24,28,.06); }
  .nav-toggle { display: flex; }
  .header-actions .btn-ghost span { display: none; }
}
@media (max-width: 480px) {
  .header-actions .btn-ghost { padding: 10px 12px; }
}

/* ---------- Blueprint corner frame (signature element) ---------- */
.frame {
  position: relative;
}
.frame::before, .frame::after,
.frame > .corner-a, .frame > .corner-b { content: ''; position: absolute; width: 26px; height: 26px; border: 3px solid var(--safety-500); z-index: 2; }
.frame::before { top: -10px; left: -10px; border-right: none; border-bottom: none; }
.frame::after { bottom: -10px; right: -10px; border-left: none; border-top: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 640px; display: flex; align-items: center;
  background: linear-gradient(120deg, rgba(18,24,28,.88), rgba(18,24,28,.65)), url('https://images.unsplash.com/photo-1565193566173-7a0ee3dbe261?w=1600&q=80') center/cover;
  color: #fff; overflow: hidden;
}
.hero-grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 46px 46px; pointer-events: none;
}
.hero-content { position: relative; z-index: 2; max-width: 720px; padding: 100px 0 130px; }
.hero-title { font-size: clamp(34px, 5vw, 58px); color: #fff; margin-bottom: 20px; }
.hero-title em { font-style: normal; color: var(--green-500); }
.hero-sub { font-size: 17px; line-height: 1.7; color: rgba(255,255,255,.85); max-width: 560px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-badge {
  position: absolute; right: 40px; bottom: -1px; background: var(--green-700); color: #fff;
  padding: 22px 28px; border-radius: var(--radius-md) var(--radius-md) 0 0; text-align: center;
  box-shadow: var(--shadow-lg);
}
.hero-badge b { display: block; font-family: var(--font-display); font-size: 30px; }
.hero-badge span { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; opacity: .85; }
@media (max-width: 700px) { .hero-badge { display: none; } }

/* diagonal cut under hero */
.hero-cut { position: relative; }
.hero-cut svg { display: block; width: 100%; height: 60px; }

/* ---------- Page header (inner pages) ---------- */
.page-hero {
  background: linear-gradient(120deg, var(--steel-900), var(--steel-800));
  color: #fff; padding: 90px 0 60px; position: relative; overflow: hidden;
}
.page-hero::after {
  content: ''; position: absolute; right: -60px; top: -60px; width: 280px; height: 280px;
  border: 2px solid rgba(255,255,255,.08); border-radius: 50%;
}
.breadcrumb { font-size: 13px; color: rgba(255,255,255,.6); margin-bottom: 14px; }
.breadcrumb a { color: rgba(255,255,255,.8); }
.breadcrumb a:hover { color: var(--green-500); }
.page-title { font-size: clamp(30px, 4vw, 46px); color: #fff; }
.page-sub { color: rgba(255,255,255,.75); margin-top: 14px; max-width: 620px; font-size: 16px; }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section-alt { background: var(--white); }
.section-dark { background: var(--steel-900); color: #fff; }
.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section-head.left { margin: 0 0 52px; text-align: left; }
.section-title { font-size: clamp(26px, 3.4vw, 38px); }
.section-title em { font-style: normal; color: var(--green-600); }
.section-desc { margin-top: 16px; color: var(--steel-600); font-size: 16px; line-height: 1.7; }

/* ---------- Sobre / Quem somos ---------- */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; }
.about-media { position: relative; }
.about-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.about-badge { position: absolute; left: -24px; bottom: -24px; background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-md); padding: 20px 24px; text-align: center; }
.about-badge b { display: block; font-family: var(--font-display); font-size: 32px; color: var(--green-700); }
.about-badge span { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--steel-600); }
.about-text p { color: var(--steel-600); line-height: 1.8; margin-bottom: 16px; font-size: 15.5px; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 34px; }
.pillar { display: flex; gap: 14px; }
.pillar-icon { width: 44px; height: 44px; border-radius: var(--radius-sm); background: rgba(44,138,76,.1); color: var(--green-700); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pillar h4 { font-size: 15px; margin-bottom: 4px; }
.pillar p { font-size: 13.5px; color: var(--steel-600); line-height: 1.6; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } .pillars { grid-template-columns: 1fr; } .about-badge { left: 14px; bottom: -18px; padding: 14px 18px; } }

/* ---------- Serviços cards ---------- */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.services-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.service-card {
  background: #fff; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease); position: relative;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.service-media { height: 170px; overflow: hidden; position: relative; }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.service-card:hover .service-media img { transform: scale(1.08); }
.service-icon {
  position: absolute; bottom: -22px; left: 20px; width: 46px; height: 46px; border-radius: var(--radius-sm);
  background: var(--safety-600); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md);
}
.service-body { padding: 34px 22px 22px; }
.service-body h3 { font-size: 18px; margin-bottom: 10px; }
.service-body p { font-size: 14px; color: var(--steel-600); line-height: 1.65; margin-bottom: 16px; }
.service-link { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 600; font-size: 13px; color: var(--green-700); text-transform: uppercase; letter-spacing: .04em; }
.service-link .icon { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.service-card:hover .service-link .icon { transform: translateX(4px); }
@media (max-width: 1000px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services-grid, .services-grid.cols-2 { grid-template-columns: 1fr; } }

/* ---------- Stats strip ---------- */
.stats-strip { background: var(--green-700); color: #fff; padding: 56px 0; position: relative; overflow: hidden; }
.stats-strip::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.08) 1.5px, transparent 1.5px); background-size: 22px 22px; }
.stats-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; gap: 20px; }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(30px, 4vw, 44px); }
.stat span { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; opacity: .85; }
@media (max-width: 700px) { .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 30px; } }

/* ---------- Portfólio ---------- */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.portfolio-item { position: relative; border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--shadow-sm); }
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.portfolio-overlay {
  position: absolute; inset: 0; background: linear-gradient(0deg, rgba(18,24,28,.88), transparent 60%);
  display: flex; align-items: flex-end; padding: 20px; opacity: 0; transition: opacity .35s var(--ease);
}
.portfolio-item:hover img { transform: scale(1.1); }
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-overlay h4 { color: #fff; font-size: 16px; }
.portfolio-overlay span { color: var(--green-500); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 900px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .portfolio-grid { grid-template-columns: 1fr; } }

.portfolio-filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.filter-btn { padding: 10px 20px; border-radius: 999px; border: 1.5px solid rgba(18,24,28,.15); background: #fff; font-family: var(--font-display); font-size: 13px; font-weight: 600; cursor: pointer; transition: all .25s var(--ease); }
.filter-btn:hover { border-color: var(--green-600); color: var(--green-700); }
.filter-btn.active { background: var(--green-700); border-color: var(--green-700); color: #fff; }

/* ---------- Depoimentos ---------- */
.testimonials-wrap { position: relative; max-width: 760px; margin: 0 auto; }
.testimonial-card { background: #fff; border-radius: var(--radius-lg); padding: 44px 40px; box-shadow: var(--shadow-md); text-align: center; }
.stars { color: var(--safety-500); font-size: 18px; letter-spacing: 3px; margin-bottom: 18px; }
.testimonial-text { font-size: 18px; line-height: 1.7; color: var(--steel-800); font-style: italic; margin-bottom: 26px; }
.testimonial-person { display: flex; align-items: center; justify-content: center; gap: 12px; }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--green-700); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; }
.testimonial-person b { display: block; font-size: 14px; }
.testimonial-person span { font-size: 12.5px; color: var(--steel-600); }
.testi-nav { display: flex; justify-content: center; gap: 10px; margin-top: 30px; }
.testi-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(18,24,28,.2); border: none; cursor: pointer; transition: all .25s; }
.testi-dot.active { background: var(--green-700); width: 24px; border-radius: 5px; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--teal-800), var(--teal-700)); padding: 80px 0; text-align: center; color: #fff; position: relative; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 40px 40px; }
.cta-inner { position: relative; }
.cta-title { color: #fff; font-size: clamp(28px, 4vw, 42px); margin-bottom: 16px; }
.cta-sub { color: rgba(255,255,255,.8); font-size: 16px; margin-bottom: 32px; }
.cta-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--steel-900); color: #cfd8da; padding-top: 70px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-logo { height: 42px; margin-bottom: 14px; filter: brightness(0) invert(1); }
.footer-brand-text { margin-bottom: 14px; display: flex; flex-direction: column; }
.footer-brand-text .brand-main { color: #fff; }
.footer-brand p { font-size: 14px; line-height: 1.7; color: #97a3a6; margin-top: 4px; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; transition: all .25s; }
.footer-social a:hover { background: var(--green-600); transform: translateY(-3px); }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 20px; }
.footer-col a, .footer-contact-item { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; color: #a7b2b4; margin-bottom: 13px; transition: color .2s; line-height: 1.5; }
.footer-col a:hover { color: var(--green-500); }
.footer-contact-item .icon { width: 15px; height: 15px; margin-top: 2px; color: var(--green-500); flex-shrink: 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; padding: 22px 0; font-size: 13px; color: #7c8789; flex-wrap: wrap; gap: 8px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
  position: fixed; right: 24px; bottom: 24px; width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,.45); z-index: 200; animation: pulse 2.4s infinite;
}
.whatsapp-float .icon { width: 28px; height: 28px; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.55); } 70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }

/* ---------- Forms ---------- */
.form-card { background: #fff; border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-md); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-family: var(--font-display); font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--steel-700); margin-bottom: 8px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 13px 16px; border: 1.5px solid rgba(18,24,28,.14); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 14.5px; background: var(--steel-100); transition: border-color .2s, background .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--green-600); background: #fff; }
.form-group textarea { resize: vertical; min-height: 130px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

.contact-info-list { display: flex; flex-direction: column; gap: 22px; }
.contact-info-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-info-icon { width: 48px; height: 48px; border-radius: var(--radius-sm); background: rgba(44,138,76,.1); color: var(--green-700); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-info-item h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--steel-600); margin-bottom: 4px; }
.contact-info-item p, .contact-info-item a { font-size: 15.5px; font-weight: 500; color: var(--steel-900); }

.alert { padding: 16px 20px; border-radius: var(--radius-sm); margin-bottom: 24px; font-size: 14px; }
.alert-success { background: #e4f6e9; color: var(--green-700); border: 1px solid rgba(44,138,76,.3); }
.alert-error { background: #fdeee9; color: var(--safety-600); border: 1px solid rgba(216,67,21,.3); }

/* ---------- Scroll reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(1) { transition-delay: .05s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: .15s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: .25s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: .35s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: .45s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: .55s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; }
}

.portfolio-item.is-video { cursor: pointer; }
.portfolio-item video.portfolio-media { width: 100%; height: 100%; object-fit: cover; }
.portfolio-video-placeholder { position: absolute; inset: 0; background: linear-gradient(135deg, var(--steel-800), var(--steel-700)); }
.portfolio-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 58px; height: 58px; border-radius: 50%; background: rgba(255,255,255,.92);
  display: flex; align-items: center; justify-content: center; color: var(--safety-600);
  box-shadow: var(--shadow-md); transition: transform .25s var(--ease), background .25s var(--ease); z-index: 2;
}
.portfolio-play .icon { width: 24px; height: 24px; margin-left: 3px; }
.portfolio-item.is-video:hover .portfolio-play { transform: translate(-50%, -50%) scale(1.1); background: #fff; }

/* Lightbox */
.lightbox-overlay {
  position: fixed; inset: 0; background: rgba(10,14,16,.94); z-index: 500;
  display: flex; align-items: center; justify-content: center; padding: 30px;
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease);
}
.lightbox-overlay.open { opacity: 1; visibility: visible; }
.lightbox-box { position: relative; width: min(92vw, 420px); aspect-ratio: 9/16; max-height: 88vh; background: #000; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-lg); }
.lightbox-box.wide { width: min(92vw, 820px); aspect-ratio: 16/9; }
.lightbox-box video, .lightbox-box iframe { width: 100%; height: 100%; border: 0; object-fit: contain; background: #000; }
.lightbox-close {
  position: absolute; top: -46px; right: 0; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.15); color: #fff; display: flex; align-items: center; justify-content: center;
  border: none; cursor: pointer; transition: background .2s;
}
.lightbox-close:hover { background: rgba(255,255,255,.3); }
.lightbox-caption { position: absolute; bottom: -34px; left: 0; color: #cfd8da; font-size: 13px; }

/* ---------- Misc pages ---------- */
.empty-state { text-align: center; padding: 60px 20px; color: var(--steel-600); }
.empty-state svg { width: 56px; height: 56px; margin-bottom: 16px; opacity: .4; }
