/* ==========================================================================
   CateringServiceLosAngeles.com — Design System v5
   Bold · Textured · Animated · Glowing
   ========================================================================== */

/* ── Variables ───────────────────────────────────────────────────────────── */
:root {
  --charcoal:    #1C1C1A;
  --charcoal-2:  #242420;
  --charcoal-3:  #2E2E2B;
  --charcoal-4:  #3A3A36;
  --cream:       #F5F0E8;
  --warm-white:  #FDFAF4;
  --sand:        #E8DFD0;
  --sand-dark:   #D4C8B4;
  --terra:       #C4643A;
  --terra-dark:  #A8502C;
  --terra-light: #E07A52;
  --terra-glow:  rgba(196,100,58,0.35);
  --brass:       #B8922A;
  --brass-glow:  rgba(184,146,42,0.3);
  --olive:       #5C6B3A;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'DM Sans', system-ui, -apple-system, sans-serif;

  --max:   1180px;
  --pad:   clamp(1rem, 4vw, 2rem);
  --r-sm:  3px;
  --r-md:  8px;
  --r-lg:  14px;
  --ease:  0.2s ease;
}

/* ── Reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  { font-family: var(--sans); font-size: 16px; line-height: 1.65;
        color: var(--charcoal); background: var(--warm-white);
        -webkit-font-smoothing: antialiased; }
img   { max-width: 100%; height: auto; display: block; }
a     { color: inherit; text-decoration: none; }
ul,ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

/* ── Container ───────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ══════════════════════════════════════════════════════════
   GLOBAL TEXTURE OVERLAY — grain on all dark surfaces
══════════════════════════════════════════════════════════ */
.hero::after,
.site-footer::after,
.quote-card::after,
.section-dark::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 160px;
}
.hero, .site-footer, .quote-card, .section-dark { position: relative; }
.hero > *, .site-footer > *, .quote-card > *, .section-dark > * { position: relative; z-index: 1; }

/* ══════════════════════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════════════════════ */
@keyframes floatY {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
@keyframes pulseGlow {
  0%,100% { box-shadow: 0 0 0 0 var(--terra-glow); }
  50%      { box-shadow: 0 0 28px 6px var(--terra-glow); }
}
@keyframes pulseGlowBrass {
  0%,100% { box-shadow: 0 0 0 0 var(--brass-glow); }
  50%      { box-shadow: 0 0 24px 4px var(--brass-glow); }
}
@keyframes shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position: 600px 0; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes drawLine {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
@keyframes orbDrift {
  0%,100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(18px,-14px) scale(1.04); }
  66%      { transform: translate(-12px,20px) scale(0.97); }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes subtlePop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.03); }
  100% { transform: scale(1); }
}

/* ── Typography ──────────────────────────────────────────────────────────── */
h1 { font-family: var(--serif); font-size: clamp(2.6rem,5.5vw,4.5rem);
     font-weight: 600; line-height: 1.05; letter-spacing: -0.025em; margin-bottom: 1rem; }
h2 { font-family: var(--serif); font-size: clamp(1.875rem,3.5vw,3rem);
     font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 0.875rem; }
h3 { font-family: var(--serif); font-size: 1.5rem;
     font-weight: 600; line-height: 1.15; margin-bottom: 0.5rem; }
h4 { font-family: var(--sans); font-size: 0.9375rem;
     font-weight: 700; letter-spacing: 0.03em; margin-bottom: 0.375rem; }

.eyebrow {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 0.75rem;
}

.lead {
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.72;
  color: #8a8480;
  max-width: 660px;
}

small { font-size: 0.8125rem; }

/* ══════════════════════════════════════════════════════════
   BUTTONS — bold, glowing
══════════════════════════════════════════════════════════ */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8125rem 1.625rem;
  border: none;
  border-radius: var(--r-md);
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.22s ease;
  position: relative;
  overflow: hidden;
  background: var(--terra);
  color: #fff;
  box-shadow: 0 2px 12px rgba(196,100,58,0.28), 0 1px 3px rgba(0,0,0,0.15);
}
/* Shimmer sweep on hover */
.button::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
}
.button:hover::before { left: 160%; }
.button:hover {
  background: var(--terra-dark);
  box-shadow: 0 4px 22px rgba(196,100,58,0.45), 0 2px 8px rgba(0,0,0,0.2);
  transform: translateY(-2px);
}
.button:active { transform: translateY(0); }

