/* ==========================================================================
   Generic Pages (About / Contact / Privacy / Terms)
   Theme: "valeriu"
   ========================================================================== */

/* Wrapper general – doar spacing vertical */
.pg-page {
    padding: 3rem 0 4rem;
}

/* Container comun pentru pagini statice:
   - max-width = lățimea site-ului
   - centrat, cu același padding ca home/portfolio/blog
*/
.pg-inner {
    max-width: 1348px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ------------------------------
   Hero generic (titlu pagină)
   ------------------------------ */

.pg-hero {
    margin-bottom: 2.3rem;
}

/* Titlu + eventual intro într-o coloană de max 960px, aliniată la stânga */
.pg-hero-inner {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    max-width: 960px;
}

.pg-eyebrow {
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.95);
    margin: 0;
}

.pg-title {
    margin: 0;
    font-size: clamp(2rem, 3vw, 2.5rem);
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: #f9fafb;
}

.pg-intro {
    margin: 0;
    max-width: 44rem;
    color: rgba(148, 163, 184, 0.98);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Tag opțional sub titlu */
.pg-meta-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(156, 163, 175, 0.96);
}

/* ------------------------------
   Card principal conținut pagină
   ------------------------------ */

.pg-body {
    border-radius: 1.4rem;
    padding: 1.7rem 1.6rem 1.8rem;
    border: 1px solid rgba(15, 23, 42, 1);
    background:
        radial-gradient(circle at 0 0,
            rgba(251, 191, 36, 0.12),
            transparent 48%),
        radial-gradient(circle at 100% 100%,
            rgba(56, 189, 248, 0.18),
            transparent 50%),
        linear-gradient(135deg,
            rgba(15, 23, 42, 0.99),
            #020617);
    box-shadow:
        0 22px 60px rgba(15, 23, 42, 0.95),
        inset 0 0 0 1px rgba(15, 23, 42, 0.9);

    /* Aici limităm cardul la 960px – aliniere pe stânga
       în cadrul containerului PG-INNER (1348px) */
    max-width: 960px;
}

/* Coloană de text din card (tot 960px, doar structură) */
.pg-body-inner {
    max-width: 960px;
    margin: 0;
}

/* Tipografie de bază pentru HTML generat din DB */

.pg-body p {
    margin: 0 0 1.05rem;
    font-size: 0.96rem;
    line-height: 1.8;
    color: rgba(229, 231, 235, 0.98);
}

.pg-body p:last-child {
    margin-bottom: 0;
}

.pg-body h2,
.pg-body h3,
.pg-body h4 {
    margin-top: 1.8rem;
    margin-bottom: 0.7rem;
    line-height: 1.35;
    color: #f9fafb;
}

.pg-body h2 {
    font-size: 1.45rem;
}

.pg-body h3 {
    font-size: 1.18rem;
}

.pg-body h4 {
    font-size: 1.02rem;
}

.pg-body ul,
.pg-body ol {
    margin: 0 0 1.2rem 1.3rem;
    padding: 0;
    font-size: 0.95rem;
    line-height: 1.75;
    color: rgba(229, 231, 235, 0.96);
}

.pg-body li {
    margin-bottom: 0.45rem;
}

.pg-body strong {
    color: #f9fafb;
}

.pg-body a {
    color: #93c5fd;
    text-decoration: underline;
    text-decoration-color: rgba(129, 140, 248, 0.8);
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition:
        color 150ms ease-out,
        text-decoration-color 150ms ease-out;
}

.pg-body a:hover {
    color: #bfdbfe;
    text-decoration-color: rgba(251, 191, 36, 0.9);
}

/* Citări / blocuri speciale */
.pg-body blockquote {
    margin: 1.4rem 0;
    padding: 0.95rem 1.1rem;
    border-radius: 0.9rem;
    border-left: 3px solid rgba(251, 191, 36, 0.9);
    background: radial-gradient(circle at top left,
        rgba(15, 23, 42, 0.96),
        rgba(15, 23, 42, 1));
    color: rgba(209, 213, 219, 0.98);
    font-style: italic;
}

/* Tabele (pentru Terms / Privacy) */
.pg-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0;
    font-size: 0.9rem;
}

.pg-body th,
.pg-body td {
    border: 1px solid rgba(55, 65, 81, 0.85);
    padding: 0.55rem 0.7rem;
}

.pg-body th {
    background: rgba(15, 23, 42, 0.95);
    color: rgba(249, 250, 251, 0.98);
    text-align: left;
}

/* Linie discretă de separare între secțiuni lungi */
.pg-divider {
    height: 1px;
    border: 0;
    margin: 1.8rem 0;
    background: linear-gradient(90deg,
        transparent,
        rgba(148, 163, 184, 0.5),
        transparent);
}

