/* CSS Custom Properties */
:root {
    --primary-color: 190 100% 36%; /* #009dbd */
    --primary-light: 190 100% 46%; /* #00bde6 */
    --primary-dark: 190 100% 26%; /* #007094 */
    --secondary-color: 220 15% 25%; /* #3a4042 */
    --accent-color: 45 100% 51%; /* #ffa500 */
    
    --text-primary: 220 15% 20%; /* #2d3135 */
    --text-secondary: 220 10% 40%; /* #5c6065 */
    --text-light: 220 5% 60%; /* #8a8d92 */
    
    --background: 210 11% 98%; /* #f5f7fa */
    --background-alt: 210 11% 96%; /* #f0f3f6 */
    --surface: 0 0% 100%; /* #ffffff */
    --border: 220 8% 90%; /* #e4e6e9 */
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    --font-sans: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;
    
    --transition-fast: 150ms ease-in-out;
    --transition-normal: 250ms ease-in-out;
    --transition-slow: 350ms ease-in-out;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    color: hsl(var(--text-primary));
    background-color: hsl(var(--background));
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    line-height: var(--line-height-tight);
    font-weight: 600;
    color: hsl(var(--text-primary));
    margin-bottom: 0.5em;
}

h1 {
    font-size: var(--font-size-4xl);
}

h2 {
    font-size: var(--font-size-3xl);
}

h3 {
    font-size: var(--font-size-2xl);
}

h4 {
    font-size: var(--font-size-xl);
}

h5 {
    font-size: var(--font-size-lg);
}

h6 {
    font-size: var(--font-size-base);
}

p {
    margin-bottom: 1em;
    color: hsl(var(--text-secondary));
    line-height: var(--line-height-relaxed);
}

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

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

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

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: var(--font-size-base);
    font-weight: 500;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    min-height: 44px;
}

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

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

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

.btn-secondary:hover {
    background-color: hsl(var(--secondary-color) / 0.8);
    color: white;
}

.btn-outline {
    background-color: transparent;
    color: hsl(var(--primary-color));
    border: 2px solid hsl(var(--primary-color));
}

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

/* Header */
.header {
    background-color: hsl(var(--surface));
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

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

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

.nav-menu {
    display: none;
    list-style: none;
    gap: 2rem;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: hsl(var(--surface));
    flex-direction: column;
    padding: 1rem;
    box-shadow: var(--shadow-md);
    z-index: 1000;
}

.nav-menu.active {
    display: flex;
}

.nav-menu a {
    font-weight: 500;
    color: hsl(var(--text-primary));
    transition: color var(--transition-fast);
}

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

.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: hsl(var(--text-primary));
    transition: all var(--transition-fast);
}

@media (min-width: 768px) {
    .nav-container {
        padding: 0 2rem;
    }
    
    .nav-menu {
        display: flex !important;
        position: static;
        flex-direction: row;
        background-color: transparent;
        box-shadow: none;
        padding: 0;
    }
    
    .nav-toggle {
        display: none;
    }
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, hsl(var(--primary-color) / 0.1), hsl(var(--primary-light) / 0.1));
    margin-top: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
}

.hero-title {
    font-size: var(--font-size-4xl);
    margin-bottom: 1rem;
    color: hsl(var(--text-primary));
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    margin-bottom: 2rem;
    color: hsl(var(--text-secondary));
}

@media (min-width: 768px) {
    .hero-title {
        font-size: var(--font-size-5xl);
    }
}

/* Section Styles */
section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: var(--font-size-3xl);
}

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

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

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

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

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: block;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: hsl(var(--text-primary));
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* About Section */
.about {
    background-color: hsl(var(--background-alt));
}

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

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

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

.about-icon {
    width: 200px;
    height: 200px;
    max-width: 100%;
}

@media (min-width: 768px) {
    .about-content {
        grid-template-columns: 2fr 1fr;
    }
}