.button-outline {
  background: transparent;
  color: var(--charcoal);
  border: 2px solid var(--charcoal-4);
  box-shadow: none;
}
.button-outline:hover {
  background: var(--charcoal);
  color: var(--cream);
  border-color: var(--charcoal);
  box-shadow: 0 4px 18px rgba(28,28,26,0.2);
}

.button-ghost {
  background: transparent;
  color: var(--cream);
  border: 1.5px solid rgba(245,240,232,0.28);
  box-shadow: none;
}
.button-ghost:hover {
  border-color: var(--cream);
  background: rgba(245,240,232,0.07);
  box-shadow: 0 0 14px rgba(245,240,232,0.08);
}

.button-dark {
  background: var(--charcoal);
  color: var(--cream);
  border: none;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.button-dark:hover { background: #000; box-shadow: 0 4px 18px rgba(0,0,0,0.4); }

.button-danger { background: #a94442; color: #fff; }
.button-danger:hover { background: #8a3230; }

.button-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.625rem; }

/* ── Pill / Tag ──────────────────────────────────────────────────────────── */
.pill {
  display: inline-flex;
  padding: 0.3rem 0.875rem;
  border-radius: 999px;
  background: rgba(92,107,58,0.14);
  color: #2a421a;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  border: 1px solid rgba(92,107,58,0.2);
}

/* ══════════════════════════════════════════════════════════
   SITE HEADER
══════════════════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--charcoal);
  border-bottom: 1px solid var(--charcoal-3);
  height: 64px;
}
/* Subtle bottom glow line */
.site-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--terra) 40%, var(--brass) 60%, transparent 100%);
  opacity: 0.5;
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 64px;
}

.brand-lockup { text-decoration: none; flex-shrink: 0; }
.brand-badge  { display: none; }
.brand-lockup strong {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: 0.01em;
  line-height: 1;
}
.brand-lockup strong em {
  color: var(--terra);
  font-style: normal;
  text-shadow: 0 0 18px var(--terra-glow);
}
.brand-lockup small { display: none; }

.main-nav { display: flex; align-items: center; gap: 0.125rem; }
.main-nav a {
  padding: 0.4375rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #8a8680;
  border-radius: var(--r-sm);
  transition: color var(--ease), background var(--ease);
}
.main-nav a:hover { color: var(--cream); }
.main-nav .button {
  background: var(--terra);
  color: #fff;
  margin-left: 0.625rem;
  padding: 0.5rem 1.25rem;
  font-size: 0.75rem;
}
.main-nav .button-outline {
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--charcoal-4);
  box-shadow: none;
}
.main-nav .button-outline:hover { border-color: rgba(245,240,232,0.4); background: rgba(245,240,232,0.04); }

/* ══════════════════════════════════════════════════════════
   HERO — dark, textured, glowing orbs
══════════════════════════════════════════════════════════ */
.hero {
  background: var(--charcoal);
  padding: clamp(4rem,9vw,7rem) 0 clamp(3.5rem,7vw,5.5rem);
  overflow: hidden;
}

/* Glowing background orbs */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 700px 500px at 75% 40%, rgba(196,100,58,0.1) 0%, transparent 65%),
    radial-gradient(ellipse 400px 300px at 15% 70%, rgba(92,107,58,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 300px 200px at 85% 85%, rgba(184,146,42,0.06) 0%, transparent 60%);
  pointer-events: none;
  animation: orbDrift 20s ease-in-out infinite;
}

/* Dot grid overlay */
.hero .hero-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(245,240,232,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: start;
}

