/* ============================================
   S&S Texas Rentals - Premium Dark Landing
   Color primary: #3f3c55 (slate purple)
   RGB: 63, 60, 85
   ============================================ */

:root {
  /* Backgrounds */
  --bg-primary: #000000;
  --bg-secondary: #09090B;
  --bg-tertiary: #18181B;

  /* Primary accent - #3f3c55 scale */
  --primary-50: #e8e7ef;
  --primary-100: #d1d0df;
  --primary-200: #a3a1bf;
  --primary-300: #75729f;
  --primary-400: #5a5678;
  --primary-500: #3f3c55;
  --primary-600: #36334a;
  --primary-700: #2c2a3f;
  --primary-800: #222035;
  --primary-900: #19172a;
  --primary-rgb: 63, 60, 85;

  /* Text */
  --text-primary: #FFFFFF;
  --text-secondary: #E4E4E7;
  --text-tertiary: #A1A1AA;
  --text-quaternary: #71717A;

  /* Accents */
  --success: #22C55E;
  --info: #3B82F6;
  --warning: #F59E0B;

  /* Typography */
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --section-padding: clamp(4rem, 10vw, 8rem);
  --container-max: 1280px;
}

/* Reset & base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
  text-decoration: none;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
}

/* ============================================
   Particles
   ============================================ */
.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(var(--primary-rgb), 0.4);
  border-radius: 50%;
  animation: float-particle 20s infinite ease-in-out;
}

@keyframes float-particle {
  0%, 100% { transform: translate(0, 0); opacity: 0.4; }
  25% { transform: translate(100px, -100px); opacity: 0.8; }
  50% { transform: translate(-50px, -200px); opacity: 0.6; }
  75% { transform: translate(-100px, -100px); opacity: 0.8; }
}

/* ============================================
   Navbar
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(var(--primary-rgb), 0.1);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 44px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--primary-500);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  background: rgba(var(--primary-rgb), 0.2);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(var(--primary-rgb), 0.3);
}

.nav-cta::after {
  display: none;
}

.nav-cta:hover {
  background: rgba(var(--primary-rgb), 0.35);
  border-color: var(--primary-500);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.mobile-menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(16px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  z-index: 999;
}

.mobile-menu.active {
  display: flex;
}

.mobile-link {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-primary);
}

/* ============================================
   Hero
   ============================================ */
.hero {
  min-height: 100vh;
  padding: 6rem 0 4rem;
  position: relative;
  z-index: 1;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.hero-bg-gradient {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 70%;
  height: 80%;
  background: radial-gradient(
    ellipse at center,
    rgba(var(--primary-rgb), 0.12) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.hero-content {
  max-width: 600px;
  position: relative;
  z-index: 2;
}

.hero-label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-300);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-label-emoji {
  font-size: 1rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.hero-title-accent {
  background: linear-gradient(
    135deg,
    var(--primary-400) 0%,
    var(--primary-300) 50%,
    var(--primary-200) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  color: var(--text-tertiary);
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-phone {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-quaternary);
}

.reveal-item {
  opacity: 0;
  transform: translateY(24px);
}

.reveal-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

.hero-visual {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  animation: float 6s ease-in-out infinite;
}

.hero-image {
  width: clamp(320px, 32vw, 520px);
  height: auto;
  border-radius: 24px;
}

.hero-video {
  width: clamp(320px, 32vw, 520px);
  height: auto;
  border-radius: 24px;
  display: block;
  object-fit: cover;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-20px) rotate(2deg); }
  50% { transform: translateY(-10px) rotate(-2deg); }
  75% { transform: translateY(-30px) rotate(1deg); }
}

/* Glow */
.glow-primary {
  filter: drop-shadow(0 0 20px rgba(var(--primary-rgb), 0.5))
          drop-shadow(0 0 40px rgba(var(--primary-rgb), 0.3))
          drop-shadow(0 0 60px rgba(var(--primary-rgb), 0.2));
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 1rem 2rem;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary-600) 0%,
    var(--primary-500) 30%,
    var(--primary-400) 60%,
    var(--primary-500) 100%
  );
  background-size: 200% 200%;
  animation: gradient-shift 4s ease infinite;
  color: #ffffff;
  box-shadow:
    0 0 0 1px rgba(var(--primary-rgb), 0.5),
    0 4px 24px rgba(var(--primary-rgb), 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.1);
  box-shadow:
    0 0 0 2px rgba(var(--primary-rgb), 0.8),
    0 8px 40px rgba(var(--primary-rgb), 0.5);
}

