/* ============================================================
   nws.RO — TYPOGRAPHY
   Sistem tipografic complet.
   Inter Tight (headings) · Inter (body) · Lato (accent)

   Autor: nrg evolution srl
   ============================================================ */

/* ==========================================================
   1. GOOGLE FONTS IMPORTS
   Încărcăm doar greutățile necesare pentru performanță
   ========================================================== */

/* Inter Tight — pentru titluri (400, 500, 600, 700, 800) */
@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,600&display=swap');

/* Inter — pentru text body (300, 400, 500, 600, 700) */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

/* Lato — pentru accent, navigație (400, 700, 900) */
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,400;0,700;0,900;1,400&display=swap');


/* ==========================================================
   2. BODY — Stilul de bază al textului
   ========================================================== */

body {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    line-height: var(--lh-normal);
    color: var(--nws-text);
    background: var(--nws-bg);
    font-weight: var(--fw-regular);
    -webkit-font-smoothing: antialiased;
}


/* ==========================================================
   3. HEADINGS — Ierarhie titluri h1–h6
   Inter Tight, bold, cu letter-spacing tight
   ========================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--nws-text);
    line-height: var(--lh-tight);
    letter-spacing: var(--ls-tight);
    font-weight: var(--fw-bold);
    margin-bottom: var(--space-3);
}

/* Dimensiuni individuale */
h1 {
    font-size: var(--fs-3xl);
    font-weight: var(--fw-extrabold);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

h2 {
    font-size: var(--fs-2xl);
    font-weight: var(--fw-bold);
    letter-spacing: -0.02em;
}

h3 {
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
}

h4 {
    font-size: var(--fs-lg);
    font-weight: var(--fw-semibold);
}

h5 {
    font-size: var(--fs-md);
    font-weight: var(--fw-semibold);
}

h6 {
    font-size: var(--fs-base);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: var(--ls-wider);
}

/* Responsive — headings mai mari pe desktop */
@media (min-width: 768px) {
    h1 { font-size: var(--fs-4xl); }
    h2 { font-size: var(--fs-3xl); }
    h3 { font-size: var(--fs-2xl); }
}

@media (min-width: 1024px) {
    h1 { font-size: var(--fs-5xl); }
    h2 { font-size: var(--fs-4xl); }
}


/* ==========================================================
   4. PARAGRAFE ȘI TEXT BODY
   ========================================================== */

p {
    margin-bottom: var(--space-4);
    color: var(--nws-text-soft);
    line-height: var(--lh-relaxed);
}

/* Paragraf lead — text intro mai mare */
.lead {
    font-size: var(--fs-lg);
    font-weight: var(--fw-regular);
    line-height: var(--lh-relaxed);
    color: var(--nws-text-soft);
}

@media (min-width: 768px) {
    .lead {
        font-size: var(--fs-xl);
    }
}

/* Text mic (disclaimer, note) */
small, .text-small {
    font-size: var(--fs-sm);
    line-height: var(--lh-normal);
}


/* ==========================================================
   5. LINK-URI
   ========================================================== */

/* Link generic (fără clasă) */
a:not([class]) {
    color: var(--nws-primary);
    text-decoration: underline;
    text-decoration-color: rgba(var(--nws-primary-rgb), 0.3);
    text-underline-offset: 3px;
    transition: color var(--duration-fast) var(--ease-out),
                text-decoration-color var(--duration-fast) var(--ease-out);
}

a:not([class]):hover {
    color: var(--nws-primary-dark);
    text-decoration-color: var(--nws-primary);
}

/* Link cu accent vizual */
.link-accent {
    color: var(--nws-primary);
    font-weight: var(--fw-medium);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap var(--duration-fast) var(--ease-out),
                color var(--duration-fast) var(--ease-out);
}

.link-accent::after {
    content: '→';
    transition: transform var(--duration-fast) var(--ease-out);
}

.link-accent:hover {
    color: var(--nws-primary-dark);
    gap: 10px;
}

.link-accent:hover::after {
    transform: translateX(2px);
}


/* ==========================================================
   6. LISTE
   ========================================================== */

/* Liste cu stil în conținut */
.content-text ul,
.content-text ol {
    margin: var(--space-4) 0;
    padding-left: var(--space-6);
}

.content-text ul { list-style: disc; }
.content-text ol { list-style: decimal; }

.content-text li {
    margin-bottom: var(--space-2);
    color: var(--nws-text-soft);
    line-height: var(--lh-relaxed);
}

.content-text li::marker {
    color: var(--nws-primary);
}

/* Listă cu icon check (pentru beneficii, features) */
.check-list {
    list-style: none;
    padding: 0;
}

.check-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: var(--space-3);
    line-height: var(--lh-normal);
    color: var(--nws-text-soft);
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 1px;
    font-weight: var(--fw-bold);
    color: var(--nws-success);
    font-size: var(--fs-md);
}


/* ==========================================================
   7. BLOCKQUOTE — Citat stilizat
   ========================================================== */

