/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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: #ffffff;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #000;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
    color: #555;
}

a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #2980b9;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 40px;
}

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

.nav-logo .logo {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #3498db;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #3498db;
}

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

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

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

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

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-image img {
    width: 100%;
    height: auto;
    max-width: 500px;
}

/* Page Hero */
.page-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
}

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

.page-hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-tertiary,
.cta-button {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary,
.cta-button {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover,
.cta-button:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background-color: #3498db;
    color: white;
}

.btn-tertiary {
    background-color: #95a5a6;
    color: white;
}

.btn-tertiary:hover {
    background-color: #7f8c8d;
}

/* Sections */
section {
    padding: 80px 0;
}

.services,
.about-preview,
.testimonials,
.blog-preview,
.subscription,
.contact,
.company-info,
.mission,
.team,
.values,
.stats,
.blog-articles,
.newsletter-section,
.thanks-section,
.next-steps,
.contact-info,
.cta-section {
    padding: 80px 0;
}

.services {
    background-color: #f8f9fa;
}

.services h2,
.about-preview h2,
.testimonials h2,
.blog-preview h2,
.subscription h2,
.contact h2 {
    text-align: center;
    margin-bottom: 3rem;
}

/* Grid Layouts */
.services-grid,
.testimonials-grid,
.blog-grid,
.mission-grid,
.team-grid,
.values-content,
.stats-grid,
.articles-grid,
.steps-grid,
.related-grid {
    display: grid;
    gap: 2rem;
}

.services-grid,
.testimonials-grid,
.mission-grid,
.team-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.blog-grid,
.related-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.articles-grid {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.steps-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Cards */
.service-card,
.testimonial-card,
.blog-card,
.article-card,
.mission-card,
.team-member,
.step-card,
.related-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.service-card:hover,
.testimonial-card:hover,
.blog-card:hover,
.article-card:hover,
.mission-card:hover,
.team-member:hover,
.step-card:hover,
.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.service-card img,
.testimonial-card img,
.mission-card img,
.team-member img,
.step-card img,
.related-card img {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
}

.blog-card,
.article-card {
    text-align: left;
}

.blog-card img,
.article-card .article-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.article-category {
    background-color: #3498db;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.8rem;
}

/* About Section */
.about-content,
.info-content,
.values-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image img,
.info-image img,
.values-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
}

/* Stats Section */
.stats {
    background-color: #000;
    color: white;
}

.stats h2 {
    color: white;
    text-align: center;
    margin-bottom: 3rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #3498db;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: #bdc3c7;
}

/* Forms */
.subscription-form {
    max-width: 500px;
    margin: 0 auto;
}

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

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #3498db;
}

.error-message {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: block;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #000;
    color: white;
    padding: 1rem;
    z-index: 1000;
    display: none;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

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

.cookie-buttons button {
    padding: 8px 16px;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Cookie Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

.cookie-modal-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.cookie-category {
    margin-bottom: 1rem;
}

.cookie-category label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.cookie-modal-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Contact Section */
.contact-content,
.contact-info .contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.contact-info img {
    width: 80px;
    height: 80px;
}

.contact-details h3 {
    margin-bottom: 1rem;
    color: #000;
}

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

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: #3498db;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.social-icons a:hover {
    background-color: #2980b9;
}

/* Footer */
.footer {
    background-color: #000;
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-section h3,
.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #bdc3c7;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #3498db;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

/* Legal Pages */
.legal-page {
    padding: 120px 0 80px;
}

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

.last-updated {
    font-style: italic;
    color: #666;
    margin-bottom: 2rem;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.legal-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #000;
}

.legal-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: #34495e;
}

.legal-content ul {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

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

.legal-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

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

.legal-content th {
    background-color: #f5f5f5;
    font-weight: 600;
}

/* Article Pages */
.article-page {
    padding: 120px 0 80px;
}

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

.article-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

.article-image {
    text-align: center;
    margin-bottom: 3rem;
}

.article-image img {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 10px;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.article-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

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

.article-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.back-to-blog {
    font-weight: 600;
    color: #3498db;
}

.article-share {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.share-link {
    color: #3498db;
    font-weight: 500;
}

/* Related Articles */
.related-articles {
    background-color: #f8f9fa;
    padding: 60px 0;
}

.related-articles h2 {
    text-align: center;
    margin-bottom: 3rem;
}

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

.related-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.related-card h3 {
    margin-bottom: 1rem;
}

.read-more {
    color: #3498db;
    font-weight: 600;
    text-decoration: none;
}

.read-more:hover {
    text-decoration: underline;
}

/* Thanks Page */
.thanks-section {
    text-align: center;
    padding: 120px 0 80px;
}

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

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

.thanks-icon img {
    width: 100px;
    height: 100px;
}

.thanks-message {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.thanks-details {
    text-align: left;
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.thanks-details ul {
    margin-top: 1rem;
    padding-left: 1.5rem;
}

.thanks-details li {
    margin-bottom: 0.5rem;
}

.thanks-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Newsletter Section */
.newsletter-section {
    background-color: #f8f9fa;
    text-align: center;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content img {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.cta-section h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

/* Blog CTA */
.blog-cta {
    text-align: center;
    margin-top: 3rem;
}

/* Utilities */
.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 2rem;
}

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

.hidden {
    display: none;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Smooth scrolling offset for fixed header */
html {
    scroll-padding-top: 80px;
}

/* Focus styles for accessibility */
a:focus,
button:focus,
input:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .header,
    .footer,
    .cookie-banner,
    .cookie-modal {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
}
