/* -------------------------------------------------------------------------- */
/*                                CSS VARIABLES                               */
/* -------------------------------------------------------------------------- */
:root {
  --color-primary: #0f172a;
  /* Slate 900 - Deep dark blue */
  --color-surface: #1e293b;
  /* Slate 800 - Lighter dark for cards */
  --color-accent: #f97316;
  /* Orange 500 - Alert and CTA */
  --color-accent-hover: #ea580c;
  /* Orange 600 */
  --color-text-main: #f8fafc;
  /* Slate 50 - Off white */
  --color-text-muted: #cbd5e1;
  /* Slate 300 - Light gray */
  --color-border: rgba(255, 255, 255, 0.1);
  --color-glass: rgba(15, 23, 42, 0.75);

  --font-main: 'Inter', sans-serif;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

/* -------------------------------------------------------------------------- */
/*                                RESET & BASE                                */
/* -------------------------------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-primary);
  color: var(--color-text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

section {
  position: relative;
}

.section-padding {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.glass {
  background: var(--color-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
}

/* -------------------------------------------------------------------------- */
/*                                  BUTTONS                                   */
/* -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
  text-align: center;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.btn-primary {
  background-color: var(--color-accent);
  color: #fff;
  box-shadow: 0 4px 14px 0 rgba(249, 115, 22, 0.39);
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: #fff;
  border: 1px solid var(--color-accent);
}

.btn-outline:hover {
  background-color: rgba(249, 115, 22, 0.1);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background-color: #25D366;
  color: #fff;
  box-shadow: 0 4px 14px 0 rgba(37, 211, 102, 0.39);
}

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

/* -------------------------------------------------------------------------- */
/*                                   HEADER                                   */
/* -------------------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all var(--transition-normal);
  padding: 1.5rem 0;
  background: transparent;
}

.header.scrolled {
  padding: 1rem 0;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 100%;
  padding: 0 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 800;
}

.logo-img {
  height: 150px;
  width: auto;
  max-width: 450px;
  object-fit: contain;
}

.header .logo-img {
  margin-top: -30px;
  margin-bottom: -30px;
}

.nav-menu {
  margin-left: auto;
  margin-right: 2rem;
}

.nav-menu ul {
  display: flex;
  gap: 2rem;
}

.nav-menu a {
  font-weight: 500;
  color: var(--color-text-muted);
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--color-accent);
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-text-main);
}

/* -------------------------------------------------------------------------- */
/*                                HERO SECTION                                */
/* -------------------------------------------------------------------------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url('https://images.unsplash.com/photo-1605929668545-c47d34b7da3c?auto=format&fit=crop&q=80&w=1920') no-repeat center center/cover;
  position: relative;
  padding-top: 5rem;
  padding-bottom: 6rem;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.95));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.badge-container {
  display: inline-flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.badge {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.badge-accent {
  background: rgba(249, 115, 22, 0.2);
  border-color: rgba(249, 115, 22, 0.4);
  color: #fff;
}

.badge-accent i {
  color: var(--color-accent);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* -------------------------------------------------------------------------- */
/*                               FEATURES GRID                                */
/* -------------------------------------------------------------------------- */
.features {
  margin-top: -4rem;
  position: relative;
  z-index: 10;
  padding-top: 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--color-surface);
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  text-align: center;
  transition: transform var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(249, 115, 22, 0.4);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: rgba(249, 115, 22, 0.1);
  color: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1.5rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* -------------------------------------------------------------------------- */
/*                                SERVICES GRID                               */
/* -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  border-radius: 1rem;
  overflow: hidden;
  transition: var(--transition-normal);
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-accent);
}

.service-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: var(--transition-normal);
}

.service-card:hover .service-img {
  transform: scale(1.05);
}

.service-content {
  padding: 1.5rem;
  position: relative;
  z-index: 2;
  background: linear-gradient(to top, rgba(15, 23, 42, 1), rgba(15, 23, 42, 0.8));
  margin-top: -20px;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
}

.service-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.service-content p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* -------------------------------------------------------------------------- */
/*                                AREAS GRID                                  */
/* -------------------------------------------------------------------------- */
.bg-dark {
  background-color: rgba(10, 15, 28, 0.5);
}

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

.area-card {
  background: var(--color-surface);
  padding: 2rem;
  border-radius: 1rem;
  border-left: 4px solid var(--color-accent);
  transition: var(--transition-normal);
}

.area-card:hover {
  background: rgba(30, 41, 59, 1);
  transform: translateX(5px);
}

.area-icon {
  color: var(--color-accent);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.area-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.area-card p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* -------------------------------------------------------------------------- */
/*                               ABOUT / SEO                                  */
/* -------------------------------------------------------------------------- */
.about-content {
  padding: 3rem;
  border-radius: 1.5rem;
}

.about-content h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.about-content p {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.about-content strong {
  color: #fff;
}

.check-list {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-text-muted);
}

/* -------------------------------------------------------------------------- */
/*                                  FOOTER                                    */
/* -------------------------------------------------------------------------- */
.footer {
  background: #0a0e17;
  padding: 5rem 0 2rem;
  border-top: 1px solid var(--color-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem 1.5rem;
  text-align: left;
}

.footer-brand .logo {
  grid-row: span 2;
}

.footer-brand p {
  color: var(--color-text-muted);
  margin: 0;
  max-width: 350px;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 0;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  font-size: 1.2rem;
}

.social-links a:hover {
  background: var(--color-accent);
  color: #fff;
}

.footer-links h3,
.footer-contact h3 {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.footer-links ul,
.footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--color-text-muted);
}

.footer-links a:hover {
  color: var(--color-accent);
  padding-left: 5px;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-text-muted);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* -------------------------------------------------------------------------- */
/*                            MOBILE STICKY BUTTON                            */
/* -------------------------------------------------------------------------- */
.mobile-sticky-btn {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  padding: 0.75rem;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.5);
  border-top: 1px solid var(--color-border);
}

.call-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background-color: var(--color-accent);
  color: white;
  width: 100%;
  padding: 1rem;
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  animation: bg-pulse 2s infinite;
}

