/* ==========================================================================
   Components - Trade Masters Inc.
   ========================================================================== */

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  line-height: 1;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  min-height: 48px;
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.15),
    0 3px 6px rgba(0, 0, 0, 0.1);
}

.btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Primary Button */
.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--color-white);
}

/* Secondary Button */
.btn-secondary {
  background-color: var(--color-secondary);
  color: var(--color-primary);
  border-color: var(--color-secondary);
}

.btn-secondary:hover {
  background-color: var(--color-secondary-dark);
  border-color: var(--color-secondary-dark);
  color: var(--color-primary);
}

/* Outline Button */
.btn-outline {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

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

/* Ghost Button */
.btn-ghost {
  background-color: transparent;
  color: var(--color-primary);
  border-color: transparent;
}

.btn-ghost:hover {
  background-color: var(--color-secondary-light);
}

/* White Button (for dark backgrounds) */
.btn-white {
  background-color: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
}

.btn-white:hover {
  background-color: var(--color-cream);
  border-color: var(--color-cream);
  color: var(--color-primary);
}

/* Outline White Button */
.btn-outline-white {
  background-color: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

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

/* Button Sizes */
.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  min-height: 40px;
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-lg);
  min-height: 56px;
}

/* Full Width Button */
.btn-full {
  width: 100%;
}

/* Button with Icon */
.btn svg,
.btn i {
  width: 20px;
  height: 20px;
}

/* ==========================================================================
   Cards
   ========================================================================== */

.card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow:
    0 10px 25px -5px rgba(0, 0, 0, 0.15),
    0 8px 10px -6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition:
    box-shadow var(--transition-base),
    transform var(--transition-base);
}

.card:hover {
  box-shadow:
    0 20px 40px -10px rgba(0, 0, 0, 0.2),
    0 12px 20px -8px rgba(0, 0, 0, 0.15);
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.card-link:hover {
  color: inherit;
}

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

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

.card-body {
  padding: var(--space-6);
}

.card-title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.card-text {
  color: var(--text-secondary);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
}

/* ==========================================================================
   Services Carousel
   ========================================================================== */

.services-carousel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}

.services-carousel .carousel-track {
  display: contents;
}

.carousel-indicators,
.carousel-swipe-hint {
  display: none;
}

@media (max-width: 768px) {
  .services-carousel {
    display: block;
    position: relative;
    margin-left: calc(-1 * var(--space-4));
    margin-right: calc(-1 * var(--space-4));
  }

  .services-carousel .carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: var(--space-2) var(--space-4);
    gap: var(--space-4);
  }

  .services-carousel .carousel-track::-webkit-scrollbar {
    display: none;
  }

  .services-carousel .card-link {
    flex: 0 0 85%;
    scroll-snap-align: center;
    max-width: 320px;
  }

  .services-carousel .card-link:first-child {
    margin-left: calc(7.5% - var(--space-2));
  }

  .services-carousel .card-link:last-child {
    margin-right: calc(7.5% - var(--space-2));
  }

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

  .carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background-color: var(--color-light-gray);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all var(--transition-fast);
  }

  .carousel-dot.active {
    background-color: var(--color-primary);
    width: 24px;
  }

  .carousel-swipe-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    margin-top: var(--space-3);
    color: var(--text-muted);
    font-size: var(--text-sm);
  }

  .carousel-swipe-hint svg {
    width: 16px;
    height: 16px;
    animation: swipeHint 1.5s ease-in-out infinite;
  }

  .carousel-swipe-hint svg:first-child {
    animation-direction: alternate;
  }

  .carousel-swipe-hint svg:last-child {
    animation-direction: alternate-reverse;
  }

  @keyframes swipeHint {
    0%,
    100% {
      opacity: 0.4;
      transform: translateX(0);
    }
    50% {
      opacity: 1;
      transform: translateX(-3px);
    }
  }

  .carousel-swipe-hint svg:last-child {
    animation-name: swipeHintRight;
  }

  @keyframes swipeHintRight {
    0%,
    100% {
      opacity: 0.4;
      transform: translateX(0);
    }
    50% {
      opacity: 1;
      transform: translateX(3px);
    }
  }
}

