/* ============================================================
   EnsureHR — Premium Design System
   Font: Inter | Palette: Blue/Cyan/Ink
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ── CSS Custom Properties ── */
:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-light: #eff6ff;
  --cyan: #06b6d4;
  --cyan-dark: #0891b2;
  --ink: #0f172a;
  --ink-80: #1e293b;
  --muted: #64748b;
  --muted-light: #94a3b8;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --green: #16a34a;
  --green-bg: #dcfce7;
  --orange: #f97316;
  --red: #dc2626;
  --red-bg: #fee2e2;
  --shadow-sm: 0 1px 3px rgba(15,23,42,0.08), 0 1px 2px rgba(15,23,42,0.06);
  --shadow: 0 4px 16px rgba(15,23,42,0.10), 0 2px 6px rgba(15,23,42,0.06);
  --shadow-lg: 0 20px 60px rgba(15,23,42,0.13), 0 8px 24px rgba(15,23,42,0.08);
  --shadow-blue: 0 8px 28px rgba(37,99,235,0.32);
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  --max: 1180px;
  --nav-h: 72px;
  --transition: 0.22s cubic-bezier(0.4,0,0.2,1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
ul { list-style: none; }

/* ── Layout ── */
.container {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.25rem); }
h3 { font-size: 1.15rem; font-weight: 700; }
p  { color: var(--muted); line-height: 1.7; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-light);
  border: 1px solid rgba(37,99,235,0.18);
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 14px;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(226,232,240,0.8);
  box-shadow: 0 1px 0 rgba(226,232,240,0.6), 0 4px 20px rgba(15,23,42,0.04);
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--nav-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  height: var(--nav-h);
}

.logo img, img.logo {
  height: 54px;
  max-height: 54px;
  width: auto;
  max-width: none;
  object-fit: contain;
  object-position: left center;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--blue);
  background: var(--blue-light);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* hamburger */
.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: none;
  background: var(--bg);
  border-radius: var(--radius-sm);
  font-size: 1.35rem;
  color: var(--ink);
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.menu-toggle:hover { background: var(--line); }

/* mobile nav open state */
.site-header.is-open .nav-links {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: absolute;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 16px 20px 20px;
  gap: 4px;
  box-shadow: var(--shadow);
}

.site-header.is-open .nav-actions {
  display: none;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 100%);
  color: #fff;
  box-shadow: var(--shadow-blue);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--cyan-dark) 100%);
  box-shadow: 0 12px 36px rgba(37,99,235,0.42);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 8px 24px rgba(15,23,42,0.22);
}

.btn-secondary:hover {
  background: var(--ink-80);
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(15,23,42,0.28);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-80);
  border: 1.5px solid var(--line);
}

.btn-ghost:hover {
  background: var(--surface-2);
  border-color: var(--muted-light);
}

.btn-outline-blue {
  background: transparent;
  color: var(--blue);
  border: 1.5px solid var(--blue);
}

.btn-outline-blue:hover {
  background: var(--blue-light);
}

.btn-sm {
  font-size: 0.8rem;
  padding: 7px 14px;
}

.btn-lg {
  font-size: 1rem;
  padding: 14px 30px;
}

/* loading state */
.btn.is-loading {
  pointer-events: none;
  opacity: 0.75;
}

.btn.is-loading::after {
  content: '';
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-left: 6px;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 60px 0 56px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(37,99,235,0.09) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 100%, rgba(6,182,212,0.07) 0%, transparent 55%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
}

.hero-eyebrow { margin-bottom: 18px; }

.hero h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  line-height: 1.1;
  margin-bottom: 18px;
  letter-spacing: -0.03em;
}

.hero h1 .accent {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 32px;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(37,99,235,0.18);
  border-radius: 100px;
  padding: 8px 16px 8px 8px;
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 8px rgba(37,99,235,0.08);
  transition: box-shadow var(--transition), transform var(--transition);
}
.trust-badge:hover {
  box-shadow: 0 4px 16px rgba(37,99,235,0.16);
  transform: translateY(-1px);
}
.trust-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  flex-shrink: 0;
}

.trust-badge strong {
  font-size: 1rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
  white-space: nowrap;
}

.trust-badge span {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
  margin-top: 2px;
}

/* Hero panel (right column) */
.hero-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 28px;
  position: relative;
}

.hero-panel::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 24px;
  right: 24px;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  border-radius: 0 0 4px 4px;
}

