@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,700&family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root {
  --shu-ink: #0B1F3A;
  --shu-cobalt: #1B4F8A;
  --shu-amber: #D4A017;
  --shu-amber-dark: #B8860B;
  --shu-sand: #F3EFE6;
  --shu-slate: #334155;
  --shu-surface: #F8FAFC;
  --primary: var(--shu-cobalt);
  --primary-dark: var(--shu-ink);
  --accent: var(--shu-amber);
  --bg: var(--shu-surface);
  --surface: #fff;
  --text: #12141A;
  --muted: var(--shu-slate);
  --border: #e2e8f0;
  --success: #059669;
  --error: #dc2626;
  --radius: 12px;
  --shadow: 0 12px 40px rgba(11, 31, 58, 0.1);
  --font: 'Source Sans 3', system-ui, sans-serif;
  --font-display: 'Fraunces', Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, .display { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; }

.site-header {
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky; top: 0; z-index: 50;
  gap: 1rem;
}
.site-brand {
  font-weight: 700; font-size: 1.05rem; color: var(--shu-ink);
  display: flex; gap: 0.65rem; align-items: center; text-decoration: none;
}
.site-brand:hover { text-decoration: none; }
.site-brand img { width: 36px; height: 36px; display: block; }
.site-brand .brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.site-brand .brand-text strong { font-family: var(--font-display); font-size: 0.95rem; }
.site-brand .brand-text small { font-size: 0.7rem; font-weight: 500; color: var(--muted); }

.logo-mark {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, var(--shu-ink), var(--shu-cobalt));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 700;
}

