/* ==========================================================================
   Grace Computer Systems - shared stylesheet (site.css)
   Owned by the orchestrator. Page subagents may only APPEND page-scoped
   rules under a banner comment reading: page: <slug>
   Design system extracted 1:1 from the source (Lovable / gpt-engineer SPA).
   Brand primary is the source's exact token: oklch(0.72 0.19 195) (teal).
   ========================================================================== */

:root {
  /* --- brand + theme tokens (light theme, as the source ships by default) --- */
  --primary: oklch(0.72 0.19 195);
  --primary-foreground: oklch(0.99 0 0);
  --accent-gold: oklch(0.88 0.15 85);

  --background: oklch(0.985 0.008 210);
  --foreground: oklch(0.23 0.03 232);
  --card: oklch(1 0 0);
  --muted-foreground: oklch(0.54 0.025 235);
  --border: oklch(0.91 0.012 232);
  --input: oklch(0.975 0.008 224);

  /* aliases used by inline styles carried over from the source markup */
  --color-primary: var(--primary);
  --glow: oklch(0.72 0.19 195 / 0.5);
  --glow-muted: oklch(0.72 0.19 195 / 0.25);
  --color-glow: var(--glow);
  --color-glow-muted: var(--glow-muted);

  --radius: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --maxw: 80rem;

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* dark theme (the source shipped a working light/dark toggle; light is the
   default shown in the ground-truth screenshot). Derived dark palette. */
.dark {
  --background: oklch(0.19 0.02 232);
  --foreground: oklch(0.96 0.005 220);
  --card: oklch(0.23 0.025 232);
  --muted-foreground: oklch(0.68 0.02 230);
  --border: oklch(0.32 0.02 232);
  --input: oklch(0.26 0.02 232);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

.container { margin-inline: auto; max-width: var(--maxw); padding-inline: 1.5rem; }

/* gradient teal text (source .gradient-text: teal gradient clipped to the glyphs) */
.gradient-text {
  background: linear-gradient(120deg, oklch(0.72 0.19 195), oklch(0.78 0.17 205), oklch(0.66 0.16 175));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary);
}

/* ---------------------------- shared nav --------------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding-block: 1.25rem;
  transition: background 0.5s, box-shadow 0.5s, padding 0.3s;
}
.nav.scrolled {
  padding-block: 0.75rem;
  background: color-mix(in oklch, var(--background) 82%, transparent);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
  margin-inline: auto; max-width: var(--maxw);
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: 1.5rem;
}
.brand { display: flex; align-items: center; gap: 0.5rem; }
.brand-mark {
  display: flex; height: 2.5rem; width: 2.5rem;
  align-items: center; justify-content: center;
  border-radius: var(--radius); background: var(--primary);
  color: var(--primary-foreground); font-weight: 700; font-size: 1.125rem;
}
.brand-name { display: block; font-size: 0.875rem; font-weight: 700; letter-spacing: 0.15em; color: var(--foreground); }
.brand-sub { display: block; font-size: 0.625rem; letter-spacing: 0.2em; color: var(--muted-foreground); }
.nav-links { display: none; align-items: center; gap: 2rem; }
.nav-links a.navlink {
  font-size: 0.875rem; font-weight: 500; color: var(--muted-foreground);
  transition: color 0.2s;
}
.nav-links a.navlink:hover { color: var(--primary); }
.icon-btn {
  display: flex; height: 2.25rem; width: 2.25rem;
  align-items: center; justify-content: center;
  border-radius: var(--radius); border: 1px solid var(--border);
  background: color-mix(in oklch, var(--card) 50%, transparent);
  color: var(--muted-foreground); cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.icon-btn:hover { border-color: var(--primary); color: var(--primary); }
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border-radius: var(--radius); background: var(--primary);
  color: var(--primary-foreground); font-weight: 600; font-size: 0.875rem;
  padding: 0.5rem 1.25rem; border: none; cursor: pointer;
  transition: box-shadow 0.3s, transform 0.2s;
}
.btn-primary:hover { box-shadow: 0 0 20px var(--glow-muted); }
.nav-toggle {
  display: inline-flex; background: none; border: none; color: var(--foreground);
  cursor: pointer; padding: 0.25rem;
}
/* mobile menu: hamburger reveals the links as a dropdown panel */
.nav.open .nav-links {
  display: flex; flex-direction: column; align-items: stretch; gap: 1rem;
  position: absolute; top: 100%; left: 1rem; right: 1rem;
  margin-top: 0.5rem; padding: 1.25rem;
  border-radius: var(--radius-lg); border: 1px solid var(--border);
  background: color-mix(in oklch, var(--background) 95%, transparent);
  backdrop-filter: blur(12px); box-shadow: 0 12px 32px -8px rgba(0,0,0,0.2);
}
@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .nav.open .nav-links { position: static; flex-direction: row; align-items: center;
    margin-top: 0; padding: 0; border: none; background: none; box-shadow: none; backdrop-filter: none; }
}

