/* =====================================================
   COLEX - Curier Services
   Main Stylesheet
   Font: Inter
===================================================== */

/* ===== VARIABLES ===== */
:root {
    --green-dark: #0a6c31;
    --green-primary: #0a6c31;
    --green-medium: #208840;
    --green-light: #28A04D;
    --green-pale: #eef8ee;
    --green-footer: #0a6c31;
    --white: #FFFFFF;
    --gray-dark: #333333;
    --gray-medium: #666666;
    --gray-light: #F5F5F5;
    --border-color: #E0E0E0;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-dark);
    background: var(--white);
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

section {
    padding: 80px 0;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 800;
    line-height: 1.2;
    color: var(--gray-dark);
}

h1 {
    font-size: 3.5rem;
    font-weight: 400;
}

h2 {
    font-size: 2.5rem;
    color: var(--green-dark);
    margin-bottom: 24px;
}

/* Titluri italic */
h2.italic {
    font-style: normal;
}

h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

p {
    color: var(--gray-medium);
    margin-bottom: 16px;
}

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

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--green-primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--green-dark);
}

.btn-rounded {
    border-radius: 50px;
}

.btn-small {
    padding: 10px 20px;
    font-size: 0.8rem;
}

/* =====================================================
   HEADER
===================================================== */
header {
    background: var(--green-primary);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 60px;
}

header.scrolled .header-inner {
    justify-content: space-between;
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
}

.main-nav a {
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 20px 22px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.main-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.main-nav a.active {
    background: rgba(0, 0, 0, 0.15);
}

/* Scrolled state - nav links */
header.scrolled .main-nav a {
    color: var(--gray-dark);
}

header.scrolled .main-nav a:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--green-dark);
}

header.scrolled .main-nav a.active {
    background: rgba(0, 0, 0, 0.08);
    color: var(--green-dark);
}

/* Header Logo - ascuns la început, apare la scroll în stânga */
.header-logo {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    position: absolute;
    left: 0;
}

header.scrolled .header-logo {
    opacity: 1;
    visibility: visible;
    position: relative;
}

.header-logo img {
    height: 45px;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    transition: all 0.3s ease;
}

header.scrolled .mobile-menu-btn span {
    background: var(--gray-dark);
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    margin: 5px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* =====================================================
   HERO SECTION
===================================================== */
.hero {
    padding-top: 60px;
    background: var(--white);
}

/* Hero Top Bar */
.hero-top {
    padding: 24px 0;
    border-bottom: 1px solid var(--border-color);
}

.hero-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-tagline {
    max-width: 480px;
}

.hero-tagline h2 {
    font-size: 1rem;
    font-weight: 700;
    font-style: normal;
    color: var(--green-primary);
    margin-bottom: 8px;
}

.hero-tagline p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.logo-large {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-large img {
    height: 80px;
}

/* Hero Main */
.hero-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 60px 0;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--gray-dark);
}

.hero-title .text-green {
    color: var(--green-dark);
    font-weight: 800;
}

.hero-cta {
    margin-top: 32px;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    border-radius: 20px;
    object-fit: cover;
}

/* =====================================================
   BENEFICII SECTION
===================================================== */
.beneficii {
    padding: 60px 0;
}

.beneficii-header {
    margin-bottom: 40px;
}

.beneficii-header h2 {
    font-style: normal !important;
}

.beneficii-intro {
    font-size: 0.95rem;
    max-width: 900px;
    line-height: 1.7;
}

.beneficii-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.beneficiu-card {
    background: var(--green-pale);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 320px;
}

.beneficiu-icon {
    width: 180px;
    height: 180px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.beneficiu-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.beneficiu-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.4;
}

/* =====================================================
   DESPRE + FORMULAR SECTION (Varianta D)
===================================================== */
.despre-formular {
    padding: 60px 0;
    background: var(--white);
}

.despre-formular-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.despre-text-col h2 {
    font-style: normal;
    margin-bottom: 20px;
}

.despre-text-col p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--gray-medium);
    margin-bottom: 15px;
}

