:root {
    --navy: #1f2d3d;
    --navy-dark: #16232f;
    --gold: #b08d57;
    --beige: #f6f3ee;
    --text: #33363b;
    --muted: #6b7280;
    --border: #e4e0d8;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    color: var(--text);
    background: #fff;
    line-height: 1.6;
}

h1, h2, h3, h4, .brand-name {
    font-family: 'Raleway', sans-serif;
    color: var(--navy);
    font-weight: 600;
    line-height: 1.25;
}

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

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

/* Header */
.site-header {
    background: var(--navy);
    border-bottom: 3px solid var(--gold);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
}
.brand-name { color: #fff; font-size: 22px; }
.brand img { max-height: 48px; }
.main-nav { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.main-nav a { color: #f2f2f2; font-weight: 500; letter-spacing: .02em; }
.main-nav a:hover { color: var(--gold); }
.nav-cta {
    background: var(--gold);
    color: var(--navy-dark) !important;
    padding: 8px 16px;
    border-radius: 4px;
}
.nav-cta:hover { background: #c8a56d; }

/* Hero */
.hero {
    background:
        linear-gradient(135deg, rgba(31,45,61,.55) 0%, rgba(22,35,47,.62) 100%),
        url('../img/hero-bg.jpg') center/cover no-repeat;
    color: #fff;
    padding: 90px 0;
    text-align: center;
}
.hero h1 { color: #fff; font-size: 42px; margin-bottom: 12px; }
.hero p { font-size: 18px; color: #d7dce2; max-width: 640px; margin: 0 auto 28px; }

/* Page header (services/team/faq/contact/generic pages) */
.page-header {
    position: relative;
    padding: 70px 0;
    color: #fff;
    text-align: center;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(22, 35, 47, .74);
}
.page-header .container { position: relative; z-index: 1; }
.page-header h1 { color: #fff; margin-bottom: 8px; }
.page-header p { color: #d7dce2; }

/* CTA section with photo background */
.cta-photo {
    position: relative;
    padding: 64px 0;
    text-align: center;
    color: #fff;
    background: url('../img/cta-bg.jpg') center/cover no-repeat;
}
.cta-photo::before { content: ''; position: absolute; inset: 0; background: rgba(22,35,47,.78); }
.cta-photo .container { position: relative; z-index: 1; }
.cta-photo h2 { color: #fff; }
.cta-photo p { color: #d7dce2; }

/* Social icons */
.social-icons { display: flex; gap: 12px; margin-top: 10px; }
.social-icons img { width: 22px; height: 22px; opacity: .85; }
.social-icons a:hover img { opacity: 1; }

.fb-link a { display: inline-flex; align-items: center; gap: 8px; }
.fb-link img { width: 16px; height: 16px; opacity: .85; }
.fb-link a:hover img { opacity: 1; }
.social-icons-list { margin-top: 10px; }
.social-icons-list .fb-link { margin: 8px 0; }

.content-figure { margin: 24px 0; text-align: center; }
.content-figure img { max-width: 100%; border-radius: 8px; }
.btn {
    display: inline-block;
    background: var(--gold);
    color: var(--navy-dark);
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
}
.btn:hover { background: #c8a56d; color: var(--navy-dark); }
.btn-outline {
    display: inline-block;
    border: 1px solid var(--navy);
    color: var(--navy);
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 600;
}

/* Sections */
section { padding: 64px 0; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title p { color: var(--muted); }
.bg-beige { background: var(--beige); }

.grid {
    display: grid;
    gap: 28px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 28px;
}
.card h3 { margin-top: 0; }
.card-icon { font-size: 28px; color: var(--gold); margin-bottom: 12px; }

.post-card img, .team-card img { width: 100%; height: 200px; object-fit: cover; border-radius: 6px; }
.post-card .meta { color: var(--muted); font-size: 13px; margin: 8px 0; }
.post-card h3 { font-size: 19px; }

.about-preview {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px;
}
.about-preview .card { width: 260px; }

.team-card { text-align: center; }
.team-card img { border-radius: 50%; width: 140px; height: 140px; margin: 0 auto 16px; }
.team-card .role { color: var(--gold); font-weight: 600; font-size: 14px; }

.badge {
    display: inline-block;
    background: var(--beige);
    color: var(--navy);
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 100px;
    margin-right: 6px;
}

/* Blog */
.post-detail-header { margin-bottom: 24px; }
.post-detail-header img { width: 100%; max-height: 420px; object-fit: cover; border-radius: 8px; }
.post-content { font-size: 17px; }
.post-content img { max-width: 100%; border-radius: 6px; }
.tags a { margin-right: 8px; }

.pagination { display: flex; gap: 10px; justify-content: center; margin-top: 32px; }
.pagination a, .pagination span { padding: 6px 14px; border: 1px solid var(--border); border-radius: 4px; }

.sidebar-box { border: 1px solid var(--border); border-radius: 8px; padding: 20px; margin-bottom: 20px; }
.sidebar-box h4 { margin-top: 0; }
.sidebar-box ul { list-style: none; padding: 0; margin: 0; }
.sidebar-box li { padding: 6px 0; border-bottom: 1px solid var(--border); }
.sidebar-box li:last-child { border-bottom: none; }

/* Forms */
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 600; margin-bottom: 6px; }
.form-field input, .form-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: inherit;
    font-size: 15px;
}
.form-field.checkbox { display: flex; align-items: flex-start; gap: 8px; }
.form-field.checkbox input { width: auto; }
.errorlist { color: #ba2121; padding-left: 18px; }

.consent-notice {
    margin-top: 20px;
    padding: 16px 18px;
    background: var(--beige);
    border-radius: 6px;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.7;
}
.consent-notice p { margin: 0 0 10px; }
.consent-notice p:last-child { margin-bottom: 0; }

.alert { padding: 14px 18px; border-radius: 6px; margin: 20px 0; }
.alert-success { background: #e6f4ea; color: #1e4620; }
.alert-error { background: #fde8e8; color: #7a1c1c; }

/* Footer */
.site-footer { background: var(--navy-dark); color: #cfd6dd; margin-top: 60px; }
.footer-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 48px 24px;
}
.footer-col h3, .footer-col h4 { color: #fff; }
.footer-col a { color: #cfd6dd; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
    border-top: 1px solid #2c3b4c;
    padding: 16px 24px;
    font-size: 13px;
    text-align: center;
    color: #94a0ab;
}

/* Cookie banner */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    background: var(--navy-dark);
    color: #e6e9ec;
    box-shadow: 0 -2px 12px rgba(0,0,0,.2);
}
.cookie-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 24px;
}
.cookie-banner p { margin: 0; font-size: 14px; }
.cookie-banner a { color: var(--gold); text-decoration: underline; }
.btn-small { padding: 8px 20px; font-size: 14px; white-space: nowrap; }

/* Homepage quick-contact strip */
.contact-strip {
    background: var(--beige);
    padding: 32px 0;
    text-align: center;
}
.contact-strip .contact-strip-inner {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}
.contact-strip a {
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 20px;
    color: var(--navy);
}
.contact-strip a:hover { color: var(--gold); }

/* About the firm (O Kancelarii) sections */
.about-section {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 36px;
    align-items: start;
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border);
}
.about-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.about-section img { width: 100%; border-radius: 8px; object-fit: cover; }
.about-section h3 { font-size: 24px; margin-top: 0; }
.about-section .role { color: var(--gold); font-weight: 600; margin-top: -8px; }
@media (max-width: 640px) {
    .about-section { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .header-inner { flex-direction: column; gap: 12px; }
    .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
    .hero h1 { font-size: 30px; }
}