/* decorative glow orbs / background field */
.bg-field { pointer-events: none; position: fixed; inset: 0; z-index: 1; }
.orb {
  position: absolute; border-radius: 9999px; filter: blur(100px);
}

/* ------------------------------- hero ------------------------------------ */
.hero {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-height: 100vh; overflow: hidden; text-align: center;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media .veil-b {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    color-mix(in oklch, var(--background) 40%, transparent),
    color-mix(in oklch, var(--background) 30%, transparent),
    var(--background));
}
.hero-media .veil-r {
  position: absolute; inset: 0;
  background: linear-gradient(to right,
    color-mix(in oklch, var(--background) 60%, transparent),
    color-mix(in oklch, var(--background) 20%, transparent),
    transparent);
}
.hero-orb-1 { top: 25%; left: 25%; height: 16rem; width: 16rem; background: color-mix(in oklch, var(--primary) 15%, transparent); }
.hero-orb-2 { bottom: 25%; right: 25%; height: 14rem; width: 14rem; background: color-mix(in oklch, var(--accent-gold) 30%, transparent); filter: blur(90px); }
.hero-inner { position: relative; z-index: 10; margin-inline: auto; max-width: var(--maxw); padding-inline: 1.5rem; }
.badge-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border-radius: 9999px; border: 1px solid color-mix(in oklch, var(--primary) 30%, transparent);
  background: color-mix(in oklch, var(--primary) 10%, transparent);
  padding: 0.5rem 1rem; backdrop-filter: blur(4px); margin-bottom: 1.5rem;
}
.badge-pill .dot { height: 0.5rem; width: 0.5rem; border-radius: 9999px; background: var(--primary); }
.badge-pill span { font-size: 0.75rem; font-weight: 500; color: var(--primary); }
.hero h1 {
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  font-weight: 700; line-height: 1.1;
}
.hero-lead {
  margin-inline: auto; margin-top: 1.5rem; max-width: 42rem;
  font-size: 1.125rem; color: color-mix(in oklch, var(--foreground) 80%, transparent);
}
.hero-cta { margin-top: 2.5rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; }
.btn-lg { padding: 1rem 2rem; border-radius: var(--radius); font-size: 0.875rem; font-weight: 600; }
.btn-outline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1px solid var(--border);
  background: color-mix(in oklch, var(--card) 70%, transparent);
  backdrop-filter: blur(4px); color: var(--foreground);
  transition: border-color 0.2s, box-shadow 0.3s;
}
.btn-outline:hover { border-color: color-mix(in oklch, var(--primary) 50%, transparent); box-shadow: 0 0 20px var(--glow-muted); }
.btn-primary.btn-lg:hover { box-shadow: 0 0 30px var(--glow-muted); transform: scale(1.05); }
.hero-scroll {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  z-index: 10; display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  color: var(--muted-foreground); transition: color 0.2s;
}
.hero-scroll:hover { color: var(--primary); }
.hero-scroll span { font-size: 0.625rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.25em; }
.hero-fade { position: absolute; bottom: 0; left: 0; right: 0; height: 8rem; background: linear-gradient(to top, var(--background), transparent); }
@media (min-width: 640px) { .hero-cta { flex-direction: row; } }

