/* === RESET & VARIABLES === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
    --bg-dark: #0d0d0d;
    --bg-card: #1a1a1a;
    --bg-section-alt: #111111;
    --accent: #AF1B72;
    --accent-hover: #23176D;
    --accent-secondary: #23176D;
    --text-primary: #f0f0f0;
    --text-muted: #999;
    --border: #2a2a2a;
    --nav-height: 140px;
}
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

/* === TYPOGRAPHY === */
h1 { font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 800; line-height: 1.1; }
h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 700; line-height: 1.2; }
h3 { font-size: 1.2rem; font-weight: 600; }
p  { color: var(--text-muted); font-size: 1rem; line-height: 1.7; }

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 2px solid transparent;
}
.btn-primary { background-color: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background-color: var(--accent-hover); border-color: var(--accent-hover); transform: translateY(-2px); }
.btn-outline { background-color: transparent; color: var(--accent); border-color: var(--accent); }
.btn-outline:hover { background-color: var(--accent); color: #fff; transform: translateY(-2px); }

/* === LAYOUT === */
section { padding: 100px 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-label {
    font-size: 0.8rem; font-weight: 700; letter-spacing: 3px;
    text-transform: uppercase; color: var(--accent);
    margin-bottom: 14px; display: block;
}
.section-divider { width: 60px; height: 3px; background-color: var(--accent); margin-bottom: 32px; }
.section-divider.center { margin: 16px auto 0; }
.section-header { text-align: center; margin-bottom: 64px; }

/* === FADE-IN === */
.fade-in { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fd1 { transition-delay: 0.1s; }
.fd2 { transition-delay: 0.2s; }
.fd3 { transition-delay: 0.3s; }
.fd4 { transition-delay: 0.4s; }

/* === 1. NAVBAR === */
#navbar {
    position: sticky; top: 0; width: 100%; height: var(--nav-height);
    z-index: 1000; transition: height 0.35s ease, box-shadow 0.35s ease;
    background-color: #ffffff;
    border-bottom: 1px solid #ebebeb;
}
#navbar.scrolled { height: 96px; box-shadow: 0 2px 20px rgba(0,0,0,0.12); }
.nav-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px;
}
.nav-logo { text-decoration: none; display: inline-flex; align-items: center; }
.logo-img { height: 120px; width: auto; display: block; transition: height 0.35s ease; }
#navbar.scrolled .logo-img { height: 80px; }
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a { color: #555; text-decoration: none; font-size: 0.95rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: #111; }
.nav-cta { background-color: var(--accent) !important; color: #fff !important; padding: 10px 22px; border-radius: 4px; font-weight: 600 !important; }
.nav-cta:hover { background-color: var(--accent-hover) !important; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; }
.hamburger span { display: block; width: 26px; height: 2px; background-color: #222; transition: all 0.3s ease; }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
    display: none; position: fixed; top: var(--nav-height); left: 0; width: 100%;
    background-color: rgba(13,13,13,0.98); padding: 24px; z-index: 999;
    flex-direction: column; gap: 4px; border-top: 1px solid var(--border);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
    color: var(--text-muted); text-decoration: none; font-size: 1.05rem;
    font-weight: 500; padding: 12px 0; border-bottom: 1px solid var(--border); transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--accent); }
.mobile-menu .nav-cta { background-color: var(--accent); color: #fff !important; padding: 14px 22px; border-radius: 4px; text-align: center; border-bottom: none; margin-top: 8px; }

/* === 2. HERO === */
#hero {
    position: relative; height: calc(100vh - var(--nav-height)); display: flex; align-items: center;
    background-color: #fff; padding: 0;
}
.hero-overlay { display: none; }
.hero-content { position: relative; z-index: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.hero-tag {
    display: inline-block; background-color: var(--accent); color: #fff;
    font-size: 0.75rem; font-weight: 700; letter-spacing: 3px;
    text-transform: uppercase; padding: 6px 14px; border-radius: 2px; margin-bottom: 28px;
}
.hero-content h1 { max-width: 820px; margin-bottom: 24px; color: #111; }
.hero-subtitle { font-size: clamp(1rem, 2vw, 1.2rem); color: #555; max-width: 480px; margin-bottom: 44px; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* === 3. DESPRE === */
#despre { background-color: var(--bg-dark); }
.despre-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.despre-text p { margin-bottom: 20px; }
.stats-row {
    display: flex; gap: 40px; margin-top: 40px;
    padding-top: 40px; border-top: 1px solid var(--border);
}
.stat-value { font-size: 1.6rem; font-weight: 800; color: var(--accent); display: block; }
.stat-label { font-size: 0.82rem; color: var(--text-muted); font-weight: 500; }
.despre-img-wrap { position: relative; }
.despre-img-wrap img { width: 100%; height: 520px; object-fit: cover; border-radius: 4px; display: block; }
.img-accent-border {
    position: absolute; bottom: -16px; right: -16px; width: 100%; height: 100%;
    border: 3px solid var(--accent); border-radius: 4px; z-index: -1;
}

/* === 4. SERVICII === */
#servicii { background-color: var(--bg-section-alt); }
.servicii-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
    background-color: var(--bg-card); border: 1px solid var(--border);
    border-radius: 6px; padding: 40px 32px;
    transition: border-color 0.3s ease, transform 0.3s ease;
}
.service-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.service-icon { width: 48px; height: 48px; margin-bottom: 22px; color: var(--accent); }
.service-card h3 { margin-bottom: 10px; color: var(--text-primary); }
.service-card p { font-size: 0.88rem; }

/* === 5. GALERIE === */
#galerie { background-color: var(--bg-dark); }
.gallery-grid { columns: 3; column-gap: 16px; }
.gallery-item { break-inside: avoid; margin-bottom: 16px; position: relative; overflow: hidden; border-radius: 4px; cursor: pointer; }
.gallery-item img { width: 100%; height: auto; display: block; transition: transform 0.5s ease; }
.gallery-overlay {
    position: absolute; inset: 0; background: rgba(175,27,114,0.72);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay svg { width: 38px; height: 38px; color: #fff; }

/* === 6. DONAȚII === */
#donatie { background-color: var(--bg-section-alt); }
.donatie-intro { text-align: center; max-width: 580px; margin: 0 auto 56px; }
.donatie-intro p { margin-top: 14px; }

.donatie-group-label {
    font-size: 0.78rem; font-weight: 700; letter-spacing: 2px;
    text-transform: uppercase; color: var(--text-muted);
    margin-bottom: 16px; margin-top: 40px; padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}
.donatie-group-label:first-of-type { margin-top: 0; }
.donatie-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.donatie-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.donatie-card {
    background-color: var(--bg-card); border: 1px solid var(--border);
    border-radius: 6px; padding: 26px;
    transition: border-color 0.3s ease;
}
.donatie-card:hover { border-color: var(--accent); }
.donatie-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.d-icon {
    width: 38px; height: 38px; background-color: var(--accent);
    border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.d-icon svg { width: 18px; height: 18px; color: #fff; }
.donatie-card-header h3 { font-size: 0.95rem; color: var(--text-primary); margin-bottom: 2px; }
.donatie-card-header small { font-size: 0.78rem; color: var(--text-muted); }
.donatie-val {
    font-size: 0.85rem; color: var(--text-muted);
    font-family: 'Courier New', monospace; word-break: break-all;
    background-color: rgba(255,255,255,0.04); padding: 10px 12px;
    border-radius: 4px; border: 1px solid var(--border); margin-bottom: 12px;
}
.copy-btn {
    width: 100%; padding: 10px; background-color: transparent;
    border: 1px solid var(--accent); color: var(--accent);
    border-radius: 4px; font-family: 'Inter', sans-serif;
    font-size: 0.83rem; font-weight: 600; cursor: pointer; transition: all 0.2s ease;
}
.copy-btn:hover { background-color: var(--accent); color: #fff; }
.copy-btn.copied { background-color: #2a7a3a; border-color: #2a7a3a; color: #fff; }

/* === 7. CONTACT === */
#contact { background-color: var(--bg-dark); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 72px; align-items: start; }
.contact-details { margin-top: 36px; display: flex; flex-direction: column; gap: 22px; }
.contact-item { display: flex; align-items: flex-start; gap: 16px; }
.c-icon {
    width: 42px; height: 42px; border-radius: 50%;
    background-color: rgba(175,27,114,0.1); border: 1px solid rgba(175,27,114,0.3);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; color: var(--accent);
}
.c-icon svg { width: 17px; height: 17px; }
.c-text strong { display: block; color: var(--text-primary); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 3px; }
.c-text span, .c-text a { color: var(--text-muted); font-size: 0.92rem; text-decoration: none; transition: color 0.2s; }
.c-text a:hover { color: var(--accent); }
.map-wrap { border-radius: 6px; overflow: hidden; border: 1px solid var(--border); }
.map-wrap iframe { width: 100%; height: 440px; border: none; display: block; filter: grayscale(80%) brightness(0.85); }
.map-fallback {
    width: 100%; height: 440px; background-color: var(--bg-card);
    display: flex; align-items: center; justify-content: center;
    flex-direction: column; gap: 12px; color: var(--text-muted);
    font-size: 0.9rem; text-align: center; padding: 24px;
}

/* === 8. FOOTER === */
footer { background-color: #fff; border-top: 1px solid #e0e0e0; padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 64px; margin-bottom: 48px; }
.footer-brand .nav-logo { display: inline-block; margin-bottom: 16px; }
.footer-brand .logo-img { height: 100px; }
.footer-brand p { font-size: 0.88rem; max-width: 280px; color: #555; }
.footer-social { display: flex; gap: 10px; margin-top: 22px; }
.social-btn {
    width: 36px; height: 36px; border: 1px solid #ddd; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #888; text-decoration: none; transition: all 0.3s ease;
}
.social-btn:hover { border-color: var(--accent); color: var(--accent); }
.footer-col h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 2px; color: #888; margin-bottom: 20px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-links a { color: #555; text-decoration: none; font-size: 0.88rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
    border-top: 1px solid #e0e0e0; padding-top: 24px;
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.footer-bottom p, .footer-bottom a { color: #888; font-size: 0.82rem; text-decoration: none; }
.footer-bottom a:hover { color: var(--accent); }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .servicii-grid { grid-template-columns: repeat(2, 1fr); }
    .donatie-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    section { padding: 70px 0; }
    .nav-links { display: none; }
    .hamburger { display: flex; }
    /* hero background-attachment reset not needed — bg is now solid white */
    .hero-content h1 { font-size: clamp(2rem, 8vw, 3rem); }
    .hero-buttons { flex-direction: column; }
    .btn { text-align: center; }
    .despre-grid { grid-template-columns: 1fr; gap: 40px; }
    .despre-img-wrap img { height: 320px; }
    .stats-row { gap: 20px; }
    .servicii-grid { grid-template-columns: 1fr; }
    .gallery-grid { columns: 2; }
    .donatie-grid { grid-template-columns: 1fr; }
    .donatie-grid-2 { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
    .gallery-grid { columns: 1; }
}
