/* =============================================================
   Ephraim Daniel Villegas — Portfolio
   Light, minimal, agency-style. Plain CSS, no framework.
   ============================================================= */

:root {
  --bg: #fdfdfa;
  --bg-alt: #f4f3ee;
  --fg: #0f0f0f;
  --fg-muted: #6b6b6b;
  --border: #e5e2da;
  --accent: #ff5b22;
  --accent-hover: #e64a13;
  --whatsapp: #25d366;

  --max-width: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
  --section-pad: clamp(72px, 10vw, 140px);

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --radius: 8px;
  --radius-lg: 16px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; margin: 0; line-height: 1.1; }

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

section { padding-top: var(--section-pad); padding-bottom: var(--section-pad); }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--fg-muted);
  margin-bottom: 24px;
}
.section-label::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--fg);
}

.section-heading {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 600;
  max-width: 18ch;
  margin-bottom: 56px;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(253, 253, 250, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}
.site-header.scrolled { border-bottom-color: var(--border); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-brand {
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.nav-brand span { color: var(--accent); }
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 14px;
  color: var(--fg-muted);
  font-weight: 500;
  position: relative;
}
.nav-links a:hover { color: var(--fg); }
.nav-cta {
  font-size: 14px;
  font-weight: 500;
  padding: 10px 20px;
  background: var(--fg);
  color: var(--bg);
  border-radius: 50px;
  transition: background var(--transition);
}
.nav-cta:hover { background: var(--accent); }

/* ---------- Mobile bottom nav ---------- */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: rgba(253, 253, 250, 0.88);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom, 0);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.04);
}
.mobile-nav-link {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 4px 8px;
  color: var(--fg-muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color var(--transition), transform var(--transition);
  position: relative;
}
.mobile-nav-link i {
  font-size: 22px;
  line-height: 1;
  transition: transform var(--transition);
}
.mobile-nav-link.active {
  color: var(--accent);
}
.mobile-nav-link.active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 2px;
  background: var(--accent);
  border-radius: 0 0 4px 4px;
}
.mobile-nav-link:active i { transform: scale(0.9); }

/* ---------- Hero ---------- */
.hero {
  padding-top: calc(var(--section-pad) + 40px);
  padding-bottom: calc(var(--section-pad) - 20px);
  position: relative;
  overflow: hidden;
}
.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--fg-muted);
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 50px;
  background: var(--bg);
  margin-bottom: 40px;
}
.hero-status .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #18d26e;
  box-shadow: 0 0 0 4px rgba(24, 210, 110, 0.18);
}

.hero h1 {
  font-size: clamp(48px, 9vw, 120px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.95;
  max-width: 14ch;
  margin-bottom: 32px;
}
.hero h1 .accent { color: var(--accent); font-style: italic; font-weight: 500; }

.hero-sub {
  font-size: clamp(17px, 1.6vw, 22px);
  color: var(--fg-muted);
  max-width: 56ch;
  margin: 0 0 48px 0;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 50px;
  transition: all var(--transition);
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--fg);
  color: var(--bg);
}
.btn-primary:hover { background: var(--accent); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--fg);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--fg); background: var(--fg); color: var(--bg); }
.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
}
.btn-whatsapp:hover { background: #1ebe5d; transform: translateY(-1px); }
.btn .arrow { transition: transform var(--transition); }
.btn:hover .arrow { transform: translateX(3px); }

.hero-meta {
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.hero-meta .item .num {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.02em;
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}
.hero-meta .item .label {
  font-size: 13px;
  color: var(--fg-muted);
}

/* ---------- Work / Portfolio ---------- */
.work { background: var(--bg-alt); }

.work-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 56px;
}
.work-header .section-heading { margin-bottom: 0; }

.work-filters {
  display: flex;
  gap: 4px;
  background: var(--bg);
  padding: 4px;
  border-radius: 50px;
  border: 1px solid var(--border);
}
.work-filters button {
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-muted);
  border-radius: 50px;
  transition: all var(--transition);
}
.work-filters button.active {
  background: var(--fg);
  color: var(--bg);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.work-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--border);
}
.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.12);
}
.work-card-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-alt);
}
.work-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.work-card:hover .work-card-image img { transform: scale(1.05); }

