/*
Theme Name: RECIMI FTRR
Theme URI: https://recimi.ftrr.hr
Author: FTRR
Description: Web stranica projekta RECIMI - Mogućnosti upotrebe jezičnih modela za unaprjeđenje organizacijskog izvještavanja i analitike
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: recimi-ftrr
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
  --primary: #1a56db;
  --primary-fg: #ffffff;
  --foreground: #1e293b;
  --background: #f5f7fa;
  --card: #ffffff;
  --border: #dfe4ed;
  --muted: #64748b;
  --section-alt: #f0f3f8;
  --eu-gold: #eab308;
  --radius: 0.75rem;
}

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

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--foreground);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  line-height: 1.2;
}

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

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.navbar .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.navbar-logo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.25rem; font-weight: 800;
  color: var(--primary);
}
.navbar-logo .sub { font-size: 0.75rem; color: var(--muted); font-weight: 500; margin-left: 0.5rem; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: 0.875rem; font-weight: 500;
  color: rgba(30,41,59,0.7);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--primary); }
.nav-cta {
  display: inline-flex; align-items: center;
  padding: 0.5rem 1.25rem; border-radius: var(--radius);
  background: var(--primary); color: var(--primary-fg);
  font-size: 0.875rem; font-weight: 600;
  transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.9; }
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; font-size: 1.5rem; color: var(--foreground); }
.mobile-menu { display: none; padding: 1rem 2rem; background: var(--card); border-bottom: 1px solid var(--border); }
.mobile-menu a { display: block; padding: 0.75rem 0; font-size: 0.875rem; color: var(--foreground); }

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 90vh;
  display: flex; align-items: center; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
}
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(10,20,40,0.92), rgba(15,25,45,0.85), rgba(15,25,45,0.6));
}
.hero-content {
  position: relative; padding-top: 6rem; padding-bottom: 4rem;
  max-width: 48rem;
}
.hero-badge img {
  height: 3.5rem; width: auto;
  background: rgba(255,255,255,0.9); border-radius: var(--radius);
  padding: 0.5rem 1rem;
}
.hero h1 {
  margin-top: 2rem;
  font-size: 2.5rem; font-weight: 800;
  color: #fff; letter-spacing: -0.02em;
}
.hero p {
  margin-top: 1.5rem;
  font-size: 1.125rem; color: rgba(180,200,220,1);
  max-width: 42rem; line-height: 1.7;
}
.hero-buttons { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.btn-primary {
  display: inline-flex; align-items: center;
  padding: 0.875rem 1.75rem; border-radius: var(--radius);
  background: var(--primary); color: #fff;
  font-size: 0.875rem; font-weight: 600;
  box-shadow: 0 8px 24px rgba(26,86,219,0.25);
  transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.9; }
.btn-outline {
  display: inline-flex; align-items: center;
  padding: 0.875rem 1.75rem; border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.25); color: #fff;
  font-size: 0.875rem; font-weight: 600;
  transition: background 0.2s;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.hero-stats {
  margin-top: 4rem;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
}
.hero-stats .stat-value {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.875rem; font-weight: 700; color: var(--eu-gold);
}
.hero-stats .stat-label { font-size: 0.75rem; color: rgba(180,200,220,0.8); margin-top: 0.25rem; font-weight: 500; }

/* ===== ABOUT SECTION ===== */
.about-section { padding: 5rem 0 7rem; background: var(--section-alt); }
.section-title {
  font-size: 1.875rem; font-weight: 700; text-align: center; margin-bottom: 1rem;
}
.section-divider {
  width: 4rem; height: 4px; background: var(--primary);
  margin: 0 auto 1rem; border-radius: 2px;
}
.section-subtitle {
  text-align: center; color: var(--muted);
  max-width: 42rem; margin: 0 auto 3rem; font-size: 0.9375rem;
}

.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-bottom: 5rem; }
.card-link {
  background: var(--card); border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--border);
  transition: box-shadow 0.3s, border-color 0.3s;
}
.card-link:hover { box-shadow: 0 12px 32px rgba(0,0,0,0.08); border-color: rgba(26,86,219,0.2); }
.card-link .card-img { aspect-ratio: 4/3; overflow: hidden; }
.card-link .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.card-link:hover .card-img img { transform: scale(1.05); }
.card-link .card-body { padding: 1.5rem; }
.card-link h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: 0.5rem; }
.card-link p { font-size: 0.875rem; color: var(--muted); line-height: 1.6; }
.card-link .card-more { display: inline-block; margin-top: 1rem; font-size: 0.875rem; font-weight: 600; color: var(--primary); }
.card-link:hover .card-more { text-decoration: underline; }