.despre-image-small {
    width: 100%;
    max-width: 500px;
    border-radius: 12px;
    margin-top: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.contact-form-card {
    background: var(--gray-light);
    padding: 35px;
    border-radius: 16px;
}

.contact-form-card h3 {
    font-size: 1.4rem;
    color: var(--green-dark);
    margin-bottom: 5px;
}

.contact-form-card .form-subtitle {
    color: var(--gray-medium);
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.contact-form-card .form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.contact-form-card .form-group {
    margin-bottom: 0;
}

.contact-form-card textarea {
    min-height: 100px;
}

/* Steluță roșie pentru câmpuri obligatorii */
.required {
    color: #e74c3c;
    font-weight: 600;
}

.recaptcha-center {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.btn-full {
    width: 100%;
}

/* =====================================================
   CONTACT FORM (Legacy - pentru compatibilitate)
===================================================== */
.contact-form-inline {
    padding: 60px 0;
    background: var(--white);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr) auto;
    gap: 16px;
    align-items: end;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-dark);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--green-primary);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* =====================================================
   SERVICII SECTION
===================================================== */
.servicii {
    padding: 80px 0;
}

.servicii h2 {
    font-style: normal;
}

.servicii-intro {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.servicii-intro:last-of-type {
    margin-bottom: 40px;
}

.servicii-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 1fr;
    gap: 24px;
}

.serviciu-card {
    background: var(--green-pale);
    border-radius: 20px;
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 16px;
}

.serviciu-image {
    height: auto;
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: 16px;
}

.serviciu-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 16px;
}

.serviciu-image span {
    display: none;
}

.serviciu-content {
    padding: 8px 12px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    text-align: center;
}

.serviciu-card h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    flex-shrink: 0;
    color: var(--gray-dark);
}

.serviciu-card p {
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 0;
    flex: 1;
}

.serviciu-card .btn {
    margin-top: 20px;
    align-self: center;
    flex-shrink: 0;
}

/* =====================================================
   MISIUNEA SECTION
===================================================== */
.misiunea {
    padding: 80px 0;
    background: var(--green-pale);
}

.misiunea-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.misiunea-image img {
    width: 100%;
    border-radius: 20px;
}

.misiunea-text h2 {
    font-size: 3rem;
    font-style: normal;
}

.misiunea-text p {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* =====================================================
   RETEAUA SECTION
===================================================== */
.reteaua {
    padding: 80px 0;
}

.reteaua h2 {
    font-style: normal;
}

.reteaua-section {
    margin-bottom: 24px;
    background: var(--green-pale);
    padding: 24px 30px;
    border-radius: 16px 0 0 16px;
    border-left: 4px solid var(--green-primary);
}

.reteaua-section h3 {
    margin-bottom: 12px;
    color: var(--gray-dark);
}

.reteaua-section p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0;
}

.beneficii-parteneriat {
    margin-top: 24px;
    background: var(--green-pale);
    padding: 24px 30px;
    border-radius: 16px 0 0 16px;
    border-left: 4px solid var(--green-primary);
}

.beneficii-parteneriat h3 {
    margin-bottom: 24px;
    color: var(--gray-dark);
}

.beneficii-lista li {
    margin-bottom: 20px;
}

.beneficii-lista li strong {
    display: block;
    color: var(--gray-dark);
    margin-bottom: 4px;
    font-weight: 700;
}

.beneficii-lista li strong::before {
    content: "• ";
    color: var(--gray-dark);
}

.beneficii-lista li span {
    font-size: 0.95rem;
    color: var(--gray-medium);
    line-height: 1.6;
}

/* =====================================================
   PARTENER SECTION
===================================================== */
.partener {
    padding: 80px 0;
    background: var(--green-pale);
}

.partener-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.partener-form-section h2 {
    margin-bottom: 8px;
    font-style: normal;
}

.partener-form-section > p {
    margin-bottom: 30px;
}

.partener-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.conditii-section h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.conditii-section > p {
    font-size: 0.9rem;
    margin-bottom: 24px;
    line-height: 1.7;
}

.conditii-group {
    margin-bottom: 24px;
}

.conditii-group h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.conditii-group ul {
    padding-left: 20px;
    list-style: disc;
}

.conditii-group li {
    font-size: 0.9rem;
    color: var(--gray-medium);
    margin-bottom: 6px;
    line-height: 1.5;
}

/* =====================================================
   FOOTER
===================================================== */
footer {
    background: var(--green-footer);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 10px;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--white);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}

/* =====================================================
   MODAL POP-UP
===================================================== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--white);
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background: var(--green-dark);
    color: white;
    padding: 24px 30px;
    border-radius: 20px 20px 0 0;
}

.modal-header h3 {
    font-size: 1.3rem;
    color: white;
    margin-bottom: 4px;
}

.modal-header p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    margin: 0;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.modal-close:hover {
    background: rgba(255,255,255,0.3);
}

.modal-body {
    padding: 30px;
}

.modal-body .form-group {
    margin-bottom: 20px;
}

.modal-body .form-group:last-of-type {
    margin-bottom: 24px;
}

.modal-body .btn {
    width: 100%;
}

/* reCAPTCHA */
.g-recaptcha {
    margin-bottom: 20px;
}

