/* ARX Global, LLC — site styles */

/* Theme-independent tokens */
:root {
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---- Forest theme (default): light background, forest & mountain greens ---- */
/* Themes are scoped purely by the data-theme attribute (always present on
   <html>) so the two sets are mutually exclusive and never conflict. */
[data-theme="forest"] {
  --bg: #f4f7f1;
  --bg-alt: #e8efe3;
  --surface: #ffffff;
  --surface-2: #eef3ea;
  --border: #d2ddca;
  --text: #19251c;
  --muted: #586a59;
  --accent: #2f8b57;
  --accent-strong: #246d44;
  --accent-2: #357a55;
  --danger: #c23b2e;
  --ok: #1f8a4c;
  --shadow: 0 20px 44px -26px rgba(26, 56, 36, 0.3);

  --btn-from: #2f9159;
  --btn-to: #1f6f44;
  --btn-text: #ffffff;
  --btn-shadow: 0 10px 24px -14px rgba(31, 111, 68, 0.65);
  --btn-shadow-hover: 0 16px 30px -16px rgba(31, 111, 68, 0.78);

  --header-bg: rgba(244, 247, 241, 0.85);
  --hero-glow-1: rgba(76, 159, 105, 0.22);
  --hero-glow-2: rgba(120, 150, 132, 0.2);
  --icon-from: rgba(47, 139, 87, 0.16);
  --icon-to: rgba(120, 150, 132, 0.18);
  --focus-ring: rgba(47, 139, 87, 0.28);

  --mountain-back: #cfdecb;
  --mountain-mid: #aecaa6;
  --mountain-front: #84b07f;
  --mountain-snow: #ffffff;
}

/* ---- Dark theme (original navy): kept as the switchable alternate ---- */
[data-theme="dark"] {
  --bg: #0b1220;
  --bg-alt: #0e1729;
  --surface: #121d33;
  --surface-2: #16243f;
  --border: #1f2f4d;
  --text: #e8eef9;
  --muted: #9fb0cc;
  --accent: #3b82f6;
  --accent-strong: #60a5fa;
  --accent-2: #22d3ee;
  --danger: #f87171;
  --ok: #34d399;
  --shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.8);

  --btn-from: #3b82f6;
  --btn-to: #2563eb;
  --btn-text: #ffffff;
  --btn-shadow: 0 10px 24px -14px rgba(59, 130, 246, 0.9);
  --btn-shadow-hover: 0 16px 30px -16px rgba(59, 130, 246, 0.95);

  --header-bg: rgba(11, 18, 32, 0.82);
  --hero-glow-1: rgba(34, 211, 238, 0.16);
  --hero-glow-2: rgba(59, 130, 246, 0.22);
  --icon-from: rgba(59, 130, 246, 0.18);
  --icon-to: rgba(34, 211, 238, 0.14);
  --focus-ring: rgba(59, 130, 246, 0.25);

  --mountain-back: #101b30;
  --mountain-mid: #162a47;
  --mountain-front: #1e2f4e;
  --mountain-snow: #2c3f63;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  color: var(--accent-strong);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

h1, h2, h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.4em;
}

img,
svg {
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 200;
}
.skip-link:focus {
  left: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--btn-from), var(--btn-to));
  color: var(--btn-text);
  border: 1px solid transparent;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  box-shadow: var(--btn-shadow);
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--btn-shadow-hover);
}
.btn:active {
  transform: translateY(0);
}
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  box-shadow: none;
  color: var(--text);
}
.btn-ghost:hover {
  background: var(--surface);
  border-color: var(--accent);
}
.btn-sm {
  padding: 9px 16px;
  font-size: 0.92rem;
}
.btn-block {
  width: 100%;
}

/* Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 70px;
}
.brand {
  margin-right: auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
}
.brand:hover {
  text-decoration: none;
}
.brand-mark {
  color: var(--accent-strong);
  display: inline-flex;
}
.brand-llc {
  color: var(--muted);
  font-weight: 500;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav-links a {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.98rem;
}
.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}
.nav-links a.btn {
  color: var(--btn-text);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Theme toggle */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--accent-2);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.theme-toggle:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.theme-toggle svg {
  width: 20px;
  height: 20px;
}
/* Show the icon for the theme you'd switch TO */
.theme-toggle .icon-forest {
  display: none;
}
.theme-toggle .icon-dark {
  display: inline-flex;
}
[data-theme="dark"] .theme-toggle .icon-forest {
  display: inline-flex;
}
[data-theme="dark"] .theme-toggle .icon-dark {
  display: none;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 12vw, 130px) 0 clamp(54px, 9vw, 96px);
  background:
    radial-gradient(900px 480px at 78% -8%, var(--hero-glow-1), transparent 60%),
    radial-gradient(820px 520px at 12% 6%, var(--hero-glow-2), transparent 62%),
    var(--bg);
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

/* Decorative forest/mountain range filling the lower hero */
.hero-scene {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  height: 94%;
  line-height: 0;
  pointer-events: none;
}
.hero-scene .range-layer {
  position: absolute;
  inset: 0;
  will-change: transform;
}
.hero-scene svg {
  display: block;
  width: 100%;
  height: 100%;
}
.hero-scene .range-back {
  fill: var(--mountain-back);
}
.hero-scene .range-mid {
  fill: var(--mountain-mid);
}
.hero-scene .range-front {
  fill: var(--mountain-front);
}
.hero-scene .range-snow {
  fill: var(--mountain-snow);
}