/* Testimonials Section */
.testimonials {
    background-color: hsl(var(--surface));
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.testimonial-card {
    text-align: center;
    padding: 2rem;
    border-radius: var(--radius-lg);
    background-color: hsl(var(--background));
    box-shadow: var(--shadow-md);
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: block;
}

.testimonial-card blockquote {
    font-style: italic;
    font-size: var(--font-size-lg);
    margin-bottom: 1.5rem;
    color: hsl(var(--text-secondary));
}

.testimonial-card cite {
    font-weight: 500;
    color: hsl(var(--text-primary));
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Blog Section */
.blog {
    background-color: hsl(var(--background-alt));
}

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

.blog-card {
    display: flex;
    flex-direction: column;
    background-color: hsl(var(--surface));
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal);
}

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

.blog-icon {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 1.5rem;
    flex: 1;
}

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

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

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

.blog-link {
    color: hsl(var(--primary-color));
    font-weight: 500;
    margin-top: 1rem;
    display: inline-block;
}

@media (min-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Newsletter Section */
.newsletter {
    background-color: hsl(var(--primary-color));
    color: white;
    text-align: center;
}

.newsletter .section-title {
    color: white;
}

.newsletter p {
    color: white;
    margin-bottom: 2rem;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
}

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

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    background-color: white;
    color: hsl(var(--text-primary));
}

.form-group input::placeholder {
    color: hsl(var(--text-light));
}

.newsletter .btn-primary {
    background-color: white;
    color: hsl(var(--primary-color));
    width: 100%;
    margin-top: 1rem;
}

.newsletter .btn-primary:hover {
    background-color: hsl(var(--background-alt));
    color: hsl(var(--primary-dark));
}

/* Contact Section */
.contact {
    background-color: hsl(var(--surface));
}

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

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.contact-details h3 {
    margin-bottom: 0.5rem;
}

.social-links h3 {
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-icons a {
    padding: 0.5rem 1rem;
    background-color: hsl(var(--primary-color));
    color: white;
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    transition: background-color var(--transition-fast);
}

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

@media (min-width: 768px) {
    .contact-content {
        grid-template-columns: 2fr 1fr;
    }
}

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

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    text-align: center;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

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

.footer-brand p {
    color: white;
    opacity: 0.8;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: white;
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

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

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
    
    .footer-brand {
        align-items: flex-start;
    }
}

/* Legal Pages */
.legal-page {
    margin-top: 80px;
    padding: 4rem 0;
    min-height: calc(100vh - 200px);
}

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

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

.last-updated {
    color: hsl(var(--text-light));
    font-size: var(--font-size-sm);
    margin-bottom: 2rem;
}

.legal-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: var(--font-size-2xl);
}

.legal-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: var(--font-size-xl);
}

.legal-content h4 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-size: var(--font-size-lg);
}

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

.legal-content li {
    margin-bottom: 0.5rem;
    color: hsl(var(--text-secondary));
}

/* Thank You Page */
.thank-you {
    margin-top: 80px;
    padding: 4rem 0;
    min-height: calc(100vh - 200px);
    text-align: center;
}

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

.thank-you-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    display: block;
}

.thank-you h1 {
    color: hsl(var(--primary-color));
    margin-bottom: 1.5rem;
}

/* Blog Article Pages */
.blog-article {
    margin-top: 80px;
    padding: 4rem 0;
}

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

.article-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    display: block;
}

.article-meta {
    color: hsl(var(--text-light));
    font-size: var(--font-size-sm);
    margin-bottom: 0;
}

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

.article-intro {
    font-size: var(--font-size-lg);
    font-weight: 500;
    color: hsl(var(--text-primary));
    margin-bottom: 2rem;
}

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

.article-content h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

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

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

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

.article-content strong {
    color: hsl(var(--text-primary));
}

.article-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid hsl(var(--border));
    text-align: center;
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: hsl(var(--surface));
    border-top: 1px solid hsl(var(--border));
    box-shadow: var(--shadow-lg);
    padding: 1.5rem;
    z-index: 1001;
    transform: translateY(0%);
    transition: transform var(--transition-normal);
    display: block;
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-consent.hidden {
    display: none;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
}

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

.cookie-buttons .btn {
    padding: 0.5rem 1rem;
    font-size: var(--font-size-sm);
}

@media (min-width: 768px) {
    .cookie-content {
        flex-direction: row;
        text-align: left;
    }
    
    .cookie-content p {
        flex: 1;
        margin: 0;
    }
    
    .cookie-buttons {
        flex-shrink: 0;
    }
}

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

.cookie-modal.show {
    display: flex;
}

.cookie-modal-content {
    background-color: hsl(var(--surface));
    border-radius: var(--radius-lg);
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
}

.cookie-modal h3 {
    margin-bottom: 1.5rem;
    text-align: center;
}

.cookie-category {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid hsl(var(--border));
}

.cookie-category:last-of-type {
    border-bottom: none;
}

.cookie-category label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.cookie-category input[type="checkbox"] {
    margin: 0;
}

.cookie-category p {
    font-size: var(--font-size-sm);
    color: hsl(var(--text-light));
    margin: 0;
}

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

/* Responsive Design */
@media (max-width: 767px) {
    .hero-title {
        font-size: var(--font-size-3xl);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-lg);
    }
    
    .section-title {
        font-size: var(--font-size-2xl);
    }
    
    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-buttons .btn {
        width: 100%;
    }
    
    .social-icons {
        justify-content: center;
    }
}

/* Loading and Animation States */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.slide-up {
    transform: translateY(20px);
    opacity: 0;
    animation: slideUp 0.5s ease-out forwards;
}

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

/* Focus States for Accessibility */
button:focus,
input:focus,
a:focus {
    outline: 2px solid hsl(var(--primary-color));
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .cookie-consent,
    .cookie-modal {
        display: none;
    }
    
    .hero {
        margin-top: 0;
    }
    
    .legal-page,
    .blog-article {
        margin-top: 0;
    }
}
