/* ============================================
   SAM LONG LANDSCAPING & EXCAVATING
   Design System — Slate/Crimson Industrial Theme
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Source+Sans+3:wght@300;400;500;600;700&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Slate/Charcoal */
  --slate-950: #0c0f13;
  --slate-900: #151a21;
  --slate-800: #1e252e;
  --slate-700: #2a3342;
  --slate-600: #3d4a5c;
  --slate-500: #556478;
  --slate-400: #7a8a9e;
  --slate-300: #a3b1c2;
  --slate-200: #cdd5df;
  --slate-100: #e8ecf1;
  --slate-50: #f4f6f8;

  /* Red (from new logo) */
  --crimson-900: #6e1810;
  --crimson-800: #8c2018;
  --crimson-700: #a82a20;
  --crimson-600: #e03929;
  --crimson-500: #e85040;
  --crimson-400: #f06858;
  --crimson-300: #f48a7e;
  --crimson-200: #f8b0a8;
  --crimson-100: #fcd8d4;
  --crimson-50: #fef2f1;

  /* Tan/Gold (from logo border) */
  --tan-900: #5e4520;
  --tan-800: #7a5a2a;
  --tan-700: #96703a;
  --tan-600: #b08848;
  --tan-500: #b89358;
  --tan-400: #c9a970;
  --tan-300: #d9c08e;
  --tan-200: #e8d6b2;
  --tan-100: #f4ebda;
  --tan-50: #faf6ee;

  /* Neutrals */
  --white: #ffffff;
  --black: #000000;

  /* Semantic */
  --primary: var(--slate-800);
  --primary-light: var(--slate-600);
  --accent: var(--crimson-600);
  --accent-dark: var(--crimson-800);
  --accent-light: var(--crimson-300);
  --accent-secondary: var(--tan-500);
  --accent-secondary-dark: var(--tan-700);
  --bg-dark: var(--slate-900);
  --bg-section-alt: var(--slate-50);
  --text-primary: var(--slate-900);
  --text-secondary: var(--slate-500);
  --text-light: var(--white);
  --text-on-dark: var(--slate-200);

  /* Typography */
  --font-display: 'Rajdhani', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Layout */
  --container-max: 1200px;
  --container-wide: 1400px;
  --header-height: 100px;
  --header-height-scrolled: 72px;

  /* Effects */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.14);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.18);
  --shadow-xl: 0 16px 64px rgba(0, 0, 0, 0.22);
  --shadow-accent: 0 4px 20px rgba(160, 30, 40, 0.3);
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
}

/* --- Utilities --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.container--wide {
  max-width: var(--container-wide);
}

.section {
  padding: var(--space-5xl) 0;
}

.section--dark {
  background: var(--bg-dark);
  color: var(--text-light);
}

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

.section-header {
  text-align: center;
  margin-bottom: var(--space-4xl);
}

.section-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-md);
}

.section--dark .section-label {
  color: var(--accent-light);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

.section--dark .section-subtitle {
  color: var(--text-on-dark);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.9rem 2.2rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.btn--primary {
  background: var(--accent);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--crimson-500);
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn--outline:hover {
  background: var(--white);
  color: var(--slate-900);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn--large {
  padding: 1.15rem 3rem;
  font-size: 1.05rem;
}

/* --- Scroll Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-delay-1 {
  transition-delay: 0.15s;
}

.reveal-delay-2 {
  transition-delay: 0.3s;
}

.reveal-delay-3 {
  transition-delay: 0.45s;
}

.reveal-delay-4 {
  transition-delay: 0.6s;
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: all var(--transition-base);
  background: transparent;
  overflow: visible;
}

.header.scrolled {
  height: var(--header-height-scrolled);
  background: rgba(21, 26, 33, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  flex-direction: column;
  color: var(--white);
  line-height: 1;
  height: 100%;
}

.logo-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.logo-accent {
  color: var(--accent);
}

.logo-tagline {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.6;
  margin-top: 3px;
}

/* Header logo — image, fills header height */
.header-logo-img {
  height: 120px;
  width: auto;
  display: block;
  margin-top: 18px;
  position: relative;
  z-index: 1001;
  transition: height var(--transition-base);
}

.header.scrolled .header-logo-img {
  height: 80px;
  margin-top: 6px;
}

/* Footer logo — image, centered and larger */
.footer-logo {
  display: block;
  margin-bottom: var(--space-lg);
}

.logo-img {
  height: auto;
  width: auto;
  max-height: 130px;
  display: block;
  margin: 0 auto;
  transition: all var(--transition-base);
}