/* Moon — night theme only; rises from behind the mountains.
   The celestial layer is painted behind the ranges, so a low start is
   hidden by the peaks and the moon emerges into the sky as it rises. */
.hero-scene .celestial {
  position: absolute;
  top: 7%;
  right: 8%;
  will-change: transform;
}
.hero-scene .moon {
  display: none;
  width: clamp(58px, 9.5vw, 102px);
  height: clamp(58px, 9.5vw, 102px);
  border-radius: 50%;
  background: radial-gradient(circle at 37% 35%, #fdfdff 0%, #e1e8f5 56%, #c5d1e7 100%);
  box-shadow: 0 0 58px 18px rgba(190, 210, 242, 0.22);
  will-change: transform, opacity;
}
/* At rest in the night theme the moon sits in the sky. */
[data-theme="dark"] .hero-scene .moon {
  display: block;
}
/* Toggling to night plays the rise. Toggling to day plays the set — the
   .is-setting rule keeps the moon visible while it descends, even though the
   theme has already flipped to day; JS removes the class when it finishes. */
.hero-scene .moon.is-rising {
  animation: moon-rise 1.8s cubic-bezier(0.16, 0.84, 0.44, 1) both;
}
.hero-scene .moon.is-setting {
  display: block;
  animation: moon-set 0.5s cubic-bezier(0.5, 0, 0.85, 0.3) both;
}
@keyframes moon-rise {
  from {
    transform: translateY(440px);
    opacity: 0;
  }
  35% {
    opacity: 1;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes moon-set {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  65% {
    opacity: 1;
  }
  to {
    transform: translateY(440px);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scene .moon.is-rising,
  .hero-scene .moon.is-setting {
    animation: none;
  }
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-2);
  margin: 0 0 14px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5.4vw, 3.7rem);
  margin-bottom: 0.45em;
}
.lede {
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  color: var(--muted);
  max-width: 680px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0 0;
}
.hero-stats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 0;
  margin: 46px 0 0;
}
.hero-stats li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  min-width: 150px;
  flex: 1 1 150px;
}
.hero-stats strong {
  display: block;
  font-size: 1.05rem;
}
.hero-stats span {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Sections */
.section {
  padding: clamp(58px, 9vw, 100px) 0;
}
.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-head {
  max-width: 680px;
  margin: 0 0 46px;
}
.section-head h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
}
.section-sub {
  color: var(--muted);
  font-size: 1.08rem;
  margin: 0;
}

/* Service cards */
.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.card {
  flex: 1 1 300px;
  max-width: 352px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-2);
  background: linear-gradient(135deg, var(--icon-from), var(--icon-to));
  border: 1px solid var(--border);
  margin-bottom: 18px;
}
.card h3 {
  font-size: 1.25rem;
}
.card p {
  color: var(--muted);
  margin: 0 0 16px;
}
.card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 9px;
}
.card-list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.95rem;
  color: var(--text);
}
.card-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
}

/* Approach steps */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(228px, 1fr));
  gap: 20px;
  counter-reset: step;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  position: relative;
}
.step-num {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-2);
  letter-spacing: 0.08em;
}
.step h3 {
  margin: 10px 0 6px;
  font-size: 1.2rem;
}
.step p {
  color: var(--muted);
  margin: 0;
  font-size: 0.96rem;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 48px;
  align-items: start;
}
.about-grid p {
  color: var(--muted);
  margin: 0 0 16px;
}
.about-grid h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
}
.about-grid .btn {
  margin-top: 8px;
}
.value-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.value-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  color: var(--muted);
}
.value-list strong {
  color: var(--text);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 48px;
  align-items: start;
}
.contact-intro h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.4rem);
}
.contact-intro p {
  color: var(--muted);
}
.contact-direct {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: grid;
  gap: 14px;
}
.contact-direct li {
  display: flex;
  flex-direction: column;
}
.contact-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  color: var(--muted);
  font-weight: 700;
}
.contact-direct a {
  font-size: 1.12rem;
  font-weight: 600;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  display: grid;
  gap: 16px;
}
.field {
  display: grid;
  gap: 6px;
}
.field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}
.optional {
  color: var(--muted);
  font-weight: 400;
}
.field input,
.field textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 12px 14px;
  font: inherit;
  width: 100%;
  resize: vertical;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--focus-ring);
}
.field.invalid input,
.field.invalid textarea {
  border-color: var(--danger);
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-status {
  margin: 4px 0 0;
  font-size: 0.95rem;
  min-height: 1.2em;
}
.form-status.ok {
  color: var(--ok);
}
.form-status.err {
  color: var(--danger);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 48px 0 40px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px 40px;
  align-items: start;
}
.footer-brand .brand-text {
  font-weight: 700;
  font-size: 1.1rem;
}
.footer-brand p {
  color: var(--muted);
  margin: 8px 0 0;
  max-width: 360px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-end;
}
.footer-links a {
  color: var(--muted);
  font-size: 0.95rem;
}
.footer-links a:hover {
  color: var(--text);
}
.footer-meta {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.86rem;
  margin: 18px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 820px) {
  .nav-links {
    position: fixed;
    inset: 70px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    padding: 8px 22px 18px;
    transform: translateY(-130%);
    transition: transform 0.25s ease;
  }
  .nav-links.open {
    transform: translateY(0);
  }
  .nav-links a {
    padding: 14px 4px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links a.btn {
    margin-top: 12px;
    border-bottom: 0;
  }
  .nav-toggle {
    display: flex;
  }
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .footer-links {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
