/* Vispārējie stili */
:root {
    --primary-color: #FFD700; /* Zelta dzeltenais */
    --secondary-color: #333; /* Tumši pelēks tekstam */
    --accent-color: #007bff; /* Akcenta krāsa, ja nepieciešams */
    --light-grey: #f8f8f8;
    --dark-grey: #222;
    --text-color: #444;
    --white-color: #fff;
    --footer-bg: #1a1a1a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

a:hover {
    color: var(--accent-color);
}

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--light-grey);
}

/* Pogas */
.btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 12px 25px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.btn:hover {
    background-color: #e6c100; /* Tumšāks dzeltenais */
}

.btn.secondary-btn {
    background: var(--dark-grey);
    color: var(--white-color);
}

.btn.secondary-btn:hover {
    background-color: var(--secondary-color);
}

/* Galvene */
header {
    background: var(--dark-grey);
    color: var(--white-color);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    color: var(--primary-color);
    font-size: 28px;
    font-weight: 700;
}

.nav-links {
    display: flex;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--white-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.language-switcher button {
    background: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    padding: 8px 12px;
    margin-left: 10px;
    cursor: pointer;
    border-radius: 3px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.language-switcher button:hover {
    background-color: #e6c100;
}

.language-switcher button.active {
    background-color: var(--accent-color);
    color: var(--white-color);
}

.hamburger {
    display: none; /* Paslēpt lielos ekrānos */
    background: none;
    border: none;
    color: var(--white-color);
    font-size: 30px;
    cursor: pointer;
}

/* Varoņa sadaļa (Hero Section) */
.hero {
    background: url('https://via.placeholder.com/1500x800/FFD700/000000?text=Saules+Paneli') no-repeat center center/cover;
    color: var(--white-color);
    text-align: center;
    padding: 150px 0;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Tumšāks pārklājums tekstam */
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 4em;
    margin-bottom: 20px;
    color: var(--white-color);
}

.hero p {
    font-size: 1.5em;
    margin-bottom: 40px;
    color: var(--white-color);
}

/* Lapu varoņa sadaļa (Page Hero) */
.page-hero {
    background-color: var(--primary-color); /* Noklusējuma fons */
    color: var(--white-color);
    text-align: center;
    padding: 100px 0;
    position: relative;
    box-shadow: inset 0 -5px 10px rgba(0,0,0,0.1);
}

.page-hero h1 {
    font-size: 3em;
    color: var(--secondary-color); /* Teksts uz dzeltena fona var būt tumšs */
    position: relative;
    z-index: 2;
}

/* Pakalpojumu režģis */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-item {
    background: var(--white-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-item h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* CTA sadaļa */
.cta-section {
    background: var(--primary-color);
    color: var(--secondary-color);
    text-align: center;
    padding: 60px 0;
}

.cta-section h2 {
    color: var(--secondary-color);
    font-size: 2.5em;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

.cta-section .btn {
    background-color: var(--dark-grey);
    color: var(--white-color);
}

.cta-section .btn:hover {
    background-color: var(--secondary-color);
}

/* Kontaktu forma */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white-color);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--secondary-color);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button[type="submit"] {
    width: 100%;
    padding: 15px;
    font-size: 1.2em;
    font-weight: 700;
}

.form-messages {
    margin-top: 20px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}

.form-messages.success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.form-messages.error {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
    margin-top: 50px;
}

.contact-item {
    background: var(--white-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.contact-item h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Kājene */
footer {
    background: var(--footer-bg);
    color: var(--white-color);
    padding: 50px 0 20px;
}

footer .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-info, .footer-nav, .footer-social {
    flex: 1;
    min-width: 200px;
}

footer h3, footer h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

footer p, footer li a {
    color: #bbb;
    margin-bottom: 10px;
}

footer li a:hover {
    color: var(--primary-color);
}

.footer-social img {
    width: 24px;
    height: 24px;
    margin-right: 15px;
    transition: transform 0.3s ease;
}

.footer-social img:hover {
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 30px;
    border-top: 1px solid #333;
    color: #bbb;
}

/* Responsīvais dizains */
@media (max-width: 992px) {
    .nav-links {
        display: none; /* Paslēpt navigācijas saites mazākos ekrānos */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 80px; /* Atkarīgs no galvenes augstuma */
        left: 0;
        background: var(--dark-grey);
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.3);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 10px 20px;
        text-align: center;
    }

    .hamburger {
        display: block; /* Rādīt hamburgera ikonu mazākos ekrānos */
    }

    header .container {
        flex-wrap: wrap;
    }

    .logo {
        margin-right: auto; /* Pabīdīt logo uz kreiso pusi */
    }

    .language-switcher {
        margin-left: auto; /* Pabīdīt valodu pārslēdzēju uz labo pusi */
    }

    .hero h1 {
        font-size: 3em;
    }

    .hero p {
        font-size: 1.2em;
    }

    .page-hero h1 {
        font-size: 2.5em;
    }

    .footer-info, .footer-nav, .footer-social {
        flex-basis: 100%;
        text-align: center;
    }

    .footer-nav ul {
        padding-left: 0;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 2.5em;
    }

    .hero p {
        font-size: 1em;
    }

    .page-hero h1 {
        font-size: 2em;
    }

    .services-grid {
        grid-template-columns: 1fr; /* Viena kolonna mazākos ekrānos */
    }
    
    .contact-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    header .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .logo {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }

    .language-switcher {
        width: 100%;
        text-align: center;
        margin-left: 0;
    }

    .language-switcher button {
        margin: 5px;
    }

    .hamburger {
        position: absolute;
        right: 20px;
        top: 20px;
    }

    .nav-links {
        top: 130px; /* Pielāgo, ja mainās galvenes augstums */
    }

    .hero h1 {
        font-size: 2em;
    }

    .hero p {
        font-size: 0.9em;
    }

    .cta-section h2 {
        font-size: 1.8em;
    }
}