.hero .eyebrow { color: var(--terra); animation: fadeInUp 0.6s ease both; }
.hero h1 {
  color: var(--cream);
  animation: fadeInUp 0.6s ease 0.1s both;
  text-shadow: 0 2px 40px rgba(28,28,26,0.5);
}
.hero h1 em { color: var(--terra); font-style: normal; text-shadow: 0 0 30px var(--terra-glow); }
.hero .lead { color: #8a8580; animation: fadeInUp 0.6s ease 0.2s both; }
.hero .button-row { animation: fadeInUp 0.6s ease 0.3s both; }

.hero .button-outline {
  background: transparent;
  color: var(--cream);
  border: 1.5px solid rgba(245,240,232,0.22);
  box-shadow: none;
}
.hero .button-outline:hover {
  border-color: var(--cream);
  background: rgba(245,240,232,0.06);
}

/* ══════════════════════════════════════════════════════════
   QUOTE CARD — bright, glowing, premium
══════════════════════════════════════════════════════════ */
.quote-card {
  background: var(--charcoal-2);
  border: 1px solid var(--charcoal-4);
  border-radius: var(--r-lg);
  padding: 2rem;
  animation: fadeInUp 0.7s ease 0.2s both;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.04);
}
/* Top accent line */
.quote-card::before {
  content: '';
  position: absolute;
  top: 0; left: 1.5rem; right: 1.5rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--terra), var(--brass), var(--terra), transparent);
  opacity: 0.7;
  animation: pulseGlow 3s ease-in-out infinite;
}
.quote-card h3 {
  color: var(--cream);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.375rem;
}
.quote-card .button { width: 100%; padding: 0.875rem; margin-top: 0.25rem; font-size: 0.875rem; }
.quote-card .stack-form,
.quote-card form { display: grid; gap: 0.75rem; }

/* BRIGHT form inputs in quote card */
.quote-card input,
.quote-card select,
.quote-card textarea {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--cream);
  padding: 0.75rem 1rem;
  border-radius: var(--r-md);
  font-size: 0.9375rem;
  font-weight: 400;
  transition: all 0.22s ease;
  outline: none;
  width: 100%;
}
.quote-card input::placeholder,
.quote-card textarea::placeholder { color: rgba(245,240,232,0.28); }
.quote-card input:focus,
.quote-card textarea:focus,
.quote-card select:focus {
  border-color: var(--terra);
  background: rgba(255,255,255,0.1);
  box-shadow: 0 0 0 3px rgba(196,100,58,0.18), 0 0 16px rgba(196,100,58,0.1);
}

/* ══════════════════════════════════════════════════════════
   SECTIONS
══════════════════════════════════════════════════════════ */
.section {
  padding: clamp(3.5rem,7vw,5.5rem) 0;
  background: var(--warm-white);
}

.section-muted {
  background: var(--cream);
  border-top: 1px solid var(--sand);
  border-bottom: 1px solid var(--sand);
}

/* Dark section */
.section-dark {
  background: var(--charcoal);
  overflow: hidden;
}
.section-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 80% 50%, rgba(196,100,58,0.07) 0%, transparent 65%),
    radial-gradient(ellipse 400px 300px at 10% 60%, rgba(92,107,58,0.05) 0%, transparent 60%);
  pointer-events: none;
}
.section-dark .eyebrow { color: var(--terra); }
.section-dark h2 { color: var(--cream); text-shadow: 0 2px 20px rgba(0,0,0,0.4); }
.section-dark .lead { color: #6a6660; }

.section-head { margin-bottom: 2.25rem; }
.section-cta { margin-top: 2rem; display: flex; align-items: center; gap: 1rem; }

/* See all link */
.section-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--terra);
  border-bottom: 1.5px solid var(--terra);
  padding-bottom: 1px;
  display: inline-block;
  letter-spacing: 0.02em;
  transition: all var(--ease);
}
.section-link:hover { color: var(--terra-dark); border-color: var(--terra-dark); }
.section-cta .button-outline { border-width: 2px; font-weight: 700; }

/* ══════════════════════════════════════════════════════════
   CARDS
══════════════════════════════════════════════════════════ */
.card {
  background: #fff;
  border: 1px solid var(--sand);
  border-radius: var(--r-lg);
  padding: 1.625rem 1.75rem;
  transition: box-shadow 0.24s ease, transform 0.24s ease, border-color 0.24s ease;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--terra), var(--brass));
  opacity: 0;
  transition: opacity 0.24s ease;
}
.card:hover {
  box-shadow: 0 6px 28px rgba(28,28,26,0.12), 0 2px 8px rgba(28,28,26,0.07);
  transform: translateY(-3px);
  border-color: var(--sand-dark);
}
.card:hover::before { opacity: 1; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.375rem;
}

