/* ==========================================================================
   Araf Mustavi — Portfolio
   Apple-inspired design system. Vanilla CSS, no build step.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Typography */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;

  /* Light palette (default) */
  --bg: #ffffff;
  --bg-elev: #f5f5f7;
  --bg-elev-2: #ffffff;
  --bg-tint: #fbfbfd;
  --text: #1d1d1f;
  --text-2: #424245;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.14);
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-soft: rgba(0, 113, 227, 0.08);
  --accent-ring: rgba(0, 113, 227, 0.30);
  --success: #1d8a4e;
  --wa: #25d366;
  --wa-dark: #128c7e;

  --nav-bg: rgba(255, 255, 255, 0.72);
  --card-bg: #ffffff;
  --card-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
  --card-shadow-hover: 0 2px 6px rgba(0,0,0,.06), 0 20px 48px rgba(0,0,0,.10);

  /* Geometry */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 980px;

  --maxw: 1120px;
  --nav-h: 52px;

  /* Motion — Apple's signature easing */
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
}

[data-theme="dark"] {
  --bg: #000000;
  --bg-elev: #101012;
  --bg-elev-2: #1c1c1e;
  --bg-tint: #0a0a0b;
  --text: #f5f5f7;
  --text-2: #d2d2d7;
  --muted: #98989d;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.18);
  --accent: #2997ff;
  --accent-hover: #4aa8ff;
  --accent-soft: rgba(41, 151, 255, 0.12);
  --accent-ring: rgba(41, 151, 255, 0.35);
  --success: #30d158;

  --nav-bg: rgba(10, 10, 11, 0.72);
  --card-bg: #131315;
  --card-shadow: 0 1px 2px rgba(0,0,0,.5), 0 8px 24px rgba(0,0,0,.4);
  --card-shadow-hover: 0 2px 8px rgba(0,0,0,.6), 0 24px 56px rgba(0,0,0,.5);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.47;
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: inherit; }

:focus-visible {
  outline: 3px solid var(--accent-ring);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 50%; transform: translateX(-50%) translateY(-200%);
  top: 8px; z-index: 2000;
  background: var(--accent); color: #fff;
  padding: .7rem 1.2rem; border-radius: var(--r-pill);
  font-size: .9rem; font-weight: 600;
  transition: transform .25s var(--ease-out);
}
.skip-link:focus { transform: translateX(-50%) translateY(0); text-decoration: none; }