.btn-primary.pulse-glow {
  animation: gradient-shift 4s ease infinite, pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(var(--primary-rgb), 0.5),
      0 4px 24px rgba(var(--primary-rgb), 0.4),
      0 0 60px rgba(var(--primary-rgb), 0.25);
  }
  50% {
    box-shadow:
      0 0 0 2px rgba(var(--primary-rgb), 0.8),
      0 8px 40px rgba(var(--primary-rgb), 0.6),
      0 0 80px rgba(var(--primary-rgb), 0.4);
  }
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(var(--primary-rgb), 0.4);
}

.btn-secondary:hover {
  background: rgba(var(--primary-rgb), 0.15);
  border-color: var(--primary-500);
  transform: translateY(-2px);
}

.btn-large {
  padding: 1.25rem 2.5rem;
  font-size: 1.125rem;
}

/* ============================================
   Social Proof
   ============================================ */
.social-proof {
  padding: 3rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  z-index: 1;
}

.social-proof-text {
  text-align: center;
  font-size: 1rem;
  color: var(--text-tertiary);
  margin-bottom: 1.5rem;
}

.social-proof-text .counter {
  color: var(--primary-300);
  font-weight: 700;
}

.social-proof-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.proof-item {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-quaternary);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.3s ease;
}

.proof-item:hover {
  color: var(--primary-300);
  border-color: rgba(var(--primary-rgb), 0.3);
  background: rgba(var(--primary-rgb), 0.08);
}

/* ============================================
   Section titles
   ============================================ */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-tertiary);
  font-size: 1.125rem;
  max-width: 560px;
  margin: 0 auto 3rem;
}

/* ============================================
   Services - Flip Cards
   ============================================ */
.services {
  padding: var(--section-padding) 0;
  position: relative;
  z-index: 1;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

/* Single service: centered card with max-width */
.services-grid--single {
  max-width: 480px;
  margin: 0 auto;
  grid-template-columns: 1fr;
}

.service-card-flip {
  perspective: 1200px;
  min-height: 320px;
  cursor: pointer;
  outline: none;
}

.service-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 320px;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.service-card-flip:hover .service-card-inner,
.service-card-flip:focus .service-card-inner,
.service-card-flip.flipped .service-card-inner {
  transform: rotateY(180deg);
}

.service-card-front,
.service-card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 24px;
  overflow: hidden;
}

.service-card-front {
  background: var(--bg-tertiary);
}

.service-card-back {
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
}

.service-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
  transition: transform 0.6s ease;
}

.service-image--mirror {
  object-position: center right;
  filter: hue-rotate(-10deg) saturate(1.1);
}

.service-card-flip:hover .service-image {
  transform: scale(1.05);
}

.service-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1.5rem 1.5rem;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.4) 60%,
    transparent 100%
  );
}

.service-title-front {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-primary);
}

