:root {
  --color-bg: #ffffff;
  --color-bg-elevated: #f4f6fb;
  --color-bg-elevated-2: #eaeefa;
  --color-text: #0f1420;
  --color-text-muted: #5b6478;
  --color-border: rgba(15, 23, 42, 0.09);
  --color-border-strong: rgba(15, 23, 42, 0.18);
  --color-accent: #2f6fed;
  --color-accent-2: #06b6d4;
  --gradient-accent: linear-gradient(135deg, #2f6fed, #06b6d4);
  --max-width: 1040px;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Sora", var(--font-sans);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
}

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

a:hover {
  text-decoration: underline;
}

h1, h2, h3, .nav-brand {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 10;
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
  border-bottom-color: var(--color-border-strong);
}

.site-header .nav {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
}

.nav-brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-text);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--color-text-muted);
  font-weight: 500;
  position: relative;
  padding-bottom: 2px;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--color-text);
  text-decoration: none;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--gradient-accent);
  border-radius: 2px;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 4rem;
}

/* Hero */
.hero {
  position: relative;
  padding: 2.5rem 0 2rem;
}

.hero::before {
  content: "";
  position: absolute;
  top: -140px;
  right: -160px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle at center, rgba(47, 111, 237, 0.14), transparent 70%);
  filter: blur(20px);
  z-index: 0;
  pointer-events: none;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.hero p {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  max-width: 40rem;
}

.hero-tags {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin: 0.25rem 0 1rem;
}

.hero-credentials {
  font-size: 0.8rem;
  color: var(--color-accent);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

.hero-split {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.hero-split .hero-text {
  flex: 1 1 320px;
}

.hero-split .hero-photo {
  width: 176px;
  height: 176px;
  border-radius: 50%;
  object-fit: cover;
  padding: 4px;
  background: var(--gradient-accent);
  box-shadow: 0 10px 40px rgba(47, 111, 237, 0.25);
  flex: 0 0 auto;
}

/* Stats bar */
.stats-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  overflow: hidden;
  margin: 2rem 0;
}

.stat {
  flex: 1 1 140px;
  background: var(--color-bg-elevated);
  padding: 1.6rem 1rem;
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  display: block;
  color: var(--color-text-muted);
  font-size: 0.82rem;
  margin-top: 0.3rem;
}

/* Logo / brand strip */
.logo-strip-label {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.logo-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  align-items: center;
  justify-content: center;
  padding: 0 0 2rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.logo-strip span {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  opacity: 0.8;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.logo-strip span:hover {
  opacity: 1;
  color: var(--color-text);
}

/* Photo banners: contained hero image with overlay + heading, used on interior pages */
.photo-banner {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  min-height: 220px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  margin-bottom: 2rem;
  border: 1px solid var(--color-border);
}

.photo-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 9, 18, 0.25), rgba(6, 9, 18, 0.88));
}

.photo-banner-content {
  position: relative;
  z-index: 1;
  padding: 1.75rem 2rem;
}

.photo-banner-content h1 {
  color: #fff;
  margin: 0 0 0.4rem;
  border: none;
  padding: 0;
  font-size: 2rem;
}

.photo-banner-content p {
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
  max-width: 40rem;
}

/* Buttons */
.button {
  display: inline-block;
  background: var(--gradient-accent);
  color: #051324;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  font-weight: 700;
  font-family: var(--font-display);
  margin-top: 1rem;
  box-shadow: 0 10px 28px rgba(47, 111, 237, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.button:hover {
  text-decoration: none;
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 14px 34px rgba(47, 111, 237, 0.4);
}

/* Cards */
.card {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: var(--color-border-strong);
  transform: translateY(-2px);
}

.card h3 {
  margin-top: 0;
}

.icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(47, 111, 237, 0.12);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
}

.icon-badge svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

section + section {
  margin-top: 2.75rem;
}

h2 {
  font-size: 1.4rem;
  font-weight: 700;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.6rem;
}

/* Timeline */
.timeline-item {
  margin-bottom: 1.75rem;
  padding-left: 1.1rem;
  border-left: 2px solid var(--color-border);
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 0.4rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gradient-accent);
  box-shadow: 0 0 0 3px var(--color-bg);
}

.timeline-item .meta {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.service-grid .card:nth-child(1) { transition-delay: 0s; }
.service-grid .card:nth-child(2) { transition-delay: 0.06s; }
.service-grid .card:nth-child(3) { transition-delay: 0.12s; }
.service-grid .card:nth-child(4) { transition-delay: 0.18s; }

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Contact form */
form.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 32rem;
}

form.contact-form label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text);
}

form.contact-form input,
form.contact-form textarea,
form.contact-form select {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--color-bg-elevated);
  color: var(--color-text);
}

form.contact-form input:focus,
form.contact-form textarea:focus,
form.contact-form select:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}

form.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

form.contact-form button {
  align-self: flex-start;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.form-status {
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.calendly-placeholder {
  border: 1px dashed var(--color-border-strong);
  border-radius: 12px;
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--color-text-muted);
  background: var(--color-bg-elevated);
}

.site-footer {
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.9rem;
  padding: 2rem 1.5rem;
  text-align: center;
}

/* Chat widget */
#chat-widget {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  font-family: var(--font-sans);
}

#chat-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient-accent);
  color: #051324;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 8px 26px rgba(47, 111, 237, 0.4);
}

#chat-panel {
  display: none;
  flex-direction: column;
  width: 320px;
  max-height: 420px;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border-strong);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
  position: absolute;
  bottom: 68px;
  right: 0;
  overflow: hidden;
}

#chat-panel.open {
  display: flex;
}

#chat-panel-header {
  padding: 0.75rem 1rem;
  background: var(--color-bg-elevated-2);
  border-bottom: 1px solid var(--color-border);
  font-weight: 600;
  font-size: 0.9rem;
  font-family: var(--font-display);
}

#chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.9rem;
}

.chat-msg {
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  max-width: 85%;
}

.chat-msg.user {
  align-self: flex-end;
  background: var(--gradient-accent);
  color: #051324;
  font-weight: 500;
}

.chat-msg.assistant {
  align-self: flex-start;
  background: var(--color-bg-elevated-2);
  color: var(--color-text);
}

.chat-msg.error {
  align-self: flex-start;
  background: rgba(220, 38, 38, 0.1);
  color: #b42318;
}

#chat-form {
  display: flex;
  border-top: 1px solid var(--color-border);
}

#chat-input {
  flex: 1;
  border: none;
  padding: 0.65rem 0.75rem;
  font-family: inherit;
  font-size: 0.9rem;
  background: var(--color-bg-elevated);
  color: var(--color-text);
}

#chat-input::placeholder {
  color: var(--color-text-muted);
}

#chat-input:focus {
  outline: none;
}

#chat-send {
  border: none;
  background: var(--gradient-accent);
  color: #051324;
  padding: 0 1rem;
  cursor: pointer;
  font-weight: 700;
}

#chat-send:disabled {
  opacity: 0.6;
  cursor: default;
}