.hero-panel h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--ink);
}

.hero-service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 22px;
}

.hero-service-item {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
}

.hero-service-item strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.hero-service-item span {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ============================================================
   STATS BAND
   ============================================================ */
.stats-band {
  padding: 0;
  background: linear-gradient(135deg, var(--ink) 0%, #1e3a5f 100%);
  position: relative;
  overflow: hidden;
}

.stats-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(37,99,235,0.25) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 50%, rgba(6,182,212,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.stat {
  text-align: center;
  padding: 40px 24px;
  border-right: 1px solid rgba(255,255,255,0.1);
  transition: background var(--transition);
}

.stat:hover { background: rgba(255,255,255,0.04); }

.stat:last-child { border-right: none; }

.stat strong {
  display: block;
  font-size: 2.6rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 6px;
  background: linear-gradient(135deg, #60a5fa, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat span {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 48px;
}

.section-head h2 { margin-bottom: 14px; }
.section-head p { font-size: 1.02rem; }

/* ============================================================
   CARDS
   ============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37,99,235,0.2);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--ink);
}

.card p {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--muted);
}

/* legacy .icon class for service cards */
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue-light), rgba(6,182,212,0.12));
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
  border: 1px solid rgba(37,99,235,0.14);
}

.service-meta {
  display: inline-flex;
  margin-top: 14px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-light);
  padding: 3px 10px;
  border-radius: 100px;
}

/* service card link */
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--blue);
  transition: gap var(--transition);
}

.card-link:hover { gap: 10px; }

/* ============================================================
   FEATURE LIST (Why EnsureHR)
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(37,99,235,0.28);
}

.feature-item h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.feature-item p {
  font-size: 0.86rem;
  line-height: 1.6;
}

/* legacy feature-list */
.feature-list { display: grid; gap: 14px; margin: 0; padding: 0; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; }
.check { width: 22px; height: 22px; border-radius: 50%; background: var(--green-bg); color: var(--green); display: inline-flex; align-items: center; justify-content: center; font-weight: 900; font-size: 0.75rem; flex-shrink: 0; margin-top: 2px; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.testimonial-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 14px;
  color: #f59e0b;
  font-size: 0.95rem;
}

.testimonial-quote {
  font-size: 0.92rem;
  color: var(--ink-80);
  line-height: 1.7;
  margin-bottom: 18px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.testimonial-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

.testimonial-company {
  font-size: 0.78rem;
  color: var(--muted);
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--blue) 0%, var(--cyan-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 52px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 0%, rgba(255,255,255,0.12) 0%, transparent 70%);
}

.cta-banner h2 {
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 12px;
  position: relative;
}

.cta-banner p {
  color: rgba(255,255,255,0.82);
  font-size: 1.02rem;
  margin-bottom: 28px;
  position: relative;
}

.cta-banner .cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

.cta-banner .btn-white {
  background: #fff;
  color: var(--blue);
  font-weight: 700;
  box-shadow: 0 8px 28px rgba(0,0,0,0.18);
}

.cta-banner .btn-white:hover {
  background: var(--bg);
  transform: translateY(-1px);
}

.cta-banner .btn-outline-white {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.6);
}

.cta-banner .btn-outline-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
}

/* legacy cta-panel */
.cta-panel {
  background: linear-gradient(135deg, var(--blue) 0%, var(--cyan-dark) 100%);
  border-radius: var(--radius);
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-panel h2 { color: #fff; font-size: 1.5rem; margin-bottom: 6px; }
.cta-panel p  { color: rgba(255,255,255,0.8); margin: 0; }

/* ============================================================
   FORMS
   ============================================================ */
.form-shell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}

.lead-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.form-row {
  display: grid;
  gap: 6px;
}

.form-row label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-80);
  letter-spacing: -0.01em;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--bg);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  outline: none;
  appearance: none;
}

.form-row input::placeholder,
.form-row textarea::placeholder { color: var(--muted-light); }

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--blue);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

.form-row textarea {
  min-height: 90px;
  resize: vertical;
}

.form-row select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

/* validation error state */
.form-row input.field-error,
.form-row select.field-error,
.form-row textarea.field-error {
  border-color: var(--red);
  background: var(--red-bg);
  box-shadow: 0 0 0 3px rgba(220,38,38,0.10);
}

.field-error-msg {
  font-size: 0.77rem;
  color: var(--red);
  font-weight: 600;
  margin-top: 2px;
  display: none;
}

