/* ===== FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ===== BASE ===== */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #404040; /* neutral-700 */
}

/* ===== LAYOUT UTILITIES ===== */
.section-padding { padding-top: 4rem; padding-bottom: 4rem; }
@media (min-width: 768px) { .section-padding { padding-top: 6rem; padding-bottom: 6rem; } }

.container-width { max-width: 80rem; margin-left: auto; margin-right: auto; padding-left: 1rem; padding-right: 1rem; }
@media (min-width: 640px) { .container-width { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .container-width { padding-left: 2rem; padding-right: 2rem; } }

/* ===== GRADIENT TEXT ===== */
.gradient-text {
  background: linear-gradient(135deg, #2563eb, #f97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== GLASS CARD ===== */
.glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* ===== BACKGROUND PATTERNS ===== */
.bg-dot-pattern {
  background-image: radial-gradient(circle, rgba(255,255,255,0.15) 1px, transparent 1px);
  background-size: 20px 20px;
}

.bg-grid-pattern {
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ===== IMAGE OVERLAY ===== */
.image-overlay { position: relative; }
.image-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.3), transparent);
  pointer-events: none;
}

/* ===== BUTTONS ===== */
button.btn-cta,
button.btn-outline,
button.btn-primary,
a.btn-cta,
a.btn-outline,
a.btn-primary,
.btn-cta,
.btn-outline,
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  border-radius: 0.75rem;
  padding: 0.625rem 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
}

/* CTA / Primary button (orange) — !important needed to override Tailwind's button reset */
button.btn-cta,
a.btn-cta,
.btn-cta,
button.btn-primary,
a.btn-primary,
.btn-primary {
  background-color: #f97316 !important;
  color: #ffffff !important;
  border-color: #f97316 !important;
}
button.btn-cta:hover,
a.btn-cta:hover,
.btn-cta:hover,
button.btn-primary:hover,
a.btn-primary:hover,
.btn-primary:hover {
  background-color: #ea580c !important;
  border-color: #ea580c !important;
}

/* Outline button (white/transparent with solid border for dark sections) */
button.btn-outline,
a.btn-outline,
.btn-outline {
  background-color: rgba(255, 255, 255, 0.12) !important;
  border: 2px solid rgba(255, 255, 255, 0.5) !important;
  color: #ffffff !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
button.btn-outline:hover,
a.btn-outline:hover,
.btn-outline:hover {
  background-color: #ffffff !important;
  border-color: #ffffff !important;
  color: #172554 !important; /* brand-blue-900 */
}

/* Ghost button (text-only with subtle hover) */
button.btn-ghost,
a.btn-ghost,
.btn-ghost {
  background-color: transparent;
  color: #525252;
  border-color: transparent;
}
button.btn-ghost:hover,
a.btn-ghost:hover,
.btn-ghost:hover {
  background-color: #f5f5f5;
}

/* Large size */
.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1.125rem;
}

/* ===== SAFE AREA (iOS notch) ===== */
.safe-area-bottom {
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* ===== BUTTON GLOW ===== */
.btn-glow {
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.4), 0 0 40px rgba(249, 115, 22, 0.1);
  transition: box-shadow 0.3s ease;
}
.btn-glow:hover {
  box-shadow: 0 0 30px rgba(249, 115, 22, 0.6), 0 0 60px rgba(249, 115, 22, 0.2);
}

/* ===== WAVE DIVIDER ===== */
.wave-divider {
  position: relative;
}
.wave-divider::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 60px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60'%3E%3Cpath fill='%23ffffff' d='M0,40 C360,80 720,0 1440,40 L1440,60 L0,60 Z'/%3E%3C/svg%3E") no-repeat bottom center;
  background-size: cover;
}

/* ===== CARD EFFECTS ===== */
.card-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.img-zoom { overflow: hidden; }
.img-zoom img {
  transition: transform 0.5s ease;
}
.img-zoom:hover img {
  transform: scale(1.08);
}

/* ===== FOCUS STATES ===== */
.focus-ring:focus {
  outline: none;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(249, 115, 22, 0.5);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f5f5f5; }
::-webkit-scrollbar-thumb { background: #d4d4d4; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #a3a3a3; }

/* ===== SELECTION ===== */
::selection { background-color: rgba(249, 115, 22, 0.2); color: inherit; }

/* ===== SCREEN READER ONLY ===== */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0;
}
