/* ─────────────────────────────────────────────────────────────────────────────
   Seth Brand Tech Care Theme — Refined Editorial Dark
   Loaded after consolidated.css to override design tokens.
   Direction: deep near-black base, refined emerald accent, warm bronze secondary,
   warm off-white text, softer layered shadows, ambient atmospheric layer.
   ───────────────────────────────────────────────────────────────────────────── */

/* ── Design Token Overrides — Premium Dark Palette ── */
:root {
  /* Surfaces — deeper, richer, with subtle warmth */
  --bg-primary:    #0a0b0e;
  --bg-secondary:  #111317;
  --bg-tertiary:   #181b21;
  --bg-elevated:   #1f232b;
  --bg-hover:      rgba(94,207,120,0.06);

  /* Accent — refined emerald (brand-consistent, used selectively) */
  --accent-primary:         #5ecf78;
  --accent-primary-hover:   #22c55e;
  --accent-primary-light:   rgba(94,207,120,0.08);
  --accent-primary-medium:  rgba(94,207,120,0.16);
  --accent-primary-dark:    rgba(94,207,120,0.28);

  /* Secondary — warm bronze for premium touches (used sparingly) */
  --accent-secondary:       #c8a96a;
  --accent-secondary-light: rgba(200,169,106,0.10);

  /* Tertiary — muted warm graphite */
  --accent-tertiary:        #6b6b6b;
  --accent-tertiary-light:  rgba(107,107,107,0.12);

  /* Text — warm off-white instead of cool blue-white */
  --text-primary:   #f2efe9;
  --text-secondary: rgba(242,239,233,0.82);
  --text-tertiary:  rgba(242,239,233,0.55);
  --text-muted:     rgba(242,239,233,0.35);

  /* Borders — neutral white-tinted at low opacity (less green line everywhere) */
  --border-subtle: rgba(255,255,255,0.05);
  --border-light:  rgba(255,255,255,0.09);
  --border-medium: rgba(255,255,255,0.15);
  --border-accent: rgba(94,207,120,0.28);

  /* Shadows — layered, softer, more atmospheric depth */
  --shadow-sm:     0 2px 8px rgba(0,0,0,0.32), 0 1px 2px rgba(0,0,0,0.40);
  --shadow-md:     0 8px 24px rgba(0,0,0,0.40), 0 2px 8px rgba(0,0,0,0.30);
  --shadow-lg:     0 20px 48px rgba(0,0,0,0.50), 0 8px 24px rgba(0,0,0,0.35);
  --shadow-accent: 0 8px 32px rgba(94,207,120,0.14), 0 0 64px rgba(94,207,120,0.05);

  /* Fonts — unchanged */
  --font-heading: 'Playfair Display', serif;
  --font-body:    'Jost', sans-serif;

  /* Theme-specific shorthand vars (shared with homepage) */
  --void:        #0a0b0e;
  --surface:     #111317;
  --surface-2:   #181b21;
  --text:        #f2efe9;
  --text-mid:    rgba(242,239,233,0.82);
  --text-low:    rgba(242,239,233,0.55);
  --green:       #5ecf78;
  --green-glow:  rgba(94,207,120,0.20);
  --green-trace: rgba(94,207,120,0.06);
  --line:        rgba(255,255,255,0.09);
  --line-up:     rgba(255,255,255,0.16);
  --bronze:      #c8a96a;
  --bronze-glow: rgba(200,169,106,0.12);
  --mono:        'DM Mono', monospace;
  --serif:       'Playfair Display', serif;
  --body:        'Jost', sans-serif;
}

/* ── Base ── */
html { font-size: 17px; -webkit-font-smoothing: antialiased; overflow-x: hidden; }

body {
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(94,207,120,0.035), transparent),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(200,169,106,0.022), transparent),
    var(--void);
  color: var(--text);
  font-family: var(--body);
  font-weight: 400;
  overflow-x: hidden;
}

::selection {
  background: rgba(94,207,120,0.16);
  color: var(--text);
}

::-moz-selection {
  background: rgba(94,207,120,0.16);
  color: var(--text);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.01em;
}

