/* ================================================================
   Pictures Publicidade e Produções
   Palette: Cream + Terracotta Orange (brand)
   Typography: Poppins
   ================================================================ */

/* --- Custom Properties --- */
:root {
  --bg: #F2E8D9;
  --bg-alt: #EBE0CE;
  --bg-card: #FBF5EC;
  --bg-hover: #F5EAD8;

  --white: #FFFFFF;
  --dark: #1A0D06;
  --text: #2D1A0C;
  --text-secondary: #5E4232;
  --text-muted: #6B4A32;

  --accent: #C85020;
  --accent-hover: #A83E16;
  --accent-light: rgba(200, 80, 32, 0.12);

  --border: #DECCB5;
  --border-light: #D0BDA5;

  --shadow-sm: 0 2px 12px rgba(180, 90, 40, 0.08);
  --shadow-md: 0 6px 28px rgba(180, 90, 40, 0.12);
  --shadow-lg: 0 12px 48px rgba(180, 90, 40, 0.18);

  --font: 'Poppins', sans-serif;
  --container: 1100px;
  --transition: all 0.35s ease;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

ul, ol { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ================================================================
   ANIMATIONS
   ================================================================ */
@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(24px, -24px) scale(1.06); }
  66%       { transform: translate(-16px, 16px) scale(0.94); }
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes dotPulse {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%       { transform: scale(1.5); opacity: 0.6; }
}

@keyframes accentLine {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* --- Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left  { transform: translateX(-32px); opacity: 0; transition: opacity 0.75s ease, transform 0.75s ease; }
.reveal-right { transform: translateX(32px);  opacity: 0; transition: opacity 0.75s ease, transform 0.75s ease; }
.reveal-left.active, .reveal-right.active { transform: translateX(0); opacity: 1; }

.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

/* ================================================================
   NAVIGATION
   ================================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 24px 0;
  background: #2D3537;
  transition: background 0.4s ease, padding 0.3s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.nav.scrolled {
  background: #F2E8D9;
  padding: 16px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.07);
}

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

.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img {
  height: 48px;
  width: auto;
  transition: filter 0.4s ease;
}

.nav.scrolled .nav-logo img {
  filter: brightness(0);
}

.nav-logo img + .logo-text { display: none; }

.nav-logo .logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.nav-logo .logo-text span:first-child {
  font-weight: 700;
  font-size: 1rem;
  color: var(--dark);
  letter-spacing: -0.02em;
}

.nav-logo .logo-text span:last-child {
  font-size: 0.6rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}

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

.nav-links a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  position: relative;
  transition: color 0.35s ease;
}

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

.nav-links a:not(.nav-cta):hover { color: #FFFFFF; }
.nav-links a:not(.nav-cta):hover::after { width: 100%; }
.nav-links a.nav-active:not(.nav-cta) { color: #FFFFFF; }
.nav-links a.nav-active:not(.nav-cta)::after { width: 100%; }

.nav-cta {
  color: var(--accent) !important;
  border: 1.5px solid var(--accent);
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-weight: 500 !important;
  transition: background 0.3s, color 0.3s;
}

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

.nav-cta::after { display: none !important; }

/* Nav scrolled — tema claro */
.nav.scrolled .nav-links a {
  color: rgba(45, 26, 12, 0.70);
}
.nav.scrolled .nav-links a:not(.nav-cta):hover {
  color: var(--dark);
}
.nav.scrolled .nav-links a.nav-active:not(.nav-cta) {
  color: var(--dark);
}
.nav.scrolled .nav-toggle span {
  background: var(--text);
}

/* Mobile Menu */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav-toggle span {
  width: 22px; height: 1.5px;
  background: #FFFFFF;
  transition: background 0.35s ease, transform 0.35s ease, opacity 0.35s ease;
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

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

/* Floating blobs */
.hero::before {
  content: '';
  position: absolute;
  width: 560px; height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 80, 32, 0.16) 0%, rgba(200, 80, 32, 0) 70%);
  top: -180px; right: -80px;
  animation: blobFloat 9s ease-in-out infinite alternate;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 80, 32, 0.10) 0%, rgba(200, 80, 32, 0) 70%);
  bottom: 60px; left: -60px;
  animation: blobFloat 12s ease-in-out infinite alternate-reverse;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 140px;
  padding-bottom: 80px;
}

