/* =====================================================
   Site Senator Dr. Costache Chertif — frontend public
   Design: navy + gold, sober, profesionist
   ===================================================== */

:root {
    --navy:        #0e2a47;
    --navy-dark:   #081a2d;
    --navy-soft:   #1d4067;
    --gold:        #c9a961;
    --gold-dark:   #a88641;
    --bg:          #fafafa;
    --bg-soft:     #f3f1ec;
    --paper:       #ffffff;
    --text:        #1c2330;
    --text-soft:   #4a5568;
    --line:        #e2e2dc;
    --shadow:      0 6px 24px rgba(14, 42, 71, 0.08);
    --shadow-lg:   0 18px 48px rgba(14, 42, 71, 0.14);

    --serif:       'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --sans:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --radius:      4px;
    --radius-lg:   8px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--navy); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold-dark); }

h1, h2, h3, h4 {
    font-family: var(--serif);
    font-weight: 600;
    color: var(--navy);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 4vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 1rem; }
h3 { font-size: 1.4rem; margin-bottom: 0.6rem; }

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

.btn {
    display: inline-block;
    padding: 12px 28px;
    font-family: var(--sans);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
}
.btn-primary {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
}
.btn-primary:hover { background: var(--navy-dark); color: #fff; }
.btn-gold {
    background: var(--gold);
    color: var(--navy-dark);
    border-color: var(--gold);
}
.btn-gold:hover { background: var(--gold-dark); color: #fff; }
.btn-outline {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: #fff; }

/* === TOPBAR (anunț scurt) === */
.topbar {
    background: var(--navy-dark);
    color: #d3d6db;
    font-size: 0.82rem;
    padding: 8px 0;
    letter-spacing: 0.02em;
}
.topbar .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.topbar a { color: #d3d6db; }
.topbar a:hover { color: var(--gold); }

/* === HEADER === */
header.site-header {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 0 rgba(14,42,71,0.04);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    padding-bottom: 16px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}
.brand .crest {
    width: 46px; height: 46px;
    background: var(--navy);
    color: var(--gold);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--serif); font-weight: 700; font-size: 1.3rem;
    border-radius: 50%;
    border: 2px solid var(--gold);
}
.brand .text { line-height: 1.15; }
.brand .name {
    font-family: var(--serif);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--navy);
    display: block;
}
.brand .role {
    font-size: 0.78rem;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

nav.main-nav ul {
    display: flex;
    list-style: none;
    gap: 6px;
}
nav.main-nav a {
    display: block;
    padding: 10px 16px;
    color: var(--text);
    font-size: 0.93rem;
    font-weight: 500;
    border-radius: var(--radius);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
nav.main-nav a:hover, nav.main-nav a.active {
    background: var(--bg-soft);
    color: var(--navy);
}
nav.main-nav a.active { color: var(--gold-dark); }

.menu-toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--navy); }

/* === HERO === */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
    color: #fff;
    padding: 90px 0 110px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background:
      radial-gradient(circle at 20% 30%, rgba(201,169,97,0.12) 0%, transparent 50%),
      radial-gradient(circle at 80% 70%, rgba(255,255,255,0.06) 0%, transparent 50%);
    pointer-events: none;
}
.hero .container { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.hero-eyebrow {
    color: var(--gold);
    font-family: var(--sans);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.85rem;
    margin-bottom: 20px;
    display: inline-block;
}
.hero h1 {
    color: #fff;
    margin-bottom: 24px;
}
.hero h1 .accent { color: var(--gold); }
.hero p.lead {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 32px;
    max-width: 560px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-portrait {
    position: relative;
    aspect-ratio: 4/5;
    background: linear-gradient(135deg, rgba(201,169,97,0.2), rgba(255,255,255,0.05));
    border: 1px solid rgba(201,169,97,0.3);
    border-radius: var(--radius-lg);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; }
.hero-portrait .placeholder {
    font-family: var(--serif);
    font-size: 8rem;
    color: var(--gold);
    opacity: 0.7;
}

/* === STATS BAR === */
.stats-bar {
    background: var(--paper);
    margin-top: -50px;
    margin-bottom: 80px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
}
.stat {
    padding: 28px 20px;
    text-align: center;
    border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }
.stat .num {
    font-family: var(--serif);
    font-size: 2.6rem;
    font-weight: 600;
    color: var(--navy);
    line-height: 1;
}
.stat .lbl {
    color: var(--text-soft);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 8px;
}

/* === SECTIONS === */
section.section { padding: 80px 0; }
section.section.alt { background: var(--bg-soft); }

.section-head {
    text-align: center;
    margin-bottom: 56px;
}
.section-head .eyebrow {
    color: var(--gold-dark);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.82rem;
    margin-bottom: 14px;
}
.section-head h2 { margin-bottom: 14px; }
.section-head p { color: var(--text-soft); max-width: 720px; margin: 0 auto; font-size: 1.05rem; }

/* === GRID CARDS (activitate) === */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}
.card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all 0.25s;
    display: flex; flex-direction: column;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--gold); }