.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; max-width: 64rem; margin: 0 auto; }
.feature-card {
  background: var(--card); border-radius: var(--radius);
  padding: 1.5rem; border: 1px solid var(--border);
  transition: border-color 0.2s;
}
.feature-card:hover { border-color: rgba(26,86,219,0.2); }
.feature-icon {
  width: 2.5rem; height: 2.5rem; border-radius: 0.5rem;
  background: rgba(26,86,219,0.1); display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem; font-size: 1.25rem;
}
.feature-card h4 { font-size: 0.875rem; font-weight: 700; margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.75rem; color: var(--muted); line-height: 1.6; }

/* ===== TEAM ===== */
.team-section { padding: 5rem 0 7rem; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.team-card {
  background: var(--card); border-radius: var(--radius);
  padding: 1.5rem; border: 1px solid var(--border);
  transition: all 0.3s;
}
.team-card:hover { border-color: rgba(26,86,219,0.2); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.team-photo {
  width: 4rem; height: 4rem; border-radius: 50%;
  overflow: hidden; margin-bottom: 1rem;
  border: 2px solid rgba(26,86,219,0.2);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { font-size: 0.875rem; font-weight: 700; }
.team-meta { display: flex; align-items: center; gap: 0.5rem; margin: 0.25rem 0 0.75rem; }
.team-meta .role { font-size: 0.75rem; font-weight: 600; color: var(--primary); }
.team-meta .field { font-size: 0.75rem; color: var(--muted); }
.team-card p { font-size: 0.75rem; color: var(--muted); line-height: 1.6; margin-bottom: 1rem; }
.team-card .croris { font-size: 0.75rem; font-weight: 600; color: var(--primary); }
.team-card .croris:hover { text-decoration: underline; }

/* ===== PUBLICATIONS ===== */
.publications-section { padding: 5rem 0 7rem; background: var(--section-alt); }
.publications-placeholder {
  max-width: 42rem; margin: 0 auto;
  background: var(--card); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 3rem; text-align: center;
}
.pub-icon {
  width: 4rem; height: 4rem; border-radius: 50%;
  background: rgba(26,86,219,0.1); display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem; font-size: 2rem;
}
.publications-placeholder h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: 0.5rem; }
.publications-placeholder p { font-size: 0.875rem; color: var(--muted); }

/* ===== CONTACT ===== */
.contact-section { padding: 5rem 0 7rem; }
.contact-section .container { max-width: 48rem; text-align: center; }
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 3rem; }
.contact-card {
  background: var(--card); border-radius: var(--radius);
  padding: 1.5rem; border: 1px solid var(--border); text-align: center;
}
.contact-card .icon { font-size: 1.5rem; color: var(--primary); margin-bottom: 0.75rem; }
.contact-card h4 { font-size: 0.875rem; font-weight: 700; margin-bottom: 0.25rem; }
.contact-card p { font-size: 0.75rem; color: var(--muted); line-height: 1.6; }

/* ===== FOOTER ===== */
.site-footer { background: var(--foreground); padding: 3rem 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 2rem; }
.footer-brand .logo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.5rem; font-weight: 800; color: var(--background);
}
.footer-brand .logo span { color: var(--primary); }
.footer-brand p { font-size: 0.75rem; color: rgba(245,247,250,0.5); max-width: 24rem; margin-top: 0.75rem; }
.footer-eu { text-align: center; }
.footer-eu img { height: 3.5rem; background: rgba(255,255,255,0.9); border-radius: var(--radius); padding: 0.5rem 1rem; }
.footer-eu p { font-size: 0.75rem; color: rgba(245,247,250,0.35); margin-top: 0.75rem; }
.footer-bottom {
  border-top: 1px solid rgba(245,247,250,0.1);
  margin-top: 2rem; padding-top: 1.5rem; text-align: center;
}
.footer-bottom p { font-size: 0.75rem; color: rgba(245,247,250,0.35); }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.animate-fade-in-up { animation: fadeInUp 0.7s ease-out both; }
.animate-fade-in { animation: fadeIn 0.6s ease-out both; }
.delay-200 { animation-delay: 200ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .mobile-toggle { display: block; }
  .hero h1 { font-size: 1.75rem; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .cards-grid, .features-grid, .team-grid, .contact-cards { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
}
@media (min-width: 640px) and (max-width: 768px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