.field-error-msg.show { display: block; }

.form-submit-wrap {
  margin-top: 4px;
}

.form-submit-wrap .btn { width: 100%; }

/* success screen */
.enquiry-success {
  text-align: center;
  padding: 40px 24px;
}

.enquiry-success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--green-bg);
  color: var(--green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 900;
  margin: 0 auto 20px;
  box-shadow: 0 8px 24px rgba(22,163,74,0.22);
}

.enquiry-success h2 {
  font-size: 1.6rem;
  color: var(--ink);
  margin-bottom: 10px;
}

.enquiry-success > p {
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 380px;
  margin: 0 auto 22px;
}

.enquiry-success-details {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 22px;
  display: inline-flex;
  flex-direction: column;
  gap: 12px;
  min-width: 260px;
  text-align: left;
  margin-bottom: 22px;
}

.enquiry-success-details div {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}

.enquiry-success-note {
  color: var(--muted);
  font-size: 0.84rem;
  margin-bottom: 20px;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.contact-card.sticky-aside {
  position: sticky;
  top: calc(var(--nav-h) + 20px);
}

.contact-card h2 {
  font-size: 1.2rem;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.contact-info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.contact-info-item:last-child { border-bottom: none; }

.contact-info-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  color: var(--blue);
}

.contact-info-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 3px;
}

.contact-info-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.5;
}

.contact-info-value a {
  color: var(--blue);
}

.contact-info-value a:hover {
  text-decoration: underline;
}

/* ============================================================
   PAGE HERO
   ============================================================ */
.page-hero {
  padding: 52px 0 44px;
  position: relative;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(37,99,235,0.04) 0%, rgba(6,182,212,0.03) 100%);
}

.page-hero h1 {
  margin: 14px 0 16px;
  max-width: 680px;
}

.page-hero p {
  max-width: 580px;
  font-size: 1.02rem;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.split-text h2 { margin-bottom: 16px; }
.split-text p { font-size: 0.97rem; line-height: 1.75; }

.timeline {
  display: grid;
  gap: 22px;
}

.timeline-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.timeline-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(37,99,235,0.28);
}

.timeline-item h3 {
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.timeline-item p {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ============================================================
   DASHBOARD
   ============================================================ */
.portal-login {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: start;
}

.portal-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}

.portal-panel h1 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  margin: 8px 0 12px;
}

.portal-panel > p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.auth-options {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.text-link {
  background: none;
  border: none;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-message {
  font-size: 0.85rem;
  color: var(--red);
  font-weight: 600;
  min-height: 20px;
  margin-top: 8px;
  display: none;
}

.auth-message.show { display: block; }

.account-panel {
  display: none;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.account-panel.is-active { display: block; }

.account-panel h2 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

/* portal preview */
.portal-preview {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.portal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.portal-row:last-child { border-bottom: none; }
.portal-row strong { font-size: 0.9rem; color: var(--ink); }
.portal-row span:not(.status-pill) { font-size: 0.8rem; color: var(--muted); }

/* status pills */
.status-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
}

.status-progress { background: #eff6ff; color: #1d4ed8; }
.status-waiting  { background: #fff7ed; color: #c2410c; }
.status-done     { background: var(--green-bg); color: #15803d; }

/* owner view */
.portal-view { display: none; }
.portal-view.is-active { display: block; }

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.metric {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.metric::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.metric strong {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 6px;
}

.metric span {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 24px;
}

.dashboard-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.dashboard-card h2 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.chart-wrap { min-height: 260px; position: relative; }
#leadsChart { max-height: 240px; }

/* leads table */
.leads-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.table-scroll { overflow-x: auto; }

.leads-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.leads-table th {
  text-align: left;
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 8px 12px;
  border-bottom: 2px solid var(--line);
  white-space: nowrap;
}

.leads-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-80);
}

.leads-table tr:last-child td { border-bottom: none; }
.leads-table tr:hover td { background: var(--bg); }

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

.visitor-service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
}

.visitor-service-card strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.75);
  padding: 52px 0 0;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-grid > div:first-child img.logo,
.footer-grid > div:first-child img {
  height: 42px;
  width: auto;
  object-fit: contain;
  object-position: left;
  filter: brightness(0) invert(1) opacity(0.9);
  margin-bottom: 14px;
}

.footer-grid p { font-size: 0.86rem; line-height: 1.7; color: rgba(255,255,255,0.6); }

.footer-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 14px;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.72);
  transition: color var(--transition);
}

.footer-links a:hover { color: #fff; }

.footer-bottom {
  padding: 18px 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* ============================================================
   FLOATING ELEMENTS
   ============================================================ */

/* WhatsApp float pill */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #25d366;
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 100px;
  box-shadow: 0 8px 28px rgba(37,211,102,0.42);
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}

.whatsapp-float::before {
  content: '';
  display: block;
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z'/%3E%3C/svg%3E") no-repeat center/contain;
}

.whatsapp-float:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 12px 36px rgba(37,211,102,0.50);
}

/* Call float — hidden on desktop, shown on mobile */
.call-float {
  display: none;
}

/* Scroll to top */
.scroll-top {
  position: fixed;
  bottom: 84px;
  right: 24px;
  z-index: 199;
  width: 42px;
  height: 42px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-sm);
  color: var(--muted);
}