.hero-content { max-width: 680px; }

/* Entrance animations */
.hero-content > *:nth-child(1) { animation: heroFadeUp 0.9s 0.1s ease both; }
.hero-content > *:nth-child(2) { animation: heroFadeUp 0.9s 0.28s ease both; }
.hero-content > *:nth-child(3) { animation: heroFadeUp 0.9s 0.46s ease both; }
.hero-content > *:nth-child(4) { animation: heroFadeUp 0.9s 0.64s ease both; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 500;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 3px;
}

.hero-badge .dot {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: dotPulse 2.5s ease-in-out infinite;
}

.hero h1 {
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.1;
  margin-bottom: 28px;
  letter-spacing: -0.03em;
}

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

.hero p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 44px;
  font-weight: 300;
}

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

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(200, 80, 32, 0.30);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--white);
  box-shadow: 0 6px 24px rgba(200, 80, 32, 0.40);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid rgba(45, 26, 12, 0.38);
}

.btn-outline:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-dark:hover {
  background: var(--bg-hover);
  border-color: var(--border-light);
}

.btn svg { width: 16px; height: 16px; }

/* ================================================================
   SECTION HEADERS
   ================================================================ */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 72px;
}

.section-tag {
  display: inline-block;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 4px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-header p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
  font-weight: 300;
}

/* ================================================================
   ABOUT
   ================================================================ */
.about {
  padding: 140px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-content .section-tag { text-align: left; }

.about-content h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.about-content h2 .highlight { color: var(--accent); }

.about-content p {
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 16px;
  font-size: 0.95rem;
  font-weight: 300;
}

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 40px;
}

.about-value {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

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

.about-value .icon {
  width: 32px; height: 32px;
  min-width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.about-value h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 2px;
}

.about-value p {
  font-size: 0.78rem;
  margin-bottom: 0;
  color: var(--text-muted);
  font-weight: 400;
}

.about-visual { position: relative; }

.about-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-md);
}

.about-card .tagline {
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.55;
  margin-bottom: 40px;
  color: var(--text-secondary);
}

.about-card .tagline .highlight {
  color: var(--dark);
  font-weight: 600;
}

/* ================================================================
   SERVICES
   ================================================================ */
.services {
  padding: 140px 0;
  background: var(--bg-alt);
}

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

.service-card {
  background: var(--white);
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: bottom;
  border-radius: 0 3px 3px 0;
  transition: transform 0.35s ease;
}

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

.service-card:hover::before { transform: scaleY(1); }

.service-icon {
  font-size: 1.5rem;
  margin-bottom: 24px;
  opacity: 0.9;
}

.service-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--dark);
}

.service-card > p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.65;
  font-weight: 300;
}

.service-card .service-list {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.service-card .service-list li {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 4px 0;
  padding-left: 16px;
  position: relative;
}

.service-card .service-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 12px;
  width: 6px; height: 1px;
  background: var(--accent);
  opacity: 0.6;
}

/* ================================================================
   PORTFOLIO
   ================================================================ */
.portfolio {
  padding: 140px 0;
  background: var(--bg);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.portfolio-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: var(--transition);
  display: block;
  box-shadow: var(--shadow-sm);
}

.portfolio-card:hover {
  border-color: var(--border-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.portfolio-card-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.portfolio-card:hover .portfolio-card-img { opacity: 0.75; }

.portfolio-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  background: linear-gradient(180deg, transparent 40%, rgba(26, 13, 6, 0.88) 100%);
}

.portfolio-card-category {
  font-size: 0.65rem;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.portfolio-card-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.portfolio-card-desc {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 16px;
  line-height: 1.5;
  font-weight: 300;
}

.portfolio-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.7);
  font-weight: 400;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0;
  transform: translateY(8px);
  transition: var(--transition);
}

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

.portfolio-card-link svg { width: 14px; height: 14px; }

/* ================================================================
   PORTFOLIO CLIENT SECTIONS (Index)
   ================================================================ */
.portfolio-clients {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.portfolio-client {
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.portfolio-client:first-child {
  border-top: none;
  padding-top: 0;
}

.portfolio-client-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 32px;
}

.portfolio-client-header .portfolio-client-category {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 6px;
  display: block;
}

.portfolio-client-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.portfolio-client-header p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 300;
  max-width: 480px;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.75rem;
  white-space: nowrap;
}