/* ── Rank Cards ──────────────────────────────────────────────────────────── */
.rank-number {
  font-family: var(--serif);
  font-size: 4rem;
  font-weight: 600;
  line-height: 1;
  color: var(--sand-dark);
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

/* #1 is always dark — with a terracotta glow */
.rank-card:first-child,
.ranking-item:first-child {
  background: var(--charcoal) !important;
  border-color: rgba(196,100,58,0.25) !important;
  box-shadow: 0 0 0 1px rgba(196,100,58,0.12), inset 0 1px 0 rgba(255,255,255,0.04) !important;
}
.rank-card:first-child::before,
.ranking-item:first-child::before { opacity: 1; }
.rank-card:first-child .rank-number,
.ranking-item:first-child .rank-number { color: rgba(196,100,58,0.3); }
.rank-card:first-child h2,
.rank-card:first-child h3,
.ranking-item:first-child h2 { color: var(--cream); }
.rank-card:first-child p,
.ranking-item:first-child p { color: #8a8480; }
.rank-card:first-child .meta-row { color: #5a5650; }
.rank-card:first-child .best-for { color: var(--terra-light); }
.rank-card:first-child a { color: var(--cream); }
.rank-card:first-child a:hover { color: var(--terra-light); }
.rank-card:first-child:hover {
  box-shadow: 0 0 0 1px rgba(196,100,58,0.3), 0 8px 32px rgba(196,100,58,0.14) !important;
  transform: translateY(-3px);
}
.rank-card:first-child .button-outline {
  border-color: rgba(245,240,232,0.18);
  color: var(--cream);
}
.rank-card:first-child .button-outline:hover {
  background: rgba(245,240,232,0.07);
  border-color: rgba(245,240,232,0.4);
}

.rank-card h3 a,
.ranking-item h2 a { text-decoration: none; transition: color var(--ease); }
.rank-card h3 a:hover,
.ranking-item h2 a:hover { color: var(--terra); }

.best-for {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terra);
  margin-top: 0.875rem;
}
.best-for strong { color: inherit; font-weight: 800; }

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #8a8480;
  margin: 0.5rem 0 0.25rem;
}

/* ── Ranking Stack (top 10 page) ─────────────────────────────────────────── */
.ranking-stack { display: grid; gap: 1.375rem; margin-top: 1.625rem; }
.ranking-item  { padding: 2rem; }
.ranking-topline {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.ranking-topline .rank-number { font-size: 4rem; margin-bottom: 0; flex-shrink: 0; min-width: 72px; }

.methodology-box {
  background: rgba(196,100,58,0.06);
  border: 1px solid rgba(196,100,58,0.18);
  border-left: 3px solid var(--terra);
  border-radius: var(--r-md);
  padding: 1.125rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--charcoal);
  margin: 1.5rem 0 2.25rem;
}

/* ══════════════════════════════════════════════════════════
   STANDARD FORMS (public, light bg) — bright & clear
══════════════════════════════════════════════════════════ */
input, textarea, select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--sand-dark);
  border-radius: var(--r-md);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--charcoal);
  background: #fff;
  transition: border-color 0.22s, box-shadow 0.22s;
  outline: none;
  appearance: none;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--terra);
  box-shadow: 0 0 0 3px rgba(196,100,58,0.12);
}
input::placeholder, textarea::placeholder {
  color: #b0aba4;
  font-weight: 400;
}

.stack-form { display: grid; gap: 0.875rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.875rem; }
label { display: block; font-size: 0.8125rem; font-weight: 700;
        letter-spacing: 0.03em; color: var(--charcoal); margin-bottom: 0.4rem; }

/* ── Flash ───────────────────────────────────────────────────────────────── */
.flash {
  max-width: var(--max);
  margin: 1.25rem auto 0;
  padding: 0.875rem 1.25rem;
  border-radius: var(--r-md);
  font-size: 0.9375rem;
  font-weight: 500;
}
.flash-success {
  background: rgba(92,107,58,0.1);
  border: 1px solid rgba(92,107,58,0.25);
  color: #2d4a1a;
}
.flash-error {
  background: rgba(196,100,58,0.1);
  border: 1px solid rgba(196,100,58,0.25);
  color: var(--terra-dark);
}

/* ── Company Page ────────────────────────────────────────────────────────── */
.company-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.375rem;
  margin-top: 1.75rem;
}
.detail-list { padding: 0; list-style: none; }
.detail-list li {
  font-size: 0.9375rem;
  font-weight: 400;
  color: #6a6660;
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--sand);
  display: flex;
  gap: 0.5rem;
}
.detail-list li:last-child { border-bottom: none; }
.detail-list li strong { color: var(--charcoal); font-weight: 700; min-width: 130px; flex-shrink: 0; }
.detail-list li a { color: var(--terra); font-weight: 600; }

