/* Base Styles
---------------------------------------- */
:root {
    /* Colors */
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --grey-color: #6c757d;
    --light-grey-color: #e9ecef;
    --success-color: #4CAF50;

    /* Typography */
    --font-primary: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-heading: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;

    /* Other */
    --border-radius: 4px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

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

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

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

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

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

ul {
    list-style: none;
}

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

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

/* Utilities
---------------------------------------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

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

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

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

.btn-secondary:hover {
    background-color: #1a2530;
    color: white;
}

.btn-text {
    background: none;
    color: var(--primary-color);
    padding: 0.5rem 0.75rem;
}

.btn-text:hover {
    background-color: rgba(52, 152, 219, 0.1);
    color: var(--primary-color);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.section {
    padding: 5rem 0;
}

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

.section-header h2 {
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--grey-color);
    font-size: 1.1rem;
}

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

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: block;
}

.logo img {
    height: 40px;
}

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

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

.nav-menu a {
    color: var(--dark-color);
    font-weight: 500;
}

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

.nav-cta {
    background-color: var(--primary-color);
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
}

.nav-cta:hover {
    background-color: #2980b9;
    color: white !important;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    margin-bottom: 5px;
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero Banner
---------------------------------------- */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../assets/hero-background.svg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 10rem 0 8rem;
    margin-top: 73px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

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

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

/* About Section
---------------------------------------- */
.about-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-counters {
    display: flex;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.counter {
    flex: 1;
    min-width: 150px;
    text-align: center;
    margin: 1rem;
    padding: 1rem;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.counter .count {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.counter .label {
    font-size: 1rem;
    color: var(--grey-color);
}

/* Services Section
---------------------------------------- */
.services {
    background-color: var(--light-color);
}

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

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

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-icon {
    margin-bottom: 1.5rem;
}

.service-icon img {
    width: 80px;
    height: 80px;
}

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

/* Testimonials Section
---------------------------------------- */
.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-slide {
    display: none;
    animation: fadeEffect 1s;
}

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

.testimonial-content {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
}

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

.testimonial-author {
    display: flex;
    flex-direction: column;
}

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

.testimonial-author .location {
    color: var(--grey-color);
}

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

.testimonial-control {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
}

.testimonial-control.prev:before {
    content: "←";
    color: var(--grey-color);
}

.testimonial-control.next:before {
    content: "→";
    color: var(--grey-color);
}

.testimonial-dots {
    display: flex;
    margin: 0 1rem;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: var(--light-grey-color);
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--primary-color);
}

@keyframes fadeEffect {
    from {opacity: 0.7}
    to {opacity: 1}
}

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

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

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.blog-content {
    padding: 1.5rem;
}

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

.read-more {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    position: relative;
}

.read-more:after {
    content: '→';
    margin-left: 5px;
    transition: var(--transition);
}

.read-more:hover:after {
    margin-left: 8px;
}

/* Blog Detail Page
---------------------------------------- */
.blog-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-top: 6rem;
}

.blog-meta {
    color: var(--grey-color);
    margin-top: 0.5rem;
}

.blog-meta span {
    margin: 0 0.5rem;
}

.blog-feature-image {
    margin-bottom: 2rem;
    text-align: center;
}

.blog-feature-image img {
    width: 100%;
    border-radius: var(--border-radius);
}

.blog-content-wrapper {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 2rem;
}

.blog-content {
    padding-right: 1rem;
}

.blog-content h2, .blog-content h3 {
    margin-top: 2rem;
}

.blog-content ul, .blog-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.blog-content ul li, .blog-content ol li {
    margin-bottom: 0.5rem;
}

.blog-sidebar {
    padding-left: 1rem;
    border-left: 1px solid var(--light-grey-color);
}

.sidebar-widget {
    margin-bottom: 2rem;
}

.related-posts li {
    margin-bottom: 0.75rem;
}

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

.contact-info {
    background-color: var(--light-color);
    padding: 2rem;
    border-radius: var(--border-radius);
}

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

.contact-icon {
    margin-right: 1rem;
}

.contact-icon img {
    width: 30px;
    height: 30px;
}

.contact-text h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.social-links {
    margin-top: 3rem;
}

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

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

.social-icons a:hover {
    background-color: var(--primary-color);
}

.social-icons img {
    width: 20px;
    height: 20px;
}

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

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

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

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--light-grey-color);
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

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

.form-checkbox input {
    width: auto;
    margin-right: 10px;
    margin-top: 5px;
}

.error-message {
    color: var(--accent-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

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

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

.footer-logo img {
    height: 40px;
    margin-bottom: 1rem;
}

.footer h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-nav ul, .footer-legal ul {
    padding: 0;
}

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

.footer-nav a, .footer-legal a, .footer-contact a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-nav a:hover, .footer-legal a:hover, .footer-contact a:hover {
    color: white;
}

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

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

/* Thanks Page
---------------------------------------- */
.thanks {
    padding-top: 10rem;
    padding-bottom: 5rem;
}

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

.thanks-icon {
    margin-bottom: 2rem;
}

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

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

/* Legal Pages
---------------------------------------- */
.legal {
    padding-top: 9rem;
}

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

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

.legal-header p {
    color: var(--grey-color);
}

.legal-content h2 {
    margin-top: 2rem;
    font-size: 1.6rem;
}

.legal-content h3 {
    margin-top: 1.5rem;
    font-size: 1.3rem;
}

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

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

.legal-content li {
    margin-bottom: 0.5rem;
}

.cookies-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.cookies-table th, .cookies-table td {
    border: 1px solid var(--light-grey-color);
    padding: 0.75rem;
    text-align: left;
}

.cookies-table th {
    background-color: var(--light-color);
    font-weight: 600;
}

.cookie-management {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--light-grey-color);
}

.cookie-settings-page {
    background-color: var(--light-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-top: 1.5rem;
}

.cookie-option {
    margin-bottom: 1.5rem;
}

.cookie-option label {
    font-weight: 600;
    margin-left: 0.5rem;
}

.cookie-option p {
    margin-left: 1.8rem;
    font-size: 0.9rem;
    color: var(--grey-color);
}

/* Cookie Consent
---------------------------------------- */
.cookie-consent {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    background-color: white;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius);
    z-index: 9999;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    display: none;
}

.cookie-consent.show {
    display: block;
    animation: slideUp 0.5s forwards;
}

.cookie-content {
    padding: 1.5rem;
}

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

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

.cookie-settings {
    background-color: var(--light-color);
    padding: 1.5rem;
    display: none;
    border-top: 1px solid var(--light-grey-color);
}

.cookie-settings.show {
    display: block;
}

.cookie-settings-options {
    margin-bottom: 1rem;
}

.cookie-settings-buttons {
    text-align: right;
}

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