/*
 * ac-shared.css — AguiCorp.com Shared Design System
 * ====================================================
 * Used by every public page. Defines all tokens, nav,
 * footer, buttons, utility classes, and animations.
 * Version: 1.2.0 (Phase 4 rebuild)
 *
 * Design: Avone-inspired · Playfair Display + Outfit
 * Palette: Navy #042C53 · Blue #378ADD · White · Surface #F6F8FB
 */

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { display: block; max-width: 100%; }
a  { color: inherit; text-decoration: none; }

/* ── Tokens ────────────────────────────────────────────── */
:root {
  /* Blue scale */
  --blue-50:  #E6F1FB;
  --blue-100: #B5D4F4;
  --blue-200: #85B7EB;
  --blue-400: #378ADD;
  --blue-600: #185FA5;
  --blue-800: #0C447C;
  --blue-900: #042C53;

  /* Neutrals */
  --ink:       #0D1117;
  --ink-soft:  #3A4252;
  --mid:       #6B7385;
  --rule:      #E4E7ED;
  --surface:   #F6F8FB;
  --surface-2: #EDF1F7;
  --white:     #FFFFFF;

  /* Semantic */
  --success: #16A34A;
  --warning: #D97706;
  --danger:  #DC2626;

  /* Typography */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Outfit', system-ui, sans-serif;

  /* Layout */
  --max-w: 1140px;

  /* Easing */
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ── Base ──────────────────────────────────────────────── */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background:  var(--white);
  color:       var(--ink);
  font-size:   15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ── Utility bar ───────────────────────────────────────── */
.utility-bar {
  background: var(--blue-900);
  padding: 9px 0;
  font-size: 12px;
  color: var(--blue-200);
  letter-spacing: .02em;
}
.utility-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.utility-left  { display: flex; gap: 20px; align-items: center; }
.utility-sep   { color: rgba(255,255,255,.2); }
.utility-right { display: flex; gap: 18px; align-items: center; }
.utility-right a { color: var(--blue-100); transition: color .15s; }
.utility-right a:hover { color: var(--white); }
.utility-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--blue-400);
  display: inline-block;
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }

/* ── Nav ───────────────────────────────────────────────── */
nav.main-nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 28px; height: 68px;
  display: flex; align-items: center;
  justify-content: space-between; gap: 24px;
}
.logo {
  display: flex; align-items: baseline; gap: 2px;
  font-family: var(--font-serif); font-weight: 700;
  font-size: 22px; color: var(--blue-900);
  letter-spacing: -.01em; flex-shrink: 0;
}
.logo-mark { color: var(--blue-400); font-style: italic; }
.nav-center { display: flex; gap: 2px; align-items: center; }
.nav-center a {
  font-size: 13px; font-weight: 500;
  color: var(--ink-soft); padding: 8px 14px;
  border-radius: 6px; letter-spacing: .01em;
  transition: background .14s, color .14s;
  white-space: nowrap;
}
.nav-center a:hover,
.nav-center a.active { background: var(--blue-50); color: var(--blue-900); }
.nav-center a.active { font-weight: 600; }
.nav-right { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.nav-btn {
  font-size: 13px; font-weight: 600;
  padding: 9px 20px; border-radius: 8px;
  letter-spacing: .01em; transition: all .15s;
  cursor: pointer; display: inline-block;
}
.nav-btn-ghost {
  border: 1.5px solid var(--blue-200);
  color: var(--blue-800); background: transparent;
}
.nav-btn-ghost:hover { background: var(--blue-50); border-color: var(--blue-400); }
.nav-btn-solid { background: var(--blue-900); color: var(--white); border: 1.5px solid var(--blue-900); }
.nav-btn-solid:hover { background: var(--blue-800); }
.nav-mobile-toggle {
  display: none; background: none; border: none;
  cursor: pointer; padding: 8px; color: var(--ink-soft);
}
.nav-mobile-toggle svg { width: 22px; height: 22px; }

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans); font-size: 14px;
  font-weight: 600; border-radius: 8px;
  padding: 13px 26px; cursor: pointer;
  transition: transform .15s, background .15s, box-shadow .15s;
  border: none; letter-spacing: .01em;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--blue-400); color: var(--white);
  box-shadow: 0 4px 18px rgba(55,138,221,.28);
}
.btn-primary:hover { background: var(--blue-600); box-shadow: 0 8px 24px rgba(55,138,221,.35); }
.btn-dark   { background: var(--blue-900); color: var(--white); }
.btn-dark:hover { background: var(--blue-800); }
.btn-outline {
  background: transparent; color: var(--blue-900);
  border: 1.5px solid var(--blue-200);
}
.btn-outline:hover { background: var(--blue-50); border-color: var(--blue-400); }
.btn-sm { font-size: 12px; padding: 8px 18px; }
.btn-lg { font-size: 15px; padding: 16px 32px; }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ── Section commons ───────────────────────────────────── */
section { padding: 96px 0; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 28px; }
.sec-kicker {
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue-600); margin-bottom: 14px;
}
.sec-kicker-rule { width: 32px; height: 2px; background: var(--blue-400); border-radius: 2px; }
.sec-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700; line-height: 1.12;
  letter-spacing: -.02em; color: var(--ink);
  margin-bottom: 16px;
}
.sec-title em { font-style: italic; color: var(--blue-400); }
.sec-body {
  font-size: 16px; font-weight: 300;
  color: var(--mid); line-height: 1.75;
  max-width: 560px;
}
.sec-header-flex {
  display: flex; justify-content: space-between;
  align-items: flex-end; gap: 24px;
  margin-bottom: 48px; flex-wrap: wrap;
}

