/*
Theme Name: PEFA Modern
Theme URI: https://pefa.ro
Author: Custom for PEFA
Author URI: https://pefa.ro
Description: Temă modernă, rapidă și accesibilă pentru Patronatul European al Femeilor de Afaceri (PEFA). Include Custom Post Types pentru Proiecte și Filiale, template-uri dedicate, galerii, PDF-uri, membri și design 2026-ready (mobile-first, Core Web Vitals friendly).
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pefa
Tags: custom-post-type, full-width-template, one-column, two-columns, right-sidebar, custom-menu, featured-images, threaded-comments, translation-ready, block-styles, wide-blocks
*/

/* ==========================================================================
   CSS Variables – Design System 2026
   ========================================================================== */
:root {
  --pefa-primary: #1a365d;        /* Deep navy – professional & trust */
  --pefa-primary-dark: #0f2744;
  --pefa-secondary: #c53030;      /* Strong red accent */
  --pefa-accent: #2b6cb0;         /* Bright blue */
  --pefa-gold: #d69e2e;
  --pefa-text: #1a202c;
  --pefa-text-muted: #4a5568;
  --pefa-bg: #ffffff;
  --pefa-bg-alt: #f7fafc;
  --pefa-bg-dark: #1a365d;
  --pefa-border: #e2e8f0;
  --pefa-radius: 12px;
  --pefa-radius-sm: 8px;
  --pefa-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --pefa-shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.08), 0 8px 10px -6px rgb(0 0 0 / 0.04);
  --pefa-font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --pefa-font-display: "Plus Jakarta Sans", var(--pefa-font);
  --container: min(1200px, 100% - 2.5rem);
  --header-height: 80px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--pefa-font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--pefa-text);
  background: var(--pefa-bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--pefa-accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--pefa-primary); }
ul, ol { list-style: none; }
button, input, textarea, select { font: inherit; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--pefa-font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--pefa-primary);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.35rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1.25rem; }
p:last-child { margin-bottom: 0; }

.container {
  width: var(--container);
  margin-inline: auto;
}

.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section-alt { background: var(--pefa-bg-alt); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 9999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--pefa-primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--pefa-primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--pefa-shadow-lg);
}

.btn-secondary {
  background: transparent;
  color: var(--pefa-primary);
  border-color: var(--pefa-primary);
}
.btn-secondary:hover {
  background: var(--pefa-primary);
  color: #fff;
}

.btn-accent {
  background: var(--pefa-secondary);
  color: #fff;
}
.btn-accent:hover {
  background: #9b2c2c;
  color: #fff;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--pefa-border);
  height: var(--header-height);
}

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

.site-logo {
  font-family: var(--pefa-font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--pefa-primary);
  letter-spacing: -0.02em;
}
.site-logo span { color: var(--pefa-secondary); }

.main-nav ul {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.main-nav a {
  padding: 0.5rem 1rem;
  font-weight: 500;
  color: var(--pefa-text);
  border-radius: var(--pefa-radius-sm);
  font-size: 0.95rem;
}
.main-nav a:hover,
.main-nav .current-menu-item > a {
  color: var(--pefa-primary);
  background: var(--pefa-bg-alt);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--pefa-primary);
  margin: 5px 0;
  transition: var(--transition);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  background: linear-gradient(135deg, var(--pefa-primary) 0%, #2a4a7a 100%);
  color: #fff;
  overflow: hidden;
}

.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.04'%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");
  opacity: 0.6;
}

.hero .container { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

.hero-grid--single {
  grid-template-columns: 1fr;
  max-width: 720px;
}

.hero-content { min-width: 0; }

.hero-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: rgba(255,255,255,0.15);
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 0.03em;
}

.hero h1 {
  color: #fff;
  max-width: 18ch;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.15rem;
  opacity: 0.92;
  max-width: 42ch;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero .btn-primary {
  background: #fff;
  color: var(--pefa-primary);
}
.hero .btn-primary:hover {
  background: var(--pefa-bg-alt);
  color: var(--pefa-primary-dark);
}

.hero .btn-secondary {
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}
.hero .btn-secondary:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
}

/* Hero Slider */
.hero-slider-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
  aspect-ratio: 4 / 3;
  background: rgba(0,0,0,0.2);
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-slide-link {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-slide-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}

