/* 
* Cotonsladzo - Main Stylesheet
* Version: 1.0
*/

/* =================== 
   Table of Contents
   1. Base/Reset
   2. Typography
   3. Layout & Containers
   4. Header
   5. Navigation
   6. Buttons
   7. Hero Section
   8. Content Sections
   9. Forms
   10. Cookie Banner
   11. Footer
   12. Utility Classes
   13. Responsive Design
=================== */

/* =================== 
   1. Base/Reset
=================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
}

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

a {
    color: #1a73e8;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #0d47a1;
}

ul, ol {
    list-style: none;
}

/* =================== 
   2. Typography
=================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #222;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.section-header h2 {
    position: relative;
    padding-bottom: 1rem;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #1a73e8;
}

.section-header p {
    font-size: 1.125rem;
    color: #666;
}

/* =================== 
   3. Layout & Containers
=================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 5rem 0;
}

.legal-content {
    padding: 4rem 0;
}

.legal-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.legal-body {
    color: #444;
    line-height: 1.7;
}

.legal-body h2 {
    color: #1a73e8;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.legal-body h3 {
    margin-top: 1.5rem;
    color: #333;
}

.legal-body p, .legal-body ul, .legal-body ol, .legal-body address {
    margin-bottom: 1.5rem;
}

.legal-body ul, .legal-body ol {
    margin-left: 2rem;
    list-style-type: disc;
}

.legal-body ol {
    list-style-type: decimal;
}

.legal-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.legal-body table th, .legal-body table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.legal-body table th {
    background-color: #f5f5f5;
}

/* =================== 
   4. Header
=================== */
.site-header {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 1rem 0;
}

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

.logo a {
    display: block;
}

.logo img {
    height: 60px;
    width: auto;
}

/* =================== 
   5. Navigation
=================== */
.main-nav ul {
    display: flex;
    align-items: center;
}

.main-nav li {
    margin-left: 1.5rem;
}

.main-nav a {
    color: #333;
    font-weight: 600;
    position: relative;
    padding: 0.5rem 0;
}

.main-nav a:hover,
.main-nav a.active {
    color: #1a73e8;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #1a73e8;
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
}

.menu-toggle span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: #333;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.menu-toggle span:nth-child(1) {
    top: 0;
}

.menu-toggle span:nth-child(2) {
    top: 8px;
}

.menu-toggle span:nth-child(3) {
    top: 16px;
}

/* =================== 
   6. Buttons
=================== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.btn-primary {
    background-color: #1a73e8;
    color: #fff;
}

.btn-primary:hover {
    background-color: #0d47a1;
    color: #fff;
}

.btn-secondary {
    background-color: transparent;
    color: #1a73e8;
    border: 2px solid #1a73e8;
}

.btn-secondary:hover {
    background-color: #1a73e8;
    color: #fff;
}

.btn-tertiary {
    background-color: transparent;
    color: #1a73e8;
    padding: 0.5rem 0;
    position: relative;
}

.btn-tertiary::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #1a73e8;
    transition: width 0.3s ease;
}

.btn-tertiary:hover::after {
    width: 100%;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

/* =================== 
   7. Hero Section
=================== */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 5rem 0;
}

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

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    max-width: 600px;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* =================== 
   8. Content Sections
=================== */
/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.service-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

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

.service-icon {
    margin: 0 auto 1.5rem;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon img {
    max-width: 100%;
    max-height: 100%;
}

.service-cta {
    text-align: center;
}

/* About Section */
.about {
    background-color: #f7f9fc;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h2 {
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1.5rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.stat-card h3 {
    font-size: 2.5rem;
    color: #1a73e8;
    margin-bottom: 0.5rem;
}

/* Why Choose Us Section */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.benefit-card i {
    color: #1a73e8;
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Testimonials Section */
.testimonials {
    background-color: #f7f9fc;
}

.testimonial-slider {
    position: relative;
    margin-bottom: 2rem;
}

.testimonial-slide {
    display: none;
}

.testimonial-slide.active {
    display: block;
}

.testimonial-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 2.5rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-icon {
    margin: 0 auto 1.5rem;
    width: 50px;
    height: 50px;
}

.rating {
    color: #ffc107;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.testimonial-card blockquote {
    font-style: italic;
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    font-weight: 600;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.testimonial-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: #1a73e8;
}

#prev-testimonial,
#next-testimonial {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #1a73e8;
    cursor: pointer;
    transition: color 0.3s ease;
}

#prev-testimonial:hover,
#next-testimonial:hover {
    color: #0d47a1;
}

/* Blog Preview Section */
.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.blog-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-8px);
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.blog-content {
    padding: 1.5rem;
}

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