blockquote {
    border-left: 3px solid var(--nws-primary);
    padding: var(--space-4) var(--space-5);
    margin: var(--space-8) 0;
    background: var(--nws-surface-2);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    font-size: var(--fs-lg);
    line-height: var(--lh-snug);
    color: var(--nws-text);
}

blockquote p {
    color: var(--nws-text);
    margin-bottom: 0;
}

blockquote p:last-child {
    margin-bottom: 0;
}

blockquote cite {
    display: block;
    margin-top: var(--space-3);
    font-style: normal;
    font-family: var(--font-heading);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    color: var(--nws-text-muted);
}

blockquote cite::before {
    content: '— ';
}


/* ==========================================================
   8. COD ȘI PREFORMATAT
   ========================================================== */

code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background: var(--nws-surface-2);
    padding: 2px 6px;
    border-radius: var(--radius-xs);
    color: var(--nws-primary);
}

pre {
    font-family: var(--font-mono);
    font-size: var(--fs-sm);
    background: var(--nws-surface-3);
    padding: var(--space-5);
    border-radius: var(--radius-md);
    overflow-x: auto;
    line-height: var(--lh-relaxed);
    margin: var(--space-6) 0;
}

pre code {
    background: none;
    padding: 0;
    font-size: inherit;
    color: inherit;
}


/* ==========================================================
   9. SEPARATOARE
   ========================================================== */

hr {
    border: none;
    height: 1px;
    background: var(--nws-border);
    margin: var(--space-8) 0;
}


/* ==========================================================
   10. SELECȚIE TEXT
   ========================================================== */

::selection {
    background: rgba(var(--nws-primary-rgb), 0.2);
    color: var(--nws-text);
}


/* ==========================================================
   11. CLASE UTILITARE TIPOGRAFICE
   ========================================================== */

/* ── Dimensiuni ── */
.text-xs   { font-size: var(--fs-xs); }
.text-sm   { font-size: var(--fs-sm); }
.text-base { font-size: var(--fs-base); }
.text-md   { font-size: var(--fs-md); }
.text-lg   { font-size: var(--fs-lg); }
.text-xl   { font-size: var(--fs-xl); }
.text-2xl  { font-size: var(--fs-2xl); }
.text-3xl  { font-size: var(--fs-3xl); }

/* ── Greutăți ── */
.font-light    { font-weight: var(--fw-light); }
.font-normal   { font-weight: var(--fw-regular); }
.font-medium   { font-weight: var(--fw-medium); }
.font-semibold { font-weight: var(--fw-semibold); }
.font-bold     { font-weight: var(--fw-bold); }
.font-extrabold { font-weight: var(--fw-extrabold); }

/* ── Culori text ── */
.text-primary  { color: var(--nws-primary); }
.text-dark     { color: var(--nws-text); }
.text-soft     { color: var(--nws-text-soft); }
.text-muted    { color: var(--nws-text-muted); }
.text-faint    { color: var(--nws-text-faint); }
.text-inverse  { color: var(--nws-text-inverse); }
.text-success  { color: var(--nws-success); }
.text-error    { color: var(--nws-error); }
.text-warning  { color: var(--nws-warning); }

/* ── Aliniere ── */
.text-left     { text-align: left; }
.text-center   { text-align: center; }
.text-right    { text-align: right; }

/* ── Transform ── */
.uppercase     { text-transform: uppercase; }
.lowercase     { text-transform: lowercase; }
.capitalize    { text-transform: capitalize; }
.normal-case   { text-transform: none; }

/* ── Familii ── */
.font-heading  { font-family: var(--font-heading); }
.font-body     { font-family: var(--font-body); }
.font-accent   { font-family: var(--font-accent); }
.font-mono     { font-family: var(--font-mono); }

/* ── Line heights ── */
.leading-tight   { line-height: var(--lh-tight); }
.leading-snug    { line-height: var(--lh-snug); }
.leading-normal  { line-height: var(--lh-normal); }
.leading-relaxed { line-height: var(--lh-relaxed); }
.leading-loose   { line-height: var(--lh-loose); }

/* ── Truncation ── */
.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-4 {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Etichetă secțiune (overline) ── */
.section-label {
    font-family: var(--font-accent);
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: var(--ls-widest);
    color: var(--nws-primary);
    margin-bottom: var(--space-3);
    display: block;
}

/* ── Titlu secțiune ── */
.section-title {
    font-family: var(--font-heading);
    font-size: var(--fs-3xl);
    font-weight: var(--fw-bold);
    color: var(--nws-text);
    line-height: var(--lh-tight);
    margin-bottom: var(--space-4);
}

@media (min-width: 768px) {
    .section-title {
        font-size: var(--fs-4xl);
    }
}

/* ── Subtitlu secțiune ── */
.section-subtitle {
    font-size: var(--fs-md);
    color: var(--nws-text-soft);
    line-height: var(--lh-relaxed);
    max-width: 640px;
}

@media (min-width: 768px) {
    .section-subtitle {
        font-size: var(--fs-lg);
    }
}
