/* 
    Renewable Edge - Servicii Digitale și Licențiere în România
    Main stylesheet
*/

/* Base styles and variables */
:root {
    --primary-color: #0c1447;
    --primary-light: #1a2361;
    --primary-dark: #070e2e;
    --secondary-color: #3b82f6;
    --accent-color: #4f46e5;
    --text-dark: #1e293b;
    --text-medium: #4b5563;
    --text-light: #9ca3af;
    --background-light: #f8fafc;
    --background-white: #ffffff;
    --background-dark: #1e293b;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --border-radius-sm: 0.25rem;
    --border-radius-md: 0.5rem;
    --border-radius-lg: 1rem;
    --transition-default: all 0.3s ease;
}

/* Reset and base styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-light);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

h4 {
    font-size: 1.25rem;
    font-weight: 500;
}

p {
    margin-bottom: 1rem;
}

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

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

ul, ol {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

.separator {
    height: 3px;
    width: 80px;
    background-color: var(--primary-color);
    margin: 1rem auto 2rem;
}

section {
    padding: 5rem 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    text-align: center;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: var(--transition-default);
    font-size: 1rem;
    border: none;
}

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

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

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

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

.btn-tertiary {
    background-color: var(--gray-200);
    color: var(--text-dark);
}

.btn-tertiary:hover {
    background-color: var(--gray-300);
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: white;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-default);
}

header.scrolled {
    box-shadow: var(--shadow-md);
}

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

.logo img {
    height: 40px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-menu li a {
    font-weight: 500;
    position: relative;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition-default);
}

.nav-menu li a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--text-dark);
    transition: var(--transition-default);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.banner-svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.hero-content {
    max-width: 700px;
    padding: 2rem 0;
}

.hero-content h1 {
    margin-bottom: 1.5rem;
    font-size: 3rem;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* About Section */
.despre-noi-content {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.text-content {
    flex: 1;
}

.image-content {
    flex: 1;
}

.despre-svg {
    width: 100%;
    max-width: 500px;
}

/* Services Section */
.servicii {
    background-color: var(--background-white);
}

.servicii-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.serviciu-card {
    background-color: var(--background-light);
    border-radius: var(--border-radius-md);
    padding: 2rem;
    transition: var(--transition-default);
    box-shadow: var(--shadow-sm);
}

.serviciu-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.serviciu-card .icon {
    margin-bottom: 1.5rem;
}

.serviciu-card .icon img {
    width: 64px;
    height: 64px;
}

.serviciu-card h3 {
    margin-bottom: 1rem;
}

/* Testimonials Section */
.testimoniale {
    background-color: var(--primary-color);
    color: white;
}

.testimoniale .separator {
    color: white;
    background-color: white;
}
.testimoniale .section-header h2 {
    color: white;
}

.testimoniale-slider {
    display: flex;
    overflow: hidden;
}

.testimonial {
    flex: 0 0 100%;
    padding: 1rem;
}

.testimonial-content {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-md);
    padding: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.testimonial-content::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 30px;
    width: 20px;
    height: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-left: 1rem;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author h4 {
    color: white;
    margin-bottom: 0.25rem;
}

.testimonial-author p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
}

.testimoniale-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition-default);
}

.dot.active {
    background-color: white;
}

/* Blog Preview Section */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.blog-card {
    background-color: var(--background-white);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-default);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.blog-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 1.5rem;
}

.blog-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 500;
    position: relative;
}

.read-more::after {
    content: '→';
    margin-left: 0.5rem;
    transition: var(--transition-default);
}

.read-more:hover::after {
    margin-left: 0.75rem;
}

.view-all {
    margin-top: 3rem;
    text-align: center;
}

/* Subscription Section */
.abonare {
    background-color: var(--primary-light);
    color: white;
    position: relative;
    overflow: hidden;
}

.abonare::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../assets/banner2.svg') no-repeat center center;
    opacity: 0.05;
    z-index: 0;
}

.abonare-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.abonare-content h2,
.abonare-content p {
    color: white;
}

.abonare-content p {
    margin-bottom: 2rem;
}

#newsletter-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.form-group {
    position: relative;
}

input, textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius-md);
    background-color: white;
    transition: var(--transition-default);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(12, 20, 71, 0.1);
}

textarea {
    resize: vertical;
    min-height: 150px;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.contact-info ul {
    margin-bottom: 2rem;
}

.contact-info ul li {
    margin-bottom: 1rem;
}

.contact-info ul li strong {
    display: inline-block;
    min-width: 80px;
}

.social-media h4 {
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    transition: var(--transition-default);
}

.social-icons a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.social-icons svg {
    width: 18px;
    height: 18px;
}

.contact-form h3 {
    margin-bottom: 1.5rem;
}

#contact-form {
    display: grid;
    gap: 1rem;
}

/* Footer Section */
footer {
    background-color: var(--primary-dark);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 1rem;
    filter: invert(100%) brightness(1000%);
}

.footer-links h4,
.footer-legal h4,
.footer-contact h4 {
    color: white;
    margin-bottom: 1.5rem;
}

.footer-links ul li,
.footer-legal ul li {
    margin-bottom: 0.75rem;
}

.footer-links ul li a,
.footer-legal ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-default);
}

.footer-links ul li a:hover,
.footer-legal ul li a:hover {
    color: white;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0;
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--background-white);
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    transform: translateY(100%);
    transition: var(--transition-default);
}

.cookie-consent.active {
    transform: translateY(0);
}

.cookie-content {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-content h3 {
    margin-bottom: 1rem;
}

.cookie-content p {
    margin-bottom: 1.5rem;
}

.cookie-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.cookie-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-option .tooltip {
    position: absolute;
    top: -40px;
    left: 0;
    background-color: var(--text-dark);
    color: white;
    padding: 0.5rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.875rem;
    width: 250px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-default);
}

.cookie-option:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

.cookie-option .tooltip::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 10px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--text-dark);
}

.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Responsive styles */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 1.5rem;
        box-shadow: var(--shadow-md);
        transform: translateY(-150%);
        transition: var(--transition-default);
    }
    
    .nav-menu.active {
        transform: translateY(0);
    }
    
    .hero-content {
        text-align: center;
        padding: 1rem;
    }
    
    .hero-content h1 {
        font-size: 2.25rem;
    }
    
    .despre-noi-content {
        flex-direction: column-reverse;
        gap: 2rem;
    }
    
    .testimonial-author {
        padding-left: 0;
    }
}

@media (max-width: 480px) {
    .cookie-buttons {
        justify-content: center;
    }
    
    .cookie-options {
        grid-template-columns: 1fr;
    }
    .servicii-grid, .blog-grid, .contact-content {
        grid-template-columns: 1fr !important;
    }
    table {
        display: none;
    }
}

/* Animation classes */
.fade-in {
    animation: fadeIn 1s ease forwards;
}

.slide-up {
    animation: slideUp 1s ease forwards;
}

.slide-in {
    animation: slideIn 1s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