.work-card-body { padding: 24px 26px 28px; }
.work-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}
.work-card-meta .tag {
  padding: 4px 10px;
  background: var(--bg-alt);
  border-radius: 50px;
  font-size: 11px;
}
.work-card h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
}
.work-card p { color: var(--fg-muted); font-size: 14px; margin: 0; }

/* Hidden by filter */
.work-card.hidden { display: none; }

/* ---------- Client logo grid (bento) ---------- */
.work-sub {
  color: var(--fg-muted);
  font-size: 15px;
  margin: 12px 0 0;
  max-width: 52ch;
}
.work-note {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  align-self: flex-end;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--fg-muted);
  white-space: nowrap;
}

/* Auto-sliding logo carousel */
.logo-marquee {
  position: relative;
  /* vertical padding gives the hover border + shadow room before the clip edge */
  padding: 14px 0 30px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 34s linear infinite;
  will-change: transform;
}
.logo-marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.client-card {
  position: relative;
  flex: 0 0 auto;
  width: clamp(230px, 26vw, 300px);
  aspect-ratio: 16 / 10;
  margin-right: 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(28px, 4vw, 44px);
  overflow: hidden;
  transition: box-shadow var(--transition), border-color var(--transition);
}
/* Warm accent glow on hover */
.client-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 130% at 50% -10%, rgba(255, 91, 34, 0.12), transparent 62%);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}
.client-card:hover {
  border-color: var(--accent);
  box-shadow: 0 26px 50px -18px rgba(0, 0, 0, 0.16);
}
.client-card:hover::before { opacity: 1; }
.client-card img {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform var(--transition);
}
.client-card:hover img { transform: scale(1.04); }

/* Logos with light lettering need a dark backdrop */
.client-card.is-dark {
  background: #14151a;
  border-color: #1d1f26;
}
.client-card.is-dark:hover { border-color: var(--accent); }

/* "Live" badge + pulsing dot */
.live-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--fg-muted);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 50px;
}
.client-card.is-dark .live-badge {
  color: #d7d8dc;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  animation: live-pulse 2.2s ease-out infinite;
}
@keyframes live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45); }
  70%  { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
/* Note: the marquee intentionally slides even with "reduce motion" on,
   per design request. Only the small dot pulse respects the setting. */
@media (prefers-reduced-motion: reduce) {
  .live-dot { animation: none; }
}

/* Smaller logos + faster loop on phones */
@media (max-width: 600px) {
  .client-card { width: clamp(170px, 60vw, 220px); margin-right: 14px; }
  .marquee-track { animation-duration: 26s; }
  .work-note { align-self: flex-start; }
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
.about-grid.no-portrait {
  grid-template-columns: 1fr;
  max-width: 880px;
}

.about-body p {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.55;
  color: var(--fg);
  margin: 0 0 24px 0;
}
.about-body p + p { color: var(--fg-muted); font-size: 17px; line-height: 1.65; }

.about-facts {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.about-facts dt {
  font-size: 12px;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 6px;
}
.about-facts dd { margin: 0; font-size: 16px; font-weight: 500; }

/* ---------- Skills strip ---------- */
.skills {
  background: var(--fg);
  color: var(--bg);
  padding-top: 64px;
  padding-bottom: 64px;
}
.skills-eyebrow {
  text-align: center;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 22px 0;
}
.tech-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 24px 56px;
  max-width: 880px;
  margin: 0 auto;
}
.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  min-width: 72px;
  opacity: 0.7;
  cursor: default;
  transition: opacity var(--transition), transform var(--transition);
}
.tech-item:hover {
  opacity: 1;
  transform: translateY(-3px);
}
.tech-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.4));
}
.tech-icon {
  font-size: 44px;
  line-height: 1;
  color: var(--accent);
}
.tech-item span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 500;
  letter-spacing: 0.01em;
}

@media (max-width: 600px) {
  .tech-strip { gap: 22px 32px; }
  .tech-logo { width: 38px; height: 38px; }
  .tech-icon { font-size: 36px; }
  .tech-item span { font-size: 12px; }
}


/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 30px;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.16);
}

/* Large ghost number in the corner */
.service-num {
  position: absolute;
  top: 14px;
  right: 22px;
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--fg);
  opacity: 0.06;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