.nav-links {
  display: flex;
  gap: var(--space-xl);
  align-items: center;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  padding: var(--space-xs) 0;
  transition: color var(--transition-fast);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition-base);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--accent);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  background: none;
  border: none;
  padding: var(--space-sm);
}

.hamburger span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition-base);
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    gap: var(--space-2xl);
    background: rgba(21, 26, 33, 0.98);
    backdrop-filter: blur(20px);
    transition: right var(--transition-base);
    padding: var(--space-2xl);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 1.2rem;
  }
}

/* ============================================
   HERO — Split Layout
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--slate-900);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(21, 26, 33, 0.95) 0%,
      rgba(21, 26, 33, 0.8) 40%,
      rgba(21, 26, 33, 0.4) 70%,
      rgba(21, 26, 33, 0.2) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-4xl);
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: calc(var(--header-height) + var(--space-3xl)) var(--space-xl) var(--space-3xl);
  width: 100%;
}

.hero-text {
  color: var(--white);
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent-light);
  border: 1px solid rgba(160, 30, 40, 0.3);
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-xl);
  backdrop-filter: blur(4px);
  background: rgba(160, 30, 40, 0.12);
}

.hero-title {
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  font-weight: 700;
  margin-bottom: var(--space-lg);
  line-height: 1.05;
  letter-spacing: -0.5px;
}

.hero-title .highlight {
  color: var(--accent);
}

.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 300;
  line-height: 1.8;
  opacity: 0.8;
  margin-bottom: var(--space-2xl);
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.hero-image {
  position: relative;
}

.hero-image-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  position: relative;
}

.hero-image-wrapper img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.hero-image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(184, 147, 88, 0.2);
  border-radius: var(--radius-lg);
  pointer-events: none;
}

.hero-float-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--accent);
  color: var(--white);
  width: 110px;
  height: 110px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 2;
}

.hero-float-badge .badge-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
}

.hero-float-badge .badge-text {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 968px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: calc(var(--header-height) + var(--space-2xl));
  }

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

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

  .hero-image {
    display: none;
  }
}

/* ============================================
   STATS — Floating Cards
   ============================================ */
.stats-bar {
  position: relative;
  z-index: 2;
  margin-top: -60px;
  padding-bottom: var(--space-3xl);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-2xl) var(--space-lg);
  text-align: center;
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--accent);
  transition: transform var(--transition-base);
}

.stat-card:hover {
  transform: translateY(-4px);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--slate-800);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stat-label {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

@media (max-width: 968px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
    max-width: 300px;
    margin: 0 auto;
  }
}

/* ============================================
   SERVICES — Alternating Rows
   ============================================ */
.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
  margin-bottom: var(--space-5xl);
}

.service-row:last-child {
  margin-bottom: 0;
}

.service-row.reversed .service-image {
  order: 2;
}

.service-row.reversed .service-text {
  order: 1;
}

.service-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
}

.service-image img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.service-image:hover img {
  transform: scale(1.03);
}

.service-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(184, 147, 88, 0.12);
  border-radius: var(--radius-lg);
  pointer-events: none;
}

.service-number {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 700;
  color: var(--slate-100);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.service-text h3 {
  font-size: 1.8rem;
  margin-bottom: var(--space-md);
  color: var(--slate-800);
}

.service-text p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.service-features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.service-features li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.85rem;
  color: var(--slate-600);
  background: var(--slate-50);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--slate-100);
}

.service-features li::before {
  content: '✓';
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 0.75rem;
}

@media (max-width: 768px) {
  .service-row {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .service-row.reversed .service-image,
  .service-row.reversed .service-text {
    order: unset;
  }

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

/* ============================================
   ABOUT — Timeline Style
   ============================================ */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
  margin-bottom: var(--space-5xl);
}

.about-text h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: var(--space-lg);
}

.about-text .lead {
  font-size: 1.15rem;
  color: var(--accent-dark);
  font-weight: 500;
  margin-bottom: var(--space-lg);
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  font-size: 0.95rem;
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent), var(--slate-200));
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--space-3xl);
  position: relative;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item:nth-child(odd) {
  flex-direction: row;
  padding-right: calc(50% + 30px);
  text-align: right;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
  padding-left: calc(50% + 30px);
  text-align: left;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: var(--accent);
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: var(--shadow-sm);
  z-index: 1;
}

.timeline-content {
  background: var(--white);
  padding: var(--space-xl);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--slate-100);
}

.timeline-year {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-dark);
  margin-bottom: var(--space-xs);
}

.timeline-content h4 {
  font-size: 1.1rem;
  margin-bottom: var(--space-xs);
  color: var(--slate-800);
}

