/* SiteTurnkey.com — design system
   Palette: deep ink/navy base, warm gold accent ("the key" motif). System font
   stack only (no webfont fetch) to keep LCP fast, matching sibling VILLARENOVA
   sites' perf posture. */

:root {
  --ink-950: #0a0e1a;
  --ink-900: #0f1626;
  --ink-800: #161f35;
  --ink-700: #212c47;
  --ink-600: #364266;
  --slate-400: #8891ab;
  --slate-200: #cdd3e3;
  --paper-50: #f8f9fc;
  --paper-100: #eef1f8;
  --white: #ffffff;

  --gold-600: #a9791d;
  --gold-500: #c9972e;
  --gold-400: #d9ac4c;
  --gold-100: #f5e9cf;

  --success: #1f7a4d;
  --danger: #b3402f;

  --font-display: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 2px rgba(10, 14, 26, 0.08);
  --shadow-md: 0 6px 20px rgba(10, 14, 26, 0.10);
  --shadow-lg: 0 20px 48px rgba(10, 14, 26, 0.16);

  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--paper-50);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
  color: var(--ink-950);
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
p { margin: 0 0 1em; color: var(--ink-700); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 14px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--gold-500);
  color: var(--ink-950);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--gold-400); box-shadow: var(--shadow-md); }
.btn-secondary {
  background: transparent;
  color: var(--paper-50);
  border-color: rgba(248, 249, 252, 0.35);
}
.btn-secondary:hover { border-color: var(--paper-50); background: rgba(248, 249, 252, 0.08); }
.btn-outline {
  background: transparent;
  color: var(--ink-900);
  border-color: var(--ink-700);
}
.btn-outline:hover { background: var(--ink-900); color: var(--paper-50); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }

/* Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 14, 26, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--paper-50); font-weight: 700; font-size: 1.15rem; font-family: var(--font-display); }
.nav-logo svg { width: 30px; height: 30px; flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--slate-200); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.nav-links a:hover { color: var(--gold-400); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--paper-50); font-size: 1.6rem; cursor: pointer; }

@media (max-width: 860px) {
  .nav-links { position: fixed; inset: 62px 0 0 0; background: var(--ink-950); flex-direction: column; padding: 28px 24px; gap: 20px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: 0.18s ease; }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-toggle { display: block; }
  .nav-cta .btn-secondary { display: none; }
}

/* Hero */
.hero {
  background: radial-gradient(1200px 480px at 80% -10%, rgba(201, 151, 46, 0.18), transparent 60%), linear-gradient(180deg, var(--ink-950), var(--ink-900) 70%);
  color: var(--paper-50);
  padding: 88px 0 76px;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero h1 { color: var(--white); }
.hero p.lead { color: var(--slate-200); font-size: 1.15rem; max-width: 46ch; }
.hero-ctas { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-trust { margin-top: 34px; display: flex; gap: 22px; flex-wrap: wrap; }
.hero-trust-item { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--slate-200); }
.hero-trust-item svg { width: 18px; height: 18px; color: var(--gold-400); flex-shrink: 0; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 48px; text-align: left; }
}

.hero-panel {
  background: var(--ink-800);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-lg);
}
.hero-panel-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.hero-panel-row:last-child { border-bottom: 0; }
.hero-panel-label { color: var(--slate-400); font-size: 0.85rem; }
.hero-panel-value { color: var(--paper-50); font-weight: 600; }

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--paper-100); }
.section-dark { background: var(--ink-950); color: var(--paper-50); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: var(--slate-200); }
.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-head.left { margin: 0 0 40px; text-align: left; }

/* Cards / grid */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 900px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid rgba(10, 14, 26, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* Listing card */
.listing-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.listing-thumb { aspect-ratio: 16/10; background: var(--ink-100, #eef1f8); position: relative; overflow: hidden; }
.listing-thumb img { width: 100%; height: 100%; object-fit: cover; }
.listing-badge {
  position: absolute; top: 12px; left: 12px;
  background: rgba(10, 14, 26, 0.85); color: var(--gold-400);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px;
}
.listing-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.listing-category { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--gold-600); margin-bottom: 6px; }
.listing-body h3 { margin-bottom: 8px; }
.listing-body p { font-size: 0.94rem; flex: 1; }
.listing-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--paper-100); font-size: 0.88rem; }
.listing-price { font-weight: 700; color: var(--ink-950); }

/* Feature list */
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; }
.feature-list svg { width: 20px; height: 20px; color: var(--success); flex-shrink: 0; margin-top: 2px; }

.icon-tile {
  width: 52px; height: 52px; border-radius: var(--radius-md);
  background: var(--ink-950); color: var(--gold-400);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.icon-tile svg { width: 26px; height: 26px; }

/* Pricing tiers */
.tier-card { padding: 28px; display: flex; flex-direction: column; }
.tier-card.featured { border-color: var(--gold-500); box-shadow: 0 0 0 2px var(--gold-500) inset; }
.tier-name { font-weight: 700; font-size: 1.1rem; margin-bottom: 4px; }
.tier-price { font-family: var(--font-display); font-size: 2rem; color: var(--ink-950); margin: 8px 0 4px; }
.tier-price small { font-size: 0.95rem; font-weight: 400; color: var(--slate-400); font-family: var(--font-body); }
.tier-note { font-size: 0.82rem; color: var(--slate-400); margin-bottom: 18px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 8px; }
.step-num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--ink-950); color: var(--gold-400);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; margin-bottom: 14px;
}

/* FAQ */
.faq-item { border-bottom: 1px solid var(--paper-100); padding: 20px 0; }
.faq-item summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--gold-600); transition: transform 0.15s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: 12px; }

/* Forms */
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 6px; color: var(--ink-800); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--slate-200); border-radius: var(--radius-sm);
  font-size: 1rem; font-family: var(--font-body); background: var(--white); color: var(--ink-900);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: 2px solid var(--gold-500); outline-offset: 1px; border-color: var(--gold-500); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-note { font-size: 0.82rem; color: var(--slate-400); margin-top: -8px; margin-bottom: 18px; }

.alert { padding: 14px 18px; border-radius: var(--radius-sm); font-size: 0.92rem; margin-bottom: 18px; }
.alert-success { background: #e6f4ea; color: var(--success); border: 1px solid #b8e0c4; }
.alert-error { background: #fbeae7; color: var(--danger); border: 1px solid #f0c3ba; }

/* Footer */
.site-footer { background: var(--ink-950); color: var(--slate-200); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { color: var(--paper-50); font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase; font-family: var(--font-body); margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a { color: var(--slate-400); text-decoration: none; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--gold-400); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.82rem; color: var(--slate-400); }

/* Badges / misc */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.badge-gold { background: var(--gold-100); color: var(--gold-600); }
.badge-slate { background: var(--paper-100); color: var(--ink-700); }

.breadcrumb { font-size: 0.85rem; color: var(--slate-400); margin-bottom: 18px; }
.breadcrumb a { color: var(--slate-400); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-600); }

.tech-pill { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; background: var(--paper-100); font-size: 0.82rem; font-weight: 600; color: var(--ink-700); margin: 0 8px 8px 0; }

table.admin-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
table.admin-table th, table.admin-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--paper-100); }
table.admin-table th { color: var(--slate-400); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
