:root {
  --bg-dark: #221d25;
  --bg-panel: rgba(55, 45, 58, 0.86);
  --bg-card: rgba(74, 61, 78, 0.88);
  --text-main: #f6f3f8;
  --text-soft: #ddd7de;
  --accent: #f07a22;
  --accent-dark: #c85d11;
  --whatsapp: #25d366;
  --whatsapp-dark: #159447;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  --radius-lg: 24px;
  --radius-md: 18px;
  --border: rgba(255, 255, 255, 0.08);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  color: var(--text-main);
  background: var(--bg-dark);
  position: relative;
  overflow-x: hidden;
}

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

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(27, 22, 31, 0.78), rgba(27, 22, 31, 0.88)),
    url('assets/bg-texture.jpg') center/320px repeat;
  z-index: -2;
}

.page-bg {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top center, rgba(255, 149, 0, 0.08), transparent 34%);
  z-index: -1;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
  background: rgba(27, 22, 31, 0.82);
  border-bottom: 1px solid var(--border);
  transition: background 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(27, 22, 31, 0.94);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 12px 0;
  transition: padding 0.25s ease;
}

.site-header.is-scrolled .nav-wrap {
  padding: 8px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand img {
  width: 240px;
  max-width: 100%;
  transition: width 0.25s ease, transform 0.25s ease;
}

.site-header.is-scrolled .brand img {
  width: 180px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-links a:hover {
  color: #fff;
  opacity: 0.88;
}

/* BUTTONS */
.nav-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  border: 0;
  cursor: pointer;
}

.nav-cta,
.btn-primary {
  background: linear-gradient(180deg, #ff8f34, var(--accent-dark));
  color: #fff;
  box-shadow: 0 12px 22px rgba(240, 122, 34, 0.25);
}

.nav-cta {
  padding: 12px 18px;
}

.btn {
  padding: 15px 24px;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.09);
  color: var(--text-main);
  border: 1px solid var(--border);
}

.btn-whatsapp {
  background: linear-gradient(180deg, var(--whatsapp), var(--whatsapp-dark));
  color: #fff;
  box-shadow: 0 12px 22px rgba(37, 211, 102, 0.22);
}

.btn-large {
  padding: 16px 28px;
  width: 100%;
}

.nav-cta:hover,
.btn:hover {
  transform: translateY(-2px);
}

/* SECTIONS */
.section-spacing {
  margin-top: 28px;
}

.section-card {
  position: relative;
}

.hero {
  padding: 34px 0 0;
}

.hero-grid,
.contact-grid {
  display: grid;
  gap: 28px;
}

.hero-grid {
  grid-template-columns: 420px minmax(0, 1fr);
  align-items: center;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-image-wrap {
  padding: 26px 0 0 26px;
  min-width: 0;
}

.hero-image-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  border-radius: 26px 26px 0 0;
  overflow: hidden;
}

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

.hero-content {
  padding: 42px;
  min-width: 0;
}

.hero-content,
.hero-content h1,
.hero-content p,
.hero-actions,
.hero-location {
  max-width: none;
}

.hero h1,
.section-heading h2 {
  margin: 0;
  line-height: 1.02;
}

.hero h1 {
  font-size: clamp(2.3rem, 5vw, 4rem);
  font-weight: 800;
}

.hero h1 span,
.section-heading h2,
.hero-location strong {
  color: var(--accent);
}

.hero p,
.section-heading p,
.service-card p,
.site-footer p,
.contact-item span:last-child {
  color: var(--text-soft);
}

.hero-location {
  margin: 0 0 16px;
  font-size: 1rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin: 20px 0 0;
  max-width: none;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.services,
.contact {
  padding: 0 0 4px;
}

.services > .container,
.contact > .container {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 42px 28px;
  overflow: hidden;
}

.section-heading {
  text-align: center;
  margin-bottom: 28px;
}

.section-heading h2 {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
}

.section-heading p {
  max-width: 860px;
  margin: 14px auto 0;
  line-height: 1.7;
}

/* SERVICES */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.service-card,
.contact-cta-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.service-card {
  padding: 22px;
  text-align: center;
  min-width: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.32);
}

.service-icon {
  height: 170px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
}

.service-icon img {
  max-height: 170px;
  width: auto;
  object-fit: contain;
}

.service-card h3 {
  margin: 8px 0 10px;
  color: var(--accent);
  font-size: 1.8rem;
}

.service-card p {
  line-height: 1.7;
  margin: 0;
}

/* CONTACT */
.contact-grid {
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr) minmax(0, 1fr);
  align-items: center;
  width: 100%;
}

