/* ═══════════════════════════════════════
   Maverick Buckland — Main Stylesheet
   ═══════════════════════════════════════ */

:root {
  --bg:         #ffffff;
  --bg-alt:     #f7f7f8;
  --bg-card:    #f0f0f2;
  --border:     #e2e2e6;
  --text:       #111111;
  --text-mid:   #555555;
  --text-light: #888888;
  --navy:       #1a1a2e;
  --blue:       #2d5eff;
  --blue-soft:  rgba(45, 94, 255, 0.08);
  --font:       'Outfit', sans-serif;
  --mono:       'Space Mono', monospace;
}

/* ─── Reset ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ─── Layout ─── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 768px) { .container { padding: 0 20px; } }

/* ─── Section Label ─── */
.section-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::before {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--blue);
}
.section-label--center { justify-content: center; }
.section-label--center::before { display: none; }

/* ─── Buttons ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: var(--navy);
  color: #fff;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
}
.btn-primary:hover { background: var(--blue); transform: translateY(-2px); color: #fff; }
.btn-primary--inverted { background: #fff; color: var(--navy); }
.btn-primary--inverted:hover { background: var(--bg-alt); color: var(--navy); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: transparent;
  color: var(--text);
  font-family: var(--font);
  font-weight: 500;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
}
.btn-secondary:hover { border-color: var(--blue); color: var(--blue); }


/* ═══════════ NAVIGATION ═══════════ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 24px 0;
  transition: all 0.4s ease;
  background: transparent;
}
.site-nav.scrolled {
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo { height: 38px; }
.nav-site-title { font-weight: 700; font-size: 1.2rem; }
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-mid);
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--blue);
  transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after { width: 100%; }

.nav-cta {
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  color: #fff !important;
  background: var(--navy);
  padding: 10px 24px;
  border-radius: 4px;
  transition: background 0.3s !important;
}
.nav-cta:hover { background: var(--blue) !important; }
.nav-cta::after { display: none !important; }

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: 0.3s;
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    padding: 32px 40px;
    gap: 24px;
    border-bottom: 1px solid var(--border);
  }
}


/* ═══════════ HERO ═══════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 20%, rgba(45,94,255,0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(26,26,46,0.03) 0%, transparent 50%),
    var(--bg);
}
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
  background-size: 80px 80px;
}
.hero .container { position: relative; z-index: 2; width: 100%; }
.hero-content { max-width: 900px; }
.hero-eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 28px;
}
.hero h1 {
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
}
.hero h1 .accent { color: var(--blue); }
.hero-sub {
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--text-mid);
  max-width: 580px;
  line-height: 1.7;
  margin-bottom: 48px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  gap: 64px;
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.hero-stat h3 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
}
.hero-stat p {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 6px;
}
@media (max-width: 768px) {
  .hero-stats { gap: 32px; flex-wrap: wrap; }
  .hero-stat h3 { font-size: 1.8rem; }
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.scroll-indicator span {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-light);
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--blue), transparent);
  animation: scrollPulse 2s ease infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}


/* ═══════════ MARQUEE ═══════════ */
.marquee-section {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.marquee-track {
  display: flex;
  gap: 60px;
  animation: marquee 30s linear infinite;
  width: max-content;
}
.marquee-item {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-light);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 60px;
}
.marquee-item::after {
  content: '◆';
  color: var(--blue);
  font-size: 0.5rem;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


/* ═══════════ SERVICES ═══════════ */
.services-section { padding: 140px 0; }
.services-section--page { padding-top: 0; }
.services-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 72px;
  gap: 40px;
  flex-wrap: wrap;
}
.services-header h1,
.services-header h2 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 540px;
}
.services-header > p {
  font-size: 0.95rem;
  color: var(--text-mid);
  max-width: 380px;
  line-height: 1.7;
  font-weight: 300;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.service-card {
  background: var(--bg-alt);
  padding: 48px 36px;
  position: relative;
  transition: background 0.4s ease;
}
.service-card:hover { background: var(--bg-card); }
.service-number {
  position: absolute;
  top: 36px; right: 36px;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-light);
  opacity: 0.5;
}
.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: var(--blue-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: all 0.3s;
  font-size: 1.3rem;
}
.service-card:hover .service-icon {
  background: var(--navy);
}
.service-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 14px;
}
.service-card p {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.65;
  font-weight: 300;
}

/* CTA card */
.service-card--cta {
  background: var(--navy);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.service-card--cta:hover { background: var(--navy); }
.service-card--cta h3 { color: #fff; font-size: 1.4rem; }
.service-card--cta p { color: rgba(255,255,255,0.7); margin-bottom: 20px; }

@media (max-width: 1024px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 36px 28px; }
  .services-section { padding: 80px 0; }
}


/* ═══════════ ABOUT ═══════════ */
.about-section { padding: 140px 0; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-visual { position: relative; }
.about-image-main {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
}
.about-image-main img { width: 100%; height: 100%; object-fit: cover; }
.about-float {
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 200px;
  height: 200px;
  background: var(--navy);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 24px;
}
.about-float h3 {
  font-size: 2.8rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.about-float p {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
  margin-top: 4px;
}
.about-content h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 28px;
}
.about-content p {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 20px;
}
.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}
.about-value {
  padding: 20px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
}
.about-value h4 {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--blue);
}
.about-value p {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 0;
  line-height: 1.5;
}