.hero-slide-caption {
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.35;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.hero-slide-btn {
  background: #fff;
  color: var(--pefa-primary);
  padding: 0.55rem 1.25rem;
  font-size: 0.9rem;
  border-radius: 9999px;
  font-weight: 600;
  border: none;
}
.hero-slide-btn:hover {
  background: var(--pefa-bg-alt);
  color: var(--pefa-primary-dark);
  transform: translateY(-1px);
}

.hero-slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.9);
  color: var(--pefa-primary);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background var(--transition), transform var(--transition);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.hero-slider-nav:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.05);
}
.hero-slider-prev { left: 12px; }
.hero-slider-next { right: 12px; }

.hero-slider-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 8px;
}

.hero-slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.hero-slider-dot.is-active {
  background: #fff;
  transform: scale(1.15);
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-slider-wrap {
    aspect-ratio: 16 / 10;
    max-width: 560px;
    margin-inline: auto;
  }
  .hero h1 { max-width: none; }
}

/* ==========================================================================
   Cards & Grids
   ========================================================================== */
.grid {
  display: grid;
  gap: 1.75rem;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

.card {
  background: #fff;
  border-radius: var(--pefa-radius);
  border: 1px solid var(--pefa-border);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--pefa-shadow-lg);
}

.card-img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}

.card-body { padding: 1.5rem; }

.card-meta {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--pefa-secondary);
  margin-bottom: 0.5rem;
}

.card-title {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.card-title a { color: inherit; }
.card-title a:hover { color: var(--pefa-accent); }

.card-excerpt {
  color: var(--pefa-text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

/* ==========================================================================
   Project Single
   ========================================================================== */
/* Header: gradient negru → albastru, doar titlu (fără imagine) */
.project-header {
  position: relative;
  padding: clamp(3rem, 8vw, 4.5rem) 0;
  background: linear-gradient(135deg, #0a0a0a 0%, #0f172a 35%, #1a365d 70%, #1e3a5f 100%);
  color: #fff;
  overflow: hidden;
}

.project-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 20%, rgba(43, 108, 176, 0.35) 0%, transparent 55%),
              radial-gradient(ellipse 50% 40% at 10% 80%, rgba(15, 23, 42, 0.5) 0%, transparent 50%);
  pointer-events: none;
}

.project-header .container {
  position: relative;
  z-index: 1;
}

.project-header h1 {
  color: #fff;
  margin: 0.75rem 0 0.5rem;
  max-width: 20ch;
}

.project-header-dates {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  font-size: 0.95rem;
  opacity: 0.85;
}

.project-header-sep {
  opacity: 0.6;
}

/* Banner imagine – sub header: dreptunghiular, cover */
.project-main-banner {
  margin: 0 0 2rem;
  border-radius: var(--pefa-radius);
  overflow: hidden;
  box-shadow: var(--pefa-shadow-lg);
  width: 100%;
  aspect-ratio: 21 / 9;
  background: var(--pefa-bg-alt);
  position: relative;
}

.project-main-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Variantă contain (dacă adaugi class pe figure) */
.project-main-banner.is-contain img {
  object-fit: contain;
}

.project-status {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  background: var(--pefa-secondary);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 0 0 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--pefa-border);
  color: var(--pefa-text-muted);
  font-size: 0.95rem;
}

.project-content { max-width: 720px; }

.project-section {
  margin-top: 3rem;
}

.project-section h2 {
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--pefa-secondary);
  display: inline-block;
}

/* Gallery */
.project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.project-gallery a {
  border-radius: var(--pefa-radius-sm);
  overflow: hidden;
  aspect-ratio: 1;
}

.project-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.project-gallery a:hover img { transform: scale(1.06); }

/* Members */
.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}

.member-card {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--pefa-bg-alt);
  border-radius: var(--pefa-radius);
}

.member-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 3px solid #fff;
  box-shadow: var(--pefa-shadow);
}

.member-name { font-weight: 700; color: var(--pefa-primary); margin-bottom: 0.25rem; }
.member-role { font-size: 0.85rem; color: var(--pefa-secondary); font-weight: 600; }
.member-bio { font-size: 0.9rem; color: var(--pefa-text-muted); margin-top: 0.75rem; }

/* Logos / Partners – mai mari, contain, min ~150px */
.partners-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem 2.25rem;
  align-items: center;
  justify-content: flex-start;
}

