/*
Theme Name: IMEC Ingegneria
Theme URI: https://www.imecstudio.eu
Author: IMEC Ingegneria
Description: Tema professionale per IMEC Ingegneria con news e portfolio dinamici
Version: 2.0
License: GNU General Public License v2 or later
Text Domain: imec
*/

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
  --blue: #1B4F8A;
  --blue-dark: #0f3060;
  --blue-light: #2a6cc4;
  --orange: #E87722;
  --orange-dark: #c5611a;
  --white: #ffffff;
  --gray-light: #f5f6f8;
  --gray-mid: #e8eaee;
  --gray: #6b7280;
  --dark: #111827;
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.18);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

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

.section-pad { padding: 100px 0; }
.section-pad-sm { padding: 60px 0; }

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.section-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.section-label::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--orange);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: var(--blue-dark);
  margin-bottom: 24px;
}

.section-title span { color: var(--orange); }

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: var(--transition);
  padding: 0;
}

#site-header.scrolled {
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  padding: 0 40px;
}

.site-logo img {
  height: 48px;
  width: auto;
  transition: var(--transition);
}

/* Transparent header: show white logo */
#site-header:not(.scrolled) .logo-dark { display: none; }
#site-header:not(.scrolled) .logo-white { display: block; }
#site-header.scrolled .logo-dark { display: block; }
#site-header.scrolled .logo-white { display: none; }

/* Main Nav */
.main-nav { display: flex; align-items: center; gap: 8px; }

.main-nav > li { position: relative; }

.main-nav > li > a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  border-radius: 4px;
  transition: var(--transition);
}

#site-header.scrolled .main-nav > li > a { color: var(--blue-dark); }

.main-nav > li > a:hover,
.main-nav > li > a.active {
  background: var(--orange);
  color: var(--white) !important;
}

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition);
  border-top: 3px solid var(--orange);
}

.main-nav > li:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: 10px 20px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--dark);
  transition: var(--transition);
}

.dropdown a:hover {
  background: var(--gray-light);
  color: var(--orange);
  padding-left: 28px;
}

/* CTA Button in nav */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 16px;
  padding: 10px 24px !important;
  background: var(--orange) !important;
  color: var(--white) !important;
  border-radius: 4px !important;
  font-weight: 700 !important;
}
.nav-cta:hover { background: var(--orange-dark) !important; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
  transform-origin: center;
}
#site-header.scrolled .nav-toggle span { background: var(--blue-dark); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--blue-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.35;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(11, 31, 60, 0.92) 0%,
    rgba(11, 31, 60, 0.7) 50%,
    rgba(11, 31, 60, 0.3) 100%
  );
  z-index: 1;
}

/* Diagonal accent */
.hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0; right: 0;
  height: 120px;
  background: var(--white);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 120px 40px 160px;
  max-width: 800px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.8s 0.3s forwards;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--orange);
}

.hero-title {
  font-size: clamp(3rem, 7vw, 7rem);
  color: var(--white);
  line-height: 0.95;
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 0.8s 0.5s forwards;
}

.hero-title .highlight {
  color: var(--orange);
  font-style: italic;
  text-transform: none;
  font-weight: 400;
}

.hero-description {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 0.8s 0.7s forwards;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s 0.9s forwards;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 140px;
  right: 60px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeIn 1s 1.2s forwards;
}
.hero-scroll span {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  writing-mode: vertical-rl;
}
.hero-scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--orange), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* Stats bar */
.hero-stats {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  z-index: 4;
  background: var(--orange);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  padding: 24px 32px;
  border-right: 1px solid rgba(255,255,255,0.2);
  opacity: 0;
  animation: fadeUp 0.6s forwards;
}
.stat-item:nth-child(1) { animation-delay: 1s; }
.stat-item:nth-child(2) { animation-delay: 1.15s; }
.stat-item:nth-child(3) { animation-delay: 1.3s; }
.stat-item:nth-child(4) { animation-delay: 1.45s; border-right: none; }

.stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.85);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 4px;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}
.btn-primary:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232,119,34,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
}

