/* =====================================================
   CONVIJO — LAYOUT: HEADER, NAV, FOOTER, CARDS
   ===================================================== */

/* ── HEADER ──────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 500;
  transition: var(--t-base);
  background: transparent;
}
.site-header.scrolled {
  background: rgba(8,15,28,0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 32px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.site-logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

/* Desktop Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}
.nav-link {
  position: relative;
  padding: 8px 14px;
  font-family: var(--ff-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255,255,255,0.82);
  border-radius: var(--r-sm);
  transition: var(--t-fast);
  text-decoration: none;
  white-space: nowrap;
}
.nav-link:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.nav-link.active { color: var(--f-green); }
.nav-link--water { color: var(--w-cyan-light); }
.nav-link--water:hover { color: var(--w-cyan); background: rgba(0,180,216,0.10); }

/* Dropdown */
.nav-dropdown-wrap { position: relative; }
.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: rgba(8,18,36,0.97);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-md);
  padding: 10px;
  min-width: 260px;
  opacity: 0;
  visibility: hidden;
  transition: var(--t-base);
  box-shadow: var(--shadow-xl);
}
.nav-dropdown-wrap:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--r-sm);
  font-family: var(--ff-heading);
  font-size: 0.87rem;
  font-weight: 500;
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  transition: var(--t-fast);
}
.nav-dropdown-link i { font-size: 1.1rem; color: var(--f-green); flex-shrink: 0; }
.nav-dropdown-link:hover { background: rgba(255,255,255,0.07); color: var(--white); }
.nav-dropdown-link:hover i { color: var(--f-green-light); }

/* CTA Button */
.nav-cta {
  background: var(--grad-green);
  color: var(--white) !important;
  border-radius: var(--r-full);
  padding: 10px 24px;
  font-weight: 700;
  font-size: 0.87rem;
  box-shadow: 0 4px 16px rgba(44,182,115,0.38);
  transition: var(--t-base);
  flex-shrink: 0;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(44,182,115,0.52);
  background: rgba(255,255,255,0.08) !important;
  background: var(--grad-green) !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--t-base);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0; bottom: 0;
  background: var(--dark);
  z-index: 490;
  padding: 24px 20px;
  overflow-y: auto;
  flex-direction: column;
  gap: 4px;
}
.mobile-nav.open { display: flex; }
.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--r-md);
  font-family: var(--ff-heading);
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  transition: var(--t-fast);
}
.mobile-nav-link:hover { background: rgba(255,255,255,0.06); color: var(--white); }
.mobile-nav-link i { font-size: 1.2rem; color: var(--f-green); }
.mobile-nav-link--water i { color: var(--w-cyan); }
.mobile-nav-link--water { color: var(--w-cyan-light); }
.mobile-nav-divider { height: 1px; background: rgba(255,255,255,0.07); margin: 8px 0; }
.mobile-nav-cta {
  margin-top: 12px;
  padding: 16px;
  background: var(--grad-green);
  border-radius: var(--r-md);
  text-align: center;
  font-family: var(--ff-heading);
  font-weight: 800;
  font-size: 1rem;
  color: var(--white);
}

/* ── SERVICE CARDS ───────────────────────────────────── */
.service-card {
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: var(--t-base);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--gray-100);
  position: relative;
}
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-green);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--t-base);
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.service-card:hover::after { transform: scaleX(1); }
.service-card--water::after { background: var(--grad-water); }

.service-card__img {
  position: relative;
  height: 220px;
  overflow: hidden;
}
.service-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--t-slow);
}
.service-card:hover .service-card__img img { transform: scale(1.07); }

.service-card__icon-wrap {
  position: absolute;
  bottom: -22px;
  left: 24px;
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  background: var(--white);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  z-index: 2;
  transition: var(--t-base);
}
.service-card:hover .service-card__icon-wrap { transform: translateY(-4px); }

.service-card__body {
  padding: 40px 28px 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.service-card__title {
  font-family: var(--ff-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--f-deep);
  margin-bottom: 12px;
}
.service-card__text {
  font-size: 0.92rem;
  color: var(--gray-600);
  line-height: 1.7;
  flex: 1;
}
.service-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-family: var(--ff-heading);
  font-size: 0.87rem;
  font-weight: 700;
  color: var(--f-green);
  transition: var(--t-fast);
}
.service-card--water .service-card__cta { color: var(--w-cyan-dark); }
.service-card:hover .service-card__cta { gap: 14px; }

/* ── PAGE HERO (inner pages) ─────────────────────────── */
.page-hero {
  background: var(--grad-hero);
  padding: 160px 0 96px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero__inner { position: relative; z-index: 1; }
.page-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(44,182,115,0.15);
  border: 1px solid rgba(44,182,115,0.3);
  color: var(--f-green-light);
  padding: 6px 16px;
  border-radius: var(--r-full);
  font-family: var(--ff-heading);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 24px;
}
.page-hero__title { color: var(--white); margin-bottom: 20px; }
.page-hero__title em { font-style: normal; color: var(--f-green); }
.page-hero__subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.65);
  max-width: 580px;
  line-height: 1.7;
}
.page-hero--water .page-hero__badge {
  background: rgba(0,180,216,0.15);
  border-color: rgba(0,180,216,0.3);
  color: var(--w-cyan-light);
}
.page-hero--water .page-hero__title em { color: var(--w-cyan); }

/* ── FOOTER ──────────────────────────────────────────── */
.site-footer {
  background: var(--dark);
  padding-top: 80px;
}
.site-footer::before {
  content: '';
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--f-green), var(--w-cyan));
  margin-bottom: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 56px;
  padding-bottom: 64px;
}
.footer-logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
  margin-bottom: 20px;
}
.footer-brand-text {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.48);
  line-height: 1.75;
  margin-bottom: 28px;
}
.footer-socials { display: flex; gap: 10px; }
.footer-social {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.62);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  text-decoration: none;
  transition: var(--t-base);
}
.footer-social:hover { background: var(--f-green); color: var(--white); transform: translateY(-3px); }

.footer-heading {
  font-family: var(--ff-heading);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-link {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.48);
  text-decoration: none;
  transition: var(--t-fast);
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-link:hover { color: var(--f-green); padding-left: 6px; }
.footer-link--water:hover { color: var(--w-cyan); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.52);
}
.footer-contact-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
  color: var(--f-green);
}
.footer-contact-item a { color: inherit; transition: var(--t-fast); }
.footer-contact-item a:hover { color: var(--f-green); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy { font-size: 0.82rem; color: rgba(255,255,255,0.3); }

/* ── RESPONSIVE NAV ──────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  .main-nav, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
