/* ============================================================
   Ace Writing Solutions — Professional Design System
   ============================================================ */

:root {
  /* Brand blue */
  --brand-50:  #eff6ff;
  --brand-100: #dbeafe;
  --brand-200: #bfdbfe;
  --brand-500: #2563eb;
  --brand-600: #1d4ed8;
  --brand-700: #1e40af;

  /* Neutrals */
  --ink-900: #0f172a;
  --ink-800: #1e293b;
  --ink-700: #334155;
  --ink-500: #64748b;
  --ink-400: #94a3b8;

  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-tint: #f1f5f9;
  --border: #e2e8f0;

  --success: #059669;
  --success-bg: #ecfdf5;
  --danger: #dc2626;
  --danger-bg: #fef2f2;

  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

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

  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.10);
  --shadow-xl: 0 24px 56px rgba(15, 23, 42, 0.12);
  --shadow-brand: 0 8px 24px rgba(37, 99, 235, 0.25);

  --container: 1200px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink-700);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--ink-900);
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.02em;
  font-weight: 700;
}
h1 { font-size: clamp(2.2rem, 4.2vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

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

.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink-900); color: #fff; padding: 10px 16px; z-index: 999; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }

.text-brand { color: var(--brand-500); }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200;
  background: var(--brand-500); transform: scaleX(0); transform-origin: left;
  transition: transform 0.1s linear;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: var(--radius); font-family: var(--font-body);
  font-weight: 600; font-size: 0.95rem; border: 1.5px solid transparent;
  cursor: pointer; transition: all 0.25s var(--ease); white-space: nowrap;
}
.btn-primary { background: var(--brand-500); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-600); transform: translateY(-2px); box-shadow: var(--shadow-brand); }
.btn-secondary { background: #fff; color: var(--ink-900); border-color: var(--border); box-shadow: var(--shadow-xs); }
.btn-secondary:hover { border-color: var(--brand-500); color: var(--brand-600); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-white { background: #fff; color: var(--brand-600); }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.35); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.6); }
.btn-sm { padding: 10px 18px; font-size: 0.875rem; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }

/* ---------- Badges / eyebrows ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand-50); color: var(--brand-700); border: 1px solid var(--brand-100);
  padding: 7px 16px; border-radius: 999px; font-size: 0.8rem; font-weight: 600;
  margin-bottom: 20px;
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-500); }

.eyebrow {
  display: block; font-size: 0.82rem; font-weight: 700; color: var(--brand-600);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: all 0.3s var(--ease);
}
.site-header.scrolled { background: rgba(255,255,255,0.96); border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }

.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px; background: var(--brand-500); color: #fff;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  box-shadow: var(--shadow-sm); transition: transform 0.3s var(--ease);
}
.brand:hover .brand-mark { transform: scale(1.06); }
.brand-text { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 500; color: var(--ink-900); white-space: nowrap; }
.brand-text strong { font-weight: 800; }

.main-nav ul { display: flex; gap: 4px; }
.main-nav a {
  display: block; padding: 9px 16px; border-radius: var(--radius-sm);
  font-size: 0.94rem; font-weight: 500; color: var(--ink-700); transition: all 0.2s ease;
}
.main-nav a:hover { color: var(--brand-600); background: var(--brand-50); }
.main-nav a.active { color: var(--brand-600); background: var(--brand-50); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.header-phone { display: flex; align-items: center; gap: 7px; font-size: 0.9rem; font-weight: 600; color: var(--ink-700); }
.header-phone:hover { color: var(--brand-600); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink-900); border-radius: 2px; transition: all 0.3s ease; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 80px 0 90px; background: linear-gradient(180deg, var(--brand-50) 0%, #fff 65%); overflow: hidden; }
.hero::before {
  content: ''; position: absolute; top: -180px; right: -140px; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.10), transparent 70%); pointer-events: none;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero-lede { font-size: 1.13rem; color: var(--ink-500); max-width: 48ch; margin-bottom: 32px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-trust { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; font-size: 0.88rem; color: var(--ink-500); }
.hero-trust-item { display: flex; align-items: center; gap: 8px; }
.hero-trust-item svg { color: var(--success); flex-shrink: 0; }

.hero-visual { position: relative; }
.hero-panel {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: 32px; box-shadow: var(--shadow-xl);
}
.hero-panel-head { display: flex; align-items: center; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.hero-panel-avatar {
  width: 46px; height: 46px; border-radius: 50%; background: var(--brand-500); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.95rem; flex-shrink: 0;
  font-family: var(--font-heading);
}
.hero-panel-name { font-weight: 700; color: var(--ink-900); font-size: 0.95rem; }
.hero-panel-role { font-size: 0.82rem; color: var(--ink-500); }
.hero-panel-stars { display: flex; gap: 3px; color: #f59e0b; margin-bottom: 12px; }
.hero-panel blockquote { margin: 0; font-size: 1.02rem; color: var(--ink-700); line-height: 1.65; }

.hero-float {
  position: absolute; background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 18px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 12px;
  animation: floatY 5s ease-in-out infinite;
}
.hero-float-1 { bottom: -22px; left: -18px; }
.hero-float-2 { top: -20px; right: -14px; animation-delay: 1.6s; }
.hero-float-num { font-family: var(--font-heading); font-weight: 800; font-size: 1.3rem; color: var(--brand-600); line-height: 1; }
.hero-float-label { font-size: 0.75rem; color: var(--ink-500); }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Logo strip ---------- */
.logo-strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-soft); padding: 28px 0; }
.logo-strip-label { text-align: center; font-size: 0.8rem; font-weight: 600; color: var(--ink-400); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 18px; }
.logo-marquee { overflow: hidden; position: relative; }
.logo-marquee::before, .logo-marquee::after { content: ''; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2; pointer-events: none; }
.logo-marquee::before { left: 0; background: linear-gradient(90deg, var(--bg-soft), transparent); }
.logo-marquee::after { right: 0; background: linear-gradient(270deg, var(--bg-soft), transparent); }
.logo-track { display: flex; align-items: center; gap: 56px; width: max-content; animation: marquee 30s linear infinite; }
.logo-marquee:hover .logo-track { animation-play-state: paused; }
.logo-track span { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 700; color: var(--ink-400); white-space: nowrap; transition: color 0.25s ease; }
.logo-track span:hover { color: var(--brand-500); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Stats ---------- */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 30px 24px; text-align: center; transition: all 0.3s var(--ease);
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand-200); }
.stat-num { font-family: var(--font-heading); font-size: 2.4rem; font-weight: 800; color: var(--brand-600); line-height: 1; margin-bottom: 8px; }
.stat-label { font-size: 0.9rem; color: var(--ink-500); }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 660px; margin: 0 auto 52px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head p { color: var(--ink-500); font-size: 1.05rem; margin: 0; }

