/* =====================================================================
   PAXYS Inc. — Homepage Dark Theme (GSTIC-inspired layout)
   Loaded in addition to style.css, only on home.php
   ===================================================================== */

:root {
  --hp-navy: #0d1128;
  --hp-navy-2: #141a3d;
  --hp-navy-3: #1b2350;
  --hp-orange: #f4801f;
  --hp-orange-dark: #d9660a;
  --hp-teal: #2dd4bf;
  --hp-teal-dark: #14b8a6;
  --hp-text-muted: #a9b0d4;
  --hp-border: rgba(255,255,255,.10);
}

.hp-section { padding: 88px 0; }
.hp-section.tight { padding: 64px 0; }
.hp-dark { background: var(--hp-navy); color: #fff; }
.hp-dark-alt { background: var(--hp-navy-2); color: #fff; }

.hp-eyebrow-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.hp-eyebrow-row .dot { width: 8px; height: 8px; border-radius: 2px; background: var(--hp-orange); transform: rotate(45deg); }
.hp-eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hp-orange); }
.hp-eyebrow.light { color: var(--hp-teal); }

.hp-h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; line-height: 1.2; margin: 0 0 18px; }
.hp-lead { font-size: 15.5px; line-height: 1.75; color: var(--hp-text-muted); max-width: 560px; }
.hp-dark .hp-lead, .hp-dark-alt .hp-lead { color: var(--hp-text-muted); }
body:not(.hp-dark) .hp-lead { color: #475569; }

.hp-btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 26px; border-radius: 999px;
  font-weight: 700; font-size: 14px; border: none; cursor: pointer; text-decoration: none; transition: all .2s ease;
}
.hp-btn-orange { background: linear-gradient(135deg, var(--hp-orange), var(--hp-orange-dark)); color: #fff; box-shadow: 0 10px 26px rgba(244,128,31,.35); }
.hp-btn-orange:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(244,128,31,.45); }
.hp-btn-outline-light { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.35); }
.hp-btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.hp-btn-play { width: 46px; height: 46px; border-radius: 50%; background: var(--hp-teal); color: #0d1128; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }

/* ---------- Hero ---------- */
.hp-hero {
  position: relative; min-height: 620px; display: flex; align-items: center; overflow: hidden;
  background: linear-gradient(120deg, rgba(13,17,40,.94), rgba(20,26,61,.88)), var(--hp-navy);
  color: #fff;
}
.hp-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .35; }
.hp-hero .inner { position: relative; z-index: 2; padding: 100px 0 70px; }
.hp-hero h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; line-height: 1.12; margin: 0 0 24px; max-width: 760px; }
.hp-hero-cta { display: flex; align-items: center; gap: 18px; margin-top: 30px; }
.hp-hero-side-line { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--hp-orange), transparent); }

/* ---------- Who we are (image + text) ---------- */
.hp-who-grid { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: center; }
.hp-who-photo-wrap { position: relative; width: 320px; height: 320px; }
.hp-who-photo-wrap .ring { position: absolute; inset: -14px; border: 2px dashed rgba(45,212,191,.35); border-radius: 50%; }
.hp-who-photo {
  width: 100%; height: 100%; border-radius: 50%; overflow: hidden; border: 6px solid var(--hp-navy-2);
  box-shadow: 0 30px 60px rgba(0,0,0,.4);
}
.hp-who-photo img { width: 100%; height: 100%; object-fit: cover; }
.hp-btn-link-arrow { color: var(--hp-teal); font-weight: 700; font-size: 13.5px; display: inline-flex; align-items: center; gap: 6px; margin-top: 22px; }

/* ---------- History timeline ---------- */
.hp-timeline-wrap { text-align: center; margin-bottom: 10px; }
.hp-timeline {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; position: relative; margin-top: 50px;
  overflow-x: auto; padding-bottom: 10px;
}
.hp-timeline::before {
  content: ''; position: absolute; top: 34px; left: 34px; right: 34px; height: 2px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.25) 0 8px, transparent 8px 16px);
}
.hp-tl-item { position: relative; flex: 1; min-width: 150px; text-align: center; padding-top: 0; }
.hp-tl-node {
  width: 68px; height: 68px; border-radius: 50%; margin: 0 auto 18px; display: flex; align-items: center; justify-content: center;
  font-size: 24px; position: relative; z-index: 2; box-shadow: 0 12px 26px rgba(0,0,0,.35);
}
.hp-tl-node.orange { background: linear-gradient(135deg, var(--hp-orange), var(--hp-orange-dark)); }
.hp-tl-node.teal { background: linear-gradient(135deg, var(--hp-teal), var(--hp-teal-dark)); color: #0d1128; }
.hp-tl-year { display: inline-block; padding: 3px 12px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid var(--hp-border); font-size: 11.5px; font-weight: 700; margin-bottom: 10px; }
.hp-tl-title { font-size: 14.5px; font-weight: 700; margin-bottom: 6px; }
.hp-tl-desc { font-size: 12.5px; color: var(--hp-text-muted); line-height: 1.6; padding: 0 6px; }

/* ---------- Projects (image + text split) ---------- */
.hp-projects-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; align-items: stretch; border-radius: 20px; overflow: hidden; }
.hp-projects-img { position: relative; min-height: 420px; background-size: cover; background-position: center; }
.hp-projects-img::after { content:''; position:absolute; inset:0; background: linear-gradient(0deg, rgba(13,17,40,.55), transparent 40%); }
.hp-projects-text { background: var(--hp-navy-2); padding: 56px 48px; display: flex; flex-direction: column; justify-content: center; }
.hp-projects-tag { position: absolute; bottom: 24px; left: 24px; z-index: 2; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.75); }

