/* ===============================
   GENERAL STYLES
   =============================== */
:root {
    --primary-color: #0066cc;
    --primary-dark: #004e9e;
    --secondary-color: #ff9900;
    --secondary-dark: #e68a00;
    --text-color: #333333;
    --text-light: #666666;
    --text-lighter: #999999;
    --light-color: #f8f9fa;
    --white: #ffffff;
    --border-color: #e1e1e1;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --error-color: #dc3545;
    --font-heading: 'Montserrat', 'Segoe UI', Roboto, Arial, sans-serif;
    --font-body: 'Open Sans', 'Segoe UI', Roboto, Arial, sans-serif;
    --shadow-small: 0 2px 5px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-large: 0 8px 25px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --container-width: 1200px;
}

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

html {
    font-size: 62.5%; /* 10px = 1rem */
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.3;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

h1 {
    font-size: 4.8rem;
}

h2 {
    font-size: 3.6rem;
}

h3 {
    font-size: 2.4rem;
}

h4 {
    font-size: 2rem;
}

p {
    margin-bottom: 1.5rem;
}

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

a:hover {
    color: var(--primary-dark);
}

ul, ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

img, svg {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Text helpers */
.text-center {
    text-align: center;
}

/* Section styles */
section {
    padding: 8rem 0;
}

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

.section-header h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 70px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 1.5rem auto 0;
}

.section-header p {
    max-width: 650px;
    margin: 0 auto;
    color: var(--text-light);
    font-size: 1.8rem;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-text {
    display: inline-block;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
    padding: 1.2rem 2.4rem;
    font-size: 1.6rem;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

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

.btn-secondary:hover {
    background-color: var(--light-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-small);
}

.btn-text {
    background: transparent;
    color: var(--primary-color);
    padding: 0.8rem 0;
    position: relative;
}

.btn-text::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.btn-text:hover {
    color: var(--primary-dark);
}

.btn-text:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Form elements */
.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 1.2rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 1.6rem;
    transition: var(--transition);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.2);
}

.form-consent {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.form-consent input[type="checkbox"] {
    margin-right: 1rem;
    margin-top: 0.4rem;
}

.form-consent label {
    font-size: 1.4rem;
    line-height: 1.4;
}

/* ===============================
   HEADER & NAVIGATION
   =============================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-small);
    padding: 2rem 0;
    z-index: 100;
    transition: var(--transition);
}

.main-header.scrolled {
    padding: 1rem 0;
    background-color: rgba(255, 255, 255, 0.98);
}

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

.logo {
    display: flex;
    align-items: center;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list li {
    margin-left: 3rem;
}

.nav-list a {
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.6rem;
    transition: var(--transition);
}

.nav-list a:hover {
    color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: var(--transition);
}

/* ===============================
   BANNER SECTION
   =============================== */
.banner {
    position: relative;
    padding: 18rem 0 12rem;
    background-color: #f0f8ff;
    overflow: hidden;
}

.banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/banner-bg.svg');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.banner-content h1 {
    margin-bottom: 2rem;
    color: var(--text-color);
}

.banner-content p {
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--text-light);
}

.banner-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* ===============================
   SERVICES SECTION
   =============================== */
.services {
    background-color: var(--white);
}

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

.service-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--shadow-small);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.service-icon {
    margin: 0 auto 2rem;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 102, 204, 0.1);
    border-radius: 50%;
}

