/*
  Base colors:
  #FFFFFF  — white  (primary backgrounds)
  #111111  — black  (primary text, nav, footer)

  Accent colors (darkened):
  #7A0C15  — dark red   (headings, borders, badges)
  #555555  — dark gray  (secondary text, dividers)
  #D99362  — tan        (CTA buttons, links, hover states)
*/

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: #111111;
  background-color: #ffffff;
  line-height: 1.6;
}

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

ul {
  list-style: none;
}

/* ─── Layout ─── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 24px;
}

/* ─── Header / Nav ─── */
header {
  background-color: #111111;
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo h1 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  line-height: 1.3;
  color: #ffffff;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #D99362;
}

/* Hamburger button — hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* Animate hamburger → X when open */
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Hero ─── */
#hero {
  background-image: url('images/Header-Background-logo.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #ffffff;
  text-align: center;
  height: calc(100vh - 56px);
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.58);
}

#hero .hero-content {
  position: relative;
  z-index: 1;
}

.hero-content h2 {
  font-size: clamp(1.6rem, 5vw, 2.8rem);
  margin-bottom: 16px;
  line-height: 1.25;
  color: #ffffff;
}

.hero-content p {
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  color: #cccccc;
  margin-bottom: 36px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-block;
  background-color: #D99362;
  color: #ffffff;
  padding: 14px 36px;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: background-color 0.2s, transform 0.15s;
}

.btn:hover {
  background-color: #bf7d4e;
  transform: translateY(-1px);
}

/* ─── About ─── */
#about {
  background-color: #ffffff;
  border-bottom: 3px solid #7A0C15;
}

#about h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 24px;
  color: #111111;
}

.about-highlights {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #f5f5f5;
  border-left: 3px solid #7A0C15;
  padding: 12px 18px;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #111111;
}

.highlight-item i {
  color: #7A0C15;
  font-size: 1.1rem;
}

#about p {
  max-width: 720px;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  color: #333333;
  margin-bottom: 16px;
}

#about p:last-child {
  margin-bottom: 0;
}

.spanish-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #7A0C15;
  color: #ffffff !important;
  padding: 10px 18px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem !important;
}

.spanish-note i {
  font-size: 1rem;
  flex-shrink: 0;
}

/* ─── Why Choose Cruz ─── */
#why-choose {
  background-color: #111111;
  color: #ffffff;
}

#why-choose h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 10px;
  color: #ffffff;
}

#why-choose h2 i {
  color: #D99362;
  margin-right: 6px;
}

.why-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: #D99362;
  font-weight: 600;
  margin-bottom: 24px;
}

#why-choose p {
  max-width: 760px;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 16px;
}

.why-list {
  list-style: none;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.why-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
}

.why-list li i {
  color: #D99362;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* ─── Services ─── */
#services {
  background-color: #f5f5f5;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
}

#services h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 32px;
  color: #111111;
}

.service-type-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.service-type-badges span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #111111;
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.service-type-badges span i {
  color: #D99362;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background-color: #ffffff;
  border-left: 4px solid #7A0C15;
  padding: 28px 24px;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.service-icon {
  font-size: 1.8rem;
  color: #7A0C15;
  margin-bottom: 14px;
  display: block;
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: #7A0C15;
}

.service-card p {
  font-size: 0.95rem;
  color: #555555;
}

/* ─── Project Carousel ─── */
.gallery-heading {
  font-size: 1.3rem;
  font-weight: 700;
  color: #111111;
  margin-top: 56px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #7A0C15;
}

.carousel {
  overflow: hidden;
  width: 100%;
  border-radius: 6px;
}

.carousel-track {
  display: flex;
  gap: 14px;
  width: max-content;
  will-change: transform;
}

.carousel-item {
  flex-shrink: 0;
  width: 340px;
  height: 255px;
  border-radius: 4px;
  overflow: hidden;
  background-color: #e0e0e0;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

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


/* ─── Where We Work ─── */
#where-we-work {
  background-color: #ffffff;
  border-bottom: 3px solid #7A0C15;
}

#where-we-work h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 16px;
  color: #111111;
}

#where-we-work p {
  max-width: 720px;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  color: #333333;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 28px;
}

.location-icon {
  color: #7A0C15;
  font-size: 1.1rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.map-wrapper {
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid #e0e0e0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  line-height: 0;
}

/* ─── Contact ─── */
#contact {
  background-color: #111111;
  color: #ffffff;
}

#contact h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 16px;
  color: #ffffff;
}

#contact > .container > p {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 20px;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
}

.contact-info p {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 14px;
  font-size: 1rem;
}

.contact-info i {
  font-size: 1.1rem;
  color: #D99362;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.contact-info a {
  color: #D99362;
  font-weight: 700;
  font-size: 1.1rem;
  transition: color 0.2s;
}

.contact-info a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* ─── Hero scroll arrow ─── */
.scroll-down {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.4rem;
  z-index: 1;
  transition: color 0.2s, transform 0.2s;
  animation: bounce 2s infinite;
}

.scroll-down:hover {
  color: #D99362;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ─── Footer ─── */
footer {
  background-color: #111111;
  color: #555555;
  text-align: center;
  padding: 24px 24px 20px;
  font-size: 0.85rem;
  border-top: 1px solid #222222;
}

.footer-social {
  margin-bottom: 10px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: #222222;
  color: #D99362;
  font-size: 1.1rem;
  transition: background-color 0.2s, color 0.2s;
}

.footer-social a:hover {
  background-color: #D99362;
  color: #ffffff;
}

/* ════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ════════════════════════════════════════ */

/* ─── Tablet (≤ 768px) ─── */
@media (max-width: 768px) {
  .container {
    padding: 52px 20px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #111111;
    padding: 12px 0;
    border-top: 1px solid #2a2a2a;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li a {
    display: block;
    padding: 12px 24px;
    font-size: 1rem;
    border-bottom: 1px solid #222222;
  }

  .nav-links li:last-child a {
    border-bottom: none;
  }

  nav {
    position: relative;
  }

  #hero {
    padding: 40px 20px;
  }

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

  .service-type-badges {
    margin-bottom: 24px;
  }

  .carousel-item {
    width: 260px;
    height: 195px;
  }
}

/* ─── Mobile (≤ 480px) ─── */
@media (max-width: 480px) {
  .container {
    padding: 40px 16px;
  }

  .logo h1 {
    font-size: 0.95rem;
  }

  #hero {
    padding: 40px 16px;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.95rem;
    width: 100%;
    text-align: center;
  }

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

  .carousel-item {
    width: 220px;
    height: 165px;
  }

  .service-card {
    padding: 20px;
  }

  footer {
    font-size: 0.8rem;
    padding: 16px;
  }
}