/* ---------- Team ---------- */
.hp-team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 26px; margin-top: 40px; }
.hp-team-card { text-align: center; }
.hp-team-photo {
  width: 100%; aspect-ratio: 3/3.4; border-radius: 18px; overflow: hidden; margin-bottom: 16px; position: relative;
  background: var(--hp-navy-3);
}
.hp-team-photo img { width: 100%; height: 100%; object-fit: cover; }
.hp-team-photo .social {
  position: absolute; bottom: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--hp-teal); color: #0d1128; display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.hp-team-name { font-weight: 700; font-size: 15px; margin-bottom: 2px; }
.hp-team-role { font-size: 12.5px; color: var(--hp-text-muted); }

/* ---------- Affiliates / sister companies ---------- */
.hp-affiliates-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 4px; }
.hp-affiliate-card {
  position: relative; min-height: 320px; background-size: cover; background-position: center; overflow: hidden;
  display: flex; align-items: flex-end; padding: 28px; transition: all .3s ease;
}
.hp-affiliate-card::after { content:''; position:absolute; inset:0; background: linear-gradient(0deg, rgba(13,17,40,.92), rgba(13,17,40,.25) 60%); transition: all .3s ease; }
.hp-affiliate-card:hover::after { background: linear-gradient(0deg, rgba(217,102,10,.85), rgba(13,17,40,.35) 65%); }
.hp-affiliate-content { position: relative; z-index: 2; }
.hp-affiliate-name { font-size: 17px; font-weight: 800; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.hp-affiliate-name .bar { width: 4px; height: 16px; background: var(--hp-orange); display: inline-block; }
.hp-affiliate-tagline { font-size: 12.5px; color: rgba(255,255,255,.8); line-height: 1.6; max-width: 90%; }

/* ---------- Stats ---------- */
.hp-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; margin-top: 36px; }
.hp-stat-card {
  background: var(--hp-navy-2); border: 1px solid var(--hp-border); border-radius: 16px; padding: 28px 22px; text-align: left;
}
.hp-stat-value { font-size: 34px; font-weight: 800; background: linear-gradient(135deg, var(--hp-teal), var(--hp-orange)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hp-stat-label { font-size: 12.5px; color: var(--hp-text-muted); margin-top: 6px; font-weight: 600; }

/* ---------- Publications (light section) ---------- */
.hp-pub-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; }
.hp-pub-img { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); }
.hp-pub-list { list-style: none; margin: 0; padding: 0; }
.hp-pub-item { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--gray-200); }
.hp-pub-item:last-child { border-bottom: none; }
.hp-pub-item .num { width: 30px; height: 30px; border-radius: 8px; background: var(--blue-50); color: var(--blue-700); font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hp-pub-item a { font-weight: 600; font-size: 14.5px; color: var(--gray-900); }
.hp-pub-item a:hover { color: var(--blue-700); }
.hp-pub-item .date { font-size: 12px; color: var(--gray-500); margin-top: 2px; }

/* ---------- Newsletter ---------- */
.hp-newsletter {
  background: linear-gradient(120deg, var(--hp-navy), var(--hp-navy-3));
  border-radius: 24px; padding: 56px; text-align: center; margin: 0 24px;
  position: relative; overflow: hidden;
}
.hp-newsletter h3 { font-size: 24px; font-weight: 800; margin: 0 0 22px; }
.hp-newsletter-form { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; }
.hp-newsletter-form input {
  flex: 1; padding: 14px 18px; border-radius: 999px; border: none; font-size: 14px;
}
.hp-newsletter-form button {
  padding: 14px 28px; border-radius: 999px; border: none; background: var(--hp-orange); color: #fff; font-weight: 700; cursor: pointer;
}
.hp-newsletter-note { font-size: 12px; color: var(--hp-text-muted); margin-top: 14px; }

/* ---------- Dark footer variant ---------- */
.hp-dark-footer { background: linear-gradient(120deg, var(--hp-navy), #0a0d20); }

@media (max-width: 900px) {
  .hp-who-grid, .hp-projects-grid, .hp-pub-grid { grid-template-columns: 1fr; }
  .hp-who-photo-wrap { width: 240px; height: 240px; margin: 0 auto; }
  .hp-projects-img { min-height: 260px; }
  .hp-newsletter { margin: 0 12px; padding: 40px 24px; }
  .hp-newsletter-form { flex-direction: column; }
}
