/* -----------------------------
   Global Styles
----------------------------- */
:root {
    --primary-color: #0056b3;
    --secondary-color: #34495e;
    --accent-color: #e74c3c;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --text-color: #333;
    --border-color: #dee2e6;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    
    --font-primary: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-heading: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    
    --transition: all 0.3s ease;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 4px;
}

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

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

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

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

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

h1 {
    font-size: 3.6rem;
}

h2 {
    font-size: 3rem;
    position: relative;
    padding-bottom: 1.5rem;
}

h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 6rem;
    height: 0.3rem;
    background-color: var(--primary-color);
}

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(--accent-color);
}

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

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

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

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

.btn-primary:hover {
    background-color: #004494;
    color: white;
}

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

.btn-secondary:hover {
    background-color: #2c3e50;
    color: white;
}

.btn-text {
    background: none;
    color: var(--primary-color);
    padding: 1rem 1.6rem;
    text-decoration: underline;
}

.btn-text:hover {
    color: var(--accent-color);
    background: none;
}

/* Forms */
form {
    margin-bottom: 2rem;
}

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

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

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

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

textarea {
    min-height: 15rem;
    resize: vertical;
}

.checkbox {
    display: flex;
    align-items: flex-start;
}

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

/* -----------------------------
   Header
----------------------------- */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1.5rem 0;
}

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

.logo a {
    display: flex;
    align-items: center;
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 2.4rem;
}

.logo img {
    height: 4rem;
    margin-right: 1rem;
}

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

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

.main-nav a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--secondary-color);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 3rem;
    height: 2.4rem;
    position: relative;
}

.mobile-menu-toggle span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--secondary-color);
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: var(--transition);
}

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

.mobile-menu-toggle span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.mobile-menu-toggle span:nth-child(3) {
    bottom: 0;
}

.mobile-menu-toggle.active span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* -----------------------------
   Hero Section
----------------------------- */
.hero {
    background-color: #f5f8fa;
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

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

.hero-content {
    flex: 1;
    max-width: 60rem;
}

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

.hero-content p {
    font-size: 1.8rem;
    margin-bottom: 3rem;
}

.hero-image {
    flex: 1;
    max-width: 45rem;
    margin-left: 4rem;
}

/* -----------------------------
   Section Headers
----------------------------- */
.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

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

.section-header h2:after {
    left: 50%;
    transform: translateX(-50%);
}

.section-header p {
    font-size: 1.8rem;
    color: #666;
    max-width: 70rem;
    margin: 0 auto;
}

.section-icon {
    width: 5rem;
    height: 5rem;
    margin: 0 auto 1.5rem;
    display: block;
}

/* -----------------------------
   About Section
----------------------------- */
.about-section {
    padding: 8rem 0;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4rem;
}

.about-text {
    flex: 1;
    min-width: 30rem;
}

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

.about-features {
    list-style: none;
    margin: 2rem 0;
    padding: 0;
}

.about-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
}

.about-features li i {
    color: var(--success-color);
    margin-right: 1rem;
}