.blog-content p {
    margin-bottom: 1.25rem;
}

.blog-cta {
    text-align: center;
}

/* Newsletter Section */
.newsletter {
    background-color: #1a73e8;
    color: #fff;
}

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

.newsletter-content h2 {
    color: #fff;
}

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

.form-group {
    display: flex;
    margin-bottom: 1rem;
}

.form-group input[type="email"] {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
}

.form-group button {
    border-radius: 0 4px 4px 0;
}

.form-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    text-align: left;
    font-size: 0.875rem;
}

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

.form-consent a {
    color: #fff;
    text-decoration: underline;
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
}

.contact-info {
    background-color: #f7f9fc;
    border-radius: 8px;
    overflow: hidden;
}

.contact-card {
    padding: 2rem;
}

.contact-icon {
    margin: 0 auto 1.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-card h3 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.contact-card ul {
    margin-bottom: 1.5rem;
}

.contact-card li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.contact-card li i {
    color: #1a73e8;
    font-size: 1.25rem;
    margin-top: 0.25rem;
}

.contact-card h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

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

.contact-form-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Thank You Page */
.thank-you {
    padding: 8rem 0;
    text-align: center;
}

.thank-you-content {
    max-width: 700px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 8px;
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.thank-you-icon {
    font-size: 4rem;
    color: #4caf50;
    margin-bottom: 1.5rem;
}

.thank-you-content h1 {
    margin-bottom: 1.5rem;
}

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

.thank-you-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.thank-you-content ol {
    text-align: left;
    margin-left: 2rem;
    margin-bottom: 2rem;
    list-style-type: decimal;
}

.thank-you-content ol li {
    margin-bottom: 0.5rem;
}

.thank-you-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

/* =================== 
   9. Forms
=================== */
input,
textarea,
select,
button {
    font: inherit;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #1a73e8;
}

/* Form validation styles */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #e53935;
}

.error-message {
    color: #e53935;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* =================== 
   10. Cookie Banner
=================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    z-index: 9999;
}

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

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

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

.cookie-settings-panel {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.cookie-option {
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
}

.cookie-option input {
    margin-right: 0.5rem;
}

.cookie-description {
    font-size: 0.875rem;
    color: #666;
    margin-top: 0.25rem;
    margin-left: 1.5rem;
}

/* =================== 
   11. Footer
=================== */
.site-footer {
    background-color: #1c2331;
    color: #fff;
    padding: 4rem 0 1.5rem;
}

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

.footer-company {
    max-width: 350px;
}

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

.footer-company p {
    margin-bottom: 1.5rem;
    color: #ccc;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.footer-contact a {
    color: #fff;
}

.footer-contact a:hover {
    color: #1a73e8;
}

.footer-contact i {
    color: #1a73e8;
}

.footer-links h3 {
    color: #fff;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-links h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #1a73e8;
}

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

.footer-links ul li a {
    color: #ccc;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-links ul li a:hover,
.footer-links ul li a.active {
    color: #fff;
    padding-left: 5px;
}

.footer-social .social-links {
    margin-bottom: 1.5rem;
}

.footer-certifications {
    color: #ccc;
}

.certification-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.75rem;
}

.certification-logos span {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.875rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #999;
    font-size: 0.875rem;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

/* =================== 
   12. Utility Classes
=================== */
.hidden {
    display: none !important;
}

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

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

/* =================== 
   13. Responsive Design
=================== */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }

    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: la.75rem;
    }

    .hero {
        min-height: 500px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .main-nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: #fff;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        padding: 1rem 0;
        z-index: 1000;
    }

    .main-nav ul.active {
        display: flex;
    }

    .main-nav li {
        margin: 0;
        width: 100%;
    }

    .main-nav a {
        display: block;
        padding: 0.75rem 1.5rem;
    }

    .main-nav a::after {
        display: none;
    }

    .hero {
        min-height: 400px;
        padding: 3rem 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.125rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .hero {
        min-height: 350px;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .service-card,
    .stat-card,
    .benefit-card {
        padding: 1.5rem;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

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

    .newsletter-form .form-group input,
    .newsletter-form .form-group button {
        width: 100%;
        border-radius: 4px;
    }

    .newsletter-form .form-group input {
        margin-bottom: 1rem;
    }

    .thank-you-content {
        padding: 2rem 1.5rem;
    }

    .thank-you-buttons {
        flex-direction: column;
        gap: 1rem;
    }

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

    .cookie-buttons button {
        width: 100%;
    }
}

/* Adjustments for when JavaScript is disabled */
.no-js .menu-toggle {
    display: none;
}

.no-js .main-nav ul {
    display: flex;
}