/* ---------- Ambient background (Apple-style soft mesh) ---------- */
.ambient {
  position: fixed; inset: 0; z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background: var(--bg);
}
.ambient span {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .40;
  will-change: transform;
}
.ambient .a1 { width: 46vw; height: 46vw; top: -12vw; left: -8vw;  background: radial-gradient(circle, #7db8ff, transparent 70%); animation: drift1 28s var(--ease) infinite alternate; }
.ambient .a2 { width: 40vw; height: 40vw; top: 18vw;  right: -10vw; background: radial-gradient(circle, #c9a7ff, transparent 70%); animation: drift2 34s var(--ease) infinite alternate; }
.ambient .a3 { width: 34vw; height: 34vw; bottom: -8vw; left: 24vw; background: radial-gradient(circle, #7ff0e2, transparent 70%); animation: drift3 40s var(--ease) infinite alternate; }
[data-theme="dark"] .ambient span { opacity: .22; }

@keyframes drift1 { to { transform: translate3d(6vw, 4vw, 0) scale(1.15); } }
@keyframes drift2 { to { transform: translate3d(-7vw, 5vw, 0) scale(1.1); } }
@keyframes drift3 { to { transform: translate3d(4vw, -6vw, 0) scale(1.2); } }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 1000;
  height: var(--nav-h);
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--line); }

.nav-inner {
  max-width: var(--maxw);
  height: 100%;
  margin: 0 auto;
  padding: 0 22px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-size: 1.05rem; font-weight: 600;
  color: var(--text); letter-spacing: -.02em;
  display: inline-flex; align-items: center; gap: .5rem;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; opacity: .75; }
.brand-mark {
  width: 22px; height: 22px; border-radius: 7px;
  background: linear-gradient(135deg, var(--accent), #9f6bff);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: .68rem; font-weight: 700; letter-spacing: 0;
}

.nav-links {
  display: flex; align-items: center; gap: 1.9rem;
  font-size: .81rem;
}
.nav-links a {
  color: var(--text-2); font-weight: 400;
  opacity: .85;
  transition: opacity .2s var(--ease), color .2s var(--ease);
  position: relative; padding: 4px 0;
}
.nav-links a:hover { opacity: 1; color: var(--text); text-decoration: none; }
.nav-links a.current { color: var(--text); opacity: 1; font-weight: 500; }
.nav-links a.current::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1.5px; background: var(--accent); border-radius: 2px;
}

.nav-actions { display: flex; align-items: center; gap: .6rem; }

.theme-toggle {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent; color: var(--text);
  cursor: pointer;
  display: grid; place-items: center;
  transition: background .2s var(--ease), transform .2s var(--ease-spring);
}
.theme-toggle:hover { background: var(--bg-elev); transform: scale(1.08); }
.theme-toggle svg { width: 15px; height: 15px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.nav-cta {
  padding: .38rem .9rem;
  background: var(--accent); color: #fff;
  border-radius: var(--r-pill);
  font-size: .81rem; font-weight: 500;
  white-space: nowrap;
  transition: background .2s var(--ease), transform .2s var(--ease-spring);
}
.nav-cta:hover { background: var(--accent-hover); text-decoration: none; transform: scale(1.04); }

.nav-toggle {
  display: none;
  width: 32px; height: 32px;
  border: none; background: transparent; color: var(--text);
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute; left: 8px; width: 16px; height: 1.5px;
  background: currentColor; border-radius: 2px;
  transition: transform .3s var(--ease-out), opacity .2s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 13px; }
.nav-toggle span:nth-child(2) { top: 18px; }
.nav.open .nav-toggle span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { transform: translateY(-0px) rotate(-45deg); }

/* ---------- Layout ---------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 110px 22px;
}
.section--tight { padding: 72px 22px; }
.band { background: var(--bg-elev); }
[data-theme="dark"] .band { background: var(--bg-elev); }

.eyebrow {
  font-size: .76rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--accent);
  margin-bottom: .9rem;
}

h1, h2, h3, h4 { letter-spacing: -0.025em; line-height: 1.08; font-weight: 600; }

.section-title {
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  margin-bottom: .9rem;
}
.section-lede {
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  color: var(--muted);
  max-width: 62ch;
  margin-bottom: 3.2rem;
  line-height: 1.5;
  letter-spacing: -.01em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .45rem;
  padding: .78rem 1.5rem;
  border-radius: var(--r-pill);
  font-size: .95rem; font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease),
              transform .25s var(--ease-spring), box-shadow .25s var(--ease),
              border-color .2s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-1px) scale(1.02); }
.btn:active { transform: scale(.98); }

.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 4px 14px var(--accent-ring); }
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 8px 24px var(--accent-ring); }

.btn-secondary { background: transparent; color: var(--accent); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--accent-soft); border-color: var(--accent); }

.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-dark); }

.btn-lg { padding: .95rem 1.9rem; font-size: 1.02rem; }
.btn-sm { padding: .55rem 1.1rem; font-size: .85rem; }

.link-arrow {
  font-weight: 500; font-size: .95rem;
  display: inline-flex; align-items: center; gap: .3rem;
}
.link-arrow:hover { text-decoration: none; }
.link-arrow::after { content: '›'; font-size: 1.25em; line-height: 1; transition: transform .25s var(--ease-out); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Hero ---------- */
.hero {
  min-height: calc(100vh - var(--nav-h));
  display: grid; place-items: center;
  text-align: center;
  padding: 84px 22px 72px;
}
.hero-inner { max-width: 900px; }

.status-pill {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .38rem .95rem;
  border: 1px solid var(--line);
  background: var(--card-bg);
  border-radius: var(--r-pill);
  font-size: .81rem; color: var(--text-2); font-weight: 500;
  margin-bottom: 1.9rem;
  box-shadow: var(--card-shadow);
}
.status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(48,209,88,.55);
  animation: statusPulse 2.4s infinite;
}
@keyframes statusPulse {
  70%  { box-shadow: 0 0 0 8px rgba(48,209,88,0); }
  100% { box-shadow: 0 0 0 0 rgba(48,209,88,0); }
}

.hero h1 {
  font-size: clamp(2.4rem, 7.2vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.038em;
  line-height: 1.04;
  margin-bottom: 1.4rem;
}
.hero h1 .grad {
  background: linear-gradient(120deg, var(--accent) 0%, #9f6bff 55%, #ff6ba8 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-role {
  font-size: clamp(.95rem, 1.8vw, 1.15rem);
  font-weight: 600; color: var(--accent);
  letter-spacing: -.01em;
  margin-bottom: .9rem;
}
.hero-sub {
  font-size: clamp(1.02rem, 2.1vw, 1.35rem);
  color: var(--muted);
  max-width: 640px; margin: 0 auto 2.4rem;
  line-height: 1.48; letter-spacing: -.012em;
}
.hero-cta { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.hero-meta {
  margin-top: 2.6rem;
  font-size: .82rem; color: var(--muted);
  display: flex; gap: 1.4rem; justify-content: center; flex-wrap: wrap;
}

/* ---------- Metrics strip ---------- */
.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.metric {
  background: var(--card-bg);
  padding: 2.2rem 1.5rem;
  text-align: center;
}
.metric-value {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 700; letter-spacing: -.035em;
  background: linear-gradient(120deg, var(--accent), #9f6bff);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.05;
}
.metric-label { font-size: .95rem; font-weight: 600; margin-top: .5rem; }
.metric-detail { font-size: .8rem; color: var(--muted); margin-top: .25rem; }

/* ---------- Cards ---------- */
.card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 2rem;
  box-shadow: var(--card-shadow);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out),
              border-color .3s var(--ease);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--line-strong);
}

/* ---------- Services (monetisation) ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.4rem;
}
.service {
  display: flex; flex-direction: column;
  position: relative;
}
.service.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--card-shadow-hover);
}
.service-badge {
  position: absolute; top: -11px; left: 2rem;
  background: var(--accent); color: #fff;
  font-size: .68rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .3rem .75rem; border-radius: var(--r-pill);
}
.service h3 { font-size: 1.3rem; margin-bottom: .45rem; }
.service-tagline { color: var(--muted); font-size: .95rem; margin-bottom: 1.4rem; line-height: 1.45; }
.service-price {
  font-size: 1.75rem; font-weight: 700; letter-spacing: -.03em;
  display: flex; align-items: baseline; gap: .45rem; flex-wrap: wrap;
  margin-bottom: 1.4rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
}
.service-unit { font-size: .82rem; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.service-outcomes { display: flex; flex-direction: column; gap: .7rem; margin-bottom: 1.5rem; flex: 1; }
.service-outcomes li {
  display: flex; gap: .6rem; align-items: flex-start;
  font-size: .93rem; color: var(--text-2); line-height: 1.42;
}
.service-outcomes li::before {
  content: '✓'; color: var(--accent); font-weight: 700;
  flex-shrink: 0; font-size: .88rem; line-height: 1.55;
}
.service-bestfor {
  font-size: .82rem; color: var(--muted);
  padding: .75rem .9rem; background: var(--bg-elev);
  border-radius: var(--r-sm); margin-bottom: 1.3rem;
  line-height: 1.4;
}
.service-bestfor strong { color: var(--text-2); font-weight: 600; }

/* ---------- Process ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.4rem;
}
.process-step { padding: 1.9rem 1.6rem; }
.process-num {
  font-size: 2.4rem; font-weight: 700; letter-spacing: -.04em;
  color: var(--accent); opacity: .28; line-height: 1;
  margin-bottom: .8rem;
}
.process-step h3 { font-size: 1.12rem; margin-bottom: .5rem; }
.process-step p { font-size: .92rem; color: var(--muted); line-height: 1.5; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3.6rem;
  align-items: start;
}
.about-aside { position: sticky; top: calc(var(--nav-h) + 32px); }
.about-avatar {
  width: 100%; aspect-ratio: 1; border-radius: var(--r-xl);
  object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: var(--card-shadow-hover);
}
.about-quick { margin-top: 1.5rem; display: flex; flex-direction: column; gap: .7rem; }
.about-quick div { font-size: .85rem; color: var(--muted); }
.about-quick strong { display: block; color: var(--text); font-size: .8rem; font-weight: 600; margin-bottom: .1rem; }

.prose { font-size: 1.06rem; color: var(--text-2); line-height: 1.65; letter-spacing: -.01em; }
.prose p { margin-bottom: 1.15rem; }
.prose strong { color: var(--text); font-weight: 600; }
.prose ul { margin: 0 0 1.15rem 0; display: flex; flex-direction: column; gap: .65rem; }
.prose li { padding-left: 1.4rem; position: relative; }
.prose li::before {
  content: ''; position: absolute; left: 0; top: .62em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}

/* ---------- Skills ---------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.3rem;
}
.skill-card h3 {
  font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--accent); margin-bottom: 1.1rem;
}
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip {
  padding: .35rem .8rem;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: .83rem; color: var(--text-2);
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.chip:hover { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 2.2rem; }
.timeline::before {
  content: ''; position: absolute; left: 5px; top: 8px; bottom: 8px;
  width: 1.5px; background: linear-gradient(var(--accent), var(--line) 85%);
  border-radius: 2px;
}
.tl-item { position: relative; padding-bottom: 3rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ''; position: absolute; left: -2.2rem; top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--bg); border: 2.5px solid var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.tl-period {
  font-size: .78rem; font-weight: 600; color: var(--accent);
  text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: .4rem;
}
.tl-role { font-size: 1.22rem; font-weight: 600; margin-bottom: .2rem; }
.tl-company { font-size: .95rem; color: var(--text-2); margin-bottom: .85rem; }
.tl-company span { color: var(--muted); }
.tl-desc { font-size: .98rem; color: var(--muted); line-height: 1.55; margin-bottom: 1rem; }
.tl-highlights { display: flex; flex-direction: column; gap: .5rem; }
.tl-highlights li {
  font-size: .91rem; color: var(--text-2); line-height: 1.5;
  padding-left: 1.2rem; position: relative;
}
.tl-highlights li::before {
  content: ''; position: absolute; left: 0; top: .6em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--line-strong);
}
.tl-more {
  background: none; border: none; color: var(--accent);
  font-size: .88rem; font-weight: 500; cursor: pointer;
  padding: .3rem 0; margin-top: .5rem;
}
.tl-more:hover { text-decoration: underline; }

/* ---------- Projects ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.2rem; }
.filter {
  padding: .42rem 1rem;
  border: 1px solid var(--line);
  background: transparent; color: var(--text-2);
  border-radius: var(--r-pill);
  font-size: .85rem; cursor: pointer;
  transition: all .2s var(--ease);
}
.filter:hover { border-color: var(--line-strong); background: var(--bg-elev); }
.filter.active { background: var(--text); color: var(--bg); border-color: var(--text); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.3rem;
}
.project { display: flex; flex-direction: column; gap: .7rem; padding: 1.8rem; }
.project[hidden] { display: none; }
.project-top { display: flex; justify-content: space-between; align-items: center; gap: .8rem; }
.project-cat {
  font-size: .7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--accent);
}
.project h3 { font-size: 1.18rem; line-height: 1.25; }
.project-outcome {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .8rem; font-weight: 600; color: var(--success);
}
.project-outcome::before { content: '▲'; font-size: .6em; }
.project p { font-size: .93rem; color: var(--muted); line-height: 1.55; flex: 1; }
.project-tech { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .4rem; }
.project-tech .chip { font-size: .73rem; padding: .22rem .62rem; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: .7rem; max-width: 800px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--card-bg);
  overflow: hidden;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.faq-item[open] { border-color: var(--line-strong); box-shadow: var(--card-shadow); }
.faq-item summary {
  padding: 1.25rem 1.5rem;
  font-size: 1.02rem; font-weight: 500;
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-size: 1.4rem; font-weight: 300; color: var(--accent);
  transition: transform .3s var(--ease-out); flex-shrink: 0; line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 1.5rem 1.4rem; font-size: .96rem; color: var(--muted); line-height: 1.6; }

/* ---------- Credentials ---------- */
.creds-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.3rem; }
.cred-card h3 { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); margin-bottom: 1.1rem; }
.cred-list { display: flex; flex-direction: column; gap: .7rem; }
.cred-list li { font-size: .9rem; color: var(--text-2); line-height: 1.45; }
.cred-list li strong { display: block; color: var(--text); font-weight: 600; }
.cred-list li span { color: var(--muted); font-size: .83rem; }

/* ---------- Contact ---------- */
.contact-card {
  text-align: center;
  padding: clamp(2.6rem, 6vw, 4.5rem) clamp(1.6rem, 5vw, 3.5rem);
  border-radius: var(--r-xl);
  background: var(--card-bg);
  border: 1px solid var(--line);
  box-shadow: var(--card-shadow-hover);
}
.contact-card h2 { font-size: clamp(1.7rem, 4vw, 2.7rem); margin-bottom: 1rem; }
.contact-card > p { font-size: clamp(1rem, 1.8vw, 1.15rem); color: var(--muted); max-width: 54ch; margin: 0 auto 2.4rem; line-height: 1.5; }
.contact-cta { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.4rem; }
.contact-links { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; }
.contact-link {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .55rem 1.1rem;
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: .87rem; color: var(--text-2);
  transition: all .2s var(--ease);
}
.contact-link:hover { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); text-decoration: none; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-elev); }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 2.6rem 22px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 1.2rem; flex-wrap: wrap;
  font-size: .8rem; color: var(--muted);
}
.footer-inner nav { display: flex; gap: 1.3rem; flex-wrap: wrap; }
.footer-inner nav a { color: var(--muted); }
.footer-inner nav a:hover { color: var(--text); text-decoration: none; }

