:root {
  --gold: #8C9887;
  --gold-light: #A6B29F;
  --black: #F5F4DD;
  --black-soft: #EFEEDD;
  --panel: #E6E2D3;
  --pearl: #191919;
  --muted: #9a9a9a;
  --danger: #d64545;
  --success: #3fae5b;
  --warning: #e0a92d;
  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
  background: var(--black);
  color: var(--pearl);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); }

.site-header {
  background: linear-gradient(180deg, #EFEBD9, #F5F4DD);
  border-bottom: 1px solid #D8D3BE;
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  max-width: 1200px; margin: auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--gold); }
.brand img { height: 42px; width: 42px; min-width: 42px; min-height: 42px; flex-shrink: 0; border-radius: 50%; object-fit: cover; border: 1px solid var(--gold); }
.brand small { display: block; font-size: 11px; font-weight: 400; color: var(--muted); letter-spacing: 1px; }

nav { display: flex; align-items: center; gap: 12px; }
.nav-user { color: var(--muted); font-size: 14px; margin-right: 6px; }
.nav-user em { color: var(--gold); font-style: normal; }

.btn {
  display: inline-block; padding: 9px 18px; border-radius: 6px; font-size: 14px;
  cursor: pointer; border: 1px solid transparent; font-weight: 600;
}
.btn-gold { background: var(--gold); color: #FFFFFF; }
.btn-gold:hover { background: var(--gold-light); color: #FFFFFF; }
.btn-outline { border-color: var(--gold); color: var(--gold); background: transparent; }
.btn-outline:hover { background: rgba(140,152,135,0.1); }
.btn-danger { background: var(--danger); color: #FFFFFF; }
.btn-success { background: var(--success); color: #FFFFFF; }
.btn-muted { background: #D8D3BE; color: #ddd; }
.btn-sm { padding: 5px 12px; font-size: 12px; }

.site-main { flex: 1; max-width: 1200px; margin: 0 auto; padding: 30px 20px; width: 100%; }

.site-footer { text-align: center; padding: 18px; color: var(--muted); font-size: 13px; border-top: 1px solid #D8D3BE; }

/* Cards & panels */
.card {
  background: var(--panel); border: 1px solid #D8D3BE; border-radius: var(--radius);
  padding: 24px; margin-bottom: 20px;
}
.card h2, .card h3 { margin-top: 0; color: var(--gold); }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

.stat-card {
  background: var(--panel); border: 1px solid #D8D3BE; border-left: 4px solid var(--gold);
  border-radius: var(--radius); padding: 18px;
}
.stat-card .stat-number { font-size: 32px; font-weight: 700; color: var(--gold); }
.stat-card .stat-label { color: var(--muted); font-size: 13px; margin-top: 4px; }

/* Forms */
.form-group { margin-bottom: 16px; }
label { display: block; margin-bottom: 6px; font-size: 14px; color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=tel],
input[type=date], input[type=number], select, textarea {
  width: 100%; padding: 11px 14px; border-radius: 6px; border: 1px solid #D8D3BE;
  background: #EFEBD9; color: var(--pearl); font-size: 14px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); }
select[multiple] { min-height: 160px; }
.form-hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.auth-box { max-width: 460px; margin: 20px auto; }
.otp-input { text-align: center; letter-spacing: 10px; font-size: 26px; }

/* Alerts */
.alert { padding: 12px 16px; border-radius: 6px; margin-bottom: 18px; font-size: 14px; }
.alert-success { background: rgba(63,174,91,0.15); border: 1px solid var(--success); color: #8fe0a4; }
.alert-error { background: rgba(214,69,69,0.15); border: 1px solid var(--danger); color: #f4a3a3; }
.alert-info { background: rgba(140,152,135,0.12); border: 1px solid var(--gold); color: var(--gold-light); }

/* Tables */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 10px 12px; border-bottom: 1px solid #D8D3BE; text-align: left; }
th { color: var(--gold); font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
tr:hover td { background: rgba(140,152,135,0.04); }

.badge { padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; text-transform: uppercase; }
.badge-active { background: rgba(63,174,91,0.2); color: #8fe0a4; }
.badge-pending { background: rgba(224,169,45,0.2); color: var(--warning); }
.badge-suspended { background: rgba(214,69,69,0.2); color: #f4a3a3; }
.badge-removed { background: #D8D3BE; color: #999; }

.tabs { display: flex; gap: 6px; border-bottom: 1px solid #D8D3BE; margin-bottom: 20px; }
.tabs a { padding: 10px 16px; color: var(--muted); border-bottom: 2px solid transparent; }
.tabs a.active { color: var(--gold); border-color: var(--gold); }

.sidebar-layout { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; }
.sidebar { background: var(--panel); border: 1px solid #D8D3BE; border-radius: var(--radius); padding: 16px; }
.sidebar a { display: block; padding: 10px 12px; border-radius: 6px; color: var(--pearl); font-size: 14px; margin-bottom: 4px; }
.sidebar a:hover, .sidebar a.active { background: rgba(140,152,135,0.12); color: var(--gold); }

@media (max-width: 800px) {
  .sidebar-layout { grid-template-columns: 1fr; }
  .header-inner { flex-direction: column; gap: 10px; }
}

/* Landing hero */
.hero { text-align: center; padding: 60px 20px; }
.hero img { height: 120px; margin-bottom: 20px; border-radius: 50%; border: 2px solid var(--gold); }
.hero h1 { font-size: 34px; color: var(--gold); margin-bottom: 10px; }
.hero p { color: var(--muted); max-width: 600px; margin: 0 auto 24px; }
.hero .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li { padding: 8px 0; border-bottom: 1px dashed #D8D3BE; color: var(--muted); }
.feature-list li:before { content: "✓ "; color: var(--gold); font-weight: bold; }

/* Floating AI widget (phase 2 placeholder) */
.ai-widget-fab {
  position: fixed; bottom: 24px; right: 24px; width: 58px; height: 58px; border-radius: 50%;
  background: var(--gold); color: #FFFFFF; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 20px; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,0.5); z-index: 100;
}

/* =====================================================================
   MARKETING SITE — glassmorphism layer
   Frosted glass surfaces over soft ambient gradient light, layered on
   top of the existing cream / sage / ink palette. Used by index.php,
   about.php, services.php, process.php, contact.php.
   ===================================================================== */

:root {
  --moss: #4F5A48;
  --glass: rgba(255,255,255,0.50);
  --glass-strong: rgba(255,255,255,0.70);
  --glass-border: rgba(255,255,255,0.65);
  --glass-shadow: 0 24px 60px -20px rgba(58,53,36,0.28);
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
}

body.marketing {
  font-family: 'Inter', 'Segoe UI', Tahoma, Arial, sans-serif;
  position: relative;
}

body.marketing::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(38rem 26rem at 8% -6%, rgba(140,152,135,0.32), transparent 60%),
    radial-gradient(32rem 24rem at 96% 8%, rgba(216,211,190,0.55), transparent 55%),
    radial-gradient(40rem 30rem at 50% 100%, rgba(140,152,135,0.22), transparent 60%),
    var(--black);
}

body.marketing .site-header {
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--glass-border);
}

.marketing-nav { display: flex; align-items: center; gap: 26px; margin-right: 22px; }
.marketing-nav a { color: var(--moss); font-size: 14px; font-weight: 600; letter-spacing: 0.2px; text-decoration: none; position: relative; padding: 4px 0; }
.marketing-nav a:hover, .marketing-nav a.active { color: var(--pearl); }
.marketing-nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--gold); border-radius: 2px; }

.glass-panel {
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--glass-shadow);
}

.glass-panel-strong {
  background: var(--glass-strong);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--glass-shadow);
}

.section { max-width: 1180px; margin: 0 auto; padding: 84px 24px; }
.section-tight { padding-top: 0; }
.section-eyebrow {
  display: inline-block; font-family: var(--serif); font-style: italic; font-size: 15px;
  color: var(--moss); letter-spacing: 0.3px; margin-bottom: 10px;
}
.section-title { font-family: var(--serif); font-weight: 600; font-size: 40px; line-height: 1.15; color: var(--pearl); margin: 0 0 16px; }
.section-lede { font-size: 17px; color: #4a4a42; max-width: 680px; line-height: 1.65; margin: 0 0 8px; }

.m-hero { text-align: center; padding: 100px 24px 70px; position: relative; }
.m-hero .section-eyebrow { display: block; }
.m-hero h1 { font-family: var(--serif); font-weight: 600; font-size: 52px; line-height: 1.1; color: var(--pearl); margin: 0 0 18px; }
.m-hero p { font-size: 18px; color: #4a4a42; max-width: 720px; margin: 0 auto; line-height: 1.7; }

.stat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 18px; margin-top: 40px; }
.stat-strip .glass-panel { padding: 22px 18px; text-align: center; }
.stat-strip .stat-num { font-family: var(--serif); font-size: 32px; font-weight: 600; color: var(--moss); display: block; }
.stat-strip .stat-cap { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.6px; margin-top: 4px; display: block; }

.glass-grid { display: grid; gap: 22px; }
.glass-grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); }
.glass-grid-3 { grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); }
.glass-grid-4 { grid-template-columns: repeat(auto-fit, minmax(210px,1fr)); }

.glass-card { padding: 30px 26px; }
.glass-card .card-icon { font-family: var(--serif); font-size: 26px; font-style: italic; color: var(--gold); margin-bottom: 12px; display: block; }
.glass-card h3 { font-family: var(--serif); font-size: 21px; color: var(--pearl); margin: 0 0 10px; font-weight: 600; }
.glass-card p, .glass-card li { color: #4a4a42; font-size: 14.5px; line-height: 1.6; }
.glass-card ul { list-style: none; padding: 0; margin: 0; }
.glass-card ul li { padding: 6px 0 6px 20px; position: relative; border-bottom: 1px dashed rgba(140,152,135,0.28); }
.glass-card ul li:last-child { border-bottom: none; }
.glass-card ul li::before { content: "—"; position: absolute; left: 0; color: var(--gold); }

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  background: var(--glass-strong); border: 1px solid var(--glass-border); border-radius: 999px;
  padding: 9px 18px; font-size: 13.5px; color: var(--moss); font-weight: 600;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}

.process-track { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); }
.process-step { padding: 26px 22px; position: relative; }
.process-step .step-no { font-family: var(--serif); font-style: italic; font-size: 34px; color: rgba(140,152,135,0.4); display: block; margin-bottom: 6px; }
.process-step h4 { font-family: var(--serif); font-size: 18px; color: var(--pearl); margin: 0 0 6px; }
.process-step p { font-size: 13.5px; color: #4a4a42; margin: 0; line-height: 1.55; }

.cta-banner {
  padding: 56px 40px; text-align: center; margin: 0 auto 90px; max-width: 1132px;
  background: linear-gradient(135deg, rgba(140,152,135,0.85), rgba(95,107,87,0.9));
  border-radius: 24px; color: #fff; box-shadow: var(--glass-shadow);
}
.cta-banner h2 { font-family: var(--serif); font-size: 30px; margin: 0 0 12px; font-weight: 600; }
.cta-banner p { margin: 0 0 24px; opacity: 0.92; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-banner .btn-outline { color: #fff; border-color: rgba(255,255,255,0.7); }
.cta-banner .btn-outline:hover { background: rgba(255,255,255,0.15); }

.office-card { padding: 26px; }
.office-card .office-tag { font-size: 11px; text-transform: uppercase; letter-spacing: 0.8px; color: var(--gold); font-weight: 700; }
.office-card h3 { font-family: var(--serif); margin: 6px 0 10px; }
.office-card p { color: #4a4a42; font-size: 14px; line-height: 1.6; margin: 0 0 4px; }

.divider-label { text-align: center; margin: 0 0 46px; }
.divider-label .section-eyebrow { margin-bottom: 4px; }
.divider-label .section-title { margin-bottom: 0; }
.divider-label.center-lede .section-lede { margin-left: auto; margin-right: auto; text-align: center; }

.nav-toggle {
  display: none;
  align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 8px;
  background: transparent; border: 1px solid var(--glass-border);
  color: var(--moss); font-size: 20px; cursor: pointer; margin-right: 4px; flex-shrink: 0;
}
.nav-toggle:hover { background: rgba(140,152,135,0.12); }
.marketing-nav-auth { display: none; }

@media (max-width: 800px) {
  .header-inner { flex-direction: row; flex-wrap: nowrap; position: relative; padding: 10px 16px; }
  .brand { min-width: 0; flex: 1 1 auto; }
  .brand span { font-size: 15px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; max-width: 100%; }
  .brand small { white-space: nowrap; }
  .nav-toggle { display: flex; }
  body.marketing .header-auth-nav { display: none; }
  .marketing-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 2px;
    margin-right: 0; padding: 14px 20px 18px;
    background: var(--glass-strong);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    max-height: calc(100vh - 62px); overflow-y: auto;
  }
  .marketing-nav.nav-open { display: flex; }
  .marketing-nav a { padding: 10px 0; width: 100%; }
  .marketing-nav-auth {
    display: flex; gap: 10px; width: 100%; margin-top: 10px; padding-top: 14px;
    border-top: 1px solid var(--glass-border);
  }
  .marketing-nav-auth .btn { flex: 1; text-align: center; }
  .m-hero h1 { font-size: 36px; }
  .section-title { font-size: 30px; }
}

/* ---- Now Hiring ticker ---- */
.hiring-ticker {
  display: flex; align-items: stretch;
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--glass-border);
  overflow: hidden;
}
.hiring-ticker-tag {
  flex-shrink: 0; display: flex; align-items: center;
  background: var(--gold); color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase;
  padding: 9px 18px;
}
.hiring-ticker-track { flex: 1; overflow: hidden; }
.hiring-ticker-track-inner {
  display: flex; width: max-content;
  animation: hiring-ticker-scroll 32s linear infinite;
}
.hiring-ticker:hover .hiring-ticker-track-inner,
.hiring-ticker:focus-within .hiring-ticker-track-inner { animation-play-state: paused; }
.hiring-ticker-set { display: flex; white-space: nowrap; }
.hiring-ticker-item {
  color: var(--pearl); text-decoration: none; font-size: 13.5px;
  padding: 9px 22px; display: inline-flex; align-items: center; gap: 8px;
}
.hiring-ticker-item:hover { color: var(--gold); }
.hiring-ticker-dot { color: var(--gold); font-size: 16px; line-height: 0; }
@keyframes hiring-ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .hiring-ticker-track-inner { animation: none; }
  .hiring-ticker-track { overflow-x: auto; }
}
@media (max-width: 640px) {
  .hiring-ticker-tag { font-size: 10.5px; padding: 8px 12px; }
  .hiring-ticker-item { font-size: 12.5px; padding: 8px 16px; }
}

/* ---- Vacancy carousel ---- */
.vac-carousel-wrap { position: relative; margin-top: 18px; }
.vac-track {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; -webkit-overflow-scrolling: touch;
  padding: 4px 2px 14px; scrollbar-width: none;
}
.vac-track::-webkit-scrollbar { display: none; }
.vac-card {
  scroll-snap-align: start; flex: 0 0 calc(33.333% - 12px); min-width: 230px;
  display: block; text-decoration: none; color: inherit; padding: 18px;
}
@media (max-width: 1000px) { .vac-card { flex: 0 0 calc(50% - 9px); } }
@media (max-width: 640px) { .vac-card { flex: 0 0 86%; } }
.vac-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--glass-strong);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border); color: var(--moss);
  font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
.vac-nav:hover { background: rgba(140,152,135,0.18); }
.vac-prev { left: -14px; }
.vac-next { right: -14px; }
@media (max-width: 640px) { .vac-nav { display: none; } }
