/* =========================================
   VARIABLES (Extrase de pe site-ul principal)
   ========================================= */
:root {
    --color-primary: #9e0000;
    /* Roșu închis - butoane / accent */
    --color-primary-hover: #bf0000;
    /* Roșu deschis - hover */
    --color-secondary: #9e0000;
    /* Roșu - pictograme / icoane */
    --color-dark: #000000;
    /* Negru pentru text principal */
    --color-text: #75746f;
    /* Gri pentru paragrafe */
    --color-bg-light: #f9fafb;
    /* Fundal foarte deschis */
    --color-bg-blue: #fce8eb;
    /* Fundal zona roșie deschis */
    --color-white: #ffffff;
    --color-border: #e2e8f0;

    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Manrope', sans-serif;

    --transition: all 0.3s ease;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.05);
}

/* =========================================
   RESET & BASICS
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--color-text);
    background-color: var(--color-white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-dark);
    line-height: 1.2;
    margin-bottom: 0.5em;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.25rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.text-center {
    text-align: center;
}

/* =========================================
   BUTTONS (Elementor/Astra Match)
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 700;
    font-family: var(--font-body);
    text-transform: capitalize;
    border-radius: 3px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    line-height: inherit;
    gap: 8px;
    text-decoration: none;
}

.btn-large {
    padding: 14px 28px;
    font-size: 1.125rem;
}

.btn-primary {
    background-color: var(--color-primary);
    /* #b0091e */
    color: var(--color-white);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--color-white);
    color: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: none;
}

.btn-secondary {
    background-color: var(--color-dark);
    color: var(--color-white);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* On the main site, outline buttons appear to be solid buttons that turn white/transparent on hover, or a direct opposite */
.btn-outline {
    background-color: transparent;
    color: var(--color-primary);
    /* Use primary text instead of dark */
    border: 2px solid var(--color-primary);
    border-radius: 3px;
    padding: 8px 18px;
    /* Offset for border */
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

/* =========================================
   NAVBAR
   ========================================= */
.navbar {
    background-color: var(--color-white);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left,
.nav-right {
    flex: 1;
    display: flex;
}

.nav-left {
    justify-content: flex-end;
}

.nav-right {
    justify-content: flex-start;
}

.logo-center {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    margin: 0 4rem;
    /* Distanță egală stânga-dreapta față de logo */
}

.logo-center img {
    height: 120px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a:not(.btn) {
    color: var(--color-dark);
    font-weight: 600;
    font-family: var(--font-heading);
    font-size: 0.95rem;
}

.nav-links a:not(.btn):hover {
    color: var(--color-primary);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    position: relative;
    background-color: var(--color-dark);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 8rem 0 5rem;
    min-height: 80vh;
    display: flex;
    align-items: center;
    border-bottom: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.7));
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-subtitle {
    font-size: 2.5rem;
    color: #E70C2B;
    margin-bottom: 0.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.btn-subtitle {
    display: inline-flex;
    margin-bottom: 2rem;
    padding: 6px 14px;
    font-size: 0.9rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-white);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
}

/* Buton outline alb pentru fundal întunecat */
.btn-outline-light {
    padding: 14px 28px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid #E70C2B;
    color: var(--color-white);
    background: transparent;
    text-decoration: none;
}

.btn-outline-light:hover {
    background-color: #E70C2B;
    color: var(--color-white);
    border-color: #E70C2B;
}

/* Stil Inversat: Alb la Idle -> Roșu la Hover */
.btn-white {
    background-color: var(--color-white);
    color: var(--color-primary);
    /* #b0091e */
    border: 2px solid var(--color-white);
    padding: 14px 28px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-white:hover {
    background-color: var(--color-primary);
    /* #b0091e */
    color: var(--color-white);
    border-color: var(--color-primary);
}

/* Logo rotund */
.logo-center img {
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.hero-buttons-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* =========================================
   SERVICES
   ========================================= */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--color-white);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(176, 9, 30, 0.2);
}

.card-icon {
    width: 60px;
    height: 60px;
    background-color: var(--color-bg-blue);
    color: var(--color-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

/* =========================================
   SERVICES ZIG-ZAG LAYOUT
   ========================================= */
.service-row {
    display: flex;
    align-items: center;
    gap: 4rem;
    padding: 3rem 0;
}

.service-row.reverse {
    flex-direction: row-reverse;
}

.service-text {
    flex: 1;
    text-align: left;
}

.service-title-wrapper {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.service-text h3 {
    font-size: 1.75rem;
    margin-bottom: 0;
    color: var(--color-heading);
}

.service-text p {
    color: var(--color-text);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.service-text ul {
    margin: 1rem 0 2rem 1.5rem;
    text-align: left;
}

.service-text ul li {
    margin-bottom: 0.5rem;
    color: var(--color-text);
    line-height: 1.6;
}

.service-icon {
    width: 60px;
    height: 60px;
    background-color: var(--color-bg-blue);
    color: var(--color-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.service-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: var(--shadow-md);
    background-color: #e9ecef;
    min-height: 300px;
}

.service-divider {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 0;
}

@media (max-width: 768px) {

    .service-row,
    .service-row.reverse {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem 0;
    }

    .service-image img {
        max-width: 100%;
        min-height: 200px;
    }
}

/* =========================================
   LEAD MAGNET / FUNNEL
   ========================================= */
.lead-magnet {
    background: linear-gradient(135deg, #fce8eb 0%, #ffffff 100%);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.magnet-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 5rem;
    align-items: center;
}

.magnet-text h2 {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.magnet-text p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--color-text);
}

.magnet-form {
    background: var(--color-white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(176, 9, 30, 0.1);
    border: 1px solid rgba(176, 9, 30, 0.05);
}

.magnet-form input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
}

.magnet-form input:focus {
    outline: none;
    border-color: var(--color-secondary);
}

.small-text {
    font-size: 0.8rem;
    color: var(--color-text);
    text-align: center;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

/* =========================================
   CTA SECTION
   ========================================= */
.cta {
    background-image: url('images/Upfooter.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 8rem 0;
    position: relative;
    color: #E70C2B;
    overflow: hidden;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    /* Overlay alb semi-transparent pentru contrast maxim cu textul roșu */
    z-index: 1;
}

.cta h2 {
    color: #E70C2B;
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.cta p {
    color: #E70C2B;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
}

/* =========================================
   FOOTER
   ========================================= */
footer {
    background-color: #000000;
    color: var(--color-white);
    padding: 2rem 0;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.footer-nav a {
    color: var(--color-white);
    font-weight: 500;
    font-size: 0.95rem;
}

.footer-legal a {
    color: #E70C2B;
    transition: var(--transition);
    text-decoration: none;
}

.footer-legal a:hover,
.footer-legal a:active {
    color: var(--color-white);
}

.footer-legal {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    color: #E70C2B;
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.footer-social a {
    color: var(--color-white);
    font-size: 1.25rem;
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-copy-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.footer-rights {
    color: #E70C2B;
    font-weight: 600;
}

.footer-divider {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        text-align: center;
    }

    .footer-nav,
    .footer-legal {
        flex-direction: column;
        gap: 1rem;
    }
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* In a real scenario we use a mobile hamburger menu */
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .magnet-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-container {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
}