/* ---------- WhatsApp widget ---------- */
.wa { position: fixed; right: 22px; bottom: 22px; z-index: 900; }
.wa-fab {
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--wa); border: none; cursor: pointer;
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 6px 22px rgba(37,211,102,.42);
  transition: transform .3s var(--ease-spring), box-shadow .3s var(--ease);
}
.wa-fab:hover { transform: scale(1.09); box-shadow: 0 10px 30px rgba(37,211,102,.55); }
.wa-fab svg { width: 26px; height: 26px; }

.wa-panel {
  position: absolute; right: 0; bottom: 68px;
  width: 330px; max-width: calc(100vw - 44px);
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: 0 24px 64px rgba(0,0,0,.22);
  overflow: hidden;
  transform-origin: bottom right;
  transform: translateY(12px) scale(.94);
  opacity: 0; pointer-events: none;
  transition: transform .32s var(--ease-out), opacity .24s var(--ease);
}
.wa.open .wa-panel { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; }
.wa-head {
  display: flex; align-items: center; gap: .7rem;
  padding: .9rem 1rem;
  background: linear-gradient(135deg, var(--wa-dark), var(--wa));
  color: #fff;
}
.wa-head img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.35); }
.wa-head-txt { flex: 1; }
.wa-head-txt b { font-size: .9rem; font-weight: 600; display: block; }
.wa-head-txt small { font-size: .72rem; opacity: .9; }
.wa-close { background: none; border: none; color: #fff; font-size: 1.4rem; cursor: pointer; line-height: 1; opacity: .85; padding: 0 .2rem; }
.wa-close:hover { opacity: 1; }
.wa-body { padding: 1rem; display: flex; flex-direction: column; gap: .8rem; }
.wa-bubble {
  background: var(--bg-elev); padding: .7rem .9rem;
  border-radius: 12px 12px 12px 4px;
  font-size: .88rem; color: var(--text-2); line-height: 1.45;
}
.wa-body textarea {
  width: 100%; padding: .7rem .85rem;
  background: var(--bg-elev); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--r-sm);
  font-family: inherit; font-size: .88rem; resize: none;
}
.wa-body textarea:focus { outline: none; border-color: var(--wa); }
.wa-send {
  padding: .7rem; background: var(--wa); color: #fff;
  border: none; border-radius: var(--r-sm);
  font-weight: 600; font-size: .92rem; cursor: pointer;
  transition: background .2s var(--ease);
}
.wa-send:hover { background: var(--wa-dark); }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

