/* --- Setări Generale și Culori --- */
:root {
    /* Fundaluri */
    --bg-sidebar: #8b6656;
    --bg-main: #fbf4ec;

    /* Texte dreapta */
    --text-dark: #4a332b;
    --text-light: #7d665d;

    /* Texte stânga */
    --sidebar-text: #fff8f1;
    --sidebar-muted: #ead2c5;

    /* Accente */
    --accent-color: #cda998;
    --accent-hover: #765244;

    /* Borduri și carduri */
    --sidebar-border: rgba(255, 248, 241, 0.28);
    --card-bg: rgba(255, 250, 245, 0.82);
    --card-border: #eadbd2;
    --card-shadow: rgba(74, 51, 43, 0.08);

    /* Formulare */
    --input-bg: #fffaf6;
    --input-border: #dfcbc0;

    --font-heading: 'Playfair Display', serif;
    --font-script: 'Allura', cursive;
    --font-body: 'Montserrat', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    display: flex;
    min-height: 100vh;
    background-color: var(--bg-main);
}

/* --- BARA LATERALĂ --- */
.sidebar {
    width: 320px;
    height: 100vh;
    background-color: var(--bg-sidebar);
    color: var(--sidebar-text);
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    border-right: 1px solid var(--sidebar-border);
    overflow-y: auto;
}

/* Fundal floral subtil pe sidebar */
.sidebar::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 320px;
    height: 100vh;
    background-image: url("images/fundal-floral.jpg");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    opacity: 0.08;
    pointer-events: none;
}

.sidebar > * {
    position: relative;
    z-index: 1;
}

.sidebar-header {
    text-align: center;
    margin-bottom: 30px;
}

.subtitle {
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 10px;
}

.sidebar .subtitle {
    color: var(--sidebar-muted);
}

.names-title {
    font-family: var(--font-script);
    font-size: 48px;
    font-weight: normal;
    font-style: normal;
    letter-spacing: 0;
    text-transform: none;
    color: var(--text-dark);
    margin: 10px 0;
}

.sidebar .names-title {
    color: var(--sidebar-text);
}

.heart-symbol {
    font-family: Georgia, "Times New Roman", serif;
    color: var(--accent-color);
    font-size: 13px;
    line-height: 1;
    font-weight: normal;
}

.sidebar .heart-symbol {
    color: var(--sidebar-muted);
}

.icon.heart-symbol {
    display: inline-block;
    color: var(--accent-color);
    font-size: 15px;
}
.date {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: normal;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.sidebar .date {
    color: var(--sidebar-text);
}

.location-short {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.5;
}

.sidebar .location-short {
    color: var(--sidebar-text);
}

.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px 0;
    color: var(--accent-color);
}

.divider::before,
.divider::after {
    content: "";
    height: 1px;
    width: 30px;
    background-color: var(--accent-color);
    margin: 0 10px;
}

.sidebar .divider {
    color: var(--sidebar-muted);
}

.sidebar .divider::before,
.sidebar .divider::after {
    background-color: var(--sidebar-muted);
}

/* --- Timer --- */
.countdown-container {
    background: rgba(255, 248, 241, 0.04);
    border: 1px solid var(--sidebar-border);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    width: 90%;
    margin-bottom: 40px;
}

.countdown-title {
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--sidebar-muted);
    margin-bottom: 15px;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.time-box {
    display: flex;
    flex-direction: column;
}

.time-box span {
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--sidebar-text);
}

.time-box label {
    font-size: 8px;
    letter-spacing: 1px;
    color: var(--sidebar-muted);
}

.colon {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--sidebar-text);
}

/* --- Meniu Navigare --- */
.main-nav ul {
    list-style: none;
    text-align: center;
    width: 100%;
}

.main-nav li {
    margin-bottom: 15px;
}

.main-nav a {
    text-decoration: none;
    color: var(--sidebar-muted);
    font-size: 11px;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--sidebar-text);
    font-weight: 500;
}

.main-nav a.active::before {
    content: "• ";
    color: var(--accent-color);
}

/* --- CONȚINUT PRINCIPAL --- */
.content {
    margin-left: 320px;
    width: calc(100% - 320px);
    padding: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    background-color: var(--bg-main);
    color: var(--text-dark);
}

.content::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("images/fundal-floral.jpg");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    opacity: 0.10;
    z-index: -1;
}

.section {
    max-width: 800px;
    width: 100%;
    margin-bottom: 100px;
    text-align: center;
}

