/*
 * Premium stylesheet
 * Cabinet de avocat Sebastian-Mihai Roșu
 */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', 'Arial', sans-serif;
    line-height: 1.7;
    color: #1a1a1a;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* Premium Color Palette */
:root {
    --primary: #0b3a66;
    --secondary: #c7a962;
    --light: #f4f6f9;
    --dark: #0b1f33;
    --text-dark: #1a1a1a;
    --text-light: #666666;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.6em;
    letter-spacing: 0.5px;
}

h1 { font-size: 2.6rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.3rem; }

p {
    margin-bottom: 1.2em;
    color: var(--text-dark);
    font-size: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.25s ease;
}

a:hover {
    color: var(--secondary);
}

/* Navigation */
nav {
    position: fixed;
    width: 100%;
    background-color: var(--dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 2rem;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

nav .logo {
    display: flex;
    align-items: center;
}

nav .logo img {
    height: 42px;
    margin-right: 0.6rem;
}

nav .logo span {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 600;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.2rem;
}

nav ul li a {
    color: #ffffff;
    padding: 0.5rem 0.8rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 500;
    border-radius: 4px;
}

nav ul li a:hover,
nav ul li a.active {
    background-color: var(--primary);
    color: var(--secondary);
}

/* Hero */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 1rem;
    background-size: cover;
    background-position: center;
    position: relative;
    color: #ffffff;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    /* Suprapunere semi-transparentă pentru a lăsa să se observe culorile imaginii abstracte. */
    background: rgba(0, 0, 0, 0.45);
}

.hero .content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    color: var(--secondary);
    margin-bottom: 1rem;
}

.hero p {
    color: #f0f0f0;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Premium Button */
.btn {
    display: inline-block;
    background-color: var(--secondary);
    color: var(--dark);
    padding: 0.8rem 1.8rem;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: var(--primary);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Sections */
section {
    padding: 4rem 1.5rem;
}

.section-light {
    background-color: var(--light);
}

.section-dark {
    background-color: var(--dark);
    color: #ffffff;
}

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

/* Cards */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.15);
}

.card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.card-body {
    padding: 1.4rem;
}

.card-body p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Contact */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-info a {
    font-weight: 600;
}

/* Map */
.map-container iframe {
    width: 100%;
    height: 350px;
    border: 0;
    border-radius: 8px;
}

/* Premium Footer */
footer {
    background-color: var(--dark);
    color: #ffffff;
    padding: 3rem 1.5rem;
}

footer .footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

footer h3,
footer h4 {
    color: var(--secondary);
    margin-bottom: 1rem;
}

footer p,
footer strong,
footer li {
    color: #ffffff;
    font-size: 0.95rem;
}

footer ul {
    list-style: none;
}

footer a {
    color: #ffffff;
    transition: color 0.2s ease;
}

footer a:hover {
    color: var(--secondary);
}

footer .copyright {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: #cccccc;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1rem;
}

/* Cookie Banner */
#cookie-banner {
    position: fixed;
    /* Afișăm bannerul ca o fereastră plutitoare cu margini rotunjite */
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    background-color: rgba(11, 31, 51, 0.92);
    color: #ffffff;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    display: none;
    z-index: 2000;
}

#cookie-banner.active {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

#cookie-banner button {
    background-color: var(--secondary);
    color: var(--dark);
    border: none;
    padding: 0.6rem 1.4rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

#cookie-banner button:hover {
    background-color: var(--primary);
    color: #ffffff;
}

/* Responsive */
@media (max-width: 768px) {
    nav ul {
        display: none;
    }

    nav .hamburger {
        display: block;
        cursor: pointer;
    }

    nav.active ul {
        display: flex;
        flex-direction: column;
        background-color: var(--dark);
        position: absolute;
        top: 60px;
        right: 0;
        width: 220px;
        padding: 1rem;
    }
}


/* ===== RESPONSIVE NAVIGATION FIX ===== */

/* Desktop */
.hamburger {
    display: none;
}

.nav-links {
    display: flex;
    gap: 20px;
}

/* Mobile */
@media (max-width: 768px) {
    .hamburger {
        display: block;
        cursor: pointer;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #0c1c2c;
        position: absolute;
        top: 70px;
        left: 0;
        padding: 20px 0;
    }

    .nav-links.active {
        display: flex;
    }
}