@keyframes revealIn {
  from { opacity: 0; transform: translateY(12px) scale(.985); }
  to   { opacity: 1; transform: none; }
}
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .about-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .about-aside { position: static; max-width: 200px; }
}

@media (max-width: 768px) {
  :root { --nav-h: 50px; }
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    gap: 0;
    background: var(--nav-bg);
    backdrop-filter: saturate(180%) blur(22px);
    -webkit-backdrop-filter: saturate(180%) blur(22px);
    border-bottom: 1px solid var(--line);
    padding: .5rem 22px 1.2rem;
    font-size: 1rem;
    transform: translateY(-12px);
    opacity: 0; pointer-events: none; visibility: hidden;
    transition: transform .34s var(--ease-out), opacity .24s var(--ease), visibility .34s;
  }
  .nav.open .nav-links { transform: none; opacity: 1; pointer-events: auto; visibility: visible; }
  .nav-links a { padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .nav-links a.current::after { display: none; }
  .nav-cta { display: none; }

  .section { padding: 76px 22px; }
  .hero { min-height: auto; padding: 60px 22px 56px; }
  .service-price { font-size: 1.5rem; }
  .wa { right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .nav, .wa, .ambient, .hero-cta, .contact-cta, .footer { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding: 24px 0; }
  .card { box-shadow: none; border: 1px solid #ddd; }
}