.pulse-icon {
  animation: icon-ring 1.5s infinite;
}

@keyframes bg-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.7);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(249, 115, 22, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(249, 115, 22, 0);
  }
}

@keyframes icon-ring {

  0%,
  100% {
    transform: rotate(0deg);
  }

  10%,
  30%,
  50%,
  70%,
  90% {
    transform: rotate(-5deg);
  }

  20%,
  40%,
  60%,
  80% {
    transform: rotate(5deg);
  }
}

/* -------------------------------------------------------------------------- */
/*                                RESPONSIVE                                  */
/* -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .features {
    margin-top: 2rem;
  }

  .hero {
    padding-bottom: 5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Footer brand: logo left, text right on tablet */
  .footer-brand {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 0.75rem 1rem;
    text-align: left;
  }

  .footer-brand p {
    max-width: 100%;
    text-align: left;
  }

  .social-links {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {

  /* ---- Prevent horizontal overflow ---- */
  html,
  body {
    overflow-x: hidden;
    width: 100%;
  }

  .container {
    padding: 0 1rem;
    max-width: 100%;
  }

  /* ---- HEADER ---- */
  .header {
    padding: 0.75rem 0;
  }

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

  /* Shrink logo on mobile */
  .logo-img {
    height: 150px;
    max-width: 200px;
    margin-left: -40px;
  }

  .header .logo-img {
    margin-top: -20px;
    margin-bottom: -10px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .features {
    margin-top: 2rem;
  }

  .header:has(.nav-menu.active) {
    background: rgba(15, 23, 42, 0.98);
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--color-primary);
    /* Solid color instead of rgba to hide hero section properly */
    display: flex;
    flex-direction: column;
    padding: 2rem;
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-150%);
    opacity: 0;
    transition: var(--transition-normal);
    z-index: 100;
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
  }

  .nav-menu ul {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .header-contact {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
    flex-shrink: 0;
  }

  /* ---- HERO ---- */
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 320px;
  }

  .badge-container {
    flex-direction: column;
    align-items: center;
  }

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

  /* ---- AREAS ---- */
  .areas-grid {
    grid-template-columns: 1fr;
  }

  /* ---- ABOUT ---- */
  .about-content {
    padding: 1.5rem;
  }

  .about-content h2 {
    font-size: 1.5rem;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }

  /* ---- FOOTER ---- */
  .footer {
    padding: 3rem 0 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-brand {
    display: grid;
    grid-template-columns: 160px 1fr;
    align-items: start;
    gap: 0.5rem 0.75rem;
    text-align: left;
  }

  .footer-brand .logo {
    grid-row: 1;
    grid-column: 1;
    justify-content: flex-start;
    align-self: center;
  }

  .footer-brand .logo-img {
    height: 120px;
    max-width: 160px;
    object-fit: contain;
  }

  .footer-brand p {
    grid-row: 1;
    grid-column: 2;
    max-width: 100%;
    text-align: left;
    font-size: 0.8rem;
    line-height: 1.5;
    align-self: center;
  }

  .social-links {
    grid-column: 1 / -1;
    justify-content: flex-start;
    margin-top: 0.25rem;
  }

  .footer-links,
  .footer-contact {
    text-align: left;
  }

  /* Show mobile sticky button */
  .mobile-sticky-btn {
    display: block;
  }

  body {
    padding-bottom: 4rem;
  }

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

/* ---- Extra small screens ---- */
@media (max-width: 400px) {
  .hero-title {
    font-size: 1.6rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .call-btn {
    font-size: 0.9rem;
    padding: 0.75rem;
  }
}