.service-title-back {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.service-description {
  font-size: 0.9375rem;
  color: var(--text-tertiary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.service-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.feature-tag {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  background: rgba(var(--primary-rgb), 0.2);
  border: 1px solid rgba(var(--primary-rgb), 0.25);
  border-radius: 6px;
  color: var(--primary-200);
}

/* Glass card */
.glass-card {
  background: linear-gradient(
    135deg,
    rgba(var(--primary-rgb), 0.08) 0%,
    rgba(var(--primary-rgb), 0.04) 50%,
    rgba(var(--primary-rgb), 0.08) 100%
  );
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(var(--primary-rgb), 0.15);
  border-radius: 24px;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.3),
    0 2px 4px -2px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  border-color: rgba(var(--primary-rgb), 0.35);
  box-shadow: 0 25px 50px -12px rgba(var(--primary-rgb), 0.25);
  transform: translateY(-4px);
}

/* ============================================
   Showcase / Gallery
   ============================================ */
.showcase {
  padding: var(--section-padding) 0;
  position: relative;
  z-index: 1;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.showcase-card {
  overflow: hidden;
  padding: 0;
}

.showcase-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.showcase-card video {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.showcase-card-content {
  padding: 1.5rem;
}

.showcase-card-content h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.showcase-card-content p {
  font-size: 0.875rem;
  color: var(--text-tertiary);
}

/* ============================================
   Detail gallery (larger images)
   ============================================ */
.detail-gallery {
  padding: var(--section-padding) 0;
  position: relative;
  z-index: 1;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.25rem;
}

.detail-card {
  padding: 0;
  overflow: hidden;
  grid-column: span 6;
}

.detail-card img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.detail-card:nth-child(3n) {
  grid-column: span 12;
}

@media (max-width: 1023px) {
  .detail-card {
    grid-column: span 12;
  }

  .detail-card img {
    height: 360px;
  }
}

@media (max-width: 767px) {
  .detail-card img {
    height: 300px;
  }
}

/* ============================================
   Testimonials
   ============================================ */
.testimonials {
  padding: var(--section-padding) 0;
  position: relative;
  z-index: 1;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  padding: 2rem;
  position: relative;
}

.testimonial-quote {
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--primary-500);
  opacity: 0.6;
  position: absolute;
  top: 1rem;
  left: 1.5rem;
}

.testimonial-text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.testimonial-rating {
  color: var(--warning);
  font-size: 1rem;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
  border: 2px solid rgba(var(--primary-rgb), 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.125rem;
  color: #fff;
}

.testimonial-author strong {
  display: block;
  color: var(--text-primary);
  font-size: 0.9375rem;
}

.testimonial-author span {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

/* ============================================
   About
   ============================================ */
.about {
  padding: var(--section-padding) 0;
  position: relative;
  z-index: 1;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: center;
}

.about-image-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-image {
  width: 220px;
  height: auto;
  border-radius: 24px;
}

.about-content .section-title {
  text-align: left;
  margin-bottom: 1.5rem;
}

.about-content p {
  color: var(--text-tertiary);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.about-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--primary-300);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(var(--primary-rgb), 0.25);
  transition: all 0.2s ease;
}

.social-link:hover {
  color: var(--primary-200);
  border-color: var(--primary-500);
  background: rgba(var(--primary-rgb), 0.1);
}

/* ============================================
   CTA Final
   ============================================ */
.cta-final {
  padding: var(--section-padding) 0;
  position: relative;
  z-index: 1;
  text-align: center;
}

.cta-final-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(var(--primary-rgb), 0.2) 0%,
    rgba(var(--primary-rgb), 0.08) 40%,
    transparent 70%
  );
  pointer-events: none;
}

.cta-final-content {
  position: relative;
  z-index: 2;
}

.cta-final-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.cta-final-subtitle {
  font-size: 1.125rem;
  color: var(--text-tertiary);
  margin-bottom: 2rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.cta-final-note {
  font-size: 0.875rem;
  color: var(--text-quaternary);
  margin-top: 1.5rem;
}

.cta-final .btn-primary {
  animation: gradient-shift 4s ease infinite, pulse-glow 3s ease-in-out infinite;
}

.cta-form-wrapper {
  max-width: 640px;
  margin: 2rem auto 0;
  padding: 2rem;
  text-align: left;
}

.quote-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.quote-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.quote-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.quote-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.quote-required {
  color: var(--warning);
  margin-left: 0.15rem;
}

.quote-field-error {
  margin: 0;
  min-height: 0;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: #f97373;
}

.quote-field-error:empty {
  display: none;
}

.quote-input.quote-input--error {
  border-color: rgba(249, 115, 115, 0.55);
  box-shadow: 0 0 0 1px rgba(249, 115, 115, 0.35);
}

.quote-input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.65);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.quote-input:focus {
  border-color: rgba(var(--primary-rgb), 0.7);
  box-shadow: 0 0 0 1px rgba(var(--primary-rgb), 0.7);
  background: rgba(0, 0, 0, 0.9);
}

.quote-input::placeholder {
  color: var(--text-quaternary);
}

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

.quote-turnstile {
  margin: 0.75rem 0;
  min-height: 65px;
}

.quote-submit {
  width: 100%;
  margin-top: 0.5rem;
}

.quote-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  pointer-events: none;
}

.form-message {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  min-height: 1.25rem;
}

.form-message--pending {
  color: var(--text-tertiary);
}

.form-message--success {
  color: var(--success);
}

.form-message--error {
  color: #f97373;
}

.link-underline {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-logo {
  height: 40px;
  width: auto;
  margin-bottom: 0.75rem;
}

.footer-tagline {
  font-size: 0.9375rem;
  color: var(--text-tertiary);
  max-width: 260px;
}

.footer-links h4 {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-quaternary);
  margin-bottom: 1rem;
}

.footer-links a {
  display: block;
  font-size: 0.9375rem;
  color: var(--text-tertiary);
  margin-bottom: 0.5rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--primary-300);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: var(--text-quaternary);
}

/* ============================================
   Reveal animations
   ============================================ */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal-item.animate-in {
  animation: fade-in-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1023px) {
  .hero {
    padding-top: 5rem;
  }

  .hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-content .section-title {
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .hero-visual {
    margin-top: 1rem;
  }

  .hero-image {
    width: 100%;
    max-width: 320px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card-flip {
    min-height: 280px;
  }

  .service-card-inner {
    min-height: 280px;
  }

  .service-image {
    min-height: 280px;
  }

  .showcase-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-tagline {
    margin-left: auto;
    margin-right: auto;
  }

  .particle:nth-child(n+25) {
    display: none;
  }
}