.btn-outline-dark {
  background: transparent;
  color: var(--blue-dark);
  border-color: var(--blue-dark);
}
.btn-outline-dark:hover {
  background: var(--blue-dark);
  color: var(--white);
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section {
  background: var(--white);
  overflow: hidden;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-images {
  position: relative;
  height: 600px;
}

.about-img-main {
  position: absolute;
  top: 0; left: 0;
  width: 75%;
  height: 80%;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: var(--shadow-lg);
}

.about-img-accent {
  position: absolute;
  bottom: 0; right: 0;
  width: 55%;
  height: 55%;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--white);
}

.about-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--orange);
  color: var(--white);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  box-shadow: var(--shadow-md);
  z-index: 2;
}

.about-badge-num { font-size: 2.2rem; line-height: 1; }
.about-badge-text { font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; text-align: center; }

.about-text .section-label { margin-top: 0; }
.about-text p { color: var(--gray); line-height: 1.8; margin-bottom: 20px; }

.about-features {
  margin: 36px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: var(--gray-light);
  border-radius: 6px;
  border-left: 3px solid var(--orange);
}

.feature-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--orange);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.feature-label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-section {
  background: var(--blue-dark);
  position: relative;
  overflow: hidden;
}

.services-section::before {
  content: '';
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 80px;
  background: var(--white);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.services-section .section-title { color: var(--white); }
.services-section .section-label { color: var(--orange); }

.services-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 60px;
  flex-wrap: wrap;
  gap: 24px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.service-card {
  position: relative;
  background: rgba(255,255,255,0.05);
  padding: 48px 36px;
  transition: var(--transition);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.07);
}

.service-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--orange);
  transform: scaleX(0);
  transition: var(--transition);
}

.service-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-4px);
}

.service-card:hover::before { transform: scaleX(1); }

.service-number {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 800;
  color: rgba(255,255,255,0.06);
  line-height: 1;
  margin-bottom: -24px;
  transition: var(--transition);
}

.service-card:hover .service-number { color: rgba(232,119,34,0.15); }

.service-icon {
  width: 56px;
  height: 56px;
  background: var(--orange);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: var(--white);
  color: var(--orange);
}

.service-icon svg { width: 28px; height: 28px; color: var(--white); }
.service-card:hover .service-icon svg { color: var(--orange); }

.service-title {
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 16px;
}

.service-desc {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-bottom: 28px;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  transition: var(--transition);
}

.service-link:hover { gap: 14px; }

/* ============================================
   NEWS & LAVORI SECTION
   ============================================ */
.news-section { background: var(--gray-light); }

.news-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 48px;
  border-bottom: 2px solid var(--gray-mid);
}

.news-tab {
  padding: 14px 32px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}

.news-tab.active {
  color: var(--blue-dark);
  border-bottom-color: var(--orange);
}

.news-tab:hover:not(.active) { color: var(--blue-dark); }

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.news-card {
  background: var(--white);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.news-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.news-category {
  position: absolute;
  top: 16px; left: 16px;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 3px;
}

.news-card-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }

.news-date {
  font-size: 0.8rem;
  color: var(--gray);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.news-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--blue-dark);
  margin-bottom: 12px;
  line-height: 1.3;
  flex: 1;
}

.news-excerpt {
  font-size: 0.875rem;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 24px;
}

.news-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  transition: var(--transition);
}
.news-read-more:hover { gap: 14px; color: var(--orange-dark); }

/* Portfolio/Lavori card */
.lavori-card .news-card-img { aspect-ratio: 4/3; }

.news-section-footer {
  margin-top: 52px;
  text-align: center;
}

/* ============================================
   CLIENTS SECTION
   ============================================ */
.clients-section {
  background: var(--white);
  padding: 80px 0;
  overflow: hidden;
}

.clients-section .section-label { justify-content: center; }
.clients-section h2 { text-align: center; margin-bottom: 60px; }

.clients-track-wrap { overflow: hidden; position: relative; }

.clients-track-wrap::before,
.clients-track-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
}
.clients-track-wrap::before { left: 0; background: linear-gradient(to right, var(--white), transparent); }
.clients-track-wrap::after { right: 0; background: linear-gradient(to left, var(--white), transparent); }

.clients-track {
  display: flex;
  gap: 60px;
  align-items: center;
  animation: scroll-left 30s linear infinite;
  width: max-content;
}