.section.left-align {
    text-align: left;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 36px;
    font-style: italic;
    font-weight: normal;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.section-title.center {
    text-align: center;
}

.center {
    text-align: center;
}

/* --- Cercul Acasă --- */
.hero-circle {
    width: 120px;
    height: 120px;
    border: 1px solid var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px auto;
}

.hero-circle .initials {
    font-family: var(--font-script);
    font-size: 40px;
    font-weight: normal;
    font-style: normal;
    letter-spacing: 0;
    text-transform: none;
    color: var(--text-light);
}

.hero-text {
    font-family: var(--font-heading);
    font-size: 28px;
    font-style: italic;
    font-weight: normal;
    margin: 20px 0;
    line-height: 1.4;
    color: var(--text-dark);
}

.hero-desc,
.text-block {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 15px;
}

/* --- Carduri --- */
.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 8px 30px var(--card-shadow);
    margin-bottom: 20px;
    color: var(--text-dark);
}

.family-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.elegant-name {
    font-family: var(--font-script);
    font-size: 32px;
    font-weight: normal;
    margin-top: 10px;
    color: var(--text-dark);
}

.icon {
    color: var(--accent-color);
}

/* --- Carduri Evenimente --- */
.event-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.event-card {
    display: flex;
    padding: 20px;
    text-align: left;
    align-items: center;
    gap: 30px;
}

.event-img {
    width: 150px;
    height: 150px;
    overflow: hidden;
    border-radius: 16px;
    flex-shrink: 0;
}

.event-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.event-details h3 {
    font-family: var(--font-heading);
    font-weight: normal;
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.event-time {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-address {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 10px;
}

.event-icon {
    width: 16px;
    height: 16px;
    display: inline-flex;
    flex-shrink: 0;
    color: var(--accent-color);
}

.event-icon svg {
    width: 100%;
    height: 100%;
}

/* --- Formular Confirmare --- */
.rsvp-form {
    text-align: left;
    margin-top: 30px;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid var(--input-border);
    border-radius: 8px;
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--input-bg);
    font-size: 14px;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-color);
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group.half {
    flex: 1;
}

#optiuni-camere {
    transition: all 0.3s ease;
    background-color: #f5e9df;
    padding: 10px;
    border-radius: 8px;
    margin-top: -10px;
}

/* --- Butoane --- */
.btn-outline {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid var(--accent-color);
    background: transparent;
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-outline:hover {
    border-color: var(--bg-sidebar);
    color: var(--bg-sidebar);
}

.btn-solid {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--bg-sidebar);
    border: none;
    border-radius: 20px;
    color: var(--sidebar-text);
    font-size: 14px;
    cursor: pointer;
    font-family: var(--font-body);
    transition: background 0.3s;
}

.btn-solid:hover {
    background-color: var(--accent-hover);
}

.form-buttons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

#form-status {
    margin-top: 12px;
    color: var(--text-light) !important;
}

/* --- Footer --- */
.footer-thanks {
    margin-top: 60px;
    text-align: center;
}

.names-title.small {
    font-size: 36px;
    color: var(--text-dark);
}

/* --- Responsivitate --- */
@media (max-width: 900px) {
    body {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid var(--sidebar-border);
        padding: 30px 20px;
    }

    .sidebar::before {
        width: 100%;
        height: auto;
        min-height: 100%;
        position: absolute;
    }

    .content {
        margin-left: 0;
        width: 100%;
        padding: 30px 20px;
    }

    .content::before {
        background-position: center center;
        background-size: cover;
        opacity: 0.08;
    }

    .section {
        margin-bottom: 60px;
    }

    .card {
        padding: 25px 20px;
    }

    .names-title {
        font-size: 34px;
    }

    .names-title.small {
        font-size: 30px;
    }

    .hero-circle {
        width: 100px;
        height: 100px;
    }

    .hero-circle .initials {
        font-size: 32px;
    }

    .hero-text {
        font-size: 18px;
        line-height: 1.5;
        padding: 0 10px;
        word-break: break-word;
    }

    .hero-desc,
    .text-block {
        font-size: 13px;
        line-height: 1.7;
        padding: 0 8px;
    }

    .section-title {
        font-size: 28px;
    }

    .elegant-name {
        font-size: 24px;
        line-height: 1.4;
    }

    .event-card {
        flex-direction: column;
        text-align: center;
    }

    .event-img {
        width: 100%;
        max-width: 220px;
        height: 180px;
    }

    .event-time {
        justify-content: center;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-buttons {
        flex-direction: column;
    }

    .btn-solid,
    .btn-outline {
        width: 100%;
        text-align: center;
    }
}