.card .tag {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 3px;
    margin-bottom: 14px;
}
.tag-interpelare { background: #e8f0fa; color: #1c4a82; }
.tag-motiune     { background: #fce8e6; color: #9a2a1f; }
.tag-declaratie  { background: #fdf3df; color: #836015; }
.tag-lege        { background: #e3f1e9; color: #1f6a3a; }
.tag-intrebare   { background: #ecedf0; color: #3d4658; }
.tag-default     { background: #ecedf0; color: #3d4658; }

.card .meta {
    color: var(--text-soft);
    font-size: 0.82rem;
    margin-bottom: 8px;
}
.card h3 {
    font-size: 1.18rem;
    line-height: 1.3;
    margin-bottom: 12px;
    flex-grow: 1;
}
.card h3 a { color: var(--navy); }
.card h3 a:hover { color: var(--gold-dark); }
.card .excerpt {
    color: var(--text-soft);
    font-size: 0.95rem;
    margin-bottom: 16px;
}
.card .read-more {
    color: var(--gold-dark);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: auto;
}

/* === FILTERS === */
.filters {
    display: flex; gap: 8px; flex-wrap: wrap;
    margin-bottom: 32px;
    align-items: center;
}
.filters .filter-btn {
    padding: 8px 16px;
    border: 1px solid var(--line);
    background: var(--paper);
    border-radius: 999px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text);
    text-decoration: none;
}
.filters .filter-btn:hover { border-color: var(--navy); }
.filters .filter-btn.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.filters .search {
    flex: 1;
    min-width: 240px;
    margin-left: auto;
}
.filters .search input {
    width: 100%;
    padding: 9px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.9rem;
    font-family: var(--sans);
}
.filters .search input:focus { outline: none; border-color: var(--gold); }

/* === BIO === */
.bio-grid {
    display: grid; grid-template-columns: 1fr 2fr; gap: 60px; align-items: start;
}
.bio-portrait {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 4/5;
    display: flex; align-items: center; justify-content: center;
    color: var(--gold);
    font-family: var(--serif);
    font-size: 6rem;
}
.bio-portrait img { width: 100%; height: 100%; object-fit: cover; }
.bio-content h2 { margin-top: 0; }
.bio-content h3 {
    margin-top: 32px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--gold);
    display: inline-block;
}
.bio-content p { margin-bottom: 1rem; color: var(--text-soft); }
.bio-content ul { margin-left: 1.4rem; margin-bottom: 1rem; color: var(--text-soft); }
.bio-content li { margin-bottom: 0.4rem; }

.timeline {
    border-left: 2px solid var(--gold);
    padding-left: 28px;
    margin: 28px 0;
}
.timeline-item {
    position: relative;
    padding-bottom: 24px;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -36px; top: 6px;
    width: 14px; height: 14px;
    background: var(--gold);
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--gold);
}
.timeline-item .year {
    color: var(--gold-dark);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}
.timeline-item .desc { color: var(--text); font-weight: 500; margin-top: 2px; }
.timeline-item .sub { color: var(--text-soft); font-size: 0.92rem; }

/* === GALERIE === */
.galerie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}
.gal-item {
    aspect-ratio: 4/3;
    background: var(--bg-soft);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    position: relative;
}
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.gal-item:hover img { transform: scale(1.05); }
.gal-item .gal-info {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: #fff; padding: 16px;
    transform: translateY(100%); transition: transform 0.3s;
}
.gal-item:hover .gal-info { transform: translateY(0); }

/* === DETAIL PAGE === */
.detail-hero {
    padding: 60px 0 40px;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
}
.detail-hero .meta { color: var(--text-soft); margin-bottom: 12px; font-size: 0.9rem; }
.detail-hero h1 { font-size: clamp(1.7rem, 3vw, 2.6rem); }
.detail-body { padding: 48px 0; max-width: 820px; margin: 0 auto; }
.detail-body p { margin-bottom: 1rem; color: var(--text); font-size: 1.04rem; }

/* === FOOTER === */
footer.site-footer {
    background: var(--navy-dark);
    color: #c8cbd0;
    padding: 60px 0 24px;
    margin-top: 80px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-grid h4 {
    color: var(--gold);
    font-family: var(--sans);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    margin-bottom: 16px;
    font-weight: 600;
}
.footer-grid a { color: #c8cbd0; }
.footer-grid a:hover { color: var(--gold); }
.footer-grid ul { list-style: none; }
.footer-grid ul li { margin-bottom: 8px; font-size: 0.92rem; }
.footer-grid p { font-size: 0.92rem; line-height: 1.7; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
    font-size: 0.82rem;
    color: #888c93;
}

/* === FORMS === */
form.form-card {
    background: var(--paper);
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}
.form-row { margin-bottom: 18px; }
.form-row label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--navy);
}
.form-row input, .form-row textarea, .form-row select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-family: var(--sans);
    font-size: 0.96rem;
    background: var(--paper);
    color: var(--text);
    transition: border-color 0.2s;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201,169,97,0.15);
}
.form-row textarea { resize: vertical; min-height: 130px; }

.alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 18px; font-size: 0.94rem; }
.alert.success { background: #e3f1e9; color: #1f6a3a; border: 1px solid #b6dcc4; }
.alert.error   { background: #fce8e6; color: #9a2a1f; border: 1px solid #f3bdb7; }
.alert.info    { background: #e8f0fa; color: #1c4a82; border: 1px solid #bcd2ec; }

/* === PAGINATION === */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 40px; }
.pagination a, .pagination span {
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    font-size: 0.9rem;
    color: var(--text);
}
.pagination a:hover { border-color: var(--navy); }
.pagination .current { background: var(--navy); color: #fff; border-color: var(--navy); }

/* === RESPONSIVE === */
@media (max-width: 900px) {
    .hero .container { grid-template-columns: 1fr; gap: 40px; }
    .hero { padding: 60px 0 80px; }
    .stats-bar { grid-template-columns: repeat(2, 1fr); margin-top: -40px; }
    .stat:nth-child(2) { border-right: 0; }
    .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .bio-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .menu-toggle { display: block; }
    nav.main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border-top: 1px solid var(--line); box-shadow: var(--shadow); }
    nav.main-nav.open { display: block; }
    nav.main-nav ul { flex-direction: column; padding: 12px; gap: 0; }
    nav.main-nav a { padding: 14px 16px; }
    .filters .search { margin-left: 0; width: 100%; }
}
@media (max-width: 560px) {
    .stats-bar { grid-template-columns: 1fr; }
    .stat { border-right: 0 !important; border-bottom: 1px solid var(--line); }
    .stat:last-child { border-bottom: 0; }
    .footer-grid { grid-template-columns: 1fr; }
}
