/* ============================================================
   global.css — Pureframe Labs Labs
   CSS custom properties, resets, typography, shared utilities
   ============================================================ */

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

:root {
  --primary: #2563EB;
  --primary-dark: #1d4ed8;
  --accent: #06B6D4;
  --bg: #FFFFFF;
  --bg2: #F8FAFC;
  --text: #0F172A;
  --text2: #64748B;
  --success: #10B981;
  --error: #EF4444;
  --warning: #F59E0B;
  --border: #E2E8F0;

  --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --card-shadow-hover: 0 16px 40px rgba(37, 99, 235, 0.12);

  --radius: 16px;
  --nav-h: 72px;
  --max-w: 1280px;

  --transition: 250ms ease;
  --transition-smooth: 350ms cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'SF Pro Display', 'Avenir', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── CONTAINER ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}

/* ── SECTIONS ── */
section {
  padding: 120px 0;
}

section.compact {
  padding: 80px 0;
}

section.alt {
  background: var(--bg2);
}

/* ── SECTION HEADINGS ── */
.section-eyebrow {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

h2.section-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: var(--text);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 18px;
  color: var(--text2);
  max-width: 560px;
  line-height: 1.7;
}

/* ── BUTTONS ── */
.btn-primary {
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  border: none;
  padding: 14px 28px;
  border-radius: 32px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

.btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
  padding: 14px 28px;
  border-radius: 32px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  text-decoration: none;
}

.btn-secondary:hover {
  background: var(--bg2);
  border-color: #CBD5E1;
  transform: translateY(-1px);
}

.btn-white {
  background: #fff;
  color: var(--primary);
  border: none;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

/* ── FORM ELEMENTS ── */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* ── FORM STATUS MESSAGES ── */
.form-status {
  display: none;
  text-align: center;
  padding: 18px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  margin-top: 4px;
}

.form-status.success {
  display: block;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #059669;
}

.form-status.error {
  display: block;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #dc2626;
}

.form-status.loading {
  display: block;
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.2);
  color: var(--primary);
}

/* ── CTA SECTION ── */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 80% at 50% -20%, rgba(6, 182, 212, 0.2), transparent);
}

.cta-section h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  position: relative;
}

.cta-section p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 40px;
  position: relative;
}

/* ── SPA PAGE SYSTEM ── */
.page {
  display: none;
  padding-top: var(--nav-h);
}

.page.active {
  display: block;
}

.page.page-enter {
  animation: pageSlideUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes pageSlideUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── UTILITY CLASSES (Replaced Inline Styles) ── */
.avatar-blue {
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
}

.avatar-green {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

.avatar-purple {
  background: rgba(139, 92, 246, 0.1);
  color: #7c3aed;
}

.avatar-orange {
  background: rgba(245, 158, 11, 0.1);
  color: #b45309;
}

.btn-full {
  width: 100%;
  justify-content: center;
  padding: 16px;
}

.section-header-center {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.footer-bottom-simple {
  border-top: none;
  padding-top: 0;
}

/* ── REVEAL ON SCROLL ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }

  .container {
    padding: 0 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ==========================
   GLOBAL MOBILE FIXES
========================== */

@media screen and (max-width: 768px) {

  .container {
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
  }

  img {
    max-width: 100%;
    height: auto;
  }

}