/* ============================================================
   energIST Landing Page — style-tecnico.css
   Técnico Lisboa 2026 brand identity
     Técnico Blue    #009DE0  (Pantone Process CYAN)
     Slate Dark Grey #46555F  (Pantone 432)
     Light Grey      #D2D3D4  (Pantone Cool Grey 2)
   Font: Source Sans 3 (official alternative, Google Fonts)
   ============================================================ */

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

:root {
  --blue:          #009DE0;
  --blue-dark:     #007BB0;
  --blue-light:    #33B5E8;
  --blue-pale:     #E6F6FD;
  --slate:         #46555F;
  --slate-light:   #6B7C88;
  --light-grey:    #D2D3D4;
  --bg-page:       #F5F7F9;
  --bg-white:      #FFFFFF;
  --border:        #DDE3E8;

  --radius:        4px;
  --radius-md:     8px;
  --shadow-sm:     0 1px 4px rgba(70,85,95,0.10);
  --shadow:        0 3px 12px rgba(70,85,95,0.12);
  --shadow-lg:     0 8px 32px rgba(70,85,95,0.16);
  --transition:    0.18s ease;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg-page);
  color: var(--slate);
  font-family: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}

/* ── TOP UTILITY BAR ─────────────────────────────────────── */

.top-bar {
  background: var(--slate);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.top-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tecnico-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: white;
}

.ist-shield {
  width: 28px;
  height: 32px;
  flex-shrink: 0;
}

.tecnico-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.tecnico-name {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: white;
}

.tecnico-sub {
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.7);
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.top-link {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color var(--transition);
}

.top-link:hover { color: white; }

/* ── NAVBAR ─────────────────────────────────────────────── */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-white);
  border-bottom: 3px solid var(--blue);
  box-shadow: var(--shadow-sm);
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ── LOGO ─────────────────────────────────────────────────── */

.logo {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: 'Kaushan Script', cursive;
/*  font-family: 'Source Sans 3', sans-serif;*/
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  user-select: none;
}

.logo-energy { color: var(--slate); }
.logo-ist    { color: var(--blue); }

/* SVG-based navbar logo */
.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.tecnico-logo { display: block; }

.logo-energist-text {
  font-size: 2rem;
  font-weight: 700;
  color: var(--slate);
}
.logo-energist-text strong { color: var(--blue); }

.logo-divider {
  color: var(--light-grey);
  font-weight: 300;
  font-size: 2.1rem;
  margin: 0 0.1rem;
}

.logo-sub {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--slate-light);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* ── NAVBAR RIGHT ────────────────────────────────────────── */

.navbar-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

/* ── LANG TOGGLE ─────────────────────────────────────────── */

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--slate);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.lang-toggle:hover {
  border-color: var(--blue);
  background: var(--blue-pale);
  color: var(--blue-dark);
}

.lang-flag { font-size: 0.95rem; line-height: 1; }

/* ── BUTTONS ─────────────────────────────────────────────── */

.btn-primary, .btn-enter {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--blue);
  color: white;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}

.btn-primary:hover, .btn-enter:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 157, 224, 0.35);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  color: white;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius);
  border: 2px solid rgba(255,255,255,0.7);
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: white;
}

.arrow { font-style: normal; }

/* ── HERO ─────────────────────────────────────────────────── */

.hero {
  background: var(--blue);
  position: relative;
  overflow: hidden;
}

/* Subtle white noise texture via repeating gradient */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,0.03) 0px,
    rgba(255,255,255,0.03) 1px,
    transparent 1px,
    transparent 14px
  );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 5.5rem 2rem 5rem;
  display: grid;
  grid-template-columns: 1fr 280px;
  align-items: center;
  gap: 3rem;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.80);
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: white;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: 1.45rem;
  color: rgba(255,255,255,0.88);
  max-width: 540px;
  line-height: 1.75;
  margin-bottom: 2.25rem;
  font-weight: 300;
}

.hero-cta {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

/* Animated graphic */

.hero-graphic {
  position: relative;
  width: 240px;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.graphic-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.2);
}

.graphic-ring-1 { inset: 20px; animation: spin-slow 18s linear infinite; }
.graphic-ring-2 { inset: 45px; border-style: dashed; animation: spin-slow 28s linear infinite reverse; }
.graphic-ring-3 { inset: 70px; animation: spin-slow 12s linear infinite; }

@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

.graphic-bolt {
  width: 56px;
  height: 70px;
  filter: drop-shadow(0 0 20px rgba(255,255,255,0.4));
}

/* ── SECTION COMMON ──────────────────────────────────────── */

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: clamp(1.65rem, 2.8vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--slate);
  margin-bottom: 1rem;
  line-height: 1.2;
}

/* ── LIVE STATS ──────────────────────────────────────────── */

.live-stats {
  background: var(--bg-white);
  padding: 5rem 0;
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2.25rem;
}