/* --------------------------- section dividers ---------------------------- */
.divider { position: relative; display: flex; align-items: center; justify-content: center; padding-block: 1rem; }
.divider .line { height: 1px; width: 100%; max-width: 28rem; background: linear-gradient(to right, transparent, var(--color-primary), transparent); }
.divider .node { position: absolute; height: 0.5rem; width: 0.5rem; border-radius: 9999px; background: color-mix(in oklch, var(--primary) 50%, transparent); box-shadow: 0 0 10px var(--glow); }

/* ------------------------------ sections --------------------------------- */
.section { position: relative; padding-block: 6rem; }
.section-head { margin-bottom: 4rem; text-align: center; }
.section-head h2 { margin-top: 0.75rem; font-size: clamp(1.875rem, 4vw, 3rem); font-weight: 700; }
.section-head p { margin-inline: auto; margin-top: 1rem; max-width: 36rem; color: var(--muted-foreground); }
.section-glow { position: absolute; border-radius: 9999px; background: color-mix(in oklch, var(--primary) 5%, transparent); filter: blur(150px); pointer-events: none; }

/* card + glow-card */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
}

.glow-card {
  position: relative; overflow: hidden;
  border-radius: var(--radius-xl); border: 1px solid var(--border);
  background: color-mix(in oklch, var(--card) 60%, transparent);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.glow-card:hover { border-color: color-mix(in oklch, var(--primary) 40%, transparent); box-shadow: 0 0 40px var(--glow-muted); }

.service-media { position: relative; height: 12rem; overflow: hidden; }
.service-media img { width: 100%; height: 120%; object-fit: cover; transform: translateY(-30px); transition: transform 0.7s; }
.glow-card:hover .service-media img { transform: translateY(-30px) scale(1.1); }
.service-media .grad { position: absolute; inset: 0; background: linear-gradient(to top, var(--card), color-mix(in oklch, var(--card) 50%, transparent), transparent); }
.icon-badge {
  position: absolute; bottom: 1rem; left: 1rem;
  display: flex; height: 3rem; width: 3rem; align-items: center; justify-content: center;
  border-radius: var(--radius); background: color-mix(in oklch, var(--primary) 20%, transparent);
  backdrop-filter: blur(4px); border: 1px solid color-mix(in oklch, var(--primary) 30%, transparent);
  color: var(--primary);
}
.card-body { padding: 1.5rem; }
.card-body h3 { font-size: 1.125rem; font-weight: 600; color: var(--foreground); }
.card-body p { margin-top: 0.5rem; font-size: 0.875rem; line-height: 1.6; color: var(--muted-foreground); }

/* feature card (why choose) */
.feature-card { padding: 2rem; }
.feature-icon { margin-bottom: 1.25rem; display: flex; height: 3rem; width: 3rem; align-items: center; justify-content: center; border-radius: var(--radius); background: color-mix(in oklch, var(--primary) 10%, transparent); color: var(--primary); }
.feature-card h3 { font-size: 1.125rem; font-weight: 600; color: var(--foreground); }
.feature-card p { margin-top: 0.5rem; font-size: 0.875rem; line-height: 1.6; color: var(--muted-foreground); }

/* stats */
.stat {
  position: relative; overflow: hidden; border-radius: var(--radius-xl);
  border: 1px solid var(--border); background: color-mix(in oklch, var(--card) 50%, transparent);
  padding: 2rem; text-align: center; transition: border-color 0.3s, box-shadow 0.3s;
}
.stat:hover { border-color: color-mix(in oklch, var(--primary) 40%, transparent); box-shadow: 0 0 40px var(--glow-muted); }
.stat-icon { margin-inline: auto; margin-bottom: 1rem; display: flex; height: 3.5rem; width: 3.5rem; align-items: center; justify-content: center; border-radius: var(--radius); background: color-mix(in oklch, var(--primary) 10%, transparent); color: var(--primary); }
.stat-num { font-size: 2.25rem; font-weight: 700; color: var(--foreground); }
.stat-label { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted-foreground); }