.service-card h3 {
    margin-bottom: 1.5rem;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* ===============================
   ABOUT SECTION
   =============================== */
.about {
    background-color: #f9f9f9;
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-text {
    max-width: 800px;
    text-align: center;
}

.about-text p {
    margin-bottom: 2rem;
    font-size: 1.7rem;
}

.about-stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4rem;
    margin-top: 4rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 4.8rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

.stat-label {
    font-size: 1.8rem;
    color: var(--text-light);
}

/* ===============================
   BLOG SECTION
   =============================== */
.blog-preview {
    background-color: var(--white);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

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

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

.blog-img {
    overflow: hidden;
}

.blog-img img {
    width: 100%;
    height: auto;
    transition: var(--transition);
}

.blog-card:hover .blog-img img {
    transform: scale(1.05);
}

.blog-content {
    padding: 2rem;
}

.blog-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.blog-content p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* ===============================
   TESTIMONIALS SECTION
   =============================== */
.testimonials {
    background-color: #f5f8ff;
    position: relative;
}

.testimonials-slider {
    display: flex;
    overflow: hidden;
    position: relative;
}

.testimonial-card {
    min-width: 100%;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: none;
}

.testimonial-card.active {
    opacity: 1;
    display: block;
}

.testimonial-content {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 3rem;
    position: relative;
    box-shadow: var(--shadow-small);
    margin-bottom: 2rem;
}

.testimonial-content::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50px;
    width: 30px;
    height: 30px;
    background-color: var(--white);
    transform: rotate(45deg);
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.05);
}

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

.testimonial-author {
    padding-left: 5rem;
}

.testimonial-author h4 {
    margin-bottom: 0.5rem;
}

.testimonial-author p {
    color: var(--text-light);
    margin-bottom: 0;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    margin-top: 4rem;
}

.prev-btn, .next-btn {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 4.5rem;
    height: 4.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 1rem;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.8rem;
}

.prev-btn:hover, .next-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* ===============================
   NEWSLETTER SECTION
   =============================== */
.newsletter {
    background-color: var(--primary-color);
    color: var(--white);
}

.newsletter-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.newsletter .section-header h2 {
    color: var(--white);
}

.newsletter .section-header h2::after {
    background-color: var(--white);
}

.newsletter .section-header p {
    color: rgba(255, 255, 255, 0.8);
}

.newsletter-form {
    margin-top: 3rem;
}

.newsletter-form .form-group {
    display: flex;
    max-width: 500px;
    margin: 0 auto 2rem;
}

.newsletter-form input[type="email"] {
    flex: 1;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border: none;
}

.newsletter-form button {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    background-color: var(--secondary-color);
    color: var(--white);
}

.newsletter-form button:hover {
    background-color: var(--secondary-dark);
}

.newsletter .form-consent {
    justify-content: center;
}

.newsletter .form-consent label,
.newsletter .form-consent a {
    color: var(--white);
}

.newsletter .form-consent a {
    text-decoration: underline;
}

/* ===============================
   CONTACT SECTION
   =============================== */
.contact {
    background-color: var(--white);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
}

.contact-info .section-header {
    text-align: left;
}

.contact-info .section-header h2::after {
    margin-left: 0;
}

.contact-details {
    margin-top: 3rem;
}

.contact-item {
    display: flex;
    margin-bottom: 2.5rem;
}

.contact-item svg {
    margin-right: 1.5rem;
    min-width: 24px;
    color: var(--primary-color);
}

.contact-item h4 {
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: var(--text-light);
    margin-bottom: 0;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 3rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    background-color: #f5f5f5;
    border-radius: 50%;
    color: var(--text-color);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

.contact-form-container {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--shadow-medium);
}

.contact-form button {
    width: 100%;
}

/* ===============================
   FOOTER
   =============================== */
.main-footer {
    background-color: #222;
    color: #fff;
    padding: 6rem 0 2rem;
}

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

.footer-col h3 {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    position: relative;
}

.footer-col h3::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
    margin-top: 1rem;
}

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

.footer-col p {
    color: #aaa;
    margin-bottom: 2rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: #aaa;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

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

.footer-bottom p {
    color: #aaa;
    margin-bottom: 0;
    font-size: 1.4rem;
}

/* ===============================
   RESPONSIVE DESIGN
   =============================== */
@media screen and (max-width: 1024px) {
    html {
        font-size: 60%;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .contact-info {
        text-align: center;
    }

    .contact-info .section-header {
        text-align: center;
    }

    .contact-info .section-header h2::after {
        margin-left: auto;
    }

    .contact-item {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }
}

@media screen and (max-width: 768px) {
    html {
        font-size: 58%;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav-list {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        box-shadow: var(--shadow-medium);
        transform: translateY(-150%);
        opacity: 0;
        transition: var(--transition);
        z-index: 99;
    }

    .nav-list.active {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-list li {
        margin: 1rem 0;
    }

    .banner {
        padding: 15rem 0 8rem;
    }

    .banner-content h1 {
        font-size: 3.6rem;
    }

    .banner-content p {
        font-size: 1.8rem;
    }

    .banner-buttons {
        flex-direction: column;
    }

    .banner-buttons a {
        margin-bottom: 1rem;
        width: 100%;
    }

    .newsletter-form .form-group {
        flex-direction: column;
    }

    .newsletter-form input[type="email"] {
        border-radius: var(--border-radius);
        margin-bottom: 1rem;
    }

    .newsletter-form button {
        border-radius: var(--border-radius);
        width: 100%;
    }
}

@media screen and (max-width: 576px) {
    html {
        font-size: 55%;
    }

    section {
        padding: 6rem 0;
    }

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

    h1 {
        font-size: 3.2rem;
    }

    h2 {
        font-size: 2.8rem;
    }

    .about-stats {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }
}