/* ── Atmospheric Layer — refined ambient glow (less terminal scanline) ── */
.atm {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
}

.atm-floor {
  position: absolute;
  bottom: -20%; left: 50%; margin-left: -35vw;
  width: 70vw; height: 60vw;
  background: radial-gradient(ellipse at 45% 75%,
    rgba(15,45,28,0.32) 0%, rgba(10,30,18,0.10) 38%, transparent 65%);
  animation: atm-breathe 10s ease-in-out infinite alternate;
}

.atm-cap {
  position: absolute; top: -10%; right: -8%;
  width: 38vw; height: 38vw;
  background: radial-gradient(ellipse at center,
    rgba(200,169,106,0.025) 0%, rgba(10,30,18,0.10) 30%, transparent 65%);
  animation: atm-breathe 14s ease-in-out infinite alternate-reverse;
}

.atm-grid {
  position: absolute; bottom: 0; left: 0; right: 0; height: 40vh;
  background:
    repeating-linear-gradient(90deg, transparent, transparent 99px,
      rgba(255,255,255,0.018) 99px, rgba(255,255,255,0.018) 100px),
    repeating-linear-gradient(0deg,  transparent, transparent 99px,
      rgba(255,255,255,0.018) 99px, rgba(255,255,255,0.018) 100px);
  mask-image: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 100%);
}

.atm-grain {
  position: fixed; inset: -60%; width: 220%; height: 220%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='280'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.78' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='0.018'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 999;
  animation: atm-grain-anim 0.2s steps(1) infinite;
}

.scanline {
  position: fixed; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, transparent, rgba(94,207,120,0.045) 50%, transparent);
  animation: atm-scan 18s linear infinite;
  pointer-events: none; z-index: 998;
}

@keyframes atm-breathe {
  from { opacity: 0.65; transform: scale(0.97); }
  to   { opacity: 1;    transform: scale(1.04); }
}

@keyframes atm-grain-anim {
  0%   { transform: translate(0,0); }
  25%  { transform: translate(-4%,-3%); }
  50%  { transform: translate(3%,4%); }
  75%  { transform: translate(-2%,2%); }
  100% { transform: translate(4%,-4%); }
}

@keyframes atm-scan {
  0%   { top: 0;     opacity: 0; }
  5%   { opacity: 1; }
  95%  { opacity: 1; }
  100% { top: 100vh; opacity: 0; }
}

@keyframes theme-slideDown {
  from { opacity: 0; transform: translateY(-18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Header / Nav — refined premium bar ── */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(10,11,14,0.92);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-bottom: 1px solid var(--line);
  animation: theme-slideDown 0.9s cubic-bezier(0.16,1,0.3,1) both;
}

header .container {
  max-width: none;
  padding: 0;
}

header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.3rem 3.5rem;
}

/* Logo */
.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo img {
  height: 36px;
  width: auto;
  display: block;
}

/* Nav links */
.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  background: none;
  padding: 0;
  margin: 0;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mid);
  text-decoration: none;
  background: none;
  border: none;
  padding: 0.5rem 0.35rem;
  transition: color 0.25s;
  user-select: none;
  -webkit-user-select: none;
}

/* Kill the underline slide from consolidated.css */
.nav-links a::after { display: none !important; }

.nav-links a:hover,
.nav-links a.nav-active {
  color: var(--text);
  background: none;
}

/* CTA — refined emerald with subtle bronze-tinted shadow */
.nav-cta {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--void);
  background: linear-gradient(135deg, var(--green), #22c55e);
  text-decoration: none;
  padding: 0.7rem 1.5rem;
  font-weight: 600;
  border-radius: 6px;
  transition: box-shadow 0.3s, transform 0.2s, background 0.2s;
  user-select: none;
  -webkit-user-select: none;
  box-shadow: 0 4px 14px rgba(94,207,120,0.14);
}