.site-nav { display: flex; gap: 0.35rem 0.85rem; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.site-nav > a, .nav-drop > summary {
  color: var(--muted); font-size: 0.9rem; font-weight: 600; cursor: pointer; list-style: none;
}
.site-nav > a:hover, .nav-drop > summary:hover { color: var(--shu-ink); text-decoration: none; }
.nav-drop { position: relative; }
.nav-drop > summary::-webkit-details-marker { display: none; }
.nav-drop[open] > summary { color: var(--shu-ink); }
.nav-drop-menu {
  position: absolute; top: calc(100% + 0.5rem); left: 0; min-width: 220px;
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  box-shadow: var(--shadow); padding: 0.4rem; z-index: 60;
}
.nav-drop-menu a {
  display: block; padding: 0.55rem 0.75rem; border-radius: 8px;
  color: var(--text); font-size: 0.875rem; font-weight: 600;
}
.nav-drop-menu a:hover { background: var(--shu-sand); text-decoration: none; }
.nav-drop-menu a span { display: block; font-size: 0.75rem; font-weight: 500; color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem;
  padding: 0.6rem 1.15rem; border-radius: 10px; font-weight: 700; font-size: 0.875rem;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--shu-cobalt); color: #fff; }
.btn-primary:hover { background: var(--shu-ink); color: #fff; }
.btn-accent { background: var(--shu-amber); color: var(--shu-ink); }
.btn-accent:hover { background: var(--shu-amber-dark); color: #fff; }
.btn-outline { background: transparent; border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--shu-cobalt); color: var(--shu-cobalt); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-danger { background: var(--error); color: #fff; }
.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.8rem; }
.btn-lg { padding: 0.8rem 1.4rem; font-size: 0.95rem; }
.btn-block { width: 100%; }

.hero-landing {
  position: relative;
  min-height: min(92vh, 820px);
  display: flex; align-items: flex-end;
  padding: 6rem 1.5rem 4rem;
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 85% 20%, rgba(212, 160, 23, 0.28), transparent 55%),
    radial-gradient(ellipse 70% 50% at 10% 80%, rgba(27, 79, 138, 0.45), transparent 50%),
    linear-gradient(155deg, #071526 0%, var(--shu-ink) 42%, #163a66 100%);
}
.hero-landing::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-landing-inner {
  position: relative; z-index: 1;
  max-width: 1100px; width: 100%; margin: 0 auto;
  animation: heroIn 0.9s ease both;
}
.hero-landing .eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--shu-amber); margin-bottom: 1rem;
}
.hero-landing h1 {
  font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.08;
  max-width: 14ch; margin-bottom: 1rem;
}
.hero-landing .hero-support {
  font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 36rem;
  opacity: 0.9; margin-bottom: 1.75rem; font-weight: 400;
}
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hero-landing .btn-outline { border-color: rgba(255,255,255,0.45); color: #fff; }
.hero-landing .btn-outline:hover { background: rgba(255,255,255,0.1); }

@keyframes heroIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes riseIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal { animation: riseIn 0.7s ease both; }
.reveal-delay-1 { animation-delay: 0.12s; }
.reveal-delay-2 { animation-delay: 0.24s; }

.section { padding: 3.5rem 1.5rem; max-width: 1100px; margin: 0 auto; }
.section h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 0.5rem; color: var(--shu-ink); }
.section .lead { color: var(--muted); margin-bottom: 1.75rem; max-width: 40rem; font-size: 1.05rem; }
.section-sand { background: var(--shu-sand); max-width: none; padding: 3.5rem 1.5rem; }
.section-sand .section-inner { max-width: 1100px; margin: 0 auto; }
.section-ink {
  background: var(--shu-ink); color: #fff; max-width: none; padding: 3.5rem 1.5rem; text-align: center;
}
.section-ink h2 { color: #fff; }
.section-ink .lead { color: rgba(255,255,255,0.75); margin-left: auto; margin-right: auto; }
.section-ink .btn-outline {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}
.section-ink .btn-outline:hover {
  border-color: var(--shu-amber);
  color: var(--shu-amber);
  background: rgba(212, 160, 23, 0.12);
}

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

.solution-panel {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 0;
  border-radius: 18px; overflow: hidden; min-height: 280px;
  border: 1px solid var(--border); background: #fff;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}
.solution-panel:hover { transform: translateY(-3px); }
.solution-panel-visual {
  background:
    radial-gradient(circle at 30% 30%, rgba(212,160,23,0.35), transparent 55%),
    linear-gradient(160deg, var(--shu-ink), var(--shu-cobalt));
  display: flex; align-items: center; justify-content: center; padding: 2rem;
}
.solution-panel-visual img { width: 88px; height: 88px; }
.solution-panel-body { padding: 2rem; display: flex; flex-direction: column; justify-content: center; }
.solution-panel-body h3 { font-size: 1.45rem; margin-bottom: 0.5rem; color: var(--shu-ink); }
.solution-panel-body p { color: var(--muted); margin-bottom: 1.25rem; }
.solution-panel.alt .solution-panel-visual {
  background:
    radial-gradient(circle at 70% 40%, rgba(27,79,138,0.4), transparent 50%),
    linear-gradient(160deg, #163a66, #0B1F3A);
}
.solutions-stack { display: flex; flex-direction: column; gap: 1.25rem; }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 0.4rem; font-size: 1.05rem; }
.card p { color: var(--muted); font-size: 0.9rem; }
.price { font-size: 1.75rem; font-weight: 700; color: var(--primary); margin: 0.5rem 0; }
.price small { font-size: 0.85rem; font-weight: 500; color: var(--muted); }
.badge {
  display: inline-block; padding: 0.15rem 0.5rem; border-radius: 999px;
  font-size: 0.75rem; background: #e8f1f8; color: var(--primary); text-transform: capitalize;
}
.badge-pending { background: #fffbeb; color: #92400e; }
.badge-active, .badge-published, .badge-scheduled { background: #ecfdf5; color: #065f46; }
.badge-approved, .badge-contacted { background: #f0f9ff; color: #075985; }
.badge-closed, .badge-draft { background: #f1f5f9; color: #475569; }

.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.25rem; }
.form-control {
  width: 100%; padding: 0.6rem 0.8rem; border: 1px solid var(--border);
  border-radius: 8px; font: inherit; background: #fff;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(27,79,138,0.12); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-hint { font-size: 0.75rem; color: var(--muted); margin-top: 0.25rem; }
.checkbox-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.5rem; }
.checkbox-item { display: flex; gap: 0.4rem; align-items: flex-start; font-size: 0.85rem; }

.alert { padding: 0.75rem 1rem; border-radius: 8px; margin-bottom: 1rem; font-size: 0.9rem; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-info { background: #f0f9ff; color: #075985; border: 1px solid #bae6fd; }

.wizard-steps { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.wizard-steps span {
  padding: 0.35rem 0.75rem; border-radius: 999px; background: var(--bg);
  font-size: 0.8rem; color: var(--muted); font-weight: 600;
}
.wizard-steps span.active { background: var(--shu-ink); color: #fff; }
.wizard-steps span.done { background: #dbeafe; color: var(--shu-cobalt); }
.wizard-panel { display: none; }
.wizard-panel.active { display: block; animation: riseIn 0.35s ease both; }
.wizard-nav { display: flex; gap: 0.75rem; margin-top: 1.5rem; flex-wrap: wrap; }

.faq details {
  border: 1px solid var(--border); border-radius: 10px; padding: 0.85rem 1rem;
  background: #fff; margin-bottom: 0.65rem;
}
.faq summary { font-weight: 700; cursor: pointer; color: var(--shu-ink); }
.faq details p { margin-top: 0.5rem; color: var(--muted); font-size: 0.95rem; }

.prose { max-width: 720px; }
.prose p, .prose li { margin-bottom: 0.85rem; color: var(--shu-slate); }
.prose h2 { margin: 1.75rem 0 0.75rem; }
.prose ul { padding-left: 1.25rem; margin-bottom: 1rem; }

.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.blog-card { overflow: hidden; padding: 0; }
.blog-card img { width: 100%; height: 160px; object-fit: cover; display: block; background: var(--shu-sand); }
.blog-card .blog-card-body { padding: 1.15rem; }
.blog-card .meta { font-size: 0.75rem; color: var(--muted); margin-bottom: 0.35rem; }

.page-hero {
  background: linear-gradient(145deg, var(--shu-ink), var(--shu-cobalt));
  color: #fff; padding: 3rem 1.5rem 2.5rem;
}
.page-hero-inner { max-width: 1100px; margin: 0 auto; }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 0.5rem; }
.page-hero p { opacity: 0.88; max-width: 40rem; }

.sticky-cta {
  position: sticky; bottom: 0; z-index: 40;
  background: rgba(255,255,255,0.95); border-top: 1px solid var(--border);
  padding: 0.85rem 1.5rem; display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap;
  backdrop-filter: blur(8px);
}

.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem;
  background: linear-gradient(145deg, #071526, var(--shu-ink));
}
.auth-card { background: #fff; width: 100%; max-width: 420px; padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow); }
.auth-card h1 { font-size: 1.4rem; margin-bottom: 0.25rem; }
.auth-card .subtitle { color: var(--muted); margin-bottom: 1.25rem; font-size: 0.9rem; }

.admin-layout { display: flex; min-height: calc(100vh - 60px); }
.admin-sidebar {
  width: 240px; background: var(--surface); border-right: 1px solid var(--border); padding: 1rem 0;
}
.admin-sidebar a {
  display: block; padding: 0.65rem 1.25rem; color: var(--muted); font-size: 0.9rem; font-weight: 500;
}
.admin-sidebar a.active, .admin-sidebar a:hover { color: var(--primary); background: #e8f1f8; text-decoration: none; }
.admin-main { flex: 1; padding: 1.5rem; }

/* Database Management */
.db-page-head { margin-bottom: 1.25rem; }
.db-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}
.db-action-card h2 {
  font-size: 1.15rem;
  margin: 0.35rem 0 0.5rem;
  color: var(--shu-ink);
}
.db-action-card p { color: var(--muted); font-size: 0.92rem; margin-bottom: 1rem; }
.db-action-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}
.db-action-safe { background: #ecfdf5; color: #065f46; }
.db-action-warn { background: #fffbeb; color: #92400e; }
.db-action-danger-badge { background: #fef2f2; color: #991b1b; }
.db-action-danger { border-color: #fecaca; }
.db-form .form-group { margin-bottom: 0.85rem; }
.db-form label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.35rem; }
.db-form input[type="text"],
.db-form input[type="file"] {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
}
.db-cred { margin: 0.5rem 0 0.25rem; word-break: break-all; }
.db-seed-list {
  margin: 0 0 1rem 1.1rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.db-tables summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--shu-ink);
}
.db-stat .price { font-size: 1.25rem; word-break: break-all; }

@media (max-width: 900px) {
  .db-actions-grid { grid-template-columns: 1fr; }
}
.data-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.data-table th { text-align: left; padding: 0.6rem; border-bottom: 2px solid var(--border); color: var(--muted); font-size: 0.75rem; text-transform: uppercase; }
.data-table td { padding: 0.6rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.85rem; }
.media-tile {
  border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: #fff;
  font-size: 0.75rem;
}
.media-tile img, .media-tile .file-placeholder {
  width: 100%; height: 100px; object-fit: cover; display: flex; align-items: center; justify-content: center;
  background: var(--shu-sand); color: var(--muted); font-weight: 700;
}
.media-tile .meta { padding: 0.5rem; word-break: break-all; }

.site-footer {
  background: var(--shu-ink); color: rgba(255,255,255,0.78);
  padding: 3rem 1.5rem 1.5rem; margin-top: 0; border-top: none;
  text-align: left; font-size: 0.9rem;
}
.footer-grid {
  max-width: 1100px; margin: 0 auto 2rem;
  display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem;
}
.site-footer h4 { color: #fff; font-family: var(--font-display); margin-bottom: 0.75rem; font-size: 1rem; }
.site-footer a { color: rgba(255,255,255,0.78); }
.site-footer a:hover { color: var(--shu-amber); text-decoration: none; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.4rem; }
.footer-brand { display: flex; gap: 0.75rem; align-items: flex-start; margin-bottom: 0.75rem; }
.footer-brand img { width: 40px; height: 40px; }
.footer-bottom {
  max-width: 1100px; margin: 0 auto; padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: 0.8rem;
}
.footer-bottom a { color: var(--shu-amber); font-weight: 600; }

.feature-list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.feature-list li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--shu-amber);
}
.steps-list {
  list-style: none;
  counter-reset: shu-step;
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
}
.steps-list li {
  counter-increment: shu-step;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem 1rem;
  align-items: start;
  padding: 1.1rem 1.25rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.steps-list li::before {
  content: counter(shu-step);
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--shu-ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  grid-row: span 2;
}
.steps-list strong {
  font-family: var(--font-display);
  color: var(--shu-ink);
  font-size: 1.05rem;
}
.steps-list span {
  color: var(--muted);
  font-size: 0.95rem;
  grid-column: 2;
}
.solution-panel-body .eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trust-row {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: center;
  color: var(--muted); font-size: 0.9rem; font-weight: 600;
}
.trust-row span { opacity: 0.85; }

/* Error pages */
.error-page {
  min-height: calc(100vh - 180px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(27, 79, 138, 0.08), transparent 60%),
    var(--shu-surface);
}
.error-page-inner {
  max-width: 560px;
  text-align: center;
}
.error-kicker {
  font-family: var(--font-display);
  font-size: 4.5rem;
  line-height: 1;
  color: var(--shu-cobalt);
  margin-bottom: 0.75rem;
  letter-spacing: -0.04em;
}
.error-page h1 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--shu-ink);
  margin-bottom: 0.75rem;
}
.error-page .lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 auto 1.75rem;
  max-width: 42ch;
}
.error-page .error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
.error-page .error-detail {
  margin: 0 auto 1.5rem;
  max-width: 40rem;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px dashed var(--border);
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.875rem;
  word-break: break-word;
}

@media (max-width: 900px) {
  .grid-2, .solution-panel, .footer-grid { grid-template-columns: 1fr; }
  .solution-panel-visual { min-height: 160px; }
}
@media (max-width: 768px) {
  .form-row { grid-template-columns: 1fr; }
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; display: flex; flex-wrap: wrap; }
  .hero-landing { min-height: auto; padding-top: 4.5rem; }
  .error-kicker { font-size: 3.25rem; }
}
