/*
  STRUCTURE FILE — layout, spacing, components. Reads colors/fonts from
  theme.css. You generally should NOT need to edit this per client —
  reskin via theme.css instead.

  Design language: near-black/white, one restrained accent color used
  only for links/focus/small highlights, flat surfaces instead of
  bordered+shadowed cards, pill buttons, tight-tracked type on big
  headlines. Calm over flashy — minimal motion, no gratuitous shadows.
*/

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.03em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; letter-spacing: -0.01em; }

p { color: var(--color-text-muted); }

a { color: var(--color-accent); text-decoration: none; }
a:hover { color: var(--color-accent-dark); }

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

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

.section { padding: 104px 0; }
.section-alt { background: var(--color-bg-alt); }
.section-header { text-align: center; max-width: 620px; margin: 0 auto 52px; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 14px;
}

/* Buttons — pill-shaped, calm hover, no motion flourish */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 980px;
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: -0.005em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}
.btn-primary:hover { background: var(--color-primary-light); color: var(--color-white); }
.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--color-white);
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.12); color: var(--color-white); }
.btn-outline-dark {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-primary);
}
.btn-outline-dark:hover { border-color: var(--color-primary); background: var(--color-bg-alt); }

/* Buttons sitting on dark sections need to invert, since --color-primary
   (near-black) matches the section background. */
.hero .btn-primary,
.cta-band .btn-primary,
.price-card.featured .btn-primary {
  background: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
}
.hero .btn-primary:hover,
.cta-band .btn-primary:hover,
.price-card.featured .btn-primary:hover {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.6);
}

/* Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 1.1rem;
  color: var(--color-primary);
}
.brand img { height: 30px; width: auto; border-radius: 7px; }
.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}
.nav-links a {
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: 0.9rem;
  position: relative;
  padding-bottom: 3px;
}
.nav-links a::after {
  content: '';
  position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--color-accent);
  transition: width 0.25s ease;
}
.nav-links a:hover { color: var(--color-primary); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active-nav { color: var(--color-primary); }
.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-primary);
}

.site-header.scrolled .nav { padding: 10px 24px; }
.site-header { transition: padding 0.25s ease; }

@media (max-width: 860px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--color-border);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-cta .btn { display: none; }
}

/* Hero */
.hero {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 128px 0;
  position: relative;
  overflow: hidden;
}
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { color: var(--color-white); margin-bottom: 22px; }
.hero p { color: rgba(255, 255, 255, 0.68); font-size: 1.1rem; max-width: 480px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-image {
  /* the browser-frame image has its own rounded corners, shadow, and
     transparent padding baked in — no clipping/rounding here or it'd
     cut the shadow off. */
}

/* Soft ambient glow — a single heavily-blurred radial gradient sitting
   behind the discrete orbs, giving the hero/CTA bands a softer,
   photographic quality rather than pure geometric shapes. Pure CSS,
   no image. */
.hero::before, .cta-band::before {
  content: '';
  position: absolute;
  z-index: 0;
  width: 130%;
  height: 160%;
  left: -15%;
  bottom: -55%;
  background: radial-gradient(circle, rgba(122, 97, 120, 0.9) 0%, rgba(74, 58, 74, 0.7) 38%, rgba(28, 22, 28, 0.35) 62%, rgba(10, 9, 11, 0) 78%);
  filter: blur(70px);
  pointer-events: none;
}
.cta-band::before { height: 220%; bottom: -80%; }

/* Ambient floating orbs — quiet depth behind the hero text, not a light show.
   Each orb-wrap is positioned/sized and moved slightly by JS on mouse
   move; the inner .orb drifts on its own via CSS keyframes, so the two
   motions (parallax + drift) don't fight over the same transform. */
.hero-orbs { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.orb-wrap { position: absolute; transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.orb {
  display: block;
  border-radius: 50%;
  filter: blur(40px);
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}
.orb-blue { background: radial-gradient(circle at 35% 35%, rgba(91, 55, 88, 0.6), rgba(91, 55, 88, 0) 70%); }
.orb-white { background: radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 70%); }

.orb-wrap-1 { top: -60px; left: 6%; }
.orb-wrap-1 .orb { width: 300px; height: 300px; animation: orbDriftA 9s infinite; }
.orb-wrap-2 { bottom: -80px; left: 34%; }
.orb-wrap-2 .orb { width: 220px; height: 220px; animation: orbDriftB 10s infinite; }
.orb-wrap-3 { top: 4%; right: -100px; }
.orb-wrap-3 .orb { width: 380px; height: 380px; animation: orbDriftC 11s infinite; }
.orb-wrap-4 { bottom: 14%; right: 16%; }
.orb-wrap-4 .orb { width: 150px; height: 150px; animation: orbDriftB 7s infinite reverse; }
.orb-wrap-5 { top: 30%; left: 48%; }
.orb-wrap-5 .orb { width: 130px; height: 130px; animation: orbDriftA 8s infinite reverse; }
.orb-wrap-6 { bottom: -60px; left: 2%; }
.orb-wrap-6 .orb { width: 200px; height: 200px; animation: orbDriftC 12s infinite; }
.orb-wrap-7 { top: 42%; right: 6%; }
.orb-wrap-7 .orb { width: 110px; height: 110px; animation: orbDriftB 7.5s infinite; }

@keyframes orbDriftA {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(140px, -95px) scale(1.25); }
}
@keyframes orbDriftB {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-110px, 85px) scale(0.8); }
}
@keyframes orbDriftC {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-90px, 110px) scale(1.18); }
}

