/* ============================================
   WorkVista Solutions — Design Tokens
   ============================================ */
:root {
  --green-900: #0F2E22;
  --green-800: #163B2B;
  --green-700: #1F4D37;
  --green-600: #2C6B4C;
  --green-500: #3A8562;

  --gold-600: #A9843F;
  --gold-500: #C6A15B;
  --gold-400: #D4B578;
  --gold-300: #E4CFA0;

  --cream-50: #FBF8F2;
  --cream-100: #F5EFE2;
  --cream-200: #ECE2CC;

  --ink-900: #221F17;
  --ink-700: #4A463B;
  --ink-500: #7A7566;

  --white: #FFFFFF;

  --font-serif: 'Cormorant Garamond', 'Georgia', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container-w: 1180px;
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 28px;

  --shadow-soft: 0 20px 60px -20px rgba(15, 46, 34, 0.25);
  --shadow-card: 0 10px 30px -12px rgba(34, 31, 23, 0.15);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--ink-900);
  background: var(--cream-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--green-900);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

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

.text-gold { color: var(--gold-500); }

/* Progress bar */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
  z-index: 1000;
  transition: width 0.1s linear;
}

/* ============================================
   Header
   ============================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  background: rgba(251, 248, 242, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(34, 31, 23, 0.06);
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.scrolled {
  box-shadow: 0 8px 30px -12px rgba(34, 31, 23, 0.15);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.brand { display: flex; align-items: center; }
.brand-logo { height: 64px; width: auto; object-fit: contain; }

.main-nav {
  display: flex;
  gap: 34px;
}
.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--green-800);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0%;
  height: 2px;
  background: var(--gold-500);
  transition: width 0.25s var(--ease);
}
.main-nav a:hover { color: var(--green-900); }
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 20px; }
.header-phone {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--green-800);
  display: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--green-900);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 32px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: var(--green-900);
  box-shadow: 0 12px 28px -10px rgba(198, 161, 91, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -10px rgba(198, 161, 91, 0.65); }
.btn-outline {
  background: transparent;
  border-color: rgba(251, 248, 242, 0.4);
  color: var(--cream-50);
}
.btn-outline:hover { background: rgba(251, 248, 242, 0.1); border-color: var(--cream-50); }
.btn-sm { padding: 10px 22px; font-size: 0.85rem; }
.btn-full { width: 100%; padding: 16px; }

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  padding-top: 84px;
  color: var(--cream-50);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg svg { width: 100%; height: 100%; }

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 100px 32px 40px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.hero-copy { max-width: 600px; }

.hero-photo-frame {
  position: relative;
  aspect-ratio: 5 / 4;
  max-width: 460px;
  box-sizing: border-box;
  padding: 12px;
  border: 1.5px solid rgba(198, 161, 91, 0.5);
  border-radius: calc(var(--radius-lg) + 12px);
}
.hero-photo-frame .hero-photo {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  color: var(--cream-50);
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 1.1rem;
  color: rgba(251, 248, 242, 0.82);
  max-width: 540px;
  margin-bottom: 32px;
  font-weight: 400;
}
.hero-cta { display: flex; gap: 18px; flex-wrap: wrap; }

.hero-stats {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(251, 248, 242, 0.14);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 26px 32px;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 20px;
  border-left: 1px solid rgba(251, 248, 242, 0.14);
}
.stat:first-child { border-left: none; padding-left: 0; }
.stat-num {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 600;
  color: var(--gold-400);
}
.stat-label {
  font-size: 0.82rem;
  color: rgba(251, 248, 242, 0.7);
}

/* ============================================
   Sections — shared
   ============================================ */
.section { padding: 120px 0; }
.section-alt { background: var(--cream-100); }
.section-dark {
  background: linear-gradient(160deg, var(--green-900), var(--green-800));
  color: var(--cream-50);
}
.section-dark h2, .section-dark h3 { color: var(--cream-50); }
.section-dark .eyebrow { color: var(--gold-400); }
.section-dark .lead { color: rgba(251, 248, 242, 0.78); }

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 16px; }
.lead { font-size: 1.08rem; color: var(--ink-700); }
.center-text { margin: 0 auto; }

/* ============================================
   About
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
}
.about-copy h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin: 14px 0 22px; }
.about-copy p { color: var(--ink-700); margin-bottom: 16px; }
.about-copy .lead { color: var(--ink-900); font-size: 1.15rem; }
.about-points { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.point { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--green-800); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold-500); flex-shrink: 0; }

.about-visual { position: relative; padding-bottom: 34px; padding-right: 34px; }
.about-photo-wrap {
  height: 520px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.about-photo { width: 100%; height: 100%; object-fit: cover; }
.visual-badge {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 2;
  background: var(--green-800);
  color: var(--cream-50);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  min-width: 168px;
}
.visual-badge-num {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-400);
  line-height: 1;
}
.visual-badge-text {
  margin-top: 8px;
  font-size: 0.82rem;
  color: rgba(251, 248, 242, 0.85);
  line-height: 1.4;
}

/* ============================================
   Comparison table
   ============================================ */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  background: var(--white);
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}
.compare-table th, .compare-table td {
  padding: 20px 24px;
  text-align: left;
  font-size: 0.94rem;
  border-bottom: 1px solid var(--cream-200);
}
.compare-table thead th {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--green-900);
  background: var(--cream-100);
  white-space: nowrap;
}
.compare-table td:first-child, .compare-table th:first-child {
  font-weight: 600;
  color: var(--green-800);
}
.compare-table tbody tr:last-child td { border-bottom: none; }
.highlight-col {
  background: rgba(198, 161, 91, 0.1);
  color: var(--green-800);
  font-weight: 600;
}
.compare-table thead th.highlight-col { background: var(--green-700); color: var(--cream-50); }