/* About page extras */
.about-wide-image {
  margin-top: 100px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.about-wide-image img { width: 100%; aspect-ratio: 21/9; object-fit: cover; }
.about-closing {
  max-width: 700px;
  margin: 48px auto 0;
  text-align: center;
}
.about-closing p {
  font-size: 1.1rem;
  color: var(--text-mid);
  line-height: 1.75;
  font-weight: 300;
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-float { bottom: -16px; right: -16px; width: 160px; height: 160px; }
  .about-float h3 { font-size: 2.2rem; }
  .about-section { padding: 80px 0; }
}


/* ═══════════ CLIENTS ═══════════ */
.clients-section {
  padding: 120px 0;
  border-top: 1px solid var(--border);
}
.clients-section--page { border-top: none; padding-top: 0; }
.clients-header {
  text-align: center;
  margin-bottom: 64px;
}
.clients-header h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.clients-header p {
  font-size: 0.95rem;
  color: var(--text-mid);
  font-weight: 300;
}
.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.client-cell {
  background: var(--bg-alt);
  padding: 48px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  transition: background 0.3s;
}
.client-cell:hover { background: var(--bg-card); }
.client-cell span {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-light);
  transition: color 0.3s;
}
.client-cell:hover span { color: var(--text); }
.client-cell img { max-height: 48px; width: auto; opacity: 0.5; transition: opacity 0.3s; }
.client-cell:hover img { opacity: 1; }
.clients-cta {
  text-align: center;
  margin-top: 64px;
}
.clients-cta p {
  color: var(--text-mid);
  font-size: 0.95rem;
  margin-bottom: 24px;
}
@media (max-width: 768px) {
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
}


/* ═══════════ CONTACT ═══════════ */
.contact-section { padding-bottom: 140px; }
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-info h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 24px;
}
.contact-intro {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 48px;
}
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}
.contact-detail-icon {
  width: 44px; height: 44px; min-width: 44px;
  border-radius: 8px;
  background: var(--blue-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-size: 1.1rem;
}
.contact-detail h4 {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.contact-detail p { font-size: 0.95rem; color: var(--text); }
.contact-detail a { color: var(--text); transition: color 0.2s; }
.contact-detail a:hover { color: var(--blue); }

.contact-form {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 48px;
}
.contact-form h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 32px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-mid);
  margin-bottom: 8px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
  transition: border-color 0.3s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--blue); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-submit {
  width: 100%;
  padding: 16px;
  background: var(--navy);
  color: #fff;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 8px;
}
.form-submit:hover { background: var(--blue); }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.form-status {
  margin-top: 16px;
  font-size: 0.85rem;
  font-weight: 500;
}
.form-status--success { color: #16a34a; }
.form-status--error { color: #dc2626; }

@media (max-width: 900px) {
  .contact-wrapper { grid-template-columns: 1fr; gap: 48px; }
  .contact-form { padding: 32px 24px; }
  .form-row { grid-template-columns: 1fr; }
}


/* ═══════════ PAGE HERO ═══════════ */
.page-hero {
  padding: 160px 0 64px;
}
.page-hero--center { text-align: center; }
.page-hero-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 700px;
}
.page-hero--center .page-hero-title { margin: 0 auto; }
.page-hero-sub {
  font-size: 0.95rem;
  color: var(--text-mid);
  font-weight: 300;
  margin-top: 16px;
  max-width: 560px;
}
.page-hero--center .page-hero-sub { margin: 16px auto 0; }


/* ═══════════ GENERIC PAGE ═══════════ */
.page-content { padding-bottom: 120px; }
.page-body { max-width: 760px; font-size: 1rem; line-height: 1.8; color: var(--text-mid); }
.page-body h2 { font-size: 1.6rem; margin: 32px 0 12px; color: var(--text); }
.page-body p { margin-bottom: 16px; }


/* ═══════════ FOOTER ═══════════ */
.site-footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--border);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 48px;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-logo { height: 32px; }
.footer-site-title { font-weight: 700; font-size: 1.1rem; }
.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 16px;
  max-width: 300px;
  line-height: 1.6;
}
.footer-links { display: flex; gap: 48px; }
.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 0.88rem;
  color: var(--text-mid);
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--blue); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom p { font-size: 0.75rem; color: var(--text-light); }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 6px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--text-light);
  transition: all 0.3s;
}
.footer-social a:hover { border-color: var(--blue); color: var(--blue); }


/* ═══════════ ANIMATIONS ═══════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.mb-fade {
  opacity: 0;
  transform: translateY(24px);
}
.mb-fade.visible {
  animation: fadeUp 0.8s ease forwards;
}
.mb-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.mb-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