.contact-grid > * {
  min-width: 0;
}

.contact-details {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  padding: 16px 18px;
  border-radius: 14px;
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

.contact-item span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.contact-icon {
  font-size: 1.35rem;
  width: 42px;
  height: 42px;
  min-width: 42px;
  display: grid;
  place-items: center;
  background: rgba(240, 122, 34, 0.16);
  border-radius: 999px;
}

.contact-center-graphic {
  display: grid;
  place-items: center;
  min-width: 0;
}

.contact-center-graphic img {
  max-width: 220px;
  width: 100%;
}

.contact-cta-card {
  padding: 24px;
  display: grid;
  gap: 14px;
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

/* FOOTER */
.site-footer {
  padding: 34px 0 90px;
}

.footer-wrap {
  text-align: center;
}

.footer-services {
  color: var(--accent);
  font-weight: 800;
}

.footer-services span {
  color: var(--text-main);
}

/* FLOATING WHATSAPP */
.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #26d367, #159447);
  color: white;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(37, 211, 102, 0.3);
}

.wa-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 50%;
}

/* TABLET + SMALLER DESKTOP */
@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-image-wrap {
    padding: 22px 22px 0;
  }

  .hero-content {
    padding: 28px 22px 34px;
    width: 100%;
  }

  .hero h1,
  .hero p,
  .hero-actions,
  .hero-location {
    width: 100%;
    max-width: 100%;
  }

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

  .contact-center-graphic {
    order: 3;
  }

  .contact-center-graphic img {
    max-width: 180px;
  }
}

/* LANDSCAPE MOBILE / SMALL TABLET */
@media (max-width: 820px) {
  .hero-content {
    text-align: center;
  }

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

  .hero-location {
    text-align: center;
  }
}

/* MOBILE */
@media (max-width: 640px) {
  .container {
    width: min(100%, calc(100% - 24px));
  }

  .brand img {
    width: 180px;
  }

  .site-header.is-scrolled .brand img {
    width: 145px;
  }

  .nav-wrap {
    flex-direction: column;
    padding: 14px 0;
  }

  .nav-links {
    justify-content: center;
    gap: 14px;
    width: 100%;
  }

  .nav-links a {
    text-align: center;
  }

  .services > .container,
  .contact > .container {
    padding: 30px 16px;
  }

  .hero {
    padding-top: 18px;
  }

  .hero-content {
    padding: 24px 18px 28px;
    text-align: left;
  }

  .hero h1 {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .hero p,
  .section-heading p,
  .service-card p,
  .contact-item span:last-child {
    font-size: 0.98rem;
  }

  .hero-actions {
    flex-direction: column;
    justify-content: stretch;
  }

  .btn,
  .nav-cta,
  .whatsapp-float,
  .btn-large {
    width: 100%;
  }

  .contact-grid {
    gap: 18px;
  }

  .contact-details {
    gap: 14px;
  }

  .contact-item {
    padding: 14px;
    gap: 14px;
  }

  .contact-cta-card {
    padding: 16px;
  }

  .whatsapp-float {
    right: 12px;
    left: 12px;
    bottom: 12px;
    justify-content: center;
  }
}
