/* ── BAXTERO WEBSITES - main.css ── */
/* Shared styles across all pages. Page-specific styles go in their own file. */

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

:root {
  --bg: #282828;
  --text: #fff;
  --accent: #a3e0fc;
  --accent-dim: rgba(163, 224, 252, 0.12);
  --accent-mid: rgba(163, 224, 252, 0.3);
  --muted: rgba(255,255,255,0.45);
  --border: rgba(163, 224, 252, 0.15);
  --font-display: 'Syne', sans-serif;
  --font-body: 'Source Sans 3', Arial, Helvetica, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 5%;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(40, 40, 40, 0.75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo img {
  height: 50px;
  width: auto;
  display: block;

  /* Smooth base state */
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);

  /* Intro animation */
  animation: rotate2 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-logo:hover img {
  transform: rotate(360deg);
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

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

.nav-links a.active { color: var(--accent); }

.nav-cta {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--bg) !important;
  background: var(--accent);
  padding: 0.45rem 1.25rem;
  border-radius: 100px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
}

.nav-cta:hover { opacity: 0.85; transform: scale(1.03); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 68px; left: 0; right: 0;
  background: rgba(30, 30, 30, 0.98);
  backdrop-filter: blur(20px);
  padding: 1.5rem 5% 2rem;
  flex-direction: column;
  gap: 0;
  z-index: 99;
  border-bottom: 1px solid var(--border);
  transform: translateY(-10px);
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
}

.mobile-menu.open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu a {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--muted);
  text-decoration: none;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}

.mobile-menu a:hover { color: var(--text); }

.mobile-menu .mob-cta {
  margin-top: 1.5rem;
  background: var(--accent);
  color: var(--bg);
  text-align: center;
  padding: 0.85rem;
  border-radius: 100px;
  font-weight: 500;
  border: none;
}

/* ── SHARED SECTION STYLES ── */
.section-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 600px;
  margin-bottom: 4rem;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.85rem 2rem;
  border-radius: 100px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(163, 224, 252, 0.25);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  padding: 0.85rem 2rem;
  border-radius: 100px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.15);
  transition: border-color 0.2s, background 0.2s;
}

.btn-secondary:hover {
  border-color: var(--accent-mid);
  background: var(--accent-dim);
}

/* ── MARQUEE ── */
.marquee-section {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.2rem 0;
  background: rgba(163, 224, 252, 0.03);
}

.marquee-track {
  display: flex;
  gap: 3rem;
  animation: marquee 20s linear infinite;
  width: max-content;
}

.marquee-item {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.marquee-item::after {
  content: '✦';
  color: var(--accent);
  font-size: 0.6rem;
}

/* ── FOOTER ── */
.site-footer {
  padding: 4rem 5%;
  border-top: 1px solid rgba(163, 224, 252, 0.12);
  background: rgba(0, 0, 0, 0.2);
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  transition: 0.2s;
}

.footer-col a:hover {
  opacity: 1;
  color: var(--accent);
}

.footer-brand img {
  height: 45px;
  width: auto;
  margin-bottom: 1rem;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.footer-brand:hover img {
  transform: rotate(360deg);
}

.footer-tagline {
  font-size: 0.85rem;
  margin-top: 0.5rem;
  max-width: 220px;
}

.footer-copy {
  font-size: 0.75rem;
  display: block;
  margin-top: 1rem;
}

.footer-social {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
  transition: 0.2s;
  font-size: 0.9rem;
}

.social-link img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  transition: transform 0.2s;
}

.social-link:hover {
  opacity: 1;
  color: var(--accent);
}

.social-link:hover img {
  transform: translateY(-2px) scale(1.05);
}

/* responsive */
@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 500px) {
  .footer-container {
    grid-template-columns: 1fr;
  }
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

@keyframes shimmer {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 480px) {
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes rotate2 {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}