/* ================================================================
   CAROUSEL COMPONENT
   ================================================================ */
.carousel {
  position: relative;
  margin-bottom: 24px;
}

.carousel:last-child { margin-bottom: 0; }

.carousel-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
  display: block;
}

.carousel-wrapper {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding: 4px 0;
}

.carousel-track::-webkit-scrollbar { display: none; }

.carousel-item {
  flex-shrink: 0;
  scroll-snap-align: start;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.carousel-item:hover {
  border-color: var(--border-light);
  box-shadow: var(--shadow-sm);
}

.carousel-item.item-image { width: 260px; aspect-ratio: 1; }
.carousel-item.item-image img { width: 100%; height: 100%; object-fit: cover; }

.carousel-item.item-reel { width: 200px; aspect-ratio: 9 / 16; }
.carousel-item.item-reel video { width: 100%; height: 100%; object-fit: cover; }

.carousel-item.item-video { width: 380px; aspect-ratio: 16 / 9; }
.carousel-item.item-video video { width: 100%; height: 100%; object-fit: cover; }

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(251, 245, 236, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--dark);
  font-size: 1.3rem;
  cursor: pointer;
  transition: var(--transition);
  opacity: 0;
  box-shadow: var(--shadow-sm);
}

.carousel:hover .carousel-arrow { opacity: 1; }

.carousel-arrow:hover {
  background: var(--white);
  border-color: var(--accent);
  color: var(--accent);
}

.carousel-arrow.carousel-prev { left: 8px; }
.carousel-arrow.carousel-next { right: 8px; }
.carousel-arrow.hidden { display: none; }

/* ================================================================
   CASE STUDY PAGES
   ================================================================ */
.case-intro {
  padding: 48px 0 0;
  background: var(--bg);
}

.case-meta {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.case-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.case-meta-item .label {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.case-meta-item .value {
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 400;
}

.case-text-section {
  padding: 64px 0;
  background: var(--bg);
}

.case-text-section + .case-text-section { padding-top: 0; }

.case-text-block { max-width: 720px; }

.case-text-block h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.case-text-block p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.85;
  font-weight: 300;
  margin-bottom: 12px;
}

.case-text-block ul { margin-top: 8px; }

.case-text-block ul li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.75;
  font-weight: 300;
  padding: 4px 0 4px 18px;
  position: relative;
}

.case-text-block ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 14px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* Media sections */
.media-section {
  padding: 48px 0;
  background: var(--bg);
}

.media-section.alt-bg { background: var(--bg-alt); }

.media-section-title {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 20px;
}

.featured-img {
  margin-bottom: 32px;
  cursor: zoom-in;
}

.featured-img img {
  width: 100%;
  max-width: 560px;
  height: auto;
  border-radius: var(--radius-md);
  display: block;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
}

/* Image rows */
.image-row-wrapper { position: relative; overflow: hidden; }

.image-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding: 4px 0;
}

.image-row::-webkit-scrollbar { display: none; }

.image-row .row-img {
  flex-shrink: 0;
  scroll-snap-align: start;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  cursor: pointer;
}

.image-row .row-img:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
  transform: scale(1.02);
}

.image-row .row-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity 0.3s;
}

.image-row .row-img:hover img { opacity: 0.88; }

.image-row-feed .row-img    { width: 260px; aspect-ratio: 4 / 5; }
.image-row-stories .row-img { width: 200px; aspect-ratio: 9 / 16; }
.image-row-carousel .row-img { width: 420px; aspect-ratio: 16 / 9; }

/* Image row arrows */
.image-row-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 10;
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(251, 245, 236, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--dark);
  font-size: 1.3rem;
  cursor: pointer;
  transition: var(--transition);
  opacity: 0;
  box-shadow: var(--shadow-sm);
}

.image-row-wrapper:hover .image-row-arrow { opacity: 1; }

.image-row-arrow:hover {
  background: var(--white);
  border-color: var(--accent);
  color: var(--accent);
}