/* Icon chip */
.service-icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  margin-bottom: 22px;
  font-size: 24px;
  color: var(--accent);
  background: rgba(255, 91, 34, 0.10);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.service-card:hover .service-icon {
  background: var(--accent);
  color: #fff;
  transform: scale(1.06) rotate(-3deg);
}

.service-card h3 {
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 10px;
}
.service-card p {
  color: var(--fg-muted);
  font-size: 15px;
  margin: 0 0 22px;
}

/* Tech stack footer — pushes to the bottom so cards align */
.service-stack {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 500;
  color: var(--fg-muted);
}

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

/* ---------- Process ---------- */
.process-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}
.process-step {
  display: grid;
  grid-template-columns: 90px 1.1fr 2fr;
  gap: 48px;
  align-items: start;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
  transition: padding-left var(--transition), background var(--transition);
  position: relative;
}
.process-step::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 50%;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--transition);
  transform: translateY(-50%);
}
.process-step:hover { padding-left: 28px; }
.process-step:hover::before { width: 16px; }
.process-step:hover .step-num { color: var(--accent); }
.process-step:hover h3 { color: var(--accent); }

.process-step .step-num {
  font-size: 16px;
  font-weight: 500;
  color: var(--fg-muted);
  font-variant-numeric: tabular-nums;
  padding-top: 4px;
  transition: color var(--transition);
}

.process-step .step-title h3 {
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 8px 0;
  transition: color var(--transition);
}
.process-step .step-meta {
  font-size: 12px;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.process-step .step-body {
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg-muted);
  margin: 0;
  padding-top: 6px;
}

/* ---------- FAQ ---------- */
.faq {
  background: var(--fg);
  color: var(--bg);
}
.faq .section-label { color: rgba(255, 255, 255, 0.55); }
.faq .section-label::before { background: var(--bg); }
.faq .section-heading { color: var(--bg); }

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  overflow: hidden;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.faq-item:hover { border-color: rgba(255, 255, 255, 0.18); }
.faq-item[open] {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  font-size: 16px;
  font-weight: 600;
  color: var(--bg);
  user-select: none;
  outline: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { display: none; }
.faq-item summary:focus-visible { box-shadow: inset 0 0 0 2px rgba(255, 91, 34, 0.4); border-radius: 14px; }

.faq-icon {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
  transition: background 0.25s, border-color 0.25s;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: rgba(255, 255, 255, 0.85);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-icon::before {
  width: 12px;
  height: 1.5px;
  transform: translate(-50%, -50%) rotate(0deg);
}
.faq-icon::after {
  width: 1.5px;
  height: 12px;
  transform: translate(-50%, -50%) rotate(0deg);
}
.faq-item[open] .faq-icon {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
}
.faq-item[open] .faq-icon::before { transform: translate(-50%, -50%) rotate(45deg); }
.faq-item[open] .faq-icon::after  { transform: translate(-50%, -50%) rotate(45deg); }

.faq-body {
  padding: 0 24px 24px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 15px;
  line-height: 1.65;
  max-width: 80ch;
}
.faq-body strong { color: var(--bg); font-weight: 500; }

@media (max-width: 600px) {
  .faq-item summary { padding: 18px 20px; font-size: 15px; }
  .faq-body { padding: 0 20px 20px; font-size: 14px; }
  .faq-icon { width: 28px; height: 28px; }
}

/* ---------- Contact ---------- */
.contact { background: var(--fg); color: var(--bg); }
.contact .section-label { color: rgba(255, 255, 255, 0.6); }
.contact .section-label::before { background: var(--bg); }
.contact .section-heading { color: var(--bg); }

/* Centered contact layout */
.contact .container { text-align: center; }
.contact .section-heading { max-width: none; }
.contact-channels { text-align: left; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 80px;
  align-items: start;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.contact-channels { display: flex; flex-direction: column; gap: 4px; }
.contact-channel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 18px;
  color: var(--bg);
  transition: padding var(--transition);
}
.contact-channel:hover { padding-left: 8px; }
.contact-channel .channel-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 4px;
}
.contact-channel .channel-value { font-size: 18px; font-weight: 500; }
.contact-channel:hover .channel-value { color: var(--accent); }
.contact-channel .arrow {
  font-size: 22px;
  transition: transform var(--transition);
}
.contact-channel:hover .arrow { transform: translate(3px, -3px); color: var(--accent); }

.contact-form { display: flex; flex-direction: column; gap: 18px; }
.contact-form label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  color: var(--bg);
  font-family: inherit;
  font-size: 15px;
  transition: border-color var(--transition), background var(--transition);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(255, 255, 255, 0.35); }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.09);
}
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form button {
  align-self: flex-start;
  margin-top: 8px;
  padding: 14px 32px;
  background: var(--accent);
  color: #fff;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 500;
  transition: all var(--transition);
}
.contact-form button:hover { background: var(--accent-hover); transform: translateY(-1px); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--fg);
  color: rgba(255, 255, 255, 0.55);
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
}
.footer-social { display: flex; gap: 18px; }
.footer-social a { color: rgba(255, 255, 255, 0.55); transition: color var(--transition); font-size: 18px; }
.footer-social a:hover { color: var(--accent); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 15, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 40px;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--radius);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 20px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background var(--transition);
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.22); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .mobile-nav { display: flex; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0)); }

  .about-grid { grid-template-columns: 1fr; gap: 48px; }

  .contact-grid { grid-template-columns: 1fr; gap: 48px; }

  .process-step {
    grid-template-columns: 70px 1fr;
    gap: 24px;
    padding: 28px 0;
  }
  .process-step .step-body { grid-column: 2; }

  .work-header { align-items: flex-start; }
  .work-header .section-heading { margin-bottom: 8px; }
}