/* ── Cards ─────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 14px; overflow: hidden;
  transition: transform .2s var(--ease), border-color .2s, box-shadow .2s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--blue-200);
  box-shadow: 0 8px 32px rgba(4,44,83,.08);
}
.card-accent-bar { height: 4px; background: var(--blue-400); }
.card-body { padding: 24px; }
.card-kicker {
  font-size: 10px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--blue-600); margin-bottom: 6px;
}
.card-title {
  font-family: var(--font-serif); font-size: 18px;
  font-weight: 600; color: var(--ink); margin-bottom: 8px;
}
.card-body-text { font-size: 13px; color: var(--mid); line-height: 1.6; }
.card-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--rule);
  background: var(--surface);
  display: flex; align-items: center;
  justify-content: space-between; gap: 12px;
}

/* ── Status badges ─────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  border-radius: 100px; padding: 4px 10px;
}
.badge-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge-live     { background: #DCFCE7; color: #16A34A; border: 1px solid #BBF7D0; }
.badge-dev      { background: #EDE9FE; color: #7C3AED; border: 1px solid #DDD6FE; }
.badge-pipeline { background: var(--blue-50); color: var(--blue-600); border: 1px solid var(--blue-100); }
.badge-sale     { background: #FEF3C7; color: #D97706; border: 1px solid #FDE68A; }
.badge-hold     { background: #F3F4F6; color: #6B7280; border: 1px solid #E5E7EB; }
.badge-ai       { background: #EDE9FE; color: #7C3AED; border: 1px solid #C4B5FD; }

/* ── Breadcrumb ────────────────────────────────────────── */
.breadcrumb {
  font-size: 12px; color: var(--mid);
  display: flex; align-items: center; gap: 6px;
  padding: 16px 0;
}
.breadcrumb a:hover { color: var(--blue-600); }
.breadcrumb-sep { color: var(--rule); }

/* ── Forms ─────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; font-size: 13px;
  font-weight: 600; color: var(--ink-soft);
  margin-bottom: 6px;
}
.form-label span { color: var(--danger); margin-left: 2px; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 11px 14px;
  font-family: var(--font-sans); font-size: 14px;
  color: var(--ink); background: var(--white);
  border: 1.5px solid var(--rule); border-radius: 8px;
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--blue-400);
  box-shadow: 0 0 0 3px rgba(55,138,221,.12);
}
.form-input.error, .form-select.error { border-color: var(--danger); }
.form-error {
  font-size: 12px; color: var(--danger);
  margin-top: 4px; display: none;
}
.form-error.visible { display: block; }
.form-textarea { resize: vertical; min-height: 120px; }
.form-hint { font-size: 12px; color: var(--mid); margin-top: 4px; }

/* ── Price display ─────────────────────────────────────── */
.price-tag {
  font-family: var(--font-serif);
  font-size: 24px; font-weight: 700;
  color: var(--blue-900); line-height: 1;
}
.price-tag small { font-size: 13px; font-family: var(--font-sans); color: var(--mid); }
.price-appraisal {
  font-size: 11px; color: var(--mid);
  text-decoration: line-through; margin-left: 4px;
}
.price-savings {
  font-size: 11px; font-weight: 600;
  color: var(--success); margin-left: 6px;
}

/* ── Progress bars ─────────────────────────────────────── */
.progress-track {
  background: var(--rule); border-radius: 100px;
  height: 6px; overflow: hidden;
}
.progress-fill {
  height: 100%; border-radius: 100px;
  background: var(--blue-400);
  transition: width 1s var(--ease);
}