.scroll-top.show {
  opacity: 1;
  pointer-events: auto;
}

.scroll-top:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  color: var(--blue);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s cubic-bezier(0.4,0,0.2,1), transform 0.55s cubic-bezier(0.4,0,0.2,1);
}

[data-animate].is-visible {
  opacity: 1;
  transform: none;
}

/* stagger children */
[data-animate-stagger] > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s cubic-bezier(0.4,0,0.2,1), transform 0.5s cubic-bezier(0.4,0,0.2,1);
}

[data-animate-stagger].is-visible > *:nth-child(1) { transition-delay: 0.05s; opacity:1; transform:none; }
[data-animate-stagger].is-visible > *:nth-child(2) { transition-delay: 0.12s; opacity:1; transform:none; }
[data-animate-stagger].is-visible > *:nth-child(3) { transition-delay: 0.19s; opacity:1; transform:none; }
[data-animate-stagger].is-visible > *:nth-child(4) { transition-delay: 0.26s; opacity:1; transform:none; }

/* ============================================================
   SUCCESS MESSAGE (legacy)
   ============================================================ */
.success-message {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--green);
  min-height: 0;
  display: none;
}

.success-message:not(:empty) { display: block; }

/* ============================================================
   RESPONSIVE — 1024px
   ============================================================ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-service-grid { grid-template-columns: 1fr 1fr; }
  .hero p { max-width: 100%; }
  .trust-badges { gap: 16px; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .portal-login { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

/* ============================================================
   RESPONSIVE — 768px
   ============================================================ */
@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  .section { padding: 48px 0; }

  .nav-links { display: none; }
  .nav-actions { display: none; }
  .menu-toggle { display: flex; }

  .hero { padding: 40px 0 44px; }
  .hero h1 { font-size: clamp(1.85rem, 7vw, 2.6rem); }

  .cards-grid,
  .features-grid,
  .testimonials-grid { grid-template-columns: 1fr; gap: 16px; }

  .hero-service-grid { grid-template-columns: 1fr; gap: 10px; }

  .split { grid-template-columns: 1fr; gap: 36px; }

  .dashboard-metrics { grid-template-columns: 1fr; }
  .visitor-services-grid { grid-template-columns: 1fr; }

  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .contact-card.sticky-aside { position: static; }

  .cta-banner { padding: 36px 24px; }
  .cta-panel { flex-direction: column; align-items: flex-start; }

  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid > div:first-child { display: none; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 28px 16px; }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(3) { border-right: 1px solid rgba(255,255,255,0.1); border-top: 1px solid rgba(255,255,255,0.1); }
  .stat:nth-child(4) { border-right: none; border-top: 1px solid rgba(255,255,255,0.1); }
  .stat strong { font-size: 2rem; }

  .whatsapp-float { bottom: 16px; right: 16px; padding: 10px 16px; font-size: 0.8rem; }
  .scroll-top { bottom: 76px; right: 16px; }

  .form-shell { padding: 24px 20px; }

  .hero-actions .btn { flex: 1; min-width: 0; }

  .trust-badge strong { font-size: 0.92rem; }
  .trust-badge span { font-size: 0.72rem; }

  .portal-panel { padding: 24px 20px; }
}

/* ============================================================
   LEAD PAGE CENTERED
   ============================================================ */
.lead-page-wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 52px 0 64px;
}

/* ============================================================
   SECTION DASHBOARD
   ============================================================ */
.dashboard-section { padding-top: 28px; }