@media (max-width: 600px) {
  :root { --section-pad: 64px; }
  .hero { padding-top: 120px; }
  .hero-meta { gap: 24px; }
  .hero-meta .item .num { font-size: 28px; }
  .about-facts { grid-template-columns: 1fr; gap: 18px; }
  .footer-social { width: 100%; }
}

/* =============================================================
   Chat widget — lead-capture concierge (bottom-right)
   ============================================================= */
.chat {
  position: fixed;
  right: clamp(16px, 4vw, 32px);
  bottom: clamp(16px, 4vw, 32px);
  z-index: 70;
  font-family: var(--font-sans);
}

/* ---- Launcher button ---- */
.chat-launcher {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 28px rgba(255, 91, 34, 0.4), 0 4px 10px rgba(0, 0, 0, 0.12);
  transition: transform var(--transition), background var(--transition);
  /* soft glow "breathes" to draw the eye — animates box-shadow only,
     so hover/press transforms still work and it never reads as a stray ring */
  animation: chat-glow 2.8s ease-in-out infinite;
}
.chat-launcher:hover { background: var(--accent-hover); transform: translateY(-2px); }
.chat-launcher:active { transform: scale(0.94); }
.chat-launcher i { font-size: 26px; line-height: 1; transition: opacity var(--transition), transform var(--transition); }
.chat-launcher .icon-close { position: absolute; opacity: 0; transform: rotate(-90deg) scale(0.6); }
.chat.open .chat-launcher .icon-open { opacity: 0; transform: rotate(90deg) scale(0.6); }
.chat.open .chat-launcher .icon-close { opacity: 1; transform: rotate(0) scale(1); }
.chat.open .chat-launcher { animation: none; }
@keyframes chat-glow {
  0%, 100% { box-shadow: 0 12px 28px rgba(255, 91, 34, 0.4), 0 4px 10px rgba(0, 0, 0, 0.12), 0 0 0 0 rgba(255, 91, 34, 0); }
  50%      { box-shadow: 0 12px 30px rgba(255, 91, 34, 0.45), 0 4px 10px rgba(0, 0, 0, 0.12), 0 0 20px 5px rgba(255, 91, 34, 0.45); }
}

/* unread dot */
.chat-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #16c75e;
  border: 2px solid var(--bg);
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  display: grid;
  place-items: center;
}
.chat.open .chat-badge { display: none; }