@media (max-width: 860px) {
  .hero-orbs { display: none; }
}
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero { padding: 72px 0; text-align: center; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
}

/* Cards / grids */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform 0.2s ease;
}
.card:hover { transform: translateY(-3px); }
.card-icon {
  font-size: 1.7rem;
  color: var(--color-accent);
  margin-bottom: 16px;
}
.card-icon svg { width: 28px; height: 28px; }

/* Pricing */
.price-card {
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  padding: 38px 30px;
  text-align: center;
}
.price-card.featured {
  background: var(--color-primary);
  color: var(--color-white);
  position: relative;
}
.price-card.featured h3,
.price-card.featured .price-amount { color: var(--color-white); }
.price-card.featured p { color: rgba(255, 255, 255, 0.65); }
.price-card.featured .price-amount span { color: rgba(255, 255, 255, 0.55); }
.price-card.featured .price-features li {
  border-top-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.85);
}
.price-card.featured::before {
  content: 'Most popular';
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 999px;
}
.price-amount { font-family: var(--font-heading); font-size: 2.3rem; font-weight: 700; letter-spacing: -0.02em; color: var(--color-primary); margin: 14px 0; }
.price-amount span { font-size: 0.95rem; font-weight: 400; color: var(--color-text-muted); }
.price-features { list-style: none; text-align: left; margin: 26px 0; }
.price-features li { padding: 9px 0; border-top: 1px solid var(--color-border); font-size: 0.9rem; }
.price-features li:first-child { border-top: none; }

/* Steps */
.steps { counter-reset: step; }
.step {
  display: flex;
  gap: 22px;
  padding: 26px 0;
  border-top: 1px solid var(--color-border);
}
.step:first-child { border-top: none; }
.step-number {
  counter-increment: step;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--color-accent);
  min-width: 42px;
}
.step-number::before {
  content: counter(step, decimal-leading-zero);
}

/* Portfolio */
.portfolio-item {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-bg-alt);
  transition: box-shadow 0.25s ease;
}
.portfolio-item:hover { box-shadow: var(--shadow); }
.portfolio-item img { aspect-ratio: 16/10; object-fit: cover; transition: transform 0.5s ease; }
.portfolio-item:hover img { transform: scale(1.04); }
.portfolio-body { padding: 26px; }
.portfolio-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.portfolio-status {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}
.portfolio-status::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  margin-right: 6px;
}

/* Forms */
.form-group { margin-bottom: 20px; }
label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; color: var(--color-primary); }
input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--color-white);
  color: var(--color-text);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--color-accent);
}
.form-status { margin-top: 16px; font-size: 0.9rem; }

/* CTA band */
.cta-band {
  background: var(--color-primary);
  color: var(--color-white);
  text-align: center;
  padding: 88px 0;
  position: relative;
  overflow: hidden;
}
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { color: var(--color-white); }
.cta-band p { color: rgba(255, 255, 255, 0.68); margin-bottom: 30px; }

/* Same ambient orbs as the hero, scaled down for a shorter section.
   Drift only (no JS mouse parallax — the section is too short for it
   to read as intentional). */
.cta-orbs { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.cta-orb-1 { top: -40px; left: 8%; }
.cta-orb-1 .orb { width: 220px; height: 220px; animation: orbDriftA 10s infinite; }
.cta-orb-2 { bottom: -50px; right: 8%; }
.cta-orb-2 .orb { width: 240px; height: 240px; animation: orbDriftC 12s infinite; }
.cta-orb-3 { top: 30%; right: 28%; }
.cta-orb-3 .orb { width: 130px; height: 130px; animation: orbDriftB 8s infinite reverse; }

@media (max-width: 860px) {
  .cta-orbs { display: none; }
}

/* Footer */
.site-footer {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 30px;
  font-size: 0.88rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 44px; }
.footer-grid h4 { color: var(--color-white); font-size: 0.98rem; margin-bottom: 15px; letter-spacing: -0.01em; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { color: rgba(255, 255, 255, 0.7); }
.footer-grid a:hover { color: var(--color-white); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a { color: rgba(255, 255, 255, 0.7); font-size: 0.85rem; }
.footer-bottom a:hover { color: var(--color-white); }
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.text-center { text-align: center; }
.mt-4 { margin-top: 24px; }

/* Scroll reveal — sequential fade-up as sections/cards enter view.
   JS adds .reveal to targets and .in once they've crossed the threshold. */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-group > *:nth-child(1) { transition-delay: 0s; }
.reveal-group > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-group > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-group > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-group > *:nth-child(5) { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .site-header { transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .portfolio-item img { transition: none; }
  .orb { animation: none; }
  .orb-wrap { transition: none; }
}
