/* ================================================
   AGROFERM DEAC SRL — Global Stylesheet
   ================================================ */

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

:root {
    --navy:       #152238;
    --navy-mid:   #1e3254;
    --navy-light: #2a4470;
    --gold:       #c8943a;
    --gold-light: #e0b060;
    --white:      #ffffff;
    --off-white:  #f4f6f9;
    --text:       #2c3547;
    --muted:      #6b7a99;
    --border:     #dde3ef;
    --radius:     8px;
    --shadow:     0 4px 24px rgba(21,34,56,.12);
    --transition: .25s ease;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
    font-size: 16px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; }

.section-label {
    display: inline-block;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: .75rem;
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    color: var(--navy);
    margin-bottom: 1rem;
}

.section-text {
    color: var(--muted);
    max-width: 640px;
    font-size: 1.05rem;
}

/* ---- LAYOUT ---- */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

section { padding: 80px 0; }

/* ================================================
   NAVIGATION
   ================================================ */
#nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(21,34,56,.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,.08);
    transition: var(--transition);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-logo {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.nav-logo .brand {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: .02em;
}

.nav-logo .tagline {
    font-size: .68rem;
    color: var(--gold);
    letter-spacing: .12em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    font-size: .9rem;
    font-weight: 500;
    color: rgba(255,255,255,.75);
    transition: color var(--transition);
    letter-spacing: .03em;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--gold-light);
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

/* Mobile nav open */
body.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: var(--navy);
    padding: 1.5rem 1.5rem 2rem;
    gap: 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

body.nav-open .nav-toggle span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ================================================
   HERO
   ================================================ */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background:
        linear-gradient(135deg, rgba(21,34,56,.88) 0%, rgba(30,50,84,.80) 60%, rgba(42,68,112,.72) 100%),
        url('../img/ferma-1.jpg') center center / cover no-repeat;
    position: relative;
    overflow: hidden;
    padding-top: 70px;
}

#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 80% 50%, rgba(200,148,58,.12) 0%, transparent 70%),
        radial-gradient(ellipse 40% 60% at 10% 80%, rgba(200,148,58,.06) 0%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 680px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(200,148,58,.15);
    border: 1px solid rgba(200,148,58,.3);
    border-radius: 100px;
    padding: .4rem 1rem;
    font-size: .8rem;
    color: var(--gold-light);
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-badge::before {
    content: '';
    width: 6px; height: 6px;
    background: var(--gold);
    border-radius: 50%;
}

.hero-title {
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    color: var(--white);
    margin-bottom: 1.25rem;
    font-weight: 800;
    letter-spacing: -.01em;
}

.hero-title span {
    color: var(--gold-light);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255,255,255,.65);
    margin-bottom: 2.5rem;
    max-width: 520px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .85rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: .95rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    letter-spacing: .02em;
}

.btn-primary {
    background: var(--gold);
    color: var(--navy);
}

.btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(200,148,58,.4);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255,255,255,.3);
}

.btn-outline:hover {
    border-color: var(--white);
    background: rgba(255,255,255,.08);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255,255,255,.12);
}

.stat-item .stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    margin-bottom: .25rem;
}

.stat-item .stat-label {
    font-size: .8rem;
    color: rgba(255,255,255,.5);
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* ================================================
   ABOUT
   ================================================ */
#despre {
    background: var(--off-white);
}

.despre-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.despre-visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.visual-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow);
    border-bottom: 3px solid var(--gold);
    text-align: center;
}

.visual-card .vc-icon {
    font-size: 2rem;
    margin-bottom: .75rem;
}

.visual-card .vc-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: .2rem;
}

.visual-card .vc-label {
    font-size: .8rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.visual-card.featured {
    grid-column: span 2;
    background: var(--navy);
    border-bottom-color: var(--gold);
}

.visual-card.featured .vc-value,
.visual-card.featured .vc-label { color: rgba(255,255,255,.7); }

.visual-card.featured .vc-value { color: var(--gold-light); font-size: 2.2rem; }

.despre-text { display: flex; flex-direction: column; gap: 1.25rem; }

.despre-text p { color: var(--muted); font-size: 1rem; }

.info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .6rem;
    margin-top: .5rem;
}

.info-list li {
    display: flex;
    align-items: baseline;
    gap: .75rem;
    font-size: .95rem;
    color: var(--muted);
}

.info-list li::before {
    content: '—';
    color: var(--gold);
    font-weight: 700;
    flex-shrink: 0;
}

/* ================================================
   AUTORIZATIE (dark section — matches screenshot)
   ================================================ */
#autorizatie {
    background: var(--navy);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

#autorizatie::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(200,148,58,.06) 0%, transparent 70%);
}

.autorizatie-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 860px;
    margin: 0 auto;
}

.autorizatie-inner .section-label {
    color: var(--gold);
}