.recaptcha-notice {
    font-size: 0.75rem;
    color: var(--gray-medium);
    margin-top: 16px;
    text-align: center;
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 1024px) {
    .hero-main,
    .despre-formular-grid,
    .misiunea-content,
    .partener-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .servicii-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 1fr;
    }

    .beneficii-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-row {
        grid-template-columns: 1fr 1fr;
    }

    .contact-form-card .form-row-2 {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .reteaua-section,
    .beneficii-parteneriat {
        border-radius: 16px;
        border-left: none;
        border-top: 4px solid var(--green-primary);
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--green-dark);
        flex-direction: column;
        padding: 20px 0;
    }

    .main-nav.active {
        display: flex;
    }

    .main-nav a {
        padding: 15px 24px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .mobile-menu-btn {
        display: block;
    }

    section {
        padding: 60px 0;
    }

    h1, .hero-title {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .hero-top-inner {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

    .hero-tagline {
        max-width: 100%;
    }

    .logo-large img {
        height: 50px;
    }

    .servicii-grid,
    .beneficii-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .misiunea-content {
        text-align: center;
    }

    .misiunea-text h2 {
        font-size: 2rem;
    }

    .partener-content {
        gap: 30px;
    }

    .conditii-section {
        margin-top: 30px;
    }

    /* Modal responsive */
    .modal {
        margin: 10px;
        max-height: 95vh;
    }

    .modal-header {
        padding: 20px;
    }

    .modal-body {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-cta .btn {
        width: 100%;
        text-align: center;
    }

    .beneficiu-card,
    .serviciu-content {
        padding: 24px 16px;
    }

    .beneficiu-icon {
        width: 60px;
        height: 60px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.8rem;
    }

    .header-logo img {
        height: 32px;
    }

    /* Contact form inline - stack all */
    .contact-form-inline .form-row {
        gap: 12px;
    }

    .contact-form-inline .btn {
        width: 100%;
    }
}

/* =====================================================
   COOKIE BANNER
===================================================== */
.cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    padding: 30px 20px;
    border-top: 4px solid var(--green-primary);
}

.cookie-content {
    max-width: 1000px;
    margin: 0 auto;
}

.cookie-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gray-dark);
    margin-bottom: 12px;
}

.cookie-text {
    font-size: 0.9rem;
    color: var(--gray-dark);
    line-height: 1.6;
    margin-bottom: 20px;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 14px 32px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid var(--gray-dark);
    text-align: center;
    text-decoration: none;
}

.cookie-accept {
    background: var(--white);
    color: var(--gray-dark);
}

.cookie-accept:hover {
    background: var(--gray-dark);
    color: var(--white);
}

.cookie-decline {
    background: var(--white);
    color: var(--gray-dark);
}

.cookie-decline:hover {
    background: var(--gray-dark);
    color: var(--white);
}

.cookie-more {
    background: var(--white);
    color: var(--gray-dark);
}

.cookie-more:hover {
    background: var(--gray-dark);
    color: var(--white);
}

/* Cookie banner responsive */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 20px 15px;
    }

    .cookie-title {
        font-size: 1.1rem;
    }

    .cookie-text {
        font-size: 0.85rem;
    }

    .cookie-buttons {
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
        padding: 12px 20px;
    }
}

/* =====================================================
   LEGAL PAGES (Cookies, GDPR, Terms)
===================================================== */
.legal-page {
    padding: 100px 0 40px;
    min-height: 100vh;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--green-dark);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--green-primary);
}

.legal-section {
    margin-bottom: 15px;
    padding: 0;
}

.legal-section h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gray-dark);
    margin-bottom: 8px;
    font-style: normal;
}

.legal-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-dark);
    margin: 10px 0 6px;
}

.legal-section p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--gray-dark);
    margin-bottom: 6px;
}

.legal-section ul {
    margin: 12px 0 20px 24px;
}

.legal-section li {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--gray-dark);
    margin-bottom: 8px;
}

.legal-section a {
    color: var(--green-primary);
    text-decoration: underline;
}

.legal-section a:hover {
    color: var(--green-dark);
}

.legal-back {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

/* Footer responsive pentru legal pages */
@media (max-width: 768px) {
    .legal-content h1 {
        font-size: 1.8rem;
    }

    .legal-section h2 {
        font-size: 1.1rem;
    }
}
