/* ============================================================
   GLS Tech — Shared Stylesheet
   Applies to all pages on the site.
   ============================================================ */

/* ── CSS CUSTOM PROPERTIES ── */
:root {
  --primary-color: #e74c3c;
  --primary-dark: #c0392b;
  --secondary-color: #2c3e50;
  --accent-blue: #3498db;
  --accent-green: #27ae60;
  --text-light: #ffffff;
  --text-dark: #2c3e50;
  --text-gray: #666666;
  --bg-light: #ffffff;
  --border-light: #e9ecef;
  --font-primary: 'Orbitron', sans-serif;
  --font-secondary: 'Exo 2', sans-serif;
  --transition-normal: 0.3s ease;
  --shadow-md: 0 4px 8px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 16px rgba(0,0,0,0.2);
  --shadow-xl: 0 16px 32px rgba(0,0,0,0.25);
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 50px;
  --nav-blue: #0076CE;
}

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

/* ── BODY ── */
body {
  font-family: 'Exo 2', system-ui, sans-serif;
  color: var(--text-dark);
  background: var(--bg-light);
  line-height: 1.6;
}

/* ── HEADER ── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 70px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 30px;
  background: var(--nav-blue);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}
header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.3); }

.header-left { display: flex; align-items: center; gap: 15px; justify-content: flex-start; }
.header-right { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }

.header-logo { width: 70px; height: 70px; }
.logo-link { display: flex; align-items: center; text-decoration: none; }

.tagline { display: flex; flex-direction: column; color: var(--text-light); font-family: 'Exo 2', sans-serif; margin-left: 3px; text-decoration: none; }
.tagline-brand { font-size: 14px; font-weight: 700; letter-spacing: 1px; margin-bottom: 2px; }
.tagline-slogan { font-size: 10px; font-weight: 400; letter-spacing: 0.5px; opacity: 0.9; }

/* ── NAV ── */
nav { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; }
nav a {
  color: var(--text-light);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.3s;
}
nav a:hover { background: rgba(255,255,255,0.1); color: #e74c3c; }
nav a.active { background: rgba(255,255,255,0.15); }

.nav-cta {
  background: #e74c3c;
  color: #fff !important;
  padding: 9px 20px !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
  letter-spacing: 0.3px;
  transition: background 0.3s ease, transform 0.2s ease !important;
}
.nav-cta:hover { background: #c0392b !important; color: #fff !important; transform: translateY(-1px); }

/* ── MOBILE MENU BUTTON ── */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

/* ── MOBILE MENU ── */
.mobile-menu {
  display: none;
  position: fixed;
  top: 70px; left: 0; right: 0;
  background: var(--nav-blue);
  z-index: 999;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.mobile-menu.active { display: block; }
.mobile-menu-links { list-style: none; }
.mobile-menu-links li { border-bottom: 1px solid rgba(255,255,255,0.1); }
.mobile-menu-links a {
  display: block;
  color: white;
  text-decoration: none;
  padding: 14px 0;
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.3s ease;
}
.mobile-menu-links a:hover { background: rgba(255,255,255,0.1); color: var(--primary-color); }

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--primary-color);
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  transition: all 0.3s;
}
.btn:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border-light);
  background: var(--bg-light);
  color: var(--text-gray);
  text-align: center;
  padding: 40px 20px;
  font-size: 0.9rem;
}
footer a { color: var(--text-gray); text-decoration: none; }
footer a:hover { color: var(--text-dark); }

/* ── WHATSAPP WIDGET (shared across pages) ── */
.wa-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.5);
  z-index: 9999;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.wa-widget:hover { transform: scale(1.1); box-shadow: 0 6px 22px rgba(37,211,102,0.65); }
.wa-widget::before {
  content: '';
  position: absolute;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(37,211,102,0.4);
  animation: wa-pulse 2s ease-out infinite;
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.9); opacity: 0; }
}
.wa-tooltip {
  position: absolute;
  right: 68px;
  background: #1a1a1a;
  color: white;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  font-family: 'Exo 2', sans-serif;
}
.wa-tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: #1a1a1a;
}
.wa-widget:hover .wa-tooltip { opacity: 1; }
@media(max-width: 500px) { .wa-widget { bottom: 16px; right: 16px; width: 52px; height: 52px; } }

/* ── RESPONSIVE: HEADER / NAV ── */
@media(max-width: 1100px) {
  .tagline-slogan { display: none; }
  .tagline-brand { font-size: 13px; }
}
@media(max-width: 960px) {
  nav { display: none; }
  .mobile-menu-btn { display: block; }
  header { grid-template-columns: 1fr auto; }
  .header-right .nav-cta { display: none; }
  .header-logo { width: 44px; height: 44px; }
}

/* ── SERVICE CARD COMPONENTS ── */
.service-card-featured { border: 2px solid var(--primary-color); position: relative; overflow: hidden; }
.service-badge-new { position: absolute; top: 12px; right: 12px; background: var(--primary-color); color: #fff; font-size: 0.75rem; font-weight: 700; padding: 4px 10px; border-radius: var(--radius-pill); letter-spacing: 0.5px; }
.service-card-img { width: 100%; height: 180px; object-fit: cover; border-radius: var(--radius-md); margin-bottom: 14px; }
.service-cta-btn { display: inline-block; margin-top: auto; padding: 10px 22px; background: var(--primary-color); color: #fff; border-radius: var(--radius-pill); text-decoration: none; font-weight: 700; font-size: 0.9rem; transition: background var(--transition-normal); }
.service-cta-btn:hover { background: var(--primary-dark); }