.clients-track:hover { animation-play-state: paused; }

.client-logo {
  height: 40px;
  width: auto;
  filter: grayscale(100%) opacity(0.5);
  transition: var(--transition);
  flex-shrink: 0;
}

.client-logo:hover { filter: grayscale(0%) opacity(1); }

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
  background: var(--orange);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta-banner::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.05'%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");
}

.cta-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}

.cta-text h2 {
  color: var(--white);
  font-size: clamp(2rem, 3vw, 3rem);
  margin-bottom: 12px;
}
.cta-text p { color: rgba(255,255,255,0.85); font-size: 1.1rem; }

.cta-actions { display: flex; gap: 16px; flex-wrap: wrap; flex-shrink: 0; }

.btn-white {
  background: var(--white);
  color: var(--orange);
  border-color: var(--white);
}
.btn-white:hover {
  background: var(--blue-dark);
  color: var(--white);
  border-color: var(--blue-dark);
}

/* ============================================
   FOOTER
   ============================================ */
#site-footer {
  background: var(--dark);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-logo img { height: 44px; margin-bottom: 24px; }

.footer-about {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  margin-bottom: 28px;
}

.footer-socials { display: flex; gap: 12px; }
.footer-social {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  transition: var(--transition);
}
.footer-social:hover { border-color: var(--orange); background: var(--orange); color: var(--white); }

.footer-col-title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 24px;
}

.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-links a::before {
  content: '→';
  font-size: 0.75rem;
  color: var(--orange);
  opacity: 0;
  transition: var(--transition);
}
.footer-links a:hover { color: var(--white); padding-left: 8px; }
.footer-links a:hover::before { opacity: 1; }

.footer-contact-item {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
}
.footer-contact-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: rgba(232,119,34,0.15);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
}
.footer-contact-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.35);
  margin-bottom: 2px;
}
.footer-contact-value {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy { font-size: 0.8rem; color: rgba(255,255,255,0.3); }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
  transition: var(--transition);
}
.footer-legal a:hover { color: var(--orange); }

/* ============================================
   PAGE TEMPLATES: NEWS ARCHIVE
   ============================================ */
.page-hero {
  padding: 160px 0 80px;
  background: var(--blue-dark);
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
}

.page-hero-content { position: relative; }
.page-hero h1 { color: var(--white); font-size: clamp(2.5rem, 5vw, 5rem); margin-bottom: 16px; }
.page-hero p { color: rgba(255,255,255,0.6); font-size: 1.1rem; }

.archive-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.filter-btn {
  padding: 8px 20px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 2px solid var(--gray-mid);
  border-radius: 3px;
  background: none;
  cursor: pointer;
  transition: var(--transition);
  color: var(--gray);
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: var(--white);
}

/* ============================================
   SINGLE POST
   ============================================ */
.single-post {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 24px;
}

.post-meta {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.post-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--gray);
}

.post-featured-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 48px;
}

.post-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #374151;
}

.post-content h2 {
  font-size: 1.75rem;
  margin: 40px 0 20px;
}

.post-content p { margin-bottom: 20px; }

.post-content img {
  border-radius: 4px;
  margin: 32px 0;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.6); opacity: 0.4; }
}

@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-images { height: 400px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .header-inner { padding: 0 20px; }
  
  .nav-toggle { display: flex; }
  
  .main-nav {
    display: none;
    position: fixed;
    top: 80px; left: 0; right: 0; bottom: 0;
    background: var(--blue-dark);
    flex-direction: column;
    gap: 0;
    padding: 24px 0;
    overflow-y: auto;
  }
  
  .main-nav.open { display: flex; }
  
  .main-nav > li > a {
    color: var(--white) !important;
    padding: 16px 32px;
    border-radius: 0;
    font-size: 1rem;
  }
  
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(255,255,255,0.05);
    border-radius: 0;
    border-top: none;
    padding: 0 0 8px;
  }
  
  .dropdown a { color: rgba(255,255,255,0.7) !important; padding-left: 48px; }
  
  .hero-content { padding: 120px 24px 140px; }
  .hero-scroll { display: none; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); position: static; }
  
  .services-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  
  .cta-inner { flex-direction: column; text-align: center; }
  
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