.nav-cta:hover {
  color: var(--void);
  background: linear-gradient(135deg, #22c55e, var(--green));
  box-shadow: 0 8px 22px rgba(94,207,120,0.22);
  transform: translateY(-1px);
}

/* Phone link in nav */
.nav-phone {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text);
  text-decoration: none;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.nav-phone:hover {
  color: var(--green);
  border-color: var(--green);
  background: rgba(94,207,120,0.06);
}

.nav-phone i { font-size: 0.9rem; }

.contact-disclosure {
  display: block;
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-top: 0.15rem;
  line-height: 1.3;
}

/* Mobile toggle */
.mobile-menu-toggle span { background: var(--text); }

/* Offset body content for fixed nav */
main { padding-top: 84px; }

/* ── Scroll progress bar ── */
.scroll-progress { background: var(--green); }

/* ── Footer ── */
footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--line);
}

.footer-logo-text {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 0;
}

.footer-logo-text .logo-dot {
  font-size: 0.75rem;
  margin-left: 0.4rem;
}

.footer-description {
  color: var(--text-mid);
  font-size: 0.95rem;
  line-height: 1.75;
}

.footer-contact .contact-item { color: var(--text-low); }
.footer-contact svg { color: var(--green); opacity: 0.7; }

.footer-heading {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  opacity: 0.75;
  margin-bottom: 1.1rem;
}

.footer-links a {
  color: var(--text-low);
  font-size: 0.9rem;
  transition: color 0.25s;
}

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

.footer-cta-btn {
  background: linear-gradient(135deg, var(--green), #22c55e);
  color: var(--void);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  transition: box-shadow 0.3s, transform 0.2s;
}

.footer-cta-btn:hover {
  background: linear-gradient(135deg, #22c55e, var(--green));
  color: var(--void);
  box-shadow: 0 8px 22px var(--green-glow);
  transform: translateY(-1px);
}

.footer-cta-note {
  color: var(--text-low);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

.footer-bottom { border-top: 1px solid var(--line); }

.footer-bottom-left p {
  color: var(--text-low);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.social-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-low);
}

.footer-social a { color: var(--text-low); transition: color 0.25s; }
.footer-social a:hover { color: var(--green); }

/* ── Back to top ── */
#back-to-top {
  background: var(--bg-secondary);
  color: var(--text-mid);
  border: 1px solid var(--line);
  font-family: var(--mono);
  transition: color 0.25s, border-color 0.25s, box-shadow 0.25s;
}

#back-to-top:hover {
  color: var(--green);
  border-color: var(--line-up);
  box-shadow: 0 4px 16px var(--green-trace);
}

/* ── General component alignment — refined radius for premium feel ── */
.btn, .button, [class*="btn-"] {
  font-family: var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 8px;
}

/* ── Mobile nav ── */
@media (max-width: 768px) {
  header nav { padding: 1rem 1rem; }
  .nav-links  { display: none; }
  .nav-cta    { display: none; }
  .nav-phone  { display: none; }
}

@media (max-width: 768px) {
  .nav-links.is-open {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: calc(100% - 2rem);
    margin: 0 1rem 1rem;
  }
}

/* Shared Motion */
.motion-lift {
  transition:
    transform 0.24s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.24s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.24s ease;
  will-change: transform;
}

.motion-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.40), 0 8px 20px rgba(0,0,0,0.28);
}

@media (prefers-reduced-motion: no-preference) {
  html.js-motion [data-reveal] {
    opacity: 0;
    filter: blur(10px);
    transform: translate3d(0, 24px, 0);
    transition:
      opacity 0.58s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.58s cubic-bezier(0.22, 1, 0.36, 1),
      filter 0.58s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform, filter;
  }

  html.js-motion [data-reveal="scale"] {
    transform: scale(0.975) translate3d(0, 18px, 0);
  }

  html.js-motion [data-reveal="left"] {
    transform: translate3d(-26px, 18px, 0);
  }

  html.js-motion [data-reveal="right"] {
    transform: translate3d(26px, 18px, 0);
  }

  html.js-motion [data-reveal].is-visible {
    opacity: 1;
    filter: blur(0);
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .motion-lift {
    transition: none;
  }

  .motion-lift:hover {
    transform: none;
    box-shadow: none;
  }
}