.image-row-arrow.arrow-prev { left: 8px; }
.image-row-arrow.arrow-next { right: 8px; }
.image-row-arrow.hidden { display: none; }

/* Stacked videos */
.stacked-videos {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 800px;
}

.stacked-video-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.stacked-video-item video { width: 100%; display: block; }

/* ================================================================
   DIFFERENTIALS
   ================================================================ */
.differentials {
  padding: 140px 0;
  background: var(--bg-alt);
}

.diff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.diff-item {
  display: flex;
  gap: 24px;
  padding: 40px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.diff-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.diff-number {
  font-size: 2.5rem;
  font-weight: 300;
  color: rgba(200, 80, 32, 0.32);
  line-height: 1;
  min-width: 56px;
  transition: color 0.3s ease;
}

.diff-item:hover .diff-number { color: var(--accent); }

.diff-content h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--dark);
}

.diff-content p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.65;
  font-weight: 300;
}

/* ================================================================
   CTA — ORANGE IMPACT SECTION
   ================================================================ */
.cta-section {
  padding: 120px 0;
  background: var(--accent);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  top: -150px; right: -100px;
  animation: blobFloat 10s ease-in-out infinite alternate;
  pointer-events: none;
}

.cta-section::after {
  content: '';
  position: absolute;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  bottom: -80px; left: -60px;
  animation: blobFloat 13s ease-in-out infinite alternate-reverse;
  pointer-events: none;
}

.cta-content {
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cta-content h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  margin-bottom: 44px;
  line-height: 1.75;
  font-weight: 300;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-section .btn-primary {
  background: var(--white);
  color: var(--accent);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.cta-section .btn-primary:hover {
  background: var(--dark);
  color: var(--white);
}

.cta-section .btn-outline {
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
}

.cta-section .btn-outline:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  transform: translateY(-2px);
}

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  background: #1E0F06;
  padding: 72px 0 28px;
  color: #F0E4D3;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand .logo-text {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.footer-brand .logo-text span:first-child {
  font-weight: 700;
  font-size: 1rem;
  color: #F0E4D3;
}

.footer-brand .logo-text span:last-child {
  font-size: 0.6rem;
  color: rgba(240, 228, 211, 0.45);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.footer-brand p {
  color: rgba(240, 228, 211, 0.55);
  font-size: 0.85rem;
  line-height: 1.75;
  max-width: 300px;
  font-weight: 300;
}

.footer-col h4 {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
  color: rgba(240, 228, 211, 0.4);
}

.footer-col a {
  display: block;
  color: rgba(240, 228, 211, 0.6);
  font-size: 0.85rem;
  padding: 5px 0;
  font-weight: 300;
  transition: color 0.25s;
}

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

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.footer-social a {
  width: 38px; height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(240, 228, 211, 0.18);
  border-radius: var(--radius-sm);
  color: rgba(240, 228, 211, 0.5);
  transition: all 0.3s ease;
  padding: 0;
}

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

.footer-social a svg { width: 17px; height: 17px; }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(240, 228, 211, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  color: rgba(240, 228, 211, 0.35);
  font-size: 0.75rem;
  font-weight: 300;
}

/* ================================================================
   PORTFOLIO PAGE (Individual Client)
   ================================================================ */
.portfolio-hero {
  padding: 160px 0 80px;
  background: var(--bg);
  text-align: center;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.portfolio-hero::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 80, 32, 0.1) 0%, transparent 70%);
  top: -120px; right: -80px;
  pointer-events: none;
}

.portfolio-hero .back-link {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-bottom: 32px;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  z-index: 2;
}

.portfolio-hero .back-link:hover { color: var(--accent); }
.portfolio-hero .back-link svg { width: 14px; height: 14px; }

.portfolio-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 2;
}

.portfolio-hero .category {
  display: inline-block;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 3px;
  position: relative;
  z-index: 2;
}

.portfolio-hero p {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  font-weight: 300;
  line-height: 1.75;
  position: relative;
  z-index: 2;
}

/* Gallery */
.gallery-section { padding: 100px 0; background: var(--bg-alt); }
.gallery-section .section-header { text-align: left; margin-bottom: 48px; }

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

.gallery-item {
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  aspect-ratio: 1;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid var(--border);
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}

.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

.gallery-item .zoom-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 13, 6, 0.4);
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover .zoom-icon { opacity: 1; }