/* ── Filter bar ────────────────────────────────────────── */
.filter-bar {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin-bottom: 32px;
}
.filter-btn {
  font-family: var(--font-sans); font-size: 12px;
  font-weight: 600; letter-spacing: .04em;
  padding: 6px 16px; border-radius: 100px;
  border: 1.5px solid var(--rule);
  color: var(--mid); background: transparent;
  cursor: pointer; transition: all .15s;
}
.filter-btn:hover  { border-color: var(--blue-400); color: var(--blue-600); }
.filter-btn.active {
  background: var(--blue-900); color: var(--white);
  border-color: var(--blue-900);
}

/* ── Alert / toast ─────────────────────────────────────── */
.alert {
  padding: 14px 18px; border-radius: 10px;
  font-size: 13px; display: flex;
  align-items: flex-start; gap: 10px;
}
.alert-success { background: #DCFCE7; color: #15803D; border: 1px solid #BBF7D0; }
.alert-error   { background: #FEE2E2; color: #B91C1C; border: 1px solid #FECACA; }
.alert-info    { background: var(--blue-50); color: var(--blue-800); border: 1px solid var(--blue-100); }

/* ── Loading spinner ───────────────────────────────────── */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid var(--rule);
  border-top-color: var(--blue-400);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-state {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; padding: 64px 0;
  font-size: 14px; color: var(--mid);
}

/* ── Empty state ───────────────────────────────────────── */
.empty-state {
  text-align: center; padding: 72px 24px;
  color: var(--mid);
}
.empty-state-icon {
  width: 56px; height: 56px;
  background: var(--surface);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-size: 24px;
}
.empty-state h3 {
  font-family: var(--font-serif); font-size: 20px;
  color: var(--ink); margin-bottom: 8px;
}
.empty-state p { font-size: 14px; font-weight: 300; max-width: 320px; margin: 0 auto 24px; }

/* ── Reveal animations ─────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }
.reveal-d4 { transition-delay: .32s; }

/* ── Divider ───────────────────────────────────────────── */
.divider {
  border: none; border-top: 1px solid var(--rule);
  margin: 48px 0;
}

/* ── Footer ────────────────────────────────────────────── */
footer.main-footer {
  background: var(--blue-900); color: var(--blue-100);
  padding: 64px 0 0;
}
.footer-grid {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 28px 48px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-brand { }
.footer-logo {
  font-family: var(--font-serif); font-size: 20px;
  font-weight: 700; color: var(--white);
  margin-bottom: 14px; display: flex;
  align-items: baseline; gap: 2px;
}
.footer-logo .logo-mark { color: var(--blue-400); font-style: italic; }
.footer-tagline {
  font-size: 13px; font-weight: 300;
  line-height: 1.6; color: var(--blue-200);
  margin-bottom: 20px; max-width: 260px;
}
.footer-dmca {
  font-size: 11px; color: rgba(255,255,255,.35);
}
.footer-col-title {
  font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--white); margin-bottom: 18px;
}
.footer-links {
  display: flex; flex-direction: column; gap: 10px;
}
.footer-links a {
  font-size: 13px; color: var(--blue-200);
  transition: color .15s;
}
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 28px;
  max-width: var(--max-w); margin: 0 auto;
  display: flex; justify-content: space-between;
  align-items: center; gap: 16px; flex-wrap: wrap;
}
.footer-copy {
  font-size: 12px; color: rgba(255,255,255,.4);
}
.footer-legal {
  display: flex; gap: 20px;
}
.footer-legal a {
  font-size: 12px; color: rgba(255,255,255,.4);
  transition: color .15s;
}
.footer-legal a:hover { color: rgba(255,255,255,.7); }

/* ── Marquee ───────────────────────────────────────────── */
.marquee-wrap {
  background: var(--blue-900); overflow: hidden;
  border-top: 1px solid rgba(255,255,255,.05);
}
.marquee-track {
  display: flex;
  animation: marquee-scroll 34s linear infinite;
  width: max-content; padding: 14px 0;
}
.marquee-item {
  display: flex; align-items: center; gap: 16px;
  padding: 0 36px; font-size: 12px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--blue-200); white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,.1);
}
.marquee-item span { color: var(--blue-400); font-size: 16px; line-height: 1; }
@keyframes marquee-scroll { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-center  { display: none; }
  .nav-mobile-toggle { display: block; }
}
@media (max-width: 600px) {
  section { padding: 64px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .nav-right .nav-btn-ghost { display: none; }
  .filter-bar { gap: 4px; }
  .filter-btn { font-size: 11px; padding: 5px 12px; }
}