/* ---------- Service cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.service-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px 28px; transition: all 0.3s var(--ease); position: relative;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--brand-200); }
.service-icon {
  width: 52px; height: 52px; border-radius: var(--radius); background: var(--brand-50); color: var(--brand-600);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px; transition: all 0.3s var(--ease);
}
.service-card:hover .service-icon { background: var(--brand-500); color: #fff; }
.service-card h3 { margin-bottom: 8px; }
.service-card p { color: var(--ink-500); font-size: 0.95rem; margin: 0; }
.service-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 0.9rem; font-weight: 600; color: var(--brand-600); }
.service-link svg { transition: transform 0.25s ease; }
.service-card:hover .service-link svg { transform: translateX(4px); }

/* ---------- Feature list (why us) ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.feature-item { display: flex; gap: 16px; align-items: flex-start; }
.feature-check {
  width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--brand-50); color: var(--brand-600);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.feature-item h3 { font-size: 1.05rem; margin-bottom: 4px; }
.feature-item p { font-size: 0.92rem; color: var(--ink-500); margin: 0; }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.step-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px 26px;
  transition: all 0.3s var(--ease); position: relative;
}
.step-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--brand-200); }
.step-num {
  width: 42px; height: 42px; border-radius: 50%; background: var(--brand-500); color: #fff;
  display: flex; align-items: center; justify-content: center; font-family: var(--font-heading);
  font-weight: 700; font-size: 0.95rem; margin-bottom: 18px; box-shadow: var(--shadow-sm);
}
.step-card h3 { font-size: 1.08rem; margin-bottom: 6px; }
.step-card p { font-size: 0.92rem; color: var(--ink-500); margin: 0; }

/* ---------- Work / portfolio ---------- */
.work-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
  transition: all 0.3s var(--ease);
}
.work-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--brand-200); }
.work-thumb { height: 130px; background: linear-gradient(135deg, var(--brand-500), var(--brand-700)); display: flex; align-items: center; justify-content: center; }
.work-thumb span { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 800; color: rgba(255,255,255,0.95); }
.work-body { padding: 24px; }
.work-tag { display: inline-block; font-size: 0.72rem; font-weight: 700; color: var(--brand-600); background: var(--brand-50); padding: 4px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 10px; }
.work-body h3 { font-size: 1.1rem; margin-bottom: 4px; }
.work-body p { font-size: 0.9rem; color: var(--ink-500); margin: 0; }

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px;
  transition: all 0.3s var(--ease); height: 100%;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--brand-200); }