.timeline-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .about-intro {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-dot {
    left: 20px;
  }

  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    flex-direction: column;
    padding: 0 0 0 50px;
    text-align: left;
  }
}

/* ============================================
   PORTFOLIO — Carousel + Lightbox
   ============================================ */
.portfolio-carousel {
  position: relative;
  overflow: hidden;
}

.portfolio-track {
  display: flex;
  gap: var(--space-lg);
  transition: transform var(--transition-slow);
  cursor: grab;
}

.portfolio-track:active {
  cursor: grabbing;
}

.portfolio-item {
  flex: 0 0 calc(33.333% - var(--space-lg));
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.portfolio-item img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.portfolio-item:hover img {
  transform: scale(1.05);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(21, 26, 33, 0.8), transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: var(--space-xl);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-overlay span {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 1px;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-2xl);
}

.carousel-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--slate-300);
  background: transparent;
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}

.carousel-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--slate-900);
}

@media (max-width: 968px) {
  .portfolio-item {
    flex: 0 0 calc(50% - var(--space-lg));
  }
}

@media (max-width: 600px) {
  .portfolio-item {
    flex: 0 0 100%;
  }
}

/* ============================================
   CONTACT
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-4xl);
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: var(--space-lg);
}

.contact-info>p {
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
  font-size: 1rem;
  line-height: 1.8;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.contact-item-icon {
  width: 46px;
  height: 46px;
  min-width: 46px;
  background: var(--amber-50);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-item-icon svg {
  width: 22px;
  height: 22px;
  fill: var(--accent-dark);
}

.contact-item h4 {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--slate-700);
}

.contact-item p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.contact-item a {
  color: var(--accent-dark);
  font-weight: 500;
  transition: color var(--transition-fast);
}

.contact-item a:hover {
  color: var(--accent);
}

/* References section */
.references {
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--slate-100);
}

.references h4 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--slate-600);
  margin-bottom: var(--space-md);
}

.references ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.references li {
  font-size: 0.8rem;
  color: var(--text-secondary);
  background: var(--slate-50);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--slate-100);
}

/* Contact Form */
.contact-form-wrapper {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-3xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--slate-100);
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--slate-700);
  margin-bottom: var(--space-sm);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--slate-800);
  background: var(--white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.12);
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--slate-300);
}

.form-submit {
  margin-top: var(--space-md);
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--slate-900);
  color: var(--slate-300);
  padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-3xl);
  padding-bottom: var(--space-3xl);
  border-bottom: 1px solid var(--slate-700);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-brand .logo-img {
  max-width: 180px;
  max-height: none;
  margin: 0;
}

.footer-brand p {
  color: var(--slate-400);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-top: var(--space-md);
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--space-lg);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-col a {
  font-size: 0.9rem;
  color: var(--slate-400);
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-xl);
  font-size: 0.8rem;
  color: var(--slate-500);
}

.footer-bottom a {
  color: var(--slate-500);
}

.footer-bottom a:hover {
  color: var(--accent);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 1.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.3);
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.lightbox-nav:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--slate-900);
}

.lightbox-prev {
  left: 1.5rem;
}

.lightbox-next {
  right: 1.5rem;
}

.lightbox-caption {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--white);
  letter-spacing: 1px;
  text-align: center;
  background: rgba(0, 0, 0, 0.5);
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-xl);
}

/* ============================================
   CUSTOM MODAL (no browser dialogs)
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-3xl);
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow-xl);
  transform: scale(0.9);
  transition: transform var(--transition-base);
}

.modal-overlay.active .modal {
  transform: scale(1);
}

.modal-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-lg);
  background: var(--amber-50);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-icon svg {
  width: 32px;
  height: 32px;
  fill: var(--accent-dark);
}

.modal h3 {
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
  color: var(--slate-800);
}

.modal p {
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}

.modal-close {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.8rem 2.5rem;
  background: var(--accent);
  color: var(--slate-900);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all var(--transition-base);
}

.modal-close:hover {
  background: var(--amber-400);
  transform: translateY(-1px);
}

/* ============================================
   SCROLL INDICATOR (Hero)
   ============================================ */
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: var(--white);
  opacity: 0.4;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  animation: float 2s ease-in-out infinite;
  z-index: 1;
}

.hero-scroll .arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: rotate(45deg);
}

@keyframes float {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

/* --- Utility Classes (replacing inline styles) --- */
.hidden-field {
  display: none !important;
}

.btn--submit {
  width: 100%;
  justify-content: center;
}

.submit-spinner {
  display: none;
}

.footer-phone {
  color: inherit;
}