/* ============================================
   BASE STYLES - rarescojocariu.ro
   Dependinta: variables.css (design tokens)
   ============================================ */


/* -----------------------------------------------
   1. CSS RESET
   Normalizare consistenta cross-browser
----------------------------------------------- */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}


/* -----------------------------------------------
   2. BODY
   Fundatia tipografica si vizuala a site-ului
----------------------------------------------- */

body {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: 1.7;
    color: var(--color-text-primary);
    background: linear-gradient(160deg, #0a0a0a 0%, #0a1628 35%, #140a28 65%, #0a0a0a 100%) fixed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Previne scroll-ul cand meniul mobil e deschis */
body.menu-open {
    overflow: hidden;
}


/* -----------------------------------------------
   3. LAYOUT - CONTAINERE
   Structuri de continut centrate si limitate
----------------------------------------------- */

.container {
    width: 100%;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-sm);
    padding-right: var(--space-sm);
}

.container--narrow {
    max-width: var(--max-width-narrow);
}


/* -----------------------------------------------
   4. TIPOGRAFIE
   Ierarhie vizuala clara cu fonturi serif/sans-serif
----------------------------------------------- */

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text-primary);
    letter-spacing: -0.02em;
}

h1 {
    font-size: var(--fs-h1);
    margin-bottom: var(--space-md);
}

h2 {
    font-size: var(--fs-h2);
    margin-bottom: var(--space-sm);
}

h3 {
    font-size: var(--fs-h3);
    margin-bottom: var(--space-xs);
}

h4 {
    font-size: var(--fs-body);
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

p {
    margin-bottom: var(--space-sm);
    color: var(--color-text-secondary);
}

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

/* Accent colorat pentru cuvinte cheie in text */
.text-accent {
    color: white;
}


/* -----------------------------------------------
   5. LINKURI
   Stil de baza cu tranzitie la hover
----------------------------------------------- */

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover,
a:focus-visible {
    color: var(--color-accent);
}


/* -----------------------------------------------
   6. BUTOANE
   Sistem modular: baza + variante
----------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 0.85rem 2rem;
    font-family: var(--font-accent);
    font-size: var(--fs-small);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: 50px;
    cursor: pointer;
    transition:
        background-color var(--transition-base),
        color var(--transition-base),
        border-color var(--transition-base),
        box-shadow var(--transition-base),
        transform var(--transition-base);
}

.btn:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 3px;
}

/* --- Buton Primary: Albastru vibrant, actiunea principala --- */
.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    border-color: var(--color-primary);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background-color: #2a42cc;
    border-color: #2a42cc;
    color: var(--color-text-light);
    box-shadow: var(--shadow-color);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: none;
}

/* --- Buton Outline: Transparent cu bordura --- */
.btn-outline {
    background-color: transparent;
    color: #009fff;
    border-color: #009fff;
}

.btn-outline:hover,
.btn-outline:focus-visible {
    background-color: #009fff;
    color: var(--color-text-light);
    box-shadow: var(--shadow-color);
    transform: translateY(-2px);
}

.btn-outline:active {
    transform: translateY(0);
    box-shadow: none;
}

/* --- Buton Outline Light: Pentru fundaluri inchise --- */
.btn-outline-light {
    background-color: transparent;
    color: var(--color-text-light);
    border-color: var(--color-text-light);
}

.btn-outline-light:hover,
.btn-outline-light:focus-visible {
    background-color: var(--color-text-light);
    color: var(--color-secondary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.btn-outline-light:active {
    transform: translateY(0);
    box-shadow: none;
}

/* --- Modificatori de dimensiune --- */
.btn-small {
    padding: 0.55rem 1.3rem;
    font-size: var(--fs-caption);
}

.btn-full {
    width: 100%;
}


/* -----------------------------------------------
   7. SECTIUNI
   Spatiere verticala consistenta
----------------------------------------------- */

.section {
    padding-top: var(--space-section);
    padding-bottom: var(--space-section);
}

/* Sectiune cu fundal usor diferit (alternare vizuala) */
.section--bg-light {
    background: transparent;
}

/* Titlu de sectiune centrat cu underline gradient */
.section-heading {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.section-heading h2 {
    display: inline-block;
    position: relative;
    padding-bottom: var(--space-sm);
}

.section-heading h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

.section-heading p {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-top: var(--space-sm);
    color: var(--color-text-secondary);
}


/* -----------------------------------------------
   8. IMAGINI
   Responsive si fara spatiu alb sub ele
----------------------------------------------- */

img {
    max-width: 100%;
    height: auto;
    display: block;
}


/* -----------------------------------------------
   9. PAGE HERO
   Banner mare pentru paginile interioare
----------------------------------------------- */

.page-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--color-text-light);
    text-align: center;
    overflow: hidden;
}

.page-hero::before {
    display: none;
}

.page-hero > * {
    position: relative;
    z-index: 2;
}

.page-hero h1 {
    color: var(--color-text-light);
    margin-bottom: var(--space-sm);
}

.page-hero p {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--fs-h3);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-hero .breadcrumb {
    margin-left: 0;
    margin-right: 0;
    max-width: none;
    font-size: 14px;
}

/* Varianta full-height pentru pagina principala */
.page-hero--full {
    min-height: 100vh;
}


/* -----------------------------------------------
   10. BREADCRUMB
   Navigare ierarhica cu separatori
----------------------------------------------- */

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) 0;
    font-size: var(--fs-small);
    color: var(--color-text-secondary);
    list-style: none;
    margin-left: 0;
    margin-right: 0;
    max-width: none;
}

.breadcrumb li {
    display: inline-flex;
    align-items: center;
}

/* Separator "/" intre elementele breadcrumb */
.breadcrumb li + li::before {
    content: '/';
    margin-right: var(--space-xs);
    color: var(--color-border);
    font-weight: 300;
}

.breadcrumb a {
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.breadcrumb a:hover {
    color: var(--color-primary);
}

/* Pagina curenta - fara link, text bold */
.breadcrumb .breadcrumb-current {
    color: var(--color-text-primary);
    font-weight: 600;
}


/* -----------------------------------------------
   11. CARD
   Componenta de baza reutilizabila
----------------------------------------------- */

.card {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition:
        box-shadow var(--transition-base),
        transform var(--transition-base);
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.card-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.card-body {
    padding: var(--space-md);
}

.card-body h3 {
    margin-bottom: var(--space-xs);
}

.card-body p {
    font-size: var(--fs-small);
    color: var(--color-text-secondary);
}

.card-footer {
    padding: var(--space-sm) var(--space-md);
    border-top: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: var(--fs-small);
    color: var(--color-text-secondary);
}


/* -----------------------------------------------
   12. UTILITARE
   Clase helper pentru cazuri punctuale
----------------------------------------------- */

/* Ascundere vizuala dar accesibil screen-reader-urilor */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Selectia textului cu culori custom */
::selection {
    background-color: var(--color-primary);
    color: var(--color-text-light);
}