/* Service Card */
.service-card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  border: 1px solid var(--color-light-gray);
}

.service-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
  border-color: var(--color-primary);
}

.service-card-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-4);
  background-color: var(--color-secondary-light);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

.service-card-icon svg {
  width: 32px;
  height: 32px;
}

.service-card-title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.service-card-text {
  color: var(--text-secondary);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
}

/* ==========================================================================
   Header
   ========================================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background-color: var(--color-white);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: var(--space-6);
}

.header-logo {
  flex-shrink: 0;
}

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

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

.header-nav a {
  padding: var(--space-2) var(--space-4);
  color: var(--text-primary);
  font-weight: var(--font-medium);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--color-primary);
  background-color: var(--color-secondary-light);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.header-phone {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-primary);
  font-weight: var(--font-bold);
  font-size: var(--text-lg);
}

.header-phone svg {
  width: 20px;
  height: 20px;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  padding: var(--space-2);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-primary);
}

.mobile-menu-btn svg {
  width: 28px;
  height: 28px;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-height-mobile);
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-white);
  z-index: var(--z-modal);
  padding: var(--space-6);
  overflow-y: auto;
}

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

.mobile-menu a {
  display: block;
  padding: var(--space-4);
  color: var(--text-primary);
  font-size: var(--text-lg);
  font-weight: var(--font-medium);
  border-bottom: 1px solid var(--color-light-gray);
}

.mobile-menu a:hover {
  color: var(--color-primary);
  background-color: var(--color-secondary-light);
}

.mobile-menu .btn-primary {
  color: var(--color-white);
}

.mobile-menu .btn-primary:hover {
  color: var(--color-white);
  background-color: var(--color-primary-dark);
}

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

  .header-cta .btn {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .header-inner {
    height: var(--header-height-mobile);
  }

  .header-logo img {
    height: 56px;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background-color: var(--bg-dark);
  color: var(--color-secondary);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

.footer-brand {
  max-width: 320px;
}

.footer-logo {
  height: auto;
  width: 320px;
  margin-bottom: var(--space-4);
  background-color: #e8e3d4;
  padding: var(--space-1) var(--space-2) var(--space-1) var(--space-1);
  border-radius: var(--radius-md);
}

.footer-tagline {
  color: var(--color-secondary);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: var(--space-2);
}

.footer-links a {
  color: var(--color-secondary);
  transition: color var(--transition-fast);
}

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

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  color: var(--color-secondary);
}

.footer-contact-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-secondary);
}

.footer-social {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  color: var(--color-secondary);
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.footer-social svg {
  width: 20px;
  height: 20px;
}

.footer-bottom {
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-copyright {
  color: var(--color-gray);
  font-size: var(--text-sm);
}

.footer-copyright a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-copyright a:hover {
  color: var(--color-white);
  text-decoration: underline;
}

.footer-credit {
  width: 100%;
  padding-top: var(--space-4);
  margin-top: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  color: var(--color-gray);
  font-size: var(--text-xs);
  letter-spacing: 0.5px;
}

.footer-credit a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-credit a:hover {
  color: var(--color-white);
  text-decoration: underline;
}

.footer-memberships {
  display: flex;
  gap: var(--space-4);
  align-items: center;
  font-size: var(--text-sm);
  color: var(--color-gray);
}

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

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand {
    margin: 0 auto;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-contact-item {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   Back to Top Button
   ========================================================================== */

.back-to-top {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  width: 48px;
  height: 48px;
  background-color: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-base);
  z-index: var(--z-fixed);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-2px);
}

.back-to-top svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: calc(var(--bottom-nav-height) + var(--space-4));
    right: var(--space-4);
    width: 44px;
    height: 44px;
  }

  .back-to-top svg {
    width: 20px;
    height: 20px;
  }
}