/* ── Article ─────────────────────────────────────────────────────────────── */
.article-wrap { max-width: 760px; }
.article-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #8a8480;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--sand);
}
.article-body h2, .article-body h3 { margin: 2.25rem 0 0.75rem; }
.article-body p, .article-body li {
  font-size: 1rem;
  color: #6a6660;
  line-height: 1.8;
  margin-bottom: 1rem;
}
.article-body a { color: var(--terra); text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }

/* ══════════════════════════════════════════════════════════
   FOOTER — dark, textured
══════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--charcoal);
  border-top: 1px solid var(--charcoal-3);
  padding: 3.5rem 0 1.75rem;
  margin-top: 0;
}
/* Dot grid */
.site-footer .footer-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(245,240,232,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 1;
}
.footer-grid h4 {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #3a3a36;
  margin-bottom: 1.125rem;
  font-family: var(--sans);
}
.footer-grid > div:first-child h4 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.01em;
  color: var(--cream);
  margin-bottom: 0.875rem;
}
.footer-grid p { font-size: 0.875rem; color: #4a4a46; line-height: 1.65; max-width: 280px; }
.footer-grid a {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #5a5a56;
  margin-bottom: 0.5rem;
  transition: color var(--ease);
}
.footer-grid a:hover { color: var(--cream); }

/* ── Shell ───────────────────────────────────────────────────────────────── */
.site-shell { min-height: 60vh; }

/* ══════════════════════════════════════════════════════════
   ADMIN PANEL
══════════════════════════════════════════════════════════ */
.admin-body { background: #0b0d10; color: #eef2f7; }
.admin-shell { display: grid; grid-template-columns: 256px 1fr; min-height: 100vh; }

/* Sidebar */
.admin-sidebar {
  background: #0e1117;
  border-right: 1px solid rgba(255,255,255,0.055);
  padding: 1.875rem 1.125rem;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
/* Sidebar top glow */
.admin-sidebar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--terra), var(--brass), transparent);
  opacity: 0.6;
}

.admin-brand {
  font-family: var(--serif);
  font-size: 1.625rem;
  font-weight: 600;
  color: var(--cream);
  padding: 0 0.5rem;
  line-height: 1;
  margin-bottom: 0.25rem;
  position: relative;
}
.admin-brand em { color: var(--terra); font-style: normal; text-shadow: 0 0 18px var(--terra-glow); }
.admin-brand-sub {
  font-size: 0.625rem;
  font-weight: 600;
  color: #30363e;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0 0.5rem;
  margin-bottom: 2.25rem;
}