.autorizatie-inner .section-title {
    color: var(--white);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    letter-spacing: .03em;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.autorizatie-inner .auth-desc {
    color: rgba(255,255,255,.72);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.auth-details {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2.5rem;
}

.auth-badge {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 10px;
    padding: 1.25rem 2rem;
    min-width: 180px;
    text-align: center;
}

.auth-badge .ab-label {
    font-size: .72rem;
    color: var(--gold);
    letter-spacing: .1em;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: .4rem;
}

.auth-badge .ab-value {
    font-size: 1rem;
    color: var(--white);
    font-weight: 600;
}

.auth-divider {
    width: 60px;
    height: 2px;
    background: var(--gold);
    margin: 2rem auto;
    border-radius: 2px;
}

/* ================================================
   ACTIVITATE
   ================================================ */
#activitate {
    background: var(--white);
}

.activitate-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.act-card {
    background: var(--off-white);
    border-radius: 12px;
    padding: 2rem;
    border-top: 3px solid transparent;
    transition: var(--transition);
}

.act-card:hover {
    border-top-color: var(--gold);
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

.act-icon {
    width: 52px; height: 52px;
    background: var(--navy);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
}

.act-card h3 {
    font-size: 1.1rem;
    color: var(--navy);
    margin-bottom: .6rem;
}

.act-card p {
    font-size: .9rem;
    color: var(--muted);
    line-height: 1.65;
}

/* ================================================
   CONTACT
   ================================================ */
#contact {
    background: var(--off-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--navy);
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--muted);
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item .ci-icon {
    width: 44px; height: 44px;
    background: var(--navy);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    color: var(--gold-light);
}

.contact-item .ci-label {
    font-size: .75rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 600;
}

.contact-item .ci-value {
    font-size: 1rem;
    color: var(--navy);
    font-weight: 600;
    margin-top: .15rem;
}

.contact-item .ci-value a {
    color: var(--navy);
    transition: color var(--transition);
}

.contact-item .ci-value a:hover {
    color: var(--gold);
}

.company-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.company-card h3 {
    font-size: 1.05rem;
    color: var(--navy);
    margin-bottom: 1.25rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid var(--border);
}

.company-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
}

.company-table tr + tr td {
    border-top: 1px solid var(--border);
}

.company-table td {
    padding: .7rem 0;
    vertical-align: top;
}

.company-table td:first-child {
    color: var(--muted);
    width: 45%;
    font-weight: 500;
}

.company-table td:last-child {
    color: var(--navy);
    font-weight: 600;
}

/* ================================================
   FOOTER
   ================================================ */
footer {
    background: var(--navy);
    color: rgba(255,255,255,.55);
    font-size: .85rem;
}

.footer-top {
    padding: 50px 0 40px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-brand .brand {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: .35rem;
}

.footer-brand .sub {
    color: var(--gold);
    font-size: .75rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.footer-brand p {
    line-height: 1.7;
    font-size: .88rem;
}

.footer-col h4 {
    color: var(--white);
    font-size: .88rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: .5rem; }

.footer-col ul li a {
    color: rgba(255,255,255,.5);
    transition: color var(--transition);
    font-size: .88rem;
}

.footer-col ul li a:hover {
    color: var(--gold-light);
}

.footer-bottom {
    padding: 1.25rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
    font-size: .8rem;
}

.footer-bottom a {
    color: rgba(255,255,255,.4);
    transition: color var(--transition);
}

.footer-bottom a:hover {
    color: var(--gold-light);
}

/* ================================================
   INNER PAGES (T&C, Contact)
   ================================================ */
.page-hero {
    background: var(--navy);
    padding: 120px 0 60px;
    text-align: center;
}

.page-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--white);
    margin-bottom: .5rem;
}

.page-hero p {
    color: rgba(255,255,255,.55);
    font-size: 1rem;
}

.page-body {
    padding: 60px 0 80px;
}

.page-body h2 {
    font-size: 1.3rem;
    color: var(--navy);
    margin: 2rem 0 .75rem;
}

.page-body h2:first-child { margin-top: 0; }

.page-body p, .page-body li {
    color: var(--muted);
    font-size: .98rem;
    line-height: 1.8;
    margin-bottom: .5rem;
}

.page-body ul {
    padding-left: 1.4rem;
    margin-bottom: 1rem;
}

.page-body .last-updated {
    display: inline-block;
    background: var(--off-white);
    border-radius: var(--radius);
    padding: .4rem 1rem;
    font-size: .82rem;
    color: var(--muted);
    margin-bottom: 2rem;
}

/* ================================================
   GALERIE
   ================================================ */
.galerie-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.galerie-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--border);
    aspect-ratio: 16/10;
    position: relative;
}

.galerie-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.galerie-item:hover img {
    transform: scale(1.03);
}

/* Fallback when image is missing */
.galerie-item.img-missing {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--border);
    color: var(--muted);
    font-size: .85rem;
    text-align: center;
}

.galerie-item.img-missing::after {
    content: 'Imaginea va apărea\A după adăugarea fișierului';
    white-space: pre;
    padding: 1rem;
}

@media (max-width: 640px) {
    .galerie-grid { grid-template-columns: 1fr; }
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 900px) {
    .despre-grid,
    .contact-grid,
    .footer-top {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .activitate-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    section { padding: 60px 0; }

    .nav-links { display: none; }
    .nav-toggle { display: flex; }

    .activitate-grid { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; }

    .hero-stats { gap: 1.75rem; flex-wrap: wrap; }

    .auth-details { flex-direction: column; align-items: center; }
    .auth-badge { width: 100%; max-width: 320px; }

    .footer-bottom { flex-direction: column; text-align: center; }
}
