/* =========================================================
   Pacific Innovision — Enterprise Stylesheet
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root {
  --bg: #070b12;
  --surface: #0f1725;
  --surface-2: #131e30;
  --line: rgba(148, 163, 184, 0.14);
  --text: #e6edf6;
  --muted: #9fb0c3;
  --accent: #22d3ee;
  --accent-2: #818cf8;
  --error: #f87171;
  --radius: 16px;
}

/* ---------- Reset & Base ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.15;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

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

section {
  scroll-margin-top: 90px;
}

/* ---------- Layout Helpers ---------- */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.container.narrow {
  max-width: 760px;
}

.accent {
  color: var(--accent);
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 13px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(7, 11, 18, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 26px;
  align-items: center;
}

.nav-links a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 20px;
  border-radius: 8px;
  padding: 4px 10px;
  cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  border: none;
  border-radius: 999px;
  padding: 14px 28px;
  font-weight: 600;
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn-sm {
  padding: 9px 18px;
  font-size: 13px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #041018;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(34, 211, 238, 0.25);
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--text);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--accent);
}

/* ---------- Hero ---------- */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 150px 0 90px;
}

.hero-media {
  position: absolute;
  inset: 0;
  background: url('../images/hero.jpg') center / cover no-repeat;
  opacity: 0.22;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 85%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1100px 560px at 75% -10%, rgba(34, 211, 238, 0.10), transparent 60%),
    radial-gradient(900px 500px at 15% 110%, rgba(129, 140, 248, 0.08), transparent 60%),
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: auto, auto, 56px 56px, 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.1rem);
  margin-bottom: 22px;
}

.lead {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--muted);
  max-width: 720px;
  margin-bottom: 34px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.chips {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.chips span {
  font-size: 12.5px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  background: rgba(15, 23, 37, 0.6);
}

/* ---------- Brand Statement Band ---------- */
.statement {
  padding: 80px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.06), rgba(129, 140, 248, 0.06));
}

.statement-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.3rem, 3vw, 2rem);
  line-height: 1.45;
  max-width: 900px;
  margin: 0 auto 18px;
  text-align: center;
  color: var(--text);
}

.statement-sub {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 12px;
  color: var(--muted);
}

/* ---------- Sections ---------- */
.division,
.why,
.contact {
  padding: 100px 0;
}

.division.alt {
  background: linear-gradient(180deg, rgba(19, 30, 48, 0.5), transparent);
}

.division h2,
.why h2,
.contact h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 16px;
}

.section-lead {
  color: var(--muted);
  max-width: 780px;
  margin-bottom: 48px;
  font-size: 1.05rem;
}

/* ---------- Cards ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

.card-img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  margin-bottom: 18px;
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.card ul li {
  font-size: 0.9rem;
  color: var(--muted);
  padding: 6px 0 6px 18px;
  position: relative;
}

.card ul li::before {
  content: "▸";
  color: var(--accent);
  position: absolute;
  left: 0;
}

.card-note {
  font-size: 0.8rem;
  color: var(--accent);
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 14px;
}

.tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 10px;
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.step {
  border-left: 2px solid var(--accent);
  padding-left: 18px;
}

.step span {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  color: var(--accent);
}

.step h4 {
  margin: 6px 0 8px;
}

.step p {
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------- Contact ---------- */
.contact {
  background: linear-gradient(180deg, rgba(19, 30, 48, 0.55), transparent);
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 40px;
}

.contact-info-item {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
}

.contact-info-item h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 10px;
}

.contact-info-item address {
  font-style: normal;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.contact-info-item address strong {
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
}

.contact-info-item a {
  color: var(--muted);
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.contact-info-item a:hover {
  color: var(--accent);
}

/* ---------- Form ---------- */
form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

input,
select,
textarea {
  background: #0b1220;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 15px;
  color: var(--text);
  font-family: inherit;
  font-size: 14.5px;
  width: 100%;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
}

select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239fb0c3' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
}

select:invalid {
  color: var(--muted);
}

/* Honeypot field — hidden from humans, traps bots */
.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Captcha box */
.captcha-box {
  background: #0b1220;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}

.captcha-box label {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 10px;
}

.captcha-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.captcha-row input {
  max-width: 120px;
}

#captcha-refresh {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 18px;
  cursor: pointer;
  width: auto;
  transition: border-color 0.2s ease, color 0.2s ease;
}

#captcha-refresh:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Form status messages */
.form-status {
  font-size: 0.9rem;
  min-height: 22px;
  margin-top: 10px;
}

.form-status.success {
  color: var(--accent);
}

.form-status.error {
  color: var(--error);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 60px 0 30px;
  background: #05080d;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-grid h4 {
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.footer-grid a {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.footer-grid a:hover {
  color: var(--accent);
}

.footer-address {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 8px;
}

.disclaimer {
  font-size: 0.78rem;
  color: var(--muted);
  border-left: 2px solid var(--accent-2);
  padding-left: 14px;
  margin-bottom: 18px;
}

/* ---------- Scroll Reveal Animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Responsive: Tablet ---------- */
@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(7, 11, 18, 0.98);
    padding: 20px 24px;
    border-bottom: 1px solid var(--line);
    gap: 16px;
  }

  .nav-links.open {
    display: flex;
  }

  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-info {
    grid-template-columns: 1fr;
  }
}

/* ---------- Responsive: Mobile ---------- */
@media (max-width: 560px) {
  .steps,
  .form-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .division,
  .why,
  .contact {
    padding: 70px 0;
  }

  .captcha-row {
    flex-wrap: wrap;
  }
}