/* ------------------------------- about ----------------------------------- */
.about-grid { display: grid; gap: 4rem; }
@media (min-width: 1024px) { .about-grid { grid-template-columns: repeat(2, 1fr); } }
.about-copy p { font-size: 1.125rem; line-height: 1.7; color: var(--muted-foreground); }
.about-copy p + p { margin-top: 1rem; }
.about-copy .em { font-weight: 600; color: var(--foreground); }
.about-copy .em-primary { font-weight: 600; color: var(--primary); }
.mini-stats { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.mini-stat { border-radius: var(--radius); border: 1px solid var(--border); background: color-mix(in oklch, var(--card) 50%, transparent); padding: 1rem; text-align: center; }
.mini-stat .ic { margin-inline: auto; margin-bottom: 0.5rem; color: var(--primary); display: flex; justify-content: center; }
.mini-stat .n { font-size: 1.5rem; font-weight: 700; color: var(--foreground); }
.mini-stat .l { font-size: 0.75rem; color: var(--muted-foreground); }

/* timeline */
.timeline { position: relative; }
.timeline-line { position: absolute; left: 1rem; top: 0; bottom: 0; width: 1px; background: linear-gradient(to bottom, transparent, color-mix(in oklch, var(--primary) 60%, transparent), transparent); }
.timeline-items { display: flex; flex-direction: column; gap: 2.5rem; }
.tl-item { position: relative; padding-left: 3rem; }
.tl-node {
  position: absolute; left: 0; top: 0.25rem;
  display: flex; height: 2.25rem; width: 2.25rem; align-items: center; justify-content: center;
  border-radius: 9999px; border: 2px solid var(--primary); background: var(--background);
}
.tl-node .inner { height: 0.75rem; width: 0.75rem; border-radius: 9999px; background: var(--primary); }
.tl-year { font-size: 0.875rem; font-weight: 700; color: var(--primary); }
.tl-item h3 { margin-top: 0.25rem; font-size: 1.125rem; font-weight: 600; color: var(--foreground); }
.tl-item p { margin-top: 0.25rem; font-size: 0.875rem; color: var(--muted-foreground); }
@media (min-width: 1024px) {
  .timeline-line { left: 1.5rem; }
  .tl-item { padding-left: 4rem; }
  .tl-node { left: 0.5rem; height: 2.5rem; width: 2.5rem; }
}

/* ---------------------------- testimonials ------------------------------- */
.testi-wrap { position: relative; margin-inline: auto; max-width: 48rem; }
.testi-quote-icon { position: absolute; top: -1rem; left: 0; color: color-mix(in oklch, var(--primary) 20%, transparent); }
.testi { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-inline: 2rem; min-height: 250px; }
.testi-stars { display: flex; gap: 0.25rem; margin-bottom: 1.5rem; color: var(--accent-gold); }
.testi-text { font-size: 1.125rem; line-height: 1.7; color: var(--muted-foreground); font-style: italic; }
.testi-name { margin-top: 1.5rem; font-weight: 600; color: var(--foreground); }
.testi-role { font-size: 0.875rem; color: var(--muted-foreground); }
.testi-controls { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 2rem; }
.round-btn { display: flex; height: 2.5rem; width: 2.5rem; align-items: center; justify-content: center; border-radius: 9999px; border: 1px solid var(--border); background: color-mix(in oklch, var(--card) 50%, transparent); color: var(--muted-foreground); cursor: pointer; transition: border-color 0.2s, color 0.2s; }
.round-btn:hover { border-color: var(--primary); color: var(--primary); }
.testi-dots { display: flex; gap: 0.5rem; }
.testi-dots .d { height: 0.5rem; width: 0.5rem; border-radius: 9999px; background: var(--border); border: none; padding: 0; }
.testi-dots .d.active { width: 2rem; background: var(--primary); }
.review-link {
  display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 2.5rem;
  border-radius: var(--radius); border: 1px solid color-mix(in oklch, var(--primary) 30%, transparent);
  background: color-mix(in oklch, var(--primary) 10%, transparent);
  padding: 0.75rem 1.5rem; font-size: 0.875rem; font-weight: 600; color: var(--primary);
  backdrop-filter: blur(4px); transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}
.review-link:hover { background: var(--primary); color: var(--primary-foreground); box-shadow: 0 0 20px var(--glow-muted); }

/* ------------------------------- faq ------------------------------------- */
.faq-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border-radius: 9999px; border: 1px solid color-mix(in oklch, var(--primary) 30%, transparent);
  background: color-mix(in oklch, var(--primary) 10%, transparent);
  padding: 0.375rem 1rem; font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.15em; color: var(--primary);
}
.faq-panel {
  position: relative; border-radius: var(--radius-xl);
  border: 1px solid color-mix(in oklch, var(--border) 60%, transparent);
  background: linear-gradient(to bottom, color-mix(in oklch, var(--card) 80%, transparent), color-mix(in oklch, var(--card) 40%, transparent));
  padding: 0.5rem; backdrop-filter: blur(4px);
}
.faq-panel::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); height: 1px; width: 50%; background: linear-gradient(to right, transparent, color-mix(in oklch, var(--primary) 50%, transparent), transparent); }
.faq-item { border-radius: var(--radius-lg); padding: 0.25rem 1.25rem; transition: background 0.3s; }
.faq-item[open] { background: color-mix(in oklch, var(--primary) 5%, transparent); box-shadow: inset 0 0 30px var(--glow-muted); }
.faq-item:hover { background: color-mix(in oklch, var(--primary) 5%, transparent); }
.faq-summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: 1rem; cursor: pointer; list-style: none;
  font-size: 0.9375rem; font-weight: 600; color: var(--foreground); transition: color 0.2s;
}
.faq-summary::-webkit-details-marker { display: none; }
.faq-item:hover .faq-summary { color: var(--primary); }
.faq-q { display: flex; align-items: center; gap: 0.75rem; }
.faq-num {
  display: flex; height: 2rem; width: 2rem; flex-shrink: 0; align-items: center; justify-content: center;
  border-radius: var(--radius); background: color-mix(in oklch, var(--primary) 10%, transparent);
  font-size: 0.75rem; font-weight: 700; color: var(--primary); transition: background 0.2s, color 0.2s;
}
.faq-item[open] .faq-num { background: var(--primary); color: var(--primary-foreground); }
.faq-chev { color: color-mix(in oklch, var(--primary) 60%, transparent); transition: transform 0.3s; flex-shrink: 0; }
.faq-item[open] .faq-chev { transform: rotate(180deg); }
.faq-answer { padding-block: 0 1rem; font-size: 0.875rem; line-height: 1.6; color: var(--muted-foreground); }
.faq-foot { margin-top: 2.5rem; text-align: center; font-size: 0.875rem; color: var(--muted-foreground); }
.faq-foot a { font-weight: 600; color: var(--primary); text-decoration: underline; text-underline-offset: 4px; }