/* ==========================================================================
   Mobile Bottom Navigation
   ========================================================================== */

.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-nav-height);
  background-color: var(--color-white);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: var(--z-fixed);
}

.bottom-nav-inner {
  display: flex;
  height: 100%;
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  transition: color var(--transition-fast);
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
  color: var(--color-primary);
}

.bottom-nav-item svg {
  width: 24px;
  height: 24px;
}

.bottom-nav-item.call-btn {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.bottom-nav-item.call-btn:hover {
  background-color: var(--color-primary-dark);
  color: var(--color-white);
}

@media (max-width: 768px) {
  .bottom-nav {
    display: block;
  }

  body {
    padding-bottom: var(--bottom-nav-height);
  }
}

/* ==========================================================================
   Forms
   ========================================================================== */

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

.form-label {
  display: block;
  margin-bottom: var(--space-2);
  font-weight: var(--font-medium);
  color: var(--text-primary);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  border: 2px solid var(--color-light-gray);
  border-radius: var(--radius-md);
  background-color: var(--color-white);
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(117, 22, 17, 0.1);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b6560' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
  padding-right: var(--space-10);
}

.form-hint {
  margin-top: var(--space-1);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.form-error {
  margin-top: var(--space-1);
  font-size: var(--text-sm);
  color: #dc2626;
}

/* Honeypot for spam protection */
.form-honeypot {
  position: absolute;
  left: -9999px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
  position: relative;
  min-height: 700px;
  display: flex;
  align-items: center;
  background-color: var(--bg-dark);
  overflow: hidden;
  border-radius: 0 0 50px 50px;
}

.hero-bg {
  position: absolute;
  inset: -50px 0;
  overflow: hidden;
}

.hero-bg img {
  width: 100%;
  height: 120%;
  object-fit: cover;
  opacity: 0.4;
  transform: translateZ(0);
  will-change: transform;
}

@media (max-width: 768px) {
  .hero-bg {
    inset: 0;
  }

  .hero-bg img {
    height: 100%;
    content: url("../images/hero-mobile.jpg");
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(45, 42, 39, 0.9) 0%,
    rgba(45, 42, 39, 0.7) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  color: var(--color-white);
}

.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  color: var(--color-secondary);
  font-size: var(--text-lg);
  white-space: nowrap;
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: var(--space-4);
}

.hero-tagline::before,
.hero-tagline::after {
  content: "";
  width: 40px;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--color-primary),
    var(--color-secondary)
  );
}

.hero-tagline::before {
  background: linear-gradient(90deg, transparent, var(--color-primary));
}

.hero-tagline::after {
  background: linear-gradient(90deg, var(--color-primary), transparent);
}

