*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #111111;
  color: #f5f5f5;
  line-height: 1.5;
}

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

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

.container {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
}

.section {
  padding: 4rem 0;
}

.section-alt {
  padding: 4rem 0;
  background: #181818;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.section-subtitle {
  margin-bottom: 2rem;
  max-width: 40rem;
  color: #c7c7c7;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.92);
  border-bottom: 1px solid #262626;
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.75rem;
  gap: 1rem;
}

.logo img {
  height: 56px;
}

.main-nav {
  position: relative;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.95rem;
  text-transform: uppercase;
}

.nav-links a {
  padding-block: 0.25rem;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  border-bottom-color: #e53935;
}

.btn-quote-nav {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #e53935;
}

.btn-quote-nav:hover {
  background: #e53935;
}

/* Language toggle with underline style */

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
}

.lang-btn {
  border: none;
  background: transparent;
  color: #cccccc;
  cursor: pointer;
  font-weight: 600;
  padding: 0;
  text-decoration: none;
}

.lang-btn.active {
  text-decoration: underline;
  color: #ffd54f;
}

.lang-toggle span {
  color: #555;
}

/* Nav toggle (mobile) */

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 0.2rem;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: #ffffff;
}

/* Hero */

.hero {
  position: relative;
  min-height: 70vh;
  color: #ffffff;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
  filter: contrast(1.05) brightness(0.7);
  z-index: -2;
}

.hero .overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(245, 245, 245, 0.12), transparent),
              linear-gradient(to bottom, rgba(0, 0, 0, 0.7), #000000);
  z-index: -1;
}

.hero-content {
  padding: 5.5rem 0 4rem 0;
}

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  max-width: 32rem;
}

.hero-subtitle {
  margin-top: 1rem;
  max-width: 32rem;
  color: #f1f1f1;
  font-size: 1.02rem;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Buttons */

.btn-primary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
}

.btn-primary {
  background: linear-gradient(135deg, #e53935, #ffb300);
  border: none;
  color: #000;
}

.btn-primary:hover {
  filter: brightness(1.08);
}

.btn-outline {
  border: 1px solid #e0e0e0;
  color: #f5f5f5;
  background: transparent;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* Intro */

.intro {
  background: #101010;
  padding: 2.5rem 0;
  border-bottom: 1px solid #242424;
}

.intro-inner {
  text-align: center;
}

.intro-inner h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Services */

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

.service-card {
  background: #111111;
  border-radius: 0.75rem;
  padding: 1.5rem 1.4rem;
  border: 1px solid #272727;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.service-icon {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

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

/* About */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 2rem;
  align-items: flex-start;
}

.about-text p + p {
  margin-top: 0.85rem;
}

.about-highlight {
  background: #111111;
  border-radius: 0.75rem;
  padding: 1.5rem 1.4rem;
  border: 1px solid #333333;
}

.about-highlight h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.about-highlight ul {
  list-style: disc;
  padding-left: 1.1rem;
  font-size: 0.95rem;
  color: #d5d5d5;
}

.about-highlight li + li {
  margin-top: 0.4rem;
}

/* Safety */

.safety-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.safety-card {
  background: #111111;
  padding: 1.5rem 1.4rem;
  border-radius: 0.75rem;
  border: 1px solid #333333;
}

.safety-card h3 {
  margin-bottom: 0.6rem;
}

/* Gallery */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.gallery-item {
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid #2e2e2e;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

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

/* Lightbox basic */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-height: 90vh;
  max-width: 90vw;
  border-radius: 0.75rem;
}

/* Videos */

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.video-card {
  background: #111111;
  border-radius: 0.75rem;
  padding: 1.5rem 1.4rem 1.2rem;
  border: 1px solid #333333;
}

.video-frame {
  aspect-ratio: 16 / 9;
  border-radius: 0.5rem;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Forms */

form {
  width: 100%;
}

.quote-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.4fr) minmax(0, 3fr);
  gap: 2rem;
  align-items: flex-start;
}

.quote-form-wrapper,
.contact-form-wrapper {
  background: #111111;
  border-radius: 0.75rem;
  padding: 1.5rem 1.4rem;
  border: 1px solid #333333;
}

.form-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.form-group {
  flex: 1 1 160px;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #f0f0f0;
}

input,
select,
textarea {
  border-radius: 0.5rem;
  border: 1px solid #424242;
  background: #050505;
  color: #f5f5f5;
  padding: 0.65rem 0.75rem;
  font-size: 0.95rem;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #e53935;
  outline-offset: 1px;
}

textarea {
  resize: vertical;
}

.form-note {
  font-size: 0.8rem;
  color: #c0c0c0;
  margin-top: 0.25rem;
  margin-bottom: 0.75rem;
}

.form-success {
  display: none;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: #c5e1a5;
}

.hidden {
  display: none;
}

/* Partners */

.partners {
  border-top: 1px solid #242424;
}

.partners-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 1.5rem;
}

.partner-card {
  flex: 1 1 220px;
  background: #111111;
  border-radius: 0.75rem;
  padding: 1rem;
  border: 1px solid #333333;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.partner-card img {
  max-height: 100px;
  object-fit: contain;
}

/* Footer */

.site-footer {
  background: #050505;
  border-top: 1px solid #242424;
  padding: 1.5rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-left p {
  font-size: 0.85rem;
  color: #bdbdbd;
}

.footer-partners {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.footer-partners img {
  height: 36px;
  width: auto;
  border-radius: 0.4rem;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.footer-company-block p {
  font-size: 0.8rem;
  color: #e0e0e0;
  text-align: right;
}

.footer-logo img {
  height: 60px;
  border-radius: 0.5rem;
}

/* Responsive */

@media (max-width: 900px) {
  .about-grid,
  .quote-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-company-block p {
    text-align: left;
  }
}

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

  .nav-links {
    position: absolute;
    right: 0;
    top: 120%;
    flex-direction: column;
    align-items: flex-start;
    background: #050505;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    border: 1px solid #333333;
    min-width: 210px;
    display: none;
  }

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

  .logo img {
    height: 48px;
  }

  .hero {
    min-height: 65vh;
  }

  .hero-content {
    padding-top: 4.5rem;
  }
}

/* Mobile-specific language toggle: show EN / ES instead of full text */
@media (max-width: 520px) {

  .lang-toggle button[data-lang="en"],
  .lang-toggle button[data-lang="es"] {
    font-size: 0;
    position: relative;
  }

  .lang-toggle button[data-lang="en"]::after {
    content: 'EN';
    font-size: 0.85rem;
    font-weight: 600;
    color: inherit;
  }

  .lang-toggle button[data-lang="es"]::after {
    content: 'ES';
    font-size: 0.85rem;
    font-weight: 600;
    color: inherit;
  }

  .lang-toggle button[data-lang="en"].active::after,
  .lang-toggle button[data-lang="es"].active::after {
    text-decoration: underline;
    color: #ffd54f;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .intro-inner h2 {
    font-size: 1.3rem;
  }
}