/* ------------------------------ contact ---------------------------------- */
.contact-grid { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: repeat(5, 1fr); } }
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
@media (min-width: 1024px) { .contact-info { grid-column: span 2; } .contact-form { grid-column: span 3; } }
.contact-card { display: flex; gap: 1rem; border-radius: var(--radius); border: 1px solid var(--border); background: color-mix(in oklch, var(--card) 50%, transparent); padding: 1.25rem; }
.contact-card .ci {
  display: flex; height: 2.75rem; width: 2.75rem; flex-shrink: 0; align-items: center; justify-content: center;
  border-radius: var(--radius); background: color-mix(in oklch, var(--primary) 10%, transparent); color: var(--primary);
}
.contact-card .ct { font-size: 0.875rem; font-weight: 600; color: var(--foreground); }
.contact-card .cv { margin-top: 0.125rem; font-size: 0.875rem; color: var(--muted-foreground); }
.contact-card a.cv:hover { color: var(--primary); }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: repeat(2, 1fr); } }
.field {
  width: 100%; border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--input); padding: 0.75rem 1rem; font-size: 0.875rem;
  color: var(--foreground); font-family: inherit; outline: none; transition: border-color 0.2s;
}
.field::placeholder { color: var(--muted-foreground); }
.field:focus { border-color: var(--primary); }
textarea.field { resize: none; }
.form-submit {
  display: flex; width: 100%; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: var(--radius); background: var(--primary); color: var(--primary-foreground);
  padding-block: 1rem; font-size: 0.875rem; font-weight: 600; border: none; cursor: pointer;
  transition: box-shadow 0.3s, transform 0.2s;
}
.form-submit:hover { box-shadow: 0 0 30px var(--glow-muted); transform: scale(1.02); }
.hp-wrap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.map-frame { margin-top: 4rem; overflow: hidden; border-radius: var(--radius-xl); border: 1px solid var(--border); }
.map-frame iframe { display: block; width: 100%; height: 350px; border: 0; }