.about-stats {
    flex: 1;
    min-width: 30rem;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.stat-item {
    flex: 1;
    min-width: 15rem;
    max-width: 20rem;
    background-color: white;
    padding: 3rem 2rem;
    text-align: center;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.stat-number {
    display: block;
    font-size: 4.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

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

/* -----------------------------
   Services Section
----------------------------- */
.services-section {
    padding: 8rem 0;
    background-color: #f5f8fa;
}

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

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

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

.service-icon {
    width: 8rem;
    height: 8rem;
    margin: 0 auto 2rem;
}

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

.service-card p {
    color: #666;
}

.services-cta {
    text-align: center;
    margin-top: 4rem;
}

/* -----------------------------
   Testimonials Section
----------------------------- */
.testimonials-section {
    padding: 8rem 0;
}

.testimonials-slider {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    justify-content: center;
}

.testimonial-item {
    flex: 1;
    min-width: 30rem;
    max-width: 35rem;
    background-color: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
}

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

.testimonial-quote i {
    color: #ddd;
    font-size: 2rem;
}

.testimonial-quote i.fa-quote-left {
    position: absolute;
    top: -1rem;
    left: -1rem;
}

.testimonial-quote i.fa-quote-right {
    position: absolute;
    bottom: -1rem;
    right: -1rem;
}

.testimonial-quote p {
    font-style: italic;
    color: #666;
    padding: 0 2rem;
    margin: 1.5rem 0;
}

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

.testimonial-author p {
    color: #666;
    font-size: 1.4rem;
    margin: 0;
}

/* -----------------------------
   Blog Section
----------------------------- */
.blog-section {
    padding: 8rem 0;
    background-color: #f5f8fa;
}

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

.blog-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    display: flex;
    flex-direction: column;
}

.blog-image {
    background-color: #f5f5f5;
    height: 20rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-icon {
    width: 10rem;
    height: 10rem;
}

.blog-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

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

.blog-content h3 a {
    color: var(--secondary-color);
}

.blog-content h3 a:hover {
    color: var(--primary-color);
}

.blog-meta {
    font-size: 1.4rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.blog-excerpt {
    color: #666;
    margin-bottom: 1.5rem;
    flex: 1;
}

.blog-read-more {
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.blog-read-more i {
    margin-left: 0.5rem;
    transition: var(--transition);
}

.blog-read-more:hover i {
    transform: translateX(5px);
}

.blog-cta {
    text-align: center;
    margin-top: 2rem;
}

/* -----------------------------
   Contact Section
----------------------------- */
.contact-section {
    padding: 8rem 0;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
}

.contact-info {
    flex: 1;
    min-width: 30rem;
}

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

.contact-info p {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
}

.contact-info p i {
    margin-right: 1rem;
    color: var(--primary-color);
    margin-top: 0.3rem;
}

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

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

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

.subscription-form {
    flex: 1;
    min-width: 30rem;
}

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

.subscription-form p {
    margin-bottom: 2rem;
}

/* -----------------------------
   Footer
----------------------------- */
.footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 6rem 0 2rem;
}

.footer-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-column {
    flex: 1;
    min-width: 25rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-logo img {
    height: 4rem;
    margin-right: 1rem;
    filter: brightness(0) invert(1);
}

.footer-logo span {
    font-size: 2.4rem;
    font-weight: 700;
    color: white;
}

.footer-column h3 {
    color: white;
    margin-bottom: 2rem;
    font-size: 2rem;
}

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

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

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

.footer-links a:hover {
    color: white;
}

.footer-column p {
    color: #ddd;
    display: flex;
    align-items: flex-start;
}

.footer-column p i {
    margin-right: 1rem;
    margin-top: 0.3rem;
}

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

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

/* -----------------------------
   Cookie Banner
----------------------------- */
.cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
    padding: 2rem;
}

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

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

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

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

/* -----------------------------
   Cookie Settings
----------------------------- */
.cookie-settings {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.cookie-settings-content {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 3rem;
    max-width: 60rem;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

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

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

.cookie-options {
    margin-bottom: 2rem;
}

.cookie-option {
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
}

.option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.option-header label {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    cursor: pointer;
}

.option-header input[type="checkbox"] {
    margin-right: 1rem;
}

.cookie-option p {
    margin-bottom: 0;
    font-size: 1.4rem;
    color: #666;
}

.cookie-settings-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* -----------------------------
   Legal Pages
----------------------------- */
.legal-section {
    padding: 8rem 0;
}

.legal-header {
    text-align: center;
    margin-bottom: 4rem;
}

.legal-header h1 {
    margin-bottom: 1rem;
}

.legal-header p {
    color: #666;
}

.legal-content {
    max-width: 80rem;
    margin: 0 auto;
}

.legal-content h2 {
    margin-top: 4rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.legal-content h3 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

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

.legal-content ul, .legal-content ol {
    margin-left: 2.5rem;
}

/* -----------------------------
   Thanks Section
----------------------------- */
.thanks-section {
    padding: 8rem 0;
    text-align: center;
}

.thanks-content {
    max-width: 70rem;
    margin: 0 auto;
}

.thanks-icon {
    font-size: 6rem;
    color: var(--success-color);
    margin-bottom: 2rem;
}

.thanks-content h1 {
    margin-bottom: 2rem;
}

.thanks-content p {
    font-size: 1.8rem;
    margin-bottom: 3rem;
}

.next-steps {
    background-color: #f8f9fa;
    padding: 3rem;
    border-radius: var(--border-radius);
    margin-bottom: 3rem;
    text-align: left;
}

.next-steps h2 {
    margin-bottom: 2rem;
}

.next-steps ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.next-steps li {
    padding: 1rem 0;
    display: flex;
    align-items: flex-start;
}

.next-steps li i {
    color: var(--primary-color);
    margin-right: 1.5rem;
    margin-top: 0.3rem;
}

.thanks-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

/* -----------------------------
   Responsive Styles
----------------------------- */
@media (max-width: 1200px) {
    html {
        font-size: 60%;
    }
}

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

    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        margin-bottom: 4rem;
    }

    .hero-image {
        margin-left: 0;
        max-width: 100%;
    }

    h2:after {
        left: 50%;
        transform: translateX(-50%);
    }

    .about-content {
        flex-direction: column;
    }

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

    .about-features li {
        justify-content: center;
    }
}

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

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

    .main-nav {
        position: fixed;
        top: 7.7rem;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        z-index: 999;
    }

    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .main-nav ul {
        flex-direction: column;
        padding: 2rem;
    }

    .main-nav li {
        margin: 0;
    }

    .main-nav a {
        padding: 1.5rem 0;
        border-bottom: 1px solid var(--border-color);
    }

    .main-nav a:last-child {
        border-bottom: none;
    }

    .contact-container, .footer-columns {
        flex-direction: column;
    }

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

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

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

    .services-grid, .blog-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-item {
        margin-right: 0;
        margin-left: 0;
    }

    .cookie-settings-content {
        padding: 2rem;
    }

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

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