/* ---- Greeting nudge bubble ---- */
.chat-nudge {
  position: absolute;
  bottom: 50%;
  right: 74px;
  transform: translateY(50%);
  width: max-content;
  max-width: 230px;
  background: var(--fg);
  color: var(--bg);
  font-size: 13.5px;
  line-height: 1.45;
  padding: 12px 34px 12px 14px;
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(50%) translateX(8px) scale(0.96);
  transition: opacity var(--transition), transform var(--transition);
}
.chat-nudge.show { opacity: 1; pointer-events: auto; transform: translateY(50%) translateX(0) scale(1); }
.chat.open .chat-nudge { opacity: 0 !important; pointer-events: none; }
.chat-nudge::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: 50%;
  transform: translateY(50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: var(--fg);
  border-radius: 2px;
}
.chat-nudge-close {
  position: absolute;
  top: 6px;
  right: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 16px;
  line-height: 1;
  padding: 2px;
}
.chat-nudge-close:hover { color: #fff; }

/* ---- Panel ---- */
.chat-panel {
  position: absolute;
  bottom: 76px;
  right: 0;
  width: 374px;
  max-width: calc(100vw - 32px);
  height: 540px;
  max-height: calc(100vh - 120px);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18), 0 6px 16px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px) scale(0.98);
  transform-origin: bottom right;
  transition: opacity var(--transition), transform var(--transition);
}
.chat.open .chat-panel { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }

/* header */
.chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--fg);
  color: var(--bg);
}
.chat-head .avatar {
  position: relative;
  width: 42px;
  height: 42px;
  flex: none;
}
.chat-head .avatar img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.chat-head .avatar .status {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #16c75e;
  border: 2px solid var(--fg);
}
.chat-head .who { line-height: 1.2; }
.chat-head .who strong { font-size: 15px; font-weight: 600; }
.chat-head .who span { display: block; font-size: 11.5px; color: rgba(255, 255, 255, 0.65); margin-top: 2px; }
.chat-min {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.7);
  font-size: 22px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
}
.chat-min:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

/* body */
.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg-alt);
  scroll-behavior: smooth;
}
.chat-row { display: flex; max-width: 86%; }
.chat-row.bot { align-self: flex-start; }
.chat-row.user { align-self: flex-end; justify-content: flex-end; }
.chat-bubble {
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.chat-row.bot .chat-bubble {
  background: var(--bg);
  border: 1px solid var(--border);
  border-bottom-left-radius: 5px;
  color: var(--fg);
}
.chat-row.user .chat-bubble {
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 5px;
}
.chat-bubble a { color: inherit; text-decoration: underline; }

/* typing indicator */
.chat-typing { display: inline-flex; gap: 4px; align-items: center; padding: 13px 14px; }
.chat-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--fg-muted);
  opacity: 0.5;
  animation: chat-bounce 1.2s infinite ease-in-out;
}
.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes chat-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 0.9; }
}

/* quick-reply chips + CTAs */
.chat-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px 16px 12px;
  justify-content: flex-end;
}
.chat-chip {
  font-size: 13px;
  font-weight: 500;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid rgba(255, 91, 34, 0.28);
  color: var(--accent);
  background: rgba(255, 91, 34, 0.07);
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}
.chat-chip:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.chat-chip:active { transform: scale(0.96); }
.chat-chip.cta {
  border: 0;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.chat-chip.cta { background: var(--accent); }
.chat-chip.cta:hover { background: var(--accent-hover); color: #fff; }
.chat-chip.cta.wa { background: var(--whatsapp); }
.chat-chip.cta.wa:hover { background: #1fb858; }
.chat-chip.cta.msg { background: #0084ff; }
.chat-chip.cta.msg:hover { background: #0070dd; }
.chat-chip.ghost { border-color: var(--border); color: var(--fg-muted); background: var(--bg); }
.chat-chip.ghost:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* footer input */
.chat-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.chat-foot input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--fg);
  background: var(--bg-alt);
  outline: none;
  transition: border-color var(--transition);
}
.chat-foot input:focus { border-color: var(--accent); }
.chat-send {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 18px;
  transition: background var(--transition), transform var(--transition);
}
.chat-send:hover { background: var(--accent-hover); }
.chat-send:active { transform: scale(0.92); }

@media (max-width: 900px) {
  /* lift above the mobile bottom nav */
  .chat { bottom: calc(74px + env(safe-area-inset-bottom, 0)); }
}
@media (max-width: 480px) {
  .chat-panel {
    width: calc(100vw - 24px);
    height: calc(100vh - 150px);
    bottom: 72px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .chat-launcher { animation: none; }
  .chat-typing span { animation: none; }
}