/* ------------------------------ footer ----------------------------------- */
.footer { border-top: 1px solid var(--border); background: color-mix(in oklch, var(--card) 30%, transparent); padding-block: 3rem; }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } .footer-about { grid-column: span 2; } }
.footer-about p { margin-top: 1rem; max-width: 24rem; font-size: 0.875rem; line-height: 1.6; color: var(--muted-foreground); }
.footer h4 { margin-bottom: 1rem; font-size: 0.875rem; font-weight: 600; color: var(--foreground); }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { font-size: 0.875rem; color: var(--muted-foreground); transition: color 0.2s; }
.footer-links a:hover { color: var(--primary); }
.footer-contact li { display: flex; align-items: flex-start; gap: 0.5rem; margin-bottom: 0.75rem; font-size: 0.875rem; color: var(--muted-foreground); }
.footer-contact svg { color: var(--primary); flex-shrink: 0; margin-top: 0.1rem; }
.footer-bottom { margin-top: 2.5rem; border-top: 1px solid var(--border); padding-top: 1.5rem; text-align: center; font-size: 0.75rem; color: var(--muted-foreground); }

/* floating chat affordance (source had a fixed round button) */
.chat-fab {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 100;
  display: flex; height: 3.5rem; width: 3.5rem; align-items: center; justify-content: center;
  border-radius: 9999px; background: var(--primary); color: var(--primary-foreground);
  border: none; cursor: pointer; box-shadow: 0 10px 25px -5px rgba(0,0,0,0.25);
  transition: box-shadow 0.3s, transform 0.2s;
}
.chat-fab:hover { box-shadow: 0 0 30px var(--glow-muted); transform: scale(1.1); }

/* ============================== animations =============================== */
@keyframes glow-pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}
.animate-glow-pulse { animation: glow-pulse 3s ease-in-out infinite; }

@keyframes float-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}
.animate-bob { animation: float-bob 2s ease-in-out infinite; }

/* entrance reveals: pure-CSS on-load fade-up. The animation ALWAYS runs, so
   the element ALWAYS ends visible - no stylesheet ever hides content. */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal { animation: fade-up 0.7s ease both; }
.reveal-2 { animation: fade-up 0.7s ease 0.1s both; }
.reveal-3 { animation: fade-up 0.7s ease 0.2s both; }
.reveal-4 { animation: fade-up 0.7s ease 0.3s both; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  html { scroll-behavior: auto; }
}