.stars { display: flex; gap: 3px; color: #f59e0b; margin-bottom: 14px; }
.testimonial-card blockquote { margin: 0 0 20px; font-size: 0.98rem; color: var(--ink-700); line-height: 1.7; }
.testimonial-person { display: flex; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px solid var(--border); }
.testimonial-avatar {
  width: 42px; height: 42px; border-radius: 50%; background: var(--brand-50); color: var(--brand-600);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; flex-shrink: 0;
  font-family: var(--font-heading);
}
.testimonial-name { font-weight: 700; font-size: 0.92rem; color: var(--ink-900); }
.testimonial-role { font-size: 0.8rem; color: var(--ink-500); }

/* ---------- CTA section ---------- */
.cta-section { padding: 0 0 88px; }
.cta-box {
  background: linear-gradient(135deg, var(--brand-600), var(--brand-700));
  border-radius: var(--radius-xl); padding: 56px 52px; color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.cta-box::before {
  content: ''; position: absolute; top: -100px; right: -60px; width: 340px; height: 340px; border-radius: 50%;
  background: rgba(255,255,255,0.08); pointer-events: none;
}
.cta-box > div { position: relative; z-index: 1; }
.cta-box h2 { color: #fff; margin-bottom: 8px; }
.cta-box p { color: rgba(255,255,255,0.85); margin: 0; max-width: 46ch; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-900); color: rgba(255,255,255,0.7); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr 1.3fr; gap: 36px; padding-bottom: 44px; }
.footer-brand .brand-text { color: #fff; }
.footer-brand .brand-mark { background: var(--brand-500); }
.footer-brand p { margin-top: 16px; font-size: 0.9rem; color: rgba(255,255,255,0.55); max-width: 34ch; }
.footer-col h4 { color: #fff; font-size: 0.88rem; margin-bottom: 16px; font-weight: 700; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { font-size: 0.9rem; color: rgba(255,255,255,0.6); transition: color 0.2s ease; }
.footer-col a:hover { color: #fff; }
.footer-contact li { font-size: 0.9rem; color: rgba(255,255,255,0.6); margin-bottom: 10px; }
.social-row { display: flex; gap: 10px; margin-top: 20px; }
.social-row a {
  width: 36px; height: 36px; border-radius: var(--radius-sm); background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.75); transition: all 0.25s ease;
}
.social-row a:hover { background: var(--brand-500); color: #fff; transform: translateY(-2px); }
.footer-bottom { padding: 22px 0; border-top: 1px solid rgba(255,255,255,0.1); text-align: center; }
.footer-bottom p { margin: 0; font-size: 0.85rem; color: rgba(255,255,255,0.45); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: linear-gradient(180deg, var(--brand-50), #fff); padding: 56px 0 60px; text-align: center; border-bottom: 1px solid var(--border); }
.breadcrumb { display: flex; justify-content: center; gap: 8px; font-size: 0.85rem; color: var(--ink-500); margin-bottom: 14px; }
.breadcrumb a { color: var(--brand-600); font-weight: 600; }
.page-hero h1 { font-size: clamp(2rem, 3.6vw, 2.9rem); margin-bottom: 12px; }
.page-hero > .container > p { color: var(--ink-500); max-width: 60ch; margin: 0 auto; font-size: 1.05rem; }

/* ---------- About ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.quote-block {
  background: var(--brand-50); border-left: 4px solid var(--brand-500); border-radius: var(--radius);
  padding: 24px 28px; margin: 24px 0; font-size: 1.05rem; color: var(--ink-800); font-style: italic;
}
.value-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; margin-bottom: 20px; }
.value-card h3 { font-size: 1.05rem; color: var(--brand-600); margin-bottom: 6px; }
.value-card p { margin: 0; color: var(--ink-500); }

.team-card {
  display: grid; grid-template-columns: 150px 1fr; gap: 32px; align-items: center;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 36px; box-shadow: var(--shadow-sm);
}
.team-avatar {
  width: 150px; height: 150px; border-radius: 50%; background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  display: flex; align-items: center; justify-content: center; font-family: var(--font-heading);
  font-size: 2.6rem; font-weight: 800; color: #fff; box-shadow: var(--shadow-md);
}
.team-role { color: var(--brand-600); font-weight: 600; font-size: 0.95rem; margin-bottom: 12px; }

/* ---------- Pricing ---------- */
.pay-card {
  max-width: 480px; margin: 0 auto; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 40px; text-align: center; box-shadow: var(--shadow-lg);
}
.pay-card h3 { font-size: 1.4rem; margin-bottom: 6px; }
.pay-card > p { color: var(--ink-500); font-size: 0.95rem; }
.checklist { text-align: left; margin: 26px 0; display: flex; flex-direction: column; gap: 12px; }
.checklist li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.94rem; color: var(--ink-700); }
.checklist li svg { color: var(--success); flex-shrink: 0; margin-top: 3px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: all 0.25s ease; }
.faq-item.open { border-color: var(--brand-200); box-shadow: var(--shadow-sm); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; padding: 20px 24px; cursor: pointer;
  font-family: var(--font-body); font-size: 1rem; font-weight: 600; color: var(--ink-900);
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
}
.faq-q .icon {
  width: 26px; height: 26px; border-radius: 50%; background: var(--brand-50); color: var(--brand-600);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-weight: 700;
  transition: all 0.3s var(--ease); font-size: 1.1rem; line-height: 1;
}
.faq-item.open .icon { background: var(--brand-500); color: #fff; transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s var(--ease); padding: 0 24px; }
.faq-item.open .faq-a { max-height: 400px; padding-bottom: 20px; }
.faq-a p { color: var(--ink-500); font-size: 0.95rem; margin: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }
.contact-card {
  display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 22px; margin-bottom: 14px; transition: all 0.25s var(--ease);
}
.contact-card:hover { border-color: var(--brand-200); box-shadow: var(--shadow-sm); transform: translateX(3px); }
.contact-icon {
  width: 42px; height: 42px; border-radius: var(--radius-sm); background: var(--brand-50); color: var(--brand-600);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-card h4 { font-size: 0.8rem; color: var(--ink-500); margin: 0 0 3px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.contact-card a, .contact-card p { font-size: 0.96rem; color: var(--ink-900); font-weight: 500; margin: 0; }
.contact-card a:hover { color: var(--brand-600); }
.map-embed { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin-top: 20px; }
.map-embed iframe { width: 100%; height: 240px; border: 0; display: block; }

.contact-form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 38px; box-shadow: var(--shadow-md); }
.contact-form h3 { margin-bottom: 6px; }
.contact-form > p { color: var(--ink-500); font-size: 0.95rem; margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--ink-800); margin-bottom: 7px; }
.form-group input, .form-group textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 0.95rem; color: var(--ink-900); background: #fff; transition: all 0.2s ease;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--ink-400); }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 3px var(--brand-100); }
.form-note { font-size: 0.85rem; color: var(--ink-500); margin-top: 14px; text-align: center; }
.alert { padding: 14px 18px; border-radius: var(--radius-sm); font-size: 0.93rem; margin-bottom: 20px; border: 1px solid; }
.alert-success { background: var(--success-bg); color: var(--success); border-color: #a7f3d0; }
.alert-error { background: var(--danger-bg); color: var(--danger); border-color: #fecaca; }

/* ---------- Legal pages ---------- */
.legal-content { max-width: 800px; margin: 0 auto; }
.legal-content h2 { font-size: 1.35rem; margin-top: 2em; }
.legal-content ul { margin-bottom: 1.4em; }
.legal-content li { padding-left: 24px; position: relative; margin-bottom: 10px; color: var(--ink-500); }
.legal-content li::before { content: ''; position: absolute; left: 6px; top: 12px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-500); }
.legal-content strong { color: var(--ink-900); font-weight: 600; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; }
}
@media (max-width: 980px) {
  .hero-inner, .split, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; }
  .stats-row, .steps { grid-template-columns: repeat(2, 1fr); }
  .card-grid, .card-grid-2, .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .team-card { grid-template-columns: 1fr; text-align: center; }
  .team-avatar { margin: 0 auto; }
  .cta-box { padding: 44px 36px; }
}
@media (max-width: 760px) {
  .main-nav {
    position: fixed; top: 76px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border);
    padding: 16px 24px; transform: translateY(-130%); opacity: 0; transition: all 0.3s var(--ease); z-index: 90;
    box-shadow: var(--shadow-lg);
  }
  .main-nav.open { transform: translateY(0); opacity: 1; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .nav-toggle { display: flex; }
  .header-phone { display: none; }
  .stats-row, .steps, .card-grid, .card-grid-2, .feature-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-float-1, .hero-float-2 { display: none; }
  .section { padding: 64px 0; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .logo-track, .hero-float { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
