/*
 * E&E Ingeniería — Quark 2 brand overlay
 * Navy brochure base + lime accent (no purple startup look).
 */

:root {
  --ee-navy: #1e2040;
  --ee-navy-deep: #16182f;
  --ee-lime: #b2d235;
  --ee-sky: #80c0e0;
}

/* Dark default — industrial navy canvas */
:root[data-theme="dark"] {
  --q2-bg: #12131f;
  --q2-bg-elev: #1e2040;
  --q2-bg-muted: #2a2d4a;
  --q2-bg-inverse: #f5f5f5;
  --q2-text: #e8e8ec;
  --q2-text-strong: #ffffff;
  --q2-text-muted: #a0a3b5;
  --q2-nav-bg: rgba(22, 24, 47, 0.94);
  --q2-nav-border: rgba(178, 210, 53, 0.18);
  --q2-divider: rgba(255, 255, 255, 0.1);
}

/* Light skin — light content ground, navy header */
:root[data-theme="light"] {
  --q2-bg: #f0f1f4;
  --q2-bg-elev: #ffffff;
  --q2-bg-muted: #e4e6ec;
  --q2-text: #1a1a22;
  --q2-text-strong: #1e2040;
  --q2-text-muted: #5a5d6e;
  --q2-nav-bg: rgba(30, 32, 64, 0.97);
  --q2-nav-border: rgba(178, 210, 53, 0.25);
}

:root[data-theme="light"] #header,
:root[data-theme="light"] #header .navbar-brand,
:root[data-theme="light"] #header .theme-toggle,
:root[data-theme="light"] #header .dropmenu > ul > li > a {
  color: #ffffff;
}

:root[data-theme="light"] #header .dropmenu > ul > li > a.active {
  color: var(--ee-lime);
}

:root[data-theme="light"] #header .dropmenu > ul > li > a:hover:not(.active) {
  color: color-mix(in oklab, white 80%, var(--ee-lime) 20%);
}

/* Keep logo mark readable on navy / dark header */
.navbar-brand svg {
  max-height: 52px;
  width: auto;
}

/* Home hero — match .ee-project-list__card radius */
.ee-hero {
  position: relative;
  padding: 4.5rem 0 3.5rem;
  background:
    linear-gradient(160deg, rgba(22, 24, 47, 0.92) 0%, rgba(30, 32, 64, 0.88) 55%, rgba(18, 19, 31, 0.94) 100%),
    var(--ee-navy-deep);
  color: #fff;
  border-radius: 8px;
  overflow: hidden;
}

.ee-hero[style*="background-image"] {
  background-blend-mode: multiply;
}

.ee-hero__inner {
  max-width: 42rem;
}

.ee-hero__logo {
  max-width: 220px;
  height: auto;
  margin-bottom: 1.25rem;
}

.ee-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  letter-spacing: 0.02em;
  color: #fff;
}

.ee-hero__line {
  margin: 0 0 1.5rem;
  font-size: 1.1rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  max-width: 36rem;
}

.ee-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.ee-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.25rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  background: var(--ee-lime);
  color: #1e2040;
  border: 1px solid transparent;
}

.ee-cta:hover {
  filter: brightness(1.05);
  text-decoration: none;
  color: #12131f;
}

.ee-cta--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.ee-cta--ghost:hover {
  border-color: var(--ee-lime);
  color: var(--ee-lime);
}

.ee-page-media {
  margin: 0 0 1.25rem;
}

.ee-page-media img {
  width: 100%;
  max-width: 960px;
  height: auto;
  border-radius: 8px;
  display: block;
}

/* Proyectos list — beat Pico `ul li { list-style: square }` */
.ee-project-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
}

.ee-project-list > li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ee-project-list__card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 8px;
  background: var(--q2-bg-elev);
  box-shadow: var(--q2-shadow-card);
  text-decoration: none;
  color: var(--q2-text-strong);
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ee-project-list__card:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.ee-project-list__media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--ee-navy-deep);
}

.ee-project-list__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ee-project-list__body {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
  padding: 0.9rem 1rem 1.05rem;
}

.ee-project-list__title {
  font-weight: 600;
  flex: 1 1 100%;
}

.ee-meta {
  font-size: 0.875rem;
  color: var(--q2-text-muted);
}

.ee-meta--accent {
  color: var(--ee-lime);
  font-weight: 600;
}

.ee-page-title {
  margin-top: 0;
}

.ee-lede {
  color: var(--q2-text-muted);
  max-width: 48rem;
}

.ee-content {
  max-width: 48rem;
}

/* Footer — brochure cities */
.ee-site-footer {
  border-top: 1px solid var(--q2-divider);
  background: var(--ee-navy-deep);
  color: rgba(255, 255, 255, 0.85);
}

.ee-site-footer a {
  color: var(--ee-lime);
}

.ee-site-footer__grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  padding: 2rem 0 1.25rem;
}

.ee-site-footer__cities {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.ee-site-footer__cities strong {
  display: block;
  color: #fff;
}

.ee-site-footer__note {
  margin: 0;
  padding-bottom: 1.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

.ee-cities-block {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.ee-cities-block li {
  padding: 1rem 1.15rem;
  border-radius: 8px;
  background: var(--q2-bg-elev);
  box-shadow: var(--q2-shadow-card);
}

@media (max-width: 640px) {
  .ee-hero {
    padding: 3rem 0 2.5rem;
  }
}