/* ------------------------------
   Contact page layout
   ------------------------------ */

/* Pentru pagina de contact vrem cardul pe toată lățimea de 1348px
   (două coloane), deci anulăm max-width: 960px de mai sus. */
.pg-page-contact .pg-body {
    max-width: 100%;
    padding: 1.6rem 1.5rem 1.7rem;
}

/* Grid 2 col: formular + info de contact */
.pg-contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.95fr);
    gap: 1.8rem;
    align-items: flex-start;
}

/* Card formular */
.pg-contact-main {
    border-radius: 1.1rem;
    padding: 1.2rem 1.1rem 1.3rem;
    border: 1px solid rgba(31, 41, 55, 1);
    background: radial-gradient(circle at top left,
        rgba(15, 23, 42, 0.98),
        rgba(15, 23, 42, 1));
    box-shadow:
        0 18px 50px rgba(15, 23, 42, 0.94),
        inset 0 0 0 1px rgba(15, 23, 42, 0.9);
}

/* Form fields */
.pg-contact-main form {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.pg-field-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.pg-label {
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(156, 163, 175, 0.96);
}

.pg-input,
.pg-textarea {
    border-radius: 0.8rem;
    border: 1px solid rgba(55, 65, 81, 0.9);
    background: rgba(15, 23, 42, 0.96);
    color: #e5e7eb;
    padding: 0.65rem 0.75rem;
    font-size: 0.9rem;
    outline: none;
    transition:
        border-color 150ms ease-out,
        box-shadow 150ms ease-out,
        background 150ms ease-out;
}

.pg-input::placeholder,
.pg-textarea::placeholder {
    color: rgba(107, 114, 128, 0.95);
}

.pg-input:focus,
.pg-textarea:focus {
    border-color: rgba(251, 191, 36, 0.9);
    box-shadow:
        0 0 0 1px rgba(251, 191, 36, 0.6),
        0 0 0 6px rgba(251, 191, 36, 0.16);
    background: rgba(15, 23, 42, 0.98);
}

.pg-textarea {
    min-height: 150px;
    resize: vertical;
}

/* Buton submit */
.pg-contact-actions {
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    align-items: center;
}

/* Card info contact (dreapta) */
.pg-contact-aside {
    border-radius: 1.1rem;
    padding: 1.1rem 1.1rem 1.2rem;
    border: 1px solid rgba(31, 41, 55, 1);
    background:
        radial-gradient(circle at 0 0,
            rgba(251, 191, 36, 0.16),
            transparent 50%),
        radial-gradient(circle at 100% 100%,
            rgba(56, 189, 248, 0.18),
            transparent 52%),
        linear-gradient(145deg,
            rgba(15, 23, 42, 0.98),
            #020617);
    box-shadow:
        0 18px 50px rgba(15, 23, 42, 0.94),
        inset 0 0 0 1px rgba(15, 23, 42, 0.9);
}

.pg-contact-aside-title {
    margin: 0 0 0.6rem;
    font-size: 1.02rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #f9fafb;
}

.pg-contact-aside-text {
    margin: 0 0 0.8rem;
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(203, 213, 225, 0.98);
}

.pg-contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: rgba(229, 231, 235, 0.98);
}

.pg-contact-list li {
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
}

.pg-contact-label {
    min-width: 80px;
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.96);
}

/* ------------------------------
   Notificări / mesaje (success/erroare)
   ------------------------------ */

.pg-alert {
    border-radius: 0.85rem;
    padding: 0.7rem 0.85rem;
    font-size: 0.86rem;
    line-height: 1.5;
    margin-bottom: 0.85rem;
}

.pg-alert-success {
    border: 1px solid rgba(34, 197, 94, 0.8);
    background: rgba(22, 163, 74, 0.16);
    color: #bbf7d0;
}

.pg-alert-error {
    border: 1px solid rgba(248, 113, 113, 0.85);
    background: rgba(185, 28, 28, 0.2);
    color: #fecaca;
}

/* ------------------------------
   Responsive
   ------------------------------ */

@media (max-width: 900px) {
    .pg-inner {
        padding-inline: 1.1rem;
    }

    .pg-body {
        padding-inline: 1.3rem;
    }

    .pg-contact-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 600px) {
    .pg-inner {
        padding-inline: 1rem;
    }

    .pg-page {
        padding-top: 2.5rem;
    }

    .pg-body {
        padding-inline: 1.05rem;
        padding-top: 1.4rem;
        padding-bottom: 1.5rem;
        border-radius: 1.1rem;
        max-width: 100%; /* pe mobile poate ocupa toată lățimea containerului */
    }
}