/* ============================================
   Solutions cards
   ============================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.solution-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 36px 30px;
  box-shadow: var(--shadow-card);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.solution-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
}
.icon-badge {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: var(--green-700);
  color: var(--gold-400);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.icon-badge svg { width: 26px; height: 26px; }
.solution-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.solution-card p { color: var(--ink-700); font-size: 0.94rem; }

/* ============================================
   Why WorkVista — pillars
   ============================================ */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.pillar {
  border-top: 2px solid var(--gold-500);
  padding-top: 24px;
}
.pillar-index {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--gold-400);
  font-weight: 700;
}
.pillar h3 { font-size: 1.2rem; margin: 10px 0 16px; }
.pillar ul { display: flex; flex-direction: column; gap: 10px; }
.pillar li {
  font-size: 0.9rem;
  color: rgba(251, 248, 242, 0.78);
  padding-left: 18px;
  position: relative;
}
.pillar li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold-500);
}

/* ============================================
   Process
   ============================================ */
.process-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  position: relative;
}
.process-track::before {
  content: '';
  position: absolute;
  top: 22px; left: 0; right: 0;
  height: 1px;
  background: var(--cream-200);
  z-index: 0;
}
.process-step { position: relative; z-index: 1; }
.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--green-700);
  color: var(--gold-400);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 18px;
}
.process-step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.process-step p { font-size: 0.88rem; color: var(--ink-700); }

/* ============================================
   Standards
   ============================================ */
.standards-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: center;
}
.standards-copy h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin: 14px 0 18px; }
.standards-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.standard-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--green-800);
  box-shadow: var(--shadow-card);
  border-left: 3px solid var(--gold-500);
}

/* ============================================
   Locations
   ============================================ */
.locations-banner {
  height: 320px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: 48px;
}
.locations-banner img { width: 100%; height: 100%; object-fit: cover; }

.locations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.location-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-card);
}
.location-card-future {
  background: var(--green-700);
  color: var(--cream-50);
}
.location-card-future h3 { color: var(--cream-50); }
.location-card-future p { color: rgba(251, 248, 242, 0.8); }
.location-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-600);
  background: rgba(198, 161, 91, 0.14);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.location-card-future .location-tag { color: var(--gold-300); background: rgba(228, 207, 160, 0.16); }
.location-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.location-card p { font-size: 0.92rem; color: var(--ink-700); }

/* ============================================
   Contact
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
}
.contact-info h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin: 14px 0 18px; }
.contact-detail {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contact-detail a, .contact-detail span { font-size: 1.02rem; }
.contact-detail a:hover { color: var(--gold-400); }
.contact-label {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-400);
}

.contact-form {
  background: var(--cream-50);
  border-radius: var(--radius-lg);
  padding: 40px;
  color: var(--ink-900);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { margin-bottom: 18px; display: flex; flex-direction: column; gap: 8px; }
.form-field label { font-size: 0.82rem; font-weight: 600; color: var(--green-800); }
.form-field input, .form-field textarea {
  border: 1px solid var(--cream-200);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-family: inherit;
  font-size: 0.94rem;
  background: var(--white);
  color: var(--ink-900);
  resize: vertical;
  transition: border-color 0.2s;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--gold-500);
}
.form-note {
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--ink-500);
  text-align: center;
}
.form-note.is-error { color: #b3441f; }
.form-note.is-success { color: var(--green-700); font-weight: 600; }

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.btn[disabled] { opacity: 0.7; cursor: not-allowed; }

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: var(--green-900);
  color: rgba(251, 248, 242, 0.75);
  padding-top: 70px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(251, 248, 242, 0.12);
}
.footer-logo {
  height: 58px;
  margin-bottom: 18px;
}
.footer-brand p { font-size: 0.9rem; max-width: 280px; }
.footer-links h4, .footer-contact h4 {
  color: var(--gold-400);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-family: var(--font-sans);
}
.footer-links a, .footer-contact a {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 12px;
  transition: color 0.2s;
}
.footer-links a:hover, .footer-contact a:hover { color: var(--gold-400); }
.footer-contact p { font-size: 0.88rem; margin-top: 4px; }
.footer-bottom {
  padding: 24px 32px;
  font-size: 0.82rem;
  text-align: center;
}

/* ============================================
   Scroll reveal
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Responsive
   ============================================ */
@media (min-width: 860px) {
  .header-phone { display: inline-block; }
}

@media (max-width: 1000px) {
  .about-grid, .standards-grid, .contact-grid { grid-template-columns: 1fr; gap: 50px; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .pillars-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .process-track { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .process-track::before { display: none; }
  .locations-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .stat { border-left: none; padding-left: 0; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { max-width: 100%; }
  .hero-photo-frame { max-width: 460px; order: -1; }
  .about-visual { padding-right: 0; margin-top: 8px; }
}

@media (max-width: 760px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-actions .btn-sm { display: none; }
  .container { padding: 0 22px; }
  .section { padding: 80px 0; }
  .hero-inner { padding: 100px 22px 48px; }
  .cards-grid { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: 1fr; }
  .process-track { grid-template-columns: 1fr; }
  .standards-list { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
  .about-photo-wrap { height: 360px; }
  .visual-badge { padding: 16px 20px; min-width: 140px; }
  .visual-badge-num { font-size: 1.5rem; }
  .locations-banner { height: 200px; margin-bottom: 32px; }
}

/* Mobile nav open state */
.main-nav.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 84px; left: 0; right: 0;
  background: var(--cream-50);
  padding: 24px 32px;
  gap: 20px;
  box-shadow: var(--shadow-card);
  border-bottom: 1px solid rgba(34,31,23,0.06);
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