.gallery-item .zoom-icon svg { width: 28px; height: 28px; color: var(--white); }

/* Video */
.video-section { padding: 100px 0; background: var(--bg); }

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.video-item {
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.video-item video { width: 100%; display: block; }

.video-item.single-video {
  grid-column: 1 / -1;
  max-width: 800px;
  margin: 0 auto;
}

/* ================================================================
   MEDIA LIGHTBOX — always dark
   ================================================================ */
.media-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.97);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.media-lightbox.active { display: flex; }

.mlb-content {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%; height: 100%;
}

.mlb-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.mlb-video {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-md);
  background: #000;
  outline: none;
}

.mlb-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 44px; height: 44px;
  background: rgba(20, 20, 20, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  color: #FFFFFF;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10;
}

.mlb-close:hover {
  background: rgba(200, 80, 32, 0.8);
  border-color: transparent;
}

.mlb-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px;
  background: rgba(20, 20, 20, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  color: #FFFFFF;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10;
}

.mlb-nav:hover { background: rgba(40, 40, 40, 0.95); border-color: rgba(255,255,255,0.4); }

.mlb-prev { left: 16px; }
.mlb-next { right: 16px; }

.mlb-counter {
  position: absolute;
  bottom: 20px; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  letter-spacing: 2px;
  font-weight: 400;
}

/* Play overlay */
.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 13, 6, 0.22);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: auto;
  z-index: 5;
  border-radius: inherit;
  cursor: pointer;
}

.carousel-item:hover .play-overlay,
.stacked-video-item:hover .play-overlay { opacity: 1; }

.play-overlay svg {
  width: 48px; height: 48px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

.carousel-item { position: relative; }
.stacked-video-item { position: relative; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
  .hero-content { max-width: 100%; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }

  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 100%; height: 100vh;
    background: #2D3537;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    gap: 24px;
    transition: var(--transition);
  }

  .nav-links.active { right: 0; }
  .nav-links a { font-size: 1rem; color: rgba(255, 255, 255, 0.85); }
  .nav-links a::after { display: none; }
  .nav-toggle { display: flex; }
  .nav-logo img { height: 40px; }

  .services-grid  { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .diff-grid      { grid-template-columns: 1fr; }
  .about-values   { grid-template-columns: 1fr; }
  .gallery-grid   { grid-template-columns: repeat(2, 1fr); }
  .video-grid     { grid-template-columns: 1fr; }

  .portfolio-client-header { flex-direction: column; gap: 16px; }
  .portfolio-client-header .btn-sm { align-self: flex-start; }
  .portfolio-client-header p { max-width: 100%; }

  .portfolio-hero { padding: 120px 20px 60px; }
  .case-meta { gap: 20px; }
  .case-meta-item .value { font-size: 0.82rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

  .cta-actions { flex-direction: column; align-items: center; }

  .about, .services, .portfolio, .differentials { padding: 80px 0; }
  .cta-section { padding: 72px 0; }

  .diff-item { padding: 28px; gap: 16px; }
  .diff-number { font-size: 2rem; min-width: 40px; }

  .media-lightbox { padding: 16px; }
  .mlb-nav   { width: 36px; height: 36px; font-size: 1.1rem; }
  .mlb-close { width: 36px; height: 36px; font-size: 1.1rem; }
  .mlb-prev { left: 8px; }
  .mlb-next { right: 8px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero h1 { font-size: 1.8rem; }
  .hero .container { padding-top: 120px; padding-bottom: 60px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }
  .gallery-grid { grid-template-columns: 1fr; }
  .portfolio-card { aspect-ratio: 16 / 12; }
  .nav-logo img { height: 36px; }
  .portfolio-hero { padding: 110px 16px 48px; }
  .portfolio-hero h1 { font-size: 1.6rem; }
  .image-row-feed .row-img    { width: 220px; }
  .image-row-stories .row-img { width: 160px; }
  .carousel-item.item-reel  { width: 160px; }
  .carousel-item.item-video { width: 300px; }
  .image-row-carousel .row-img { width: 320px; }
  .about-card { padding: 32px; }
  .about-card .tagline { font-size: 1.1rem; }
  .service-card { padding: 28px 24px; }
}