.partners-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-logo {
  width: auto;
  height: auto;
  min-width: 150px;
  min-height: 150px;
  max-width: 280px;
  max-height: 200px;
  object-fit: contain;
  object-position: center;
  filter: grayscale(20%);
  opacity: 0.9;
  transition: filter var(--transition), opacity var(--transition), transform var(--transition);
}

.partner-logo:hover {
  filter: none;
  opacity: 1;
  transform: scale(1.03);
}

@media (max-width: 600px) {
  .partner-logo {
    min-width: 120px;
    min-height: 120px;
    max-width: 200px;
    max-height: 160px;
  }
  .project-main-banner {
    aspect-ratio: 16 / 9;
  }
}

/* PDF Download */
.pdf-download {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--pefa-bg-alt);
  border-radius: var(--pefa-radius);
  border: 1px solid var(--pefa-border);
}

.pdf-download svg { flex-shrink: 0; width: 40px; height: 40px; color: var(--pefa-secondary); }

/* ==========================================================================
   Branch (Filiala) Single
   ========================================================================== */
.branch-header {
  background: var(--pefa-bg-alt);
  padding: 3rem 0;
  border-bottom: 1px solid var(--pefa-border);
}

.branch-leadership {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.leader-card {
  background: #fff;
  border-radius: var(--pefa-radius);
  padding: 2rem;
  text-align: center;
  border: 1px solid var(--pefa-border);
  box-shadow: var(--pefa-shadow);
}

.leader-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.25rem;
  border: 4px solid var(--pefa-primary);
}

.leader-role {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.25rem 0.75rem;
  background: var(--pefa-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  text-transform: uppercase;
}

/* ==========================================================================
   Homepage Sections
   ========================================================================== */
.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 { margin-bottom: 0.75rem; }
.section-title p {
  color: var(--pefa-text-muted);
  max-width: 55ch;
  margin-inline: auto;
}

.feature-list {
  display: grid;
  gap: 1.25rem;
}

.feature-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.feature-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--pefa-primary);
  color: #fff;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 700;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--pefa-bg-dark);
  color: rgba(255,255,255,0.85);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  font-family: var(--pefa-font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 1rem;
}

.footer-logo span { color: #fc8181; }

.footer-about { font-size: 0.95rem; opacity: 0.8; max-width: 320px; }

.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col a {
  color: rgba(255,255,255,0.7);
  display: block;
  padding: 0.3rem 0;
  font-size: 0.95rem;
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  opacity: 0.7;
}

/* ==========================================================================
   Utility
   ========================================================================== */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #fff;
    padding: 1.5rem;
    border-bottom: 1px solid var(--pefa-border);
    transform: translateY(-120%);
    opacity: 0;
    transition: all 0.3s;
    pointer-events: none;
  }

  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  .main-nav a {
    display: block;
    padding: 0.85rem 1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Gutenberg alignment support */
.alignwide { max-width: 1200px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }

/* Entry content basic styles */
.entry-content > * + * { margin-top: 1.25em; }
.entry-content ul { list-style: disc; padding-left: 1.5rem; }
.entry-content ol { list-style: decimal; padding-left: 1.5rem; }
.entry-content blockquote {
  border-left: 4px solid var(--pefa-secondary);
  padding-left: 1.5rem;
  font-style: italic;
  color: var(--pefa-text-muted);
}

/* ==========================================================================
   Team page – modern layout
   ========================================================================== */
.team-hero {
  position: relative;
  padding: clamp(3rem, 8vw, 5rem) 0 2.5rem;
  background: linear-gradient(145deg, #0a0a0a 0%, #0f172a 40%, #1a365d 100%);
  color: #fff;
  overflow: hidden;
}

.team-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 85% 15%, rgba(43, 108, 176, 0.4) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 5% 90%, rgba(252, 129, 129, 0.12) 0%, transparent 50%);
  pointer-events: none;
}

.team-hero-inner {
  position: relative;
  z-index: 1;
}

.team-hero-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.team-hero-title {
  color: #fff;
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3rem);
  max-width: 16ch;
}

.team-hero-intro {
  max-width: 58ch;
  margin: 0 0 2.5rem;
  opacity: 0.88;
  font-size: 1.05rem;
  line-height: 1.65;
}

/* Quick nav */
.team-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.team-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem 0.5rem 0.5rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 9999px;
  color: #fff;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  max-width: 100%;
}

.team-nav-item:hover {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.28);
  transform: translateY(-2px);
  color: #fff;
}

