/* Reset și variabile */
:root {
    --primary-color: #1a237e;    /* Albastru închis - culoarea tricourilor */
    --secondary-color: #ffc107;  /* Galben - pentru contrast și atenție */
    --accent-color: #e8eaf6;     /* Albastru foarte deschis */
    --text-color: #1a237e;       /* Albastru închis pentru text */
    --light-bg: #f5f7fa;         /* Fundal deschis */
    --white: #ffffff;
    --gradient-overlay: linear-gradient(rgba(26, 35, 126, 0.9), rgba(26, 35, 126, 0.9));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #000;       /* Negru pentru text */
}

/* Header și Navigare */
header {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo h1 {
    color: #000; /* Change logo text color to black */
    font-size: 1.5rem;
    line-height: 1.2;
    max-width: 100%;
    word-wrap: break-word;
}

.logo img {
    height: 50px; /* Ajustează înălțimea după nevoie */
    max-width: 100%;
    vertical-align: middle;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #000; /* Change navigation link color to black */
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: var(--gradient-overlay), url('emblema.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 0 1rem;
}

.hero-content {
    max-width: 800px;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content h2,
.hero-content p {
    color: var(--white); /* Change hero text color back to white for better contrast */
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    margin-top: 2rem;
    transition: background-color 0.3s ease;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(255, 193, 7, 0.2);
}

.cta-button:hover {
    background-color: #ffd54f;  /* Galben mai deschis la hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(255, 193, 7, 0.3);
}

/* Servicii Section */
.services {
    padding: 5rem 1rem;
    background-color: var(--white);
    max-width: 1200px;
    margin: 0 auto;
}

.services h2 {
    text-align: center;
    margin-bottom: 4rem;
    color: #000;
    font-size: 3rem;
    position: relative;
    padding-bottom: 1.5rem;
}

.services h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 4px;
    background-color: var(--secondary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.service-card i,
.service-card .service-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1.8rem;
    transition: all 0.3s ease;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.service-card .service-icon {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.service-card:hover i,
.service-card:hover .service-icon {
    transform: scale(1.05);
    color: var(--secondary-color);
}

.service-card h3 {
    color: #000;
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
}

.service-card p {
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 1.1rem;
    flex-grow: 1;
}

.service-card .learn-more {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid var(--secondary-color);
    box-shadow: 0 4px 6px rgba(255, 193, 7, 0.3);
    margin-top: auto;
}

.service-card .learn-more:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(26, 35, 126, 0.3);
}

/* Prețuri Section */
.pricing {
    padding: 5rem 1rem;
}

.pricing h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #000; /* Change section titles to black */
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.price-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.price {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: bold;
    margin: 1rem 0;
}

.price-card ul {
    list-style: none;
    margin: 1rem 0;
}

.price-card li {
    margin: 0.5rem 0;
}

/* Programări Section */
.appointments {
    padding: 5rem 1rem;
    background-color: var(--light-bg);
}

.appointments h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #000; /* Change section titles to black */
}

#appointment-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.submit-button {
    width: 100%;
    padding: 1rem;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(255, 193, 7, 0.2);
}

.submit-button:hover {
    background-color: #ffd54f;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(255, 193, 7, 0.3);
}

/* Contact Section */
.contact {
    padding: 5rem 1rem;
}

.contact h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #000; /* Change section titles to black */
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-location-photo {
    text-align: center; /* Center the image on smaller screens */
    margin-bottom: 2rem; /* Add space below image on smaller screens */
}

.contact-location-photo img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-details,
.contact-hours {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.contact-details i {
    color: #000; /* Change contact icon color to black */
    margin-right: 0.5rem;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 2rem 1rem;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .services-grid,
    .pricing-grid,
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .logo h1 {
        font-size: 1.2rem;
    }

    .services h2 {
        font-size: 2rem;
    }

    .services h2:after {
        width: 100px;
        height: 3px;
    }
    
    .service-card {
        padding: 2rem;
    }
    
    .service-card i {
        font-size: 3rem;
    }
    
    .service-card h3 {
        font-size: 1.4rem;
    }
    
    .service-card p {
        font-size: 1rem;
    }
    
    .service-card .learn-more {
        padding: 0.8rem 1.5rem;
    }
}

.map-link {
    color: #000; /* Change map link color to black */
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    padding: 0.2rem 0;
    border-bottom: 1px solid transparent;
}

.map-link:hover {
    color: var(--secondary-color);
    border-bottom: 1px solid var(--secondary-color);
}

.map-container {
    margin-top: 3rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(26, 35, 126, 0.1);
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 450px;
    border: none;
}

@media (max-width: 768px) {
    .map-container iframe {
        height: 300px;
    }
}

/* Floating Buttons */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.call-button,
.whatsapp-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.call-button {
    background-color: var(--primary-color);
    color: white;
}

.whatsapp-button {
    background-color: #25d366;
    color: white;
}

.call-button i,
.whatsapp-button i {
    font-size: 35px;
}

.call-button:hover,
.whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.call-button:hover {
    background-color: #0d47a1;
}

.whatsapp-button:hover {
    background-color: #128C7E;
}

@media (max-width: 768px) {
    .floating-buttons {
        bottom: 20px;
        right: 20px;
        gap: 10px;
    }

    .call-button,
    .whatsapp-button {
        width: 50px;
        height: 50px;
    }

    .call-button i,
    .whatsapp-button i {
        font-size: 30px;
    }
}

.service-content-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.service-content-wrapper img {
    max-width: 100%;
    height: auto;
    flex: 1;
    min-width: 300px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.service-content-wrapper div {
    flex: 2;
    min-width: 300px;
}

.service-detail h2 {
    font-size: 2.5rem;
    color: #000;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.service-detail h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 3px;
    background-color: var(--secondary-color);
}

.service-detail p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.service-detail ul {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.service-detail li {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
}

.service-detail li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.service-detail .price {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: bold;
    margin: 2rem 0;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    display: inline-block;
}

@media (max-width: 768px) {
    .service-content-wrapper {
        padding: 1rem;
    }
    
    .service-detail h2 {
        font-size: 2rem;
    }
    
    .service-detail p,
    .service-detail li {
        font-size: 1.1rem;
    }
}

.service-detail .description-section {
    background-color: #f8f9fa;
    padding: 2.5rem;
    border-radius: 15px;
    margin: 3rem 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.service-detail .description-section h3 {
    font-size: 2rem;
    color: #000;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.service-detail .description-section h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

.service-detail .description-section p {
    font-size: 1.3rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.service-detail .description-section ul {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.service-detail .description-section li {
    font-size: 1.3rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 1.2rem;
    padding-left: 2.5rem;
    position: relative;
}

.service-detail .description-section li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.4rem;
}

@media (max-width: 768px) {
    .service-detail .description-section {
        padding: 1.5rem;
    }
    
    .service-detail .description-section h3 {
        font-size: 1.8rem;
    }
    
    .service-detail .description-section p,
    .service-detail .description-section li {
        font-size: 1.2rem;
    }
}

@media (min-width: 769px) {
    .contact-section-layout {
        display: flex;
        gap: 40px;
        align-items: flex-start;
        max-width: 1200px;
        margin: 3rem auto;
        padding: 0 1rem;
    }

    .contact-location-photo {
        flex: 1; /* Image takes up 1 part of the space */
        min-width: 300px;
        margin-bottom: 0; /* Remove bottom margin on larger screens */
    }

    .map-container {
        flex: 2; /* Map takes up 2 parts of the space */
        min-width: 400px;
        margin-top: 0; /* Remove top margin on larger screens */
    }

    .contact-info {
        margin-bottom: 3rem; /* Add margin below contact details on larger screens */
    }
}