.stat-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--light-grey);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  box-shadow: var(--shadow-sm);
  transition: border-top-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.stat-card:hover {
  border-top-color: var(--blue);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.stat-card--primary {
  background: var(--blue);
  border-color: var(--blue);
  border-top-color: var(--blue-dark);
  box-shadow: 0 4px 20px rgba(0,157,224,0.25);
}

.stat-card--primary:hover {
  border-top-color: var(--blue-dark);
  box-shadow: 0 6px 28px rgba(0,157,224,0.35);
}

.stat-card--primary .stat-label,
.stat-card--primary .stat-sub { color: rgba(255,255,255,0.85); }

.stat-icon {
  width: 32px;
  height: 32px;
  color: var(--blue);
  margin-bottom: 0.6rem;
}

.stat-card--primary .stat-icon { color: rgba(255,255,255,0.9); }

.stat-icon svg { width: 100%; height: 100%; }

.stat-value {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--slate);
  line-height: 1;
}

.stat-value small {
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
  opacity: 0.75;
}

.stat-card--primary .stat-value { color: white; }

.stat-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-sub {
  font-size: 0.78rem;
  color: var(--slate-light);
}

/* Loading */

.loading-dots {
  display: inline-block;
  color: var(--light-grey);
  animation: blink 1.2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}

.stats-footer {
  margin-top: 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  color: var(--slate-light);
}

.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
  animation: live-pulse 2s ease-in-out infinite;
}

@keyframes live-pulse {
  0%  { box-shadow: 0 0 0 0 rgba(34,197,94,0.45); }
  70% { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
  100%{ box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

/* ── ABOUT ────────────────────────────────────────────────── */

.about {
  background: var(--bg-page);
  padding: 5.5rem 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.about-text p {
  color: var(--slate-light);
  line-height: 1.8;
  font-weight: 300;
  font-size: 1.2rem;
}

.about-text strong { color: var(--slate); font-weight: 600; }

.about-text .btn-primary {
  align-self: flex-start;
  margin-top: 0.75rem;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.feature-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.feature-item:last-child { border-bottom: none; }
.feature-item:hover { background: var(--blue-pale); }

.feature-icon {
  width: 28px;
  height: 28px;
  color: var(--blue);
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.feature-icon svg { width: 100%; height: 100%; }

.feature-body strong {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--slate);
  margin-bottom: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.feature-body p {
  font-size: 0.85rem;
  color: var(--slate-light);
  margin: 0;
  line-height: 1.6;
}

/* ── FOOTER ──────────────────────────────────────────────── */

.footer {
  background: var(--slate);
  padding: 3rem 0 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-tecnico {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: white;
}

.ist-shield--white { width: 28px; height: 32px; }

.footer-tecnico-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.footer-tecnico-text span:first-child {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: white;
}

.footer-tecnico-text span:last-child {
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.6);
}

.footer-energist {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.footer-energist .logo-energy { color: rgba(255,255,255,0.85); }
.footer-energist .logo-ist    { color: var(--blue-light); }

.footer-inesc-logo {
  height: 32px;
  width: auto;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}
.footer-inesc-logo:hover { opacity: 1; }

/* Official SVG logo on dark footer */
.footer-logo-white {
  display: block;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}
.footer-logo-white:hover { opacity: 1; }
.footer-logo-white path.graphic { fill: rgba(255,255,255,0.9); }
.footer-logo-white g.text       { fill: rgba(255,255,255,0.65); }

.footer-divider {
  width: 40px;
  height: 2px;
  background: var(--blue);
  border-radius: 1px;
  margin: 0.25rem 0;
}

.footer-tagline {
  font-size: 1rem;
  color: rgba(255,255,255,0.55);
  font-weight: 300;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--blue-light); }

.footer-copy {
  font-size: 1rem;
  color: rgba(255,255,255,0.35);
}
.footer-copy-link {
  color: inherit;
  text-decoration: none;
}
.footer-copy-link:hover { color: rgba(255,255,255,0.8); }

/* ── RESPONSIVE ──────────────────────────────────────────── */

@media (max-width: 1024px) {
  .stats-grid  { grid-template-columns: repeat(2, 1fr); }
  .about-grid  { grid-template-columns: 1fr; gap: 3rem; }
  .hero-inner  { grid-template-columns: 1fr; }
  .hero-graphic { display: none; }
}

@media (max-width: 768px) {
  .top-bar-inner { padding: 0 1.25rem; }
  .tecnico-sub   { display: none; }

  .hero-inner {
    padding: 4rem 1.5rem 3.5rem;
    text-align: center;
  }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }

  .navbar-inner, .section-inner { padding-left: 1.25rem; padding-right: 1.25rem; }

  .logo-sub    { display: none; }
  .logo-divider{ display: none; }
  .stats-grid  { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .footer-brand { gap: 1.5rem; }
}
