/* Base Styles */
:root {
    --primary: #4a6fa5;
    --secondary: #6b8cbc;
    --accent: #e8b4bc;
    --light: #f8f9fa;
    --dark: #343a40;
    --text: #495057;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--light);
}

h1, h2, h3, h4 {
    color: var(--dark);
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 {
    font-size: 2.2rem;
}

h2 {
    font-size: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent);
}

p {
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--secondary);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 25px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
    font-size: 1rem;
}

.btn:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    color: white;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

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

.btn-whatsapp {
    background-color: #25D366;
    border: 2px solid #25D366;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    border-color: #128C7E;
}

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    display: inline-block;
}

.section-title h2::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
    padding: 15px 0;
}

header.compact {
    padding: 8px 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
}

header.compact .logo {
    font-size: 1.5rem;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.logo span {
    color: var(--accent);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--dark);
    font-weight: 500;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
}

nav ul li a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 70vh;
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.95) 0%, rgba(233, 236, 239, 0.95) 100%), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect fill="none" width="100" height="100"/><path fill="%234a6fa5" opacity="0.05" d="M20,20 L80,20 L80,80 L20,80 Z" /></svg>');
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--dark);
    position: relative;
    margin-top: 90px;      /* crescut (70 -> 90) ca să nu mai calce header-ul */
    padding-top: 20px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* About Section */
.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.about-text {
    width: 100%;
}

.about-text h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.catchy-text {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid var(--accent);
    margin: 30px 0;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--dark);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Services Section */
.services {
    background-color: #f1f5f9;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.service-card {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 1.2rem;
}

.service-card h3 {
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
}

.service-card p {
    font-size: 0.95rem;
    line-height: 1.5;
    flex-grow: 1;
}

/* Approach Section */
.approach-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.approach-steps {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    flex-wrap: wrap;
}

.step {
    flex: 1;
    min-width: 200px;
    padding: 20px;
    text-align: center;
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Contact Section – desktop / general */
.contact-container {
    display: flex;
    justify-content: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    max-width: 800px;
    width: 100%;
}

/* 2 coloane elastice, se rup când nu e loc */
.contact-row {
    display: grid;
    /* două coloane, dar cu lățime maximă mai mică, ca să nu se întindă până la margini */
    grid-template-columns: repeat(2, minmax(220px, 320px));
    gap: 30px;
    width: 100%;

    /* foarte important: centrează întregul grid în interiorul lui .contact-info */
    justify-content: center;
}

/* Icon stânga, text dreapta aliniat */
.contact-info-item {
    display: flex;
    align-items: flex-start;
    text-align: left;
    gap: 0.75rem;
}

.contact-icon {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 32px;
    font-size: 1.6rem;
    color: var(--primary);
    margin-top: 0.15rem;
}

.contact-info-item h3 {
    margin: 0 0 0.25rem;
    font-size: 1.05rem;
}

.contact-info-item p {
    margin: 0;
    line-height: 1.4;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    padding: 40px 0 20px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #adb5bd;
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .contact-row {
        gap: 30px;
    }
}

/* Landscape / ecrane cu înălțime mică (ex. iPhone XR/12/14 în landscape) */
@media (max-height: 500px) {
    .hero {
        margin-top: 110px;
        padding-top: 30px;
        height: auto;
        min-height: 70vh;
    }
}

@media (max-width: 768px) {
    header {
        padding: 14px 0;
    }
    
    header.compact {
        padding: 8px 0;
    }

    .logo {
        font-size: 1.5rem;
    }

    /* Mai mult loc sub header pe mobile */
    .hero {
        margin-top: 100px;
        padding-top: 30px;
        height: auto;
        min-height: 60vh;
    }

    .hero-content {
        padding-top: 10px;
    }

    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        padding: 15px 0;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        text-align: center;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    nav ul.active {
        display: flex;
        max-height: 300px;
    }
    
    nav ul li {
        margin: 8px 0;
    }
    
    .menu-toggle {
        display: block;
        font-size: 1.3rem;
    }
    
    .approach-steps {
        flex-direction: column;
        align-items: center;
    }
    
    .step {
        margin-bottom: 30px;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .service-card {
        padding: 20px;
    }
    
    .hero-btns {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
    }

    /* Contact pe mobil: carduri verticale, centrate */
    .contact-row {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .contact-info-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .contact-icon {
        margin-top: 0;
        margin-bottom: 8px;
    }
}

@media (max-width: 576px) {
    section {
        padding: 60px 0;
    }
    
    .hero {
        margin-top: 110px;   /* și mai mult loc pe telefoane mici */
        padding-top: 35px;
        min-height: 55vh;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .contact-row {
        gap: 20px;
    }
}

@media (max-width: 400px) {
    .hero-btns {
        gap: 10px;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .contact-row {
        gap: 18px;
    }
}