.admin-sidebar nav { display: grid; gap: 3px; }
.admin-sidebar nav a {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0.875rem;
  border-radius: var(--r-md);
  font-size: 0.875rem;
  font-weight: 500;
  color: #5a6272;
  text-decoration: none;
  transition: all var(--ease);
  border-left: 2px solid transparent;
}
.admin-sidebar nav a:hover { background: rgba(255,255,255,0.04); color: #c8d0dc; }
.admin-sidebar nav a.active {
  background: rgba(196,100,58,0.1);
  color: var(--terra-light);
  border-left-color: var(--terra);
  padding-left: calc(0.875rem - 2px);
  box-shadow: inset 0 0 20px rgba(196,100,58,0.05);
}
.nav-icon { font-size: 0.8rem; width: 1rem; text-align: center; flex-shrink: 0; }

.admin-sidebar-footer {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.admin-sidebar-footer a { font-size: 0.8125rem; font-weight: 500; color: #30363e; transition: color var(--ease); }
.admin-sidebar-footer a:hover { color: #c8d0dc; }

/* Admin main */
.admin-main { padding: 2.25rem 2.5rem 4rem; }
.admin-section { padding: 0 0 2.5rem; }
.admin-section h1 {
  font-family: var(--serif);
  font-size: clamp(1.75rem,2.5vw,2.25rem);
  font-weight: 600;
  color: #eef2f7;
  letter-spacing: -0.02em;
  margin-bottom: 1.875rem;
}
.admin-section h2 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: #c8d0dc;
  margin-bottom: 1.25rem;
}

/* Admin cards */
.admin-section .card,
.admin-main .card {
  background: linear-gradient(160deg, rgba(255,255,255,0.035), rgba(255,255,255,0.015));
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--r-lg);
  padding: 1.625rem 1.75rem;
  box-shadow: 0 4px 32px rgba(0,0,0,0.25);
  margin-bottom: 1.25rem;
  transform: none;
  transition: border-color 0.2s;
}
.admin-section .card:hover { transform: none; box-shadow: 0 4px 32px rgba(0,0,0,0.28); border-color: rgba(255,255,255,0.1); }
.admin-section .card h2,
.admin-section .card h3 { color: #c8d0dc; }

/* Admin inputs */
.admin-body input,
.admin-body textarea,
.admin-body select {
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(255,255,255,0.09);
  color: #eef2f7;
  font-weight: 400;
}
.admin-body input::placeholder,
.admin-body textarea::placeholder { color: rgba(255,255,255,0.2); }
.admin-body input:focus,
.admin-body textarea:focus,
.admin-body select:focus {
  border-color: var(--terra);
  background: rgba(255,255,255,0.07);
  box-shadow: 0 0 0 3px rgba(196,100,58,0.14), 0 0 16px rgba(196,100,58,0.08);
}
.admin-body select option { background: #0e1117; color: #eef2f7; }
.admin-body label { color: #8090a4; font-weight: 600; font-size: 0.8125rem; }

/* Admin buttons */
.admin-body .button { background: var(--terra); color: #fff; }
.admin-body .button:hover { background: var(--terra-dark); }
.admin-body .button-outline {
  background: transparent;
  color: #c8d0dc;
  border-color: rgba(255,255,255,0.13);
  box-shadow: none;
}
.admin-body .button-outline:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.25); color: #eef2f7; }

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 1rem;
  margin-bottom: 2.25rem;
}
.stats-grid .card { text-align: center; padding: 1.5rem 1rem; }
.stats-grid .card strong {
  display: block;
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 600;
  line-height: 1;
  color: var(--terra-light);
  margin-bottom: 0.375rem;
  text-shadow: 0 0 24px rgba(224,122,82,0.3);
  animation: pulseGlow 4s ease-in-out infinite;
}
.stats-grid .card span {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #3a4252;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Admin table */
.table-wrap { overflow-x: auto; border-radius: var(--r-md); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.admin-table th {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  text-align: left;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #3a4252;
  white-space: nowrap;
}
.admin-table td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: #a8b0be;
  vertical-align: middle;
  font-weight: 400;
}
.admin-table tbody tr:hover td { background: rgba(255,255,255,0.02); }
.admin-table a { color: var(--terra-light); font-weight: 600; }
.admin-table a:hover { text-decoration: underline; }

/* Admin helpers */
.admin-card-block { margin-top: 1.25rem; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.inline-form { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }
.inline-form input { width: auto; flex: 1; min-width: 120px; }
.check-row { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.check-row label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  color: #c0c8d4;
  font-size: 0.875rem;
  font-weight: 500;
}
.check-row input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--terra); flex-shrink: 0; }

/* Admin login */
.admin-login {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
  background:
    radial-gradient(ellipse 600px 400px at 30% 40%, rgba(196,100,58,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 400px 300px at 80% 70%, rgba(184,146,42,0.05) 0%, transparent 60%),
    #0b0d10;
}
.narrow-card { width: 100%; max-width: 400px; margin: 0; }
.narrow-card h1 { font-size: 2rem; font-weight: 600; margin-bottom: 1.5rem; color: #eef2f7; }
.admin-login .button { width: 100%; margin-top: 0.25rem; }

/* Admin flash */
.admin-body .flash { margin: 0 0 1.5rem; }
.admin-body .flash-success { background: rgba(23,143,86,0.12); border: 1px solid rgba(23,143,86,0.22); color: #6fcf97; }
.admin-body .flash-error { background: rgba(196,100,58,0.12); border: 1px solid rgba(196,100,58,0.22); color: var(--terra-light); }

/* ── Coming Soon Toggle ───────────────────────────────────────────────────── */
.cs-admin-card { transition: border-color .2s, background .2s; }
.cs-admin-card--active { border-color: rgba(196,100,58,.3) !important; background: linear-gradient(180deg,rgba(196,100,58,.06),rgba(196,100,58,.02)) !important; }
.cs-admin-header { display:flex; justify-content:space-between; align-items:center; gap:1rem; margin-bottom:1.25rem; padding-bottom:1.25rem; border-bottom:1px solid rgba(255,255,255,.06); }
.cs-admin-header-left { display:flex; align-items:center; gap:14px; }
.cs-admin-icon { font-size:1.5rem; flex-shrink:0; }
.cs-admin-title { font-size:1rem; font-weight:700; color:#eef2f7; font-family:var(--sans); margin-bottom:2px; }
.cs-admin-sub { font-size:.8125rem; color:#5a6070; line-height:1.4; }
.cs-toggle { cursor:pointer; flex-shrink:0; }
.cs-toggle input { position:absolute; opacity:0; width:0; height:0; }
.cs-toggle-track { display:block; width:52px; height:28px; background:rgba(255,255,255,.07); border-radius:999px; border:1px solid rgba(255,255,255,.11); position:relative; transition:background .2s, border-color .2s; }
.cs-toggle input:checked + .cs-toggle-track { background:rgba(196,100,58,.28); border-color:rgba(196,100,58,.45); }
.cs-toggle-thumb { display:block; width:20px; height:20px; background:#fff; border-radius:50%; position:absolute; top:3px; left:3px; transition:transform .2s, background .2s; box-shadow:0 1px 4px rgba(0,0,0,.3); }
.cs-toggle input:checked + .cs-toggle-track .cs-toggle-thumb { transform:translateX(24px); background:var(--terra); }
.cs-admin-notice { font-size:.875rem; color:#5a6070; line-height:1.6; margin-bottom:1.25rem; padding:.875rem 1rem; background:rgba(255,255,255,.018); border-radius:10px; border:1px solid rgba(255,255,255,.045); }
.cs-admin-notice code { background:rgba(255,255,255,.06); padding:1px 6px; border-radius:4px; font-size:.8125rem; color:var(--terra-light); }
.cs-password-field { display:flex; flex-direction:column; gap:8px; }
.cs-pw-row { display:flex; gap:10px; align-items:center; }
.cs-pw-gen { padding:11px 14px !important; white-space:nowrap; }
.cs-pw-hint { font-size:.75rem; color:#5a6070; }
.cs-live-url { display:flex; align-items:center; gap:10px; margin-top:1.25rem; padding:.75rem 1rem; background:rgba(224,122,122,.07); border:1px solid rgba(224,122,122,.18); border-radius:10px; font-size:.8125rem; color:#e07a7a; }
.cs-url-link { color:var(--terra-light); font-weight:600; text-decoration:underline; text-underline-offset:2px; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-grid,
  .company-layout,
  .footer-grid   { grid-template-columns: 1fr; }
  .cards-grid    { grid-template-columns: repeat(2,1fr); }
  .stats-grid    { grid-template-columns: repeat(2,1fr); }
  .admin-shell   { grid-template-columns: 1fr; }
  .admin-sidebar { position:relative; height:auto; padding:1.25rem;
                   border-right:none; border-bottom:1px solid rgba(255,255,255,.055); }
  .admin-sidebar nav { display:flex; flex-wrap:wrap; gap:4px; }
  .admin-sidebar-footer { margin-top:1rem; padding-top:1rem; }
}
@media (max-width: 720px) {
  .cards-grid, .grid-2, .stats-grid { grid-template-columns: 1fr; }
  .button-row   { flex-direction: column; align-items: flex-start; }
  .ranking-topline { flex-direction: column; gap: 0.5rem; }
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }
  .admin-main { padding: 1.25rem; }
}

/* ── Mobile Nav ──────────────────────────────────────────────────────────── */
.mobile-menu-btn { display:none; flex-direction:column; gap:5px; background:none; border:none; padding:6px; cursor:pointer; margin-left:auto; }
.mobile-menu-btn span { display:block; width:22px; height:2px; background:var(--cream); border-radius:1px; transition:all .2s; }
.mobile-menu-btn.is-open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.mobile-menu-btn.is-open span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.is-open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

@media (max-width: 768px) {
  .mobile-menu-btn { display:flex; }
  .main-nav {
    display:none;
    position:absolute; top:64px; left:0; right:0;
    background:var(--charcoal);
    border-bottom:1px solid var(--charcoal-3);
    padding:.875rem var(--pad);
    flex-direction:column;
    gap:.25rem;
    z-index:100;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  }
  .main-nav.nav-open { display:flex; }
  .main-nav a { padding:.625rem .875rem; width:100%; color:#8a8680; }
  .main-nav .button { width:100%; text-align:center; margin-left:0; justify-content:center; }
}