.hero-title {
  font-size: var(--text-5xl);
  font-weight: var(--font-bold);
  color: var(--color-white);
  margin-bottom: var(--space-4);
  line-height: var(--leading-tight);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-subtitle {
  font-size: var(--text-xl);
  color: var(--color-white);
  margin-bottom: var(--space-8);
  line-height: var(--leading-relaxed);
  padding: var(--space-4) var(--space-5);
  background: rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--color-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  backdrop-filter: blur(4px);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* Hero Split Layout */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 380px;
  grid-template-rows: auto auto;
  gap: var(--space-6) var(--space-12);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text-top {
  grid-column: 1;
  grid-row: 1;
  color: var(--color-white);
  animation: slideInLeft 0.8s ease-out both;
}

.hero-text-bottom {
  grid-column: 1;
  grid-row: 2;
  color: var(--color-white);
  animation: slideInLeft 0.8s ease-out 0.2s both;
}

.hero-text-bottom .hero-subtitle {
  margin-bottom: var(--space-6);
}

.hero-form-card {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  background-color: var(--color-white);
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.4),
    0 12px 24px -8px rgba(0, 0, 0, 0.3);
  animation: slideInRight 0.8s ease-out 0.3s both;
}

.hero-form-card h3 {
  font-size: var(--text-xl);
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.hero-form-card > p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
}

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

.hero-form .form-input,
.hero-form .form-select {
  padding: var(--space-3);
  font-size: var(--text-sm);
}

@media (max-width: 1024px) {
  .hero-split {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: var(--space-6);
  }

  .hero-text-top {
    grid-column: 1;
    grid-row: 1;
    text-align: center;
    animation: fadeInUp 0.8s ease-out 0.5s both;
  }

  .hero-form-card {
    grid-column: 1;
    grid-row: 2;
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
    animation: fadeInUp 0.8s ease-out 0.5s both;
  }

  .hero-text-bottom {
    grid-column: 1;
    grid-row: 3;
    text-align: center;
    animation: fadeInUp 0.8s ease-out 0.5s both;
  }

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

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: var(--space-8) 0;
  }

  .hero-tagline {
    font-size: var(--text-sm);
    letter-spacing: 1px;
    gap: var(--space-2);
  }

  .hero-tagline::before,
  .hero-tagline::after {
    width: 20px;
  }

  .hero-title {
    font-size: var(--text-3xl);
  }

  .hero-subtitle {
    display: none;
  }

  .hero-cta {
    flex-wrap: nowrap;
    gap: var(--space-2);
  }

  .hero-cta .btn {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-sm);
    min-height: 40px;
    white-space: nowrap;
  }

  .hero-form-card {
    max-width: 320px;
    padding: var(--space-4);
  }

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

  .hero-form .form-input,
  .hero-form .form-select {
    padding: var(--space-2);
  }
}

/* ==========================================================================
   Section Headers
   ========================================================================== */

.intro-text {
  display: none;
}

@media (max-width: 768px) {
  .intro-text {
    display: block;
    text-align: center;
    font-size: var(--text-lg);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-8);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }

  .intro-text + .section-header .section-subtitle {
    display: none;
  }
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-12);
}

.section-label {
  display: inline-block;
  color: var(--color-primary);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--space-2);
}

.section-title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
}

/* ==========================================================================
   CTA Banner
   ========================================================================== */

.cta-banner {
  background-color: var(--bg-light);
  padding: var(--space-12) 0;
  text-align: center;
}

.cta-banner-inner {
  background: linear-gradient(145deg, #8a1f18 0%, #751611 50%, #5a100c 100%);
  color: var(--color-white);
  padding: var(--space-12) var(--space-8);
  border-radius: var(--radius-xl);
  max-width: 800px;
  margin: 0 auto;
  border: 2px solid #e8e3d4;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.3),
    0 5px 15px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.cta-banner-title {
  font-size: var(--text-3xl);
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.cta-banner-text {
  font-size: var(--text-lg);
  color: var(--color-secondary);
  margin-bottom: var(--space-6);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
}

@media (max-width: 768px) {
  .cta-banner-buttons {
    flex-wrap: nowrap;
  }

  .cta-banner-buttons .btn {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-sm);
    min-height: 40px;
    white-space: nowrap;
  }
}

/* ==========================================================================
   Project Grid (Full Screen)
   ========================================================================== */

.project-grid-section {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding-top: var(--space-16);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 100vh;
}

.project-cell {
  position: relative;
  overflow: hidden;
}

.project-cell img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-cell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
  transition: background 0.3s ease;
}

.project-cell:hover::before {
  background: rgba(117, 22, 17, 0.6);
}

.project-cell:hover img {
  transform: scale(1.1);
}

.project-label {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  text-align: center;
}

@media (max-width: 768px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
    height: auto;
  }

  .project-cell {
    aspect-ratio: 1;
  }

  .project-cell:last-child {
    display: none;
  }

  .project-label {
    font-size: var(--text-base);
  }
}

/* ==========================================================================
   Gallery / Lightbox
   ========================================================================== */

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

.gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius-lg);
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

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

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

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.4) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.gallery-item:hover::after {
  opacity: 1;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background-color: rgba(0, 0, 0, 0.95);
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
}

.lightbox.active {
  display: flex;
}

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

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.lightbox-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 48px;
  height: 48px;
  background-color: var(--color-white);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-fast);
  z-index: 10;
}

.lightbox-close:hover {
  background-color: var(--color-cream);
}

.lightbox-close svg {
  width: 24px;
  height: 24px;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background-color: var(--color-white);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-fast);
}

.lightbox-nav:hover {
  background-color: var(--color-cream);
}

.lightbox-prev {
  left: var(--space-4);
}

.lightbox-next {
  right: var(--space-4);
}

@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

/* ==========================================================================
   Map
   ========================================================================== */

.map-container {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================================
   Testimonials Placeholder
   ========================================================================== */

.testimonials-placeholder {
  background-color: var(--bg-secondary);
  padding: var(--space-12);
  border-radius: var(--radius-xl);
  text-align: center;
}

.testimonials-placeholder-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-4);
  color: var(--color-primary);
  opacity: 0.5;
}

.testimonials-placeholder-text {
  font-size: var(--text-xl);
  font-style: italic;
  color: var(--text-secondary);
}

/* ==========================================================================
   Timeline
   ========================================================================== */

.timeline {
  position: relative;
  padding-left: var(--space-8);
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--color-primary);
}

.timeline-item {
  position: relative;
  padding-bottom: var(--space-8);
}

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

.timeline-item::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--space-8) - 6px);
  top: 0;
  width: 14px;
  height: 14px;
  background-color: var(--color-primary);
  border-radius: var(--radius-full);
  border: 3px solid var(--color-white);
  box-shadow: var(--shadow-md);
}

.timeline-year {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.timeline-content {
  color: var(--text-secondary);
}

/* ==========================================================================
   Feature List
   ========================================================================== */

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-3);
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  margin: 0;
  background: var(--color-white);
  color: var(--text-primary);
  font-weight: var(--font-medium);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-primary);
  box-shadow: var(--shadow-sm);
  line-height: var(--leading-snug);
}

.feature-list li::before {
  content: "";
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background-color: var(--color-primary);
  border-radius: var(--radius-full);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 70%;
}

/* ==========================================================================
   Track Record Section
   ========================================================================== */

.track-record-section {
  position: relative;
  background-image: url("../images/construction-workers-01.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.track-record-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(232, 227, 212, 0.55);
}

.track-record-section > .container {
  position: relative;
  z-index: 1;
}

.track-record-section .section-label,
.track-record-section .stat-number {
  color: var(--color-primary);
}

.track-record-section .section-title {
  color: var(--text-primary);
}

.track-record-section .section-subtitle {
  color: var(--color-black);
}

.track-record-section .stat-label {
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .track-record-section {
    background-attachment: scroll;
  }
}

/* ==========================================================================
   Stats
   ========================================================================== */

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

.stat-item {
  padding: var(--space-6);
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stat-label {
  color: var(--text-secondary);
  font-size: var(--text-base);
}

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

/* ==========================================================================
   Page Header
   ========================================================================== */

.page-header {
  background-color: var(--bg-dark);
  padding: var(--space-16) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-charcoal) 100%
  );
  opacity: 0.95;
}

.page-header-content {
  position: relative;
  z-index: 1;
}

.page-header-title {
  color: var(--color-white);
  font-size: var(--text-4xl);
  margin-bottom: var(--space-4);
}

.page-header-subtitle {
  color: var(--color-secondary);
  font-size: var(--text-lg);
  max-width: 600px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-6);
  font-size: var(--text-sm);
}

.breadcrumb a {
  color: var(--color-secondary);
}

.breadcrumb a:hover {
  color: var(--color-white);
}

.breadcrumb span {
  color: var(--color-gray);
}
