/* ============================================================
   UFO REPAIR CENTER — Global Stylesheet
   Aesthetic: Retro-Futuristic Industrial / 1950s Sci-Fi Workshop
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow+Condensed:wght@400;600;700&family=Barlow:ital,wght@0,300;0,400;0,500;1,300&display=swap');

/* ─── Variables ─────────────────────────────────────────── */
:root {
  --yellow:   #F2C43D;
  --yellow-dk:#D4A820;
  --navy:     #1B2A45;
  --navy-lt:  #243552;
  --red:      #C0392B;
  --red-lt:   #E04435;
  --cream:    #FAF7EE;
  --gray-lt:  #F0EDE4;
  --gray:     #9A9590;
  --charcoal: #2E2C28;
  --white:    #FFFFFF;

  --font-display: 'Bebas Neue', sans-serif;
  --font-head:    'Barlow Condensed', sans-serif;
  --font-body:    'Barlow', sans-serif;

  --radius: 4px;
  --shadow: 0 4px 24px rgba(27,42,69,.12);
  --shadow-lg: 0 12px 48px rgba(27,42,69,.18);
  --transition: .25s cubic-bezier(.4,0,.2,1);
}

/* ─── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.65;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ─── Typography ─────────────────────────────────────────── */
h1,h2,h3,h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.1; }
.display { font-family: var(--font-display); letter-spacing: .03em; }

/* ─── Utility ─────────────────────────────────────────────── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.tag {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 2px;
  background: var(--yellow);
  color: var(--navy);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--red); color: var(--white); box-shadow: 0 4px 16px rgba(192,57,43,.35); }
.btn-primary:hover { background: var(--red-lt); box-shadow: 0 8px 24px rgba(192,57,43,.45); }
.btn-outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-yellow { background: var(--yellow); color: var(--navy); }
.btn-yellow:hover { background: var(--yellow-dk); }

/* ─── Noise texture overlay ─────────────────────────────── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: .025;
  pointer-events: none;
  z-index: 9999;
}

/* ─── Navigation ─────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 3px solid var(--yellow);
  transition: box-shadow var(--transition);
}
.site-nav.scrolled { box-shadow: 0 4px 32px rgba(0,0,0,.25); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--yellow);
  letter-spacing: .05em;
  line-height: 1;
}
.nav-logo-text span { color: var(--white); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-links a {
  font-family: var(--font-head);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
  padding: 8px 16px;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--yellow);
  background: rgba(242,196,61,.08);
}
.nav-cta { margin-left: 12px; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--yellow);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 16px 24px 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  gap: 4px;
}
.mobile-menu a {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.8);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: color var(--transition);
}
.mobile-menu a:hover, .mobile-menu a.active { color: var(--yellow); }
.mobile-menu .btn { margin-top: 12px; }

/* ─── Footer ─────────────────────────────────────────────── */
footer {
  background: var(--navy);
  color: rgba(255,255,255,.65);
  padding: 64px 0 32px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand p {
  font-size: .9rem;
  line-height: 1.7;
  max-width: 300px;
  margin-top: 12px;
  color: rgba(255,255,255,.5);
}
.footer-col h4 {
  font-family: var(--font-head);
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: .9rem;
  color: rgba(255,255,255,.55);
  padding: 4px 0;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-size: .8rem;
  color: rgba(255,255,255,.35);
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom a { color: var(--yellow); }
.footer-bottom a:hover { text-decoration: underline; }

/* ─── Page Hero ──────────────────────────────────────────── */
.page-hero {
  padding: 140px 0 72px;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: var(--yellow);
}
.page-hero-stripe {
  position: absolute;
  top: 0; right: 0;
  width: 35%;
  height: 100%;
  background: repeating-linear-gradient(
    -55deg,
    rgba(242,196,61,.04) 0px,
    rgba(242,196,61,.04) 4px,
    transparent 4px,
    transparent 18px
  );
}
.page-hero .tag { margin-bottom: 16px; }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  color: var(--white);
  line-height: .95;
  margin-bottom: 20px;
}
.page-hero h1 span { color: var(--yellow); }
.page-hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,.65);
  max-width: 540px;
  font-weight: 300;
}

/* ─── Section ─────────────────────────────────────────────── */
.section { padding: 88px 0; }
.section-label {
  font-family: var(--font-head);
  font-size: .8rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
  font-weight: 600;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  color: var(--navy);
  line-height: .95;
  margin-bottom: 20px;
}
.section-title span { color: var(--red); }
.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 540px;
  font-weight: 300;
  line-height: 1.75;
}

/* ─── Cards ──────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,.07);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* ─── Divider ─────────────────────────────────────────────── */
.divider {
  width: 48px;
  height: 4px;
  background: var(--yellow);
  border-radius: 2px;
  margin: 20px 0 28px;
}

/* ─── Forms ──────────────────────────────────────────────── */
.form-group {
  margin-bottom: 24px;
}
.form-group label {
  display: block;
  font-family: var(--font-head);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--charcoal);
  background: var(--white);
  border: 2px solid rgba(0,0,0,.12);
  border-radius: var(--radius);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(27,42,69,.08);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.alert {
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 600;
  display: none;
}
.alert.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; display: block; }
.alert.error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; display: block; }

/* ─── Badges / Stats ─────────────────────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.stat-item {
  text-align: center;
  padding: 32px 20px;
  background: var(--navy);
  border-radius: 8px;
  border-bottom: 4px solid var(--yellow);
}
.stat-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: var(--yellow);
  line-height: 1;
}
.stat-label {
  font-family: var(--font-head);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-top: 8px;
}

/* ─── Scroll fade-in animation ────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: none;
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 110px 0 56px; }
  .section { padding: 64px 0; }
}
