/* =============================================
   Transamerican Development Corp — Brand Styles
   ============================================= */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,700;1,400;1,700&display=swap');

/* Brand CSS Variables — Red, White, Black, Gray */
:root {
  --color-primary: #111111;
  --color-primary-light: #2a2a2a;
  --color-secondary: #d42027;
  --color-secondary-hover: #b51c22;
  --color-accent: #d42027;
  --color-bg-light: #f0f0f0;
  --color-card-bg: #d5d5d5;
  --color-text-dark: #111111;
  --color-text-medium: #555555;
  --color-text-light: #ffffff;
  --color-border: #333333;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

/* Base */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-dark);
  opacity: 0;
  animation: pageFadeIn 0.4s ease forwards;
}

@keyframes pageFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Smooth transitions for all interactive elements */
a, button {
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
}

/* Scroll Reveal Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* Sticky Header (white bg) */
.site-header {
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border-bottom-color: #e5e7eb;
}

/* Active Nav Link */
.nav-link.active-nav {
  color: var(--color-secondary) !important;
  position: relative;
}

.nav-link.active-nav::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-secondary);
  border-radius: 1px;
}

/* Hero */
.hero-overlay {
  background: linear-gradient(
    to right,
    rgba(17, 17, 17, 0.78) 0%,
    rgba(17, 17, 17, 0.50) 50%,
    rgba(17, 17, 17, 0.25) 100%
  );
}

/* Service Cards */
.service-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.service-card .card-btn {
  transition: all 0.3s ease;
}

.service-card:hover .card-btn {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  border-color: var(--color-primary);
}

/* Mobile Nav (white bg) */
.mobile-nav {
  transform: translateX(100%);
  transition: transform 0.3s ease;
  background: #ffffff;
}

.mobile-nav.open {
  transform: translateX(0);
}

/* Star Icon Pulse */
.star-icon {
  transition: transform 0.3s ease;
}

.service-card:hover .star-icon {
  transform: scale(1.15);
}

/* CTA Button Hover */
.cta-btn {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cta-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.cta-btn:hover::after {
  transform: translateX(0);
}

/* Footer Links */
.footer-link {
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-link:hover {
  color: var(--color-accent);
  padding-left: 4px;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-light);
}

::-webkit-scrollbar-thumb {
  background: var(--color-primary-light);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}