.team-nav-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255,255,255,0.2);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.team-nav-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-nav-label {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}

.team-nav-label strong {
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-nav-label small {
  font-size: 0.72rem;
  opacity: 0.75;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Profiles */
.team-page {
  background: linear-gradient(180deg, #f7f9fc 0%, #fff 30%);
}

.team-profiles {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.team-profile {
  display: grid;
  grid-template-columns: minmax(240px, 340px) 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  background: #fff;
  border-radius: 20px;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid rgba(15, 39, 68, 0.06);
  box-shadow: 0 12px 40px rgba(15, 39, 68, 0.06);
  scroll-margin-top: 100px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.team-profile:hover {
  box-shadow: 0 18px 48px rgba(15, 39, 68, 0.1);
}

.team-profile.is-reversed {
  grid-template-columns: 1fr minmax(240px, 340px);
}

.team-profile.is-reversed .team-profile-media {
  order: 2;
}

.team-profile.is-featured {
  background: linear-gradient(135deg, #fff 0%, #f0f5fb 100%);
  border-color: rgba(26, 54, 93, 0.12);
  box-shadow: 0 20px 50px rgba(15, 39, 68, 0.1);
}

.team-profile-media {
  position: relative;
}

.team-profile-photo {
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: linear-gradient(145deg, #e2eaf4, #c5d4e8);
  box-shadow: 0 8px 24px rgba(15, 39, 68, 0.12);
}

.team-profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.team-profile:hover .team-profile-photo img {
  transform: scale(1.04);
}

.team-profile-placeholder {
  width: 100%;
  height: 100%;
  min-height: 280px;
  display: grid;
  place-items: center;
  font-size: 4rem;
  font-weight: 700;
  color: var(--pefa-primary);
  opacity: 0.5;
}

.team-profile-index {
  position: absolute;
  top: -10px;
  left: -10px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--pefa-primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(15, 39, 68, 0.25);
  letter-spacing: 0.02em;
}

.team-profile.is-reversed .team-profile-index {
  left: auto;
  right: -10px;
}

.team-profile-role {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.85rem;
  background: rgba(43, 108, 176, 0.1);
  color: var(--pefa-secondary);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
}

.team-profile-name {
  margin: 0 0 0.4rem;
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  color: var(--pefa-primary);
  letter-spacing: -0.02em;
}

.team-profile-subtitle {
  margin: 0 0 1.15rem;
  color: var(--pefa-text-muted);
  font-size: 1rem;
  font-weight: 500;
}

.team-profile-bio {
  color: var(--pefa-text);
  font-size: 1.02rem;
  line-height: 1.7;
}

.team-profile-bio p {
  margin-bottom: 0.85rem;
}

.team-profile-bio p:last-child {
  margin-bottom: 0;
}

.team-extra-content {
  margin-top: 3.5rem;
  max-width: 720px;
}

@media (max-width: 860px) {
  .team-profile,
  .team-profile.is-reversed {
    grid-template-columns: 1fr;
  }
  .team-profile.is-reversed .team-profile-media {
    order: 0;
  }
  .team-profile-photo {
    max-width: 320px;
    margin-inline: auto;
  }
  .team-profile-content {
    text-align: center;
  }
  .team-profile-bio {
    text-align: left;
  }
  .team-profile-role {
    margin-inline: auto;
  }
  .team-profile-index {
    left: 50%;
    transform: translateX(-50%);
    top: -14px;
  }
  .team-profile.is-reversed .team-profile-index {
    right: auto;
  }
}

@media (max-width: 520px) {
  .team-nav-label small {
    display: none;
  }
}

/* ==========================================================================
   Partners page
   ========================================================================== */
.partners-page {
  background: linear-gradient(180deg, #f7f9fc 0%, #fff 25%);
}

.partners-block {
  margin-bottom: 3.5rem;
}

.partners-block:last-of-type {
  margin-bottom: 0;
}

.partners-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.35rem;
  align-items: stretch;
}

.partners-page-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  padding: 1.5rem 1.15rem;
  background: #fff;
  border: 1px solid rgba(15, 39, 68, 0.08);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(15, 39, 68, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
}

.partners-page-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(15, 39, 68, 0.1);
  border-color: rgba(43, 108, 176, 0.25);
}

.partners-page-logo {
  max-width: 100%;
  max-height: 110px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(15%);
  opacity: 0.92;
  transition: filter 0.2s ease, opacity 0.2s ease;
}

.partners-page-item:hover .partners-page-logo {
  filter: none;
  opacity: 1;
}

@media (max-width: 600px) {
  .partners-page-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }
  .partners-page-item {
    min-height: 110px;
    padding: 1rem 0.75rem;
  }
  .partners-page-logo {
    max-height: 72px;
  }
}

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact-page {
  background: linear-gradient(180deg, #f7f9fc 0%, #fff 35%);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.15fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0 0 2rem;
}

.contact-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.15rem 1.25rem;
  background: #fff;
  border: 1px solid rgba(15, 39, 68, 0.08);
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(15, 39, 68, 0.05);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.contact-card:hover {
  box-shadow: 0 14px 36px rgba(15, 39, 68, 0.09);
  transform: translateY(-2px);
}

.contact-card-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--pefa-primary) 0%, var(--pefa-accent) 100%);
  color: #fff;
  display: grid;
  place-items: center;
}

.contact-card strong {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--pefa-text-muted);
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.contact-card a,
.contact-card span {
  color: var(--pefa-primary);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.4;
}

.contact-card a:hover {
  color: var(--pefa-accent);
}

.contact-social h3 {
  font-size: 1.1rem;
  margin-bottom: 0.85rem;
}

.contact-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.contact-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border-radius: 9999px;
  background: #fff;
  border: 1px solid rgba(15, 39, 68, 0.1);
  color: var(--pefa-primary);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.contact-social-btn:hover {
  background: var(--pefa-primary);
  color: #fff;
  border-color: var(--pefa-primary);
  transform: translateY(-2px);
}

.contact-form-card {
  background: #fff;
  border-radius: 20px;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border: 1px solid rgba(15, 39, 68, 0.07);
  box-shadow: 0 16px 48px rgba(15, 39, 68, 0.08);
}

.contact-form-card h2 {
  margin-bottom: 0.35rem;
}

.contact-form-lead {
  color: var(--pefa-text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.98rem;
}

.contact-alert {
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  margin-bottom: 1.25rem;
  font-weight: 500;
  font-size: 0.95rem;
}

.contact-alert-success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.contact-alert-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.contact-form-row {
  margin-bottom: 1.1rem;
}

.contact-form-row label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--pefa-primary);
  margin-bottom: 0.35rem;
}

.contact-form-row input,
.contact-form-row textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--pefa-border);
  border-radius: 10px;
  background: #fafbfc;
  color: var(--pefa-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.contact-form-row input:focus,
.contact-form-row textarea:focus {
  outline: none;
  border-color: var(--pefa-accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.15);
}

.contact-form-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-form-note {
  font-size: 0.82rem;
  color: var(--pefa-text-muted);
  margin: 0 0 1.25rem;
  line-height: 1.5;
}

.contact-submit {
  width: 100%;
  justify-content: center;
  padding: 0.9rem 1.5rem;
  font-size: 1.05rem;
}

.contact-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-map {
  margin-top: clamp(2.5rem, 6vw, 4rem);
}

.contact-map-frame {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(15, 39, 68, 0.08);
  box-shadow: 0 12px 40px rgba(15, 39, 68, 0.07);
  aspect-ratio: 21 / 9;
  min-height: 280px;
  background: #e8eef5;
}

.contact-map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .contact-form-2col {
    grid-template-columns: 1fr;
  }
  .contact-map-frame {
    aspect-ratio: 16 / 10;
  }
}

.ultimele-stiri {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.stire-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.stire-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.stire-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.stire-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.stire-meta {
    font-size: 0.82rem;
    color: #777;
    margin-bottom: 10px;
}

.stire-title {
    margin: 0 0 12px 0;
    font-size: 1.2rem;
    line-height: 1.35;
}

.stire-title a {
    text-decoration: none;
    color: #222;
}

.stire-title a:hover {
    color: #1a73e8;
}

.stire-excerpt {
    font-size: 0.95rem;
    line-height: 1.55;
    color: #555;
    margin-bottom: 18px;
    flex-grow: 1;
}

.stire-btn {
    display: inline-block;
    align-self: flex-start;
    padding: 9px 18px;
    background: #1a73e8;
    color: #fff !important;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s;
}

.stire-btn:hover {
    background: #1557b0;
}

/* Responsive */
@media (max-width: 992px) {
    .ultimele-stiri {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .ultimele-stiri {
        grid-template-columns: 1fr;
    }
}
