/* Angyalfény Alapítvány — design system */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Nunito:wght@400;600;700;800&display=swap');

:root {
  --gold: #f0b83c;
  --gold-soft: #fbd888;
  --sky: #4bb8e8;
  --sky-deep: #2f8fc4;
  --cream: #fffaf1;
  --cream-deep: #fff3dc;
  --ink: #3a2f22;
  --ink-soft: #6b5d4b;
  --white: #ffffff;
  --shadow: 0 10px 30px -12px rgba(58, 47, 34, 0.25);
  --shadow-soft: 0 4px 16px -6px rgba(58, 47, 34, 0.15);
  --radius: 22px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Nunito', sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 100%);
  min-height: 100vh;
}

h1, h2, h3, .display {
  font-family: 'Playfair Display', serif;
  color: var(--ink);
  margin: 0 0 0.5em;
  line-height: 1.2;
}

a { color: inherit; text-decoration: none; }

p { font-size: 1.05rem; line-height: 1.7; color: var(--ink-soft); }

img { max-width: 100%; display: block; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Navbar ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 250, 241, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(240, 184, 60, 0.25);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
}

.brand img {
  height: 52px;
  width: 52px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--gold-soft);
}

.nav-links {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: block;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  color: var(--ink-soft);
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.nav-links a:hover {
  background: rgba(75, 184, 232, 0.15);
  color: var(--sky-deep);
  transform: translateY(-1px);
}

.nav-links a.active {
  background: linear-gradient(135deg, var(--sky), var(--sky-deep));
  color: var(--white);
  box-shadow: var(--shadow-soft);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--ink);
}

.nav-toggle svg { width: 28px; height: 28px; }

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem 1.5rem 1.25rem;
}

.nav-mobile a {
  padding: 0.7rem 1rem;
  border-radius: 14px;
  font-weight: 700;
  color: var(--ink-soft);
}

.nav-mobile a.active {
  background: linear-gradient(135deg, var(--sky), var(--sky-deep));
  color: var(--white);
}

.nav-mobile.open { display: flex; }

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 3.5rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 420px;
  background: radial-gradient(closest-side, rgba(240, 184, 60, 0.35), transparent 70%);
  filter: blur(10px);
  z-index: -1;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.hero-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, var(--sky-deep), var(--gold));
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--sky-deep);
  background: rgba(75, 184, 232, 0.12);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero h1 { font-size: clamp(2rem, 4vw, 3rem); }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { order: -1; aspect-ratio: 16 / 10; }
}

/* ---------- Content card ---------- */

.content-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 2.25rem;
  border: 1px solid rgba(240, 184, 60, 0.18);
}

.content-card :first-child { margin-top: 0; }

section { padding: 2.5rem 0; }

/* ---------- Blog grid ---------- */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 1.75rem;
  border: 1px solid rgba(240, 184, 60, 0.18);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(16px);
}

.blog-card.in-view {
  opacity: 1;
  transform: translateY(0);
}

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

.blog-card .badge {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--sky));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 800;
  font-family: 'Playfair Display', serif;
}

.blog-card h2 {
  font-size: 1.3rem;
}

.blog-card h2 a {
  color: var(--sky-deep);
  transition: color 0.2s ease;
}

.blog-card h2 a:hover { color: var(--gold); }

.blog-card .excerpt {
  color: var(--ink-soft);
  font-size: 0.98rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card .read-more {
  margin-top: auto;
  font-weight: 800;
  color: var(--sky-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap 0.2s ease;
}

.blog-card .read-more svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.blog-card:hover .read-more {
  gap: 0.55rem;
}

/* ---------- Social ---------- */

.social-block {
  margin-top: 2.5rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(75,184,232,0.1), rgba(240,184,60,0.12));
  border-radius: var(--radius);
  padding: 2rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  font-weight: 700;
  color: var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.social-links a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  color: var(--sky-deep);
}

.social-links svg { width: 20px; height: 20px; }

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 4rem;
  padding: 2.5rem 0;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.9rem;
  border-top: 1px solid rgba(240, 184, 60, 0.25);
}

/* ---------- Loading / error states ---------- */

.skeleton {
  border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(0,0,0,0.04) 25%, rgba(0,0,0,0.08) 37%, rgba(0,0,0,0.04) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
  min-height: 120px;
}

@keyframes shimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

.state-message {
  text-align: center;
  padding: 2.5rem 1.5rem;
  color: var(--ink-soft);
}

.state-message a.retry {
  display: inline-block;
  margin-top: 0.75rem;
  font-weight: 800;
  color: var(--sky-deep);
  cursor: pointer;
}

/* ---------- Utility fade-in ---------- */

.fade-up {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

.page-title {
  text-align: center;
  padding: 3rem 0 1rem;
}

.page-title .eyebrow { display: inline-flex; }

