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

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #ffffff;
}

/* CSS Custom Properties */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --background: #ffffff;
    --background-alt: #f9fafb;
    --border: #e5e7eb;
    --border-light: #f3f4f6;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --max-width: 1200px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

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

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

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

@media (min-width: 768px) {
    h1 { font-size: 3.5rem; }
    h2 { font-size: 2.5rem; }
    h3 { font-size: 1.75rem; }
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

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

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Lists */
ul, ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.25rem;
    color: var(--text-secondary);
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.logo {
    width: 2rem;
    height: 2rem;
    color: var(--primary-color);
}

.nav-menu {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

@media (min-width: 768px) {
    .nav-menu {
        display: flex;
    }
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    color: var(--text-secondary);
    text-decoration: none;
}

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

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -0.25rem;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
}

.mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--text-primary);
}

@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }
}

.mobile-menu-toggle svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    font-size: 0.875rem;
    line-height: 1;
}

.btn svg {
    width: 1rem;
    height: 1rem;
}

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

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

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

.btn-secondary:hover {
    background: var(--text-primary);
    color: white;
    text-decoration: none;
}

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

.btn-outline:hover {
    background: var(--background-alt);
    text-decoration: none;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
}

/* Sections */
.section {
    padding: 4rem 0;
}

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

/* Hero Section */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    overflow: hidden;
}

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

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

.hero .container {
    position: relative;
    z-index: 2;
}

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

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.1;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4rem;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.5;
}

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

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.page-header-content h1 {
    color: white;
    margin-bottom: 1rem;
}

.page-header-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

.page-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem;
    color: rgba(255, 255, 255, 0.9);
}

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

.section-header h2 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

.section-icon {
    width: 3rem;
    height: 3rem;
    color: var(--primary-color);
    margin: 0 auto 1rem;
}

/* Cards */
.card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.card-icon {
    width: 3rem;
    height: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

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

.card p {
    color: var(--text-secondary);
}

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

.about-grid {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

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

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

.about-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Services Section */
.services-grid {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

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

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

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

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 3rem;
    height: 3rem;
    color: var(--primary-color);
    margin: 0 auto 1rem;
}

/* Testimonials */
.testimonials {
    background: var(--background-alt);
}

.testimonials-grid {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

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

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

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.stars svg {
    width: 1rem;
    height: 1rem;
    color: var(--warning);
}

.testimonial-author {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.testimonial-author strong {
    color: var(--text-primary);
    display: block;
}

.testimonial-author span {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Newsletter */
.newsletter {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.newsletter-content {
    display: grid;
    gap: 2rem;
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .newsletter-content {
        grid-template-columns: 1fr 1fr;
        text-align: left;
    }
}

.newsletter-text h2 {
    color: white;
    margin-bottom: 1rem;
}

.newsletter-text p {
    color: rgba(255, 255, 255, 0.9);
}

.newsletter-icon {
    width: 3rem;
    height: 3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
}

.newsletter-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 768px) {
    .newsletter-form .form-group {
        flex-direction: row;
    }
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
}

.newsletter-form input:focus {
    outline: 2px solid var(--warning);
    outline-offset: 2px;
}

.form-note {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.5rem;
    margin-bottom: 0;
}

/* Contact Preview */
.contact-preview {
    background: var(--background-alt);
}

.contact-info {
    display: grid;
    gap: 2rem;
    margin: 3rem 0;
}

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

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    text-align: center;
}

@media (min-width: 768px) {
    .contact-item {
        flex-direction: column;
        align-items: center;
    }
}

.contact-icon {
    width: 2rem;
    height: 2rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.contact-item h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.contact-item p {
    margin: 0;
    color: var(--text-secondary);
}

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

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-row {
    display: grid;
    gap: 1rem;
}

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: normal;
    margin-bottom: 0;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    margin: 0;
    width: auto;
    flex-shrink: 0;
}

.checkmark {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid var(--border);
    border-radius: 0.25rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

/* Contact Page */
.contact-page {
    padding: 4rem 0;
}

.contact-grid {
    display: grid;
    gap: 4rem;
}

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

.contact-info-section h2 {
    margin-bottom: 1rem;
}

.contact-methods {
    margin: 2rem 0;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.method-icon {
    width: 2rem;
    height: 2rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.method-content h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.method-content p {
    margin-bottom: 0.25rem;
}

.method-content small {
    color: var(--text-light);
    font-size: 0.875rem;
}

.emergency-contact {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: var(--radius-lg);
    margin-top: 2rem;
}

.emergency-icon {
    width: 2rem;
    height: 2rem;
    color: var(--warning);
    flex-shrink: 0;
}

.emergency-contact h4 {
    color: #92400e;
    margin-bottom: 0.5rem;
}

.emergency-contact p {
    color: #92400e;
    margin-bottom: 0.5rem;
}

.emergency-contact strong {
    color: #78350f;
}

/* Map Section */
.map-section {
    background: var(--background-alt);
}

.map-container {
    margin-top: 2rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-placeholder {
    background: white;
    padding: 4rem 2rem;
    text-align: center;
}

.map-icon {
    width: 4rem;
    height: 4rem;
    color: var(--primary-color);
    margin: 0 auto 1rem;
}

.map-placeholder h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.map-placeholder p {
    margin-bottom: 1rem;
}

.map-buttons {
    margin-top: 2rem;
}

/* Blog */
.blog-section {
    padding: 4rem 0;
}

.blog-grid {
    display: grid;
    gap: 2rem;
}

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

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

.blog-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.blog-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.blog-image svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-content {
    padding: 2rem;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.blog-date {
    color: var(--text-light);
}

.blog-category {
    color: var(--primary-color);
    font-weight: 500;
}

.blog-content h2 {
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-content h2 a {
    color: var(--text-primary);
    text-decoration: none;
}

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

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    margin-top: 1rem;
}

.read-more:hover {
    color: var(--primary-dark);
}

.read-more svg {
    width: 1rem;
    height: 1rem;
}

/* Article Pages */
.article-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 4rem 0;
}

.article-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.875rem;
}

.article-breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.article-breadcrumb a:hover {
    color: white;
}

.article-breadcrumb span {
    color: rgba(255, 255, 255, 0.6);
}

.article-breadcrumb svg {
    width: 1rem;
    height: 1rem;
    color: rgba(255, 255, 255, 0.6);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.article-header h1 {
    color: white;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.article-lead {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.article-image {
    margin-top: 2rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.article-image svg {
    width: 100%;
    height: auto;
    display: block;
}

/* Article Content */
.article-content {
    padding: 4rem 0;
}

.article-content .container {
    display: grid;
    gap: 4rem;
}

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

.article-body {
    max-width: none;
}

.article-body h2 {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border);
}

.article-body h2 svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--primary-color);
}

.article-body h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.article-intro {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 2rem;
    background: var(--background-alt);
    border-radius: var(--radius-lg);
    margin-bottom: 3rem;
}

.intro-icon {
    width: 2rem;
    height: 2rem;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.article-highlight {
    display: flex;
    gap: 1rem;
    padding: 2rem;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-lg);
    margin: 2rem 0;
}

.article-highlight svg {
    width: 2rem;
    height: 2rem;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.article-highlight h3 {
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
    margin-top: 0;
}

.article-tips {
    display: flex;
    gap: 1rem;
    padding: 2rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--radius-lg);
    margin: 2rem 0;
}

.article-tips svg {
    width: 2rem;
    height: 2rem;
    color: var(--secondary-color);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.article-tips h3 {
    color: #166534;
    margin-bottom: 0.75rem;
    margin-top: 0;
}

.article-quote {
    margin: 3rem 0;
    padding: 2rem;
    background: #fafaf9;
    border-left: 4px solid var(--primary-color);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.article-quote svg {
    width: 2rem;
    height: 2rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.article-quote blockquote {
    font-size: 1.125rem;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.article-quote cite {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-style: normal;
    font-weight: 500;
}

/* Sidebar */
.article-sidebar {
    background: var(--background-alt);
    padding: 2rem;
    border-radius: var(--radius-lg);
    height: fit-content;
    position: sticky;
    top: 6rem;
}

.sidebar-section {
    margin-bottom: 3rem;
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.sidebar-section h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.article-facts {
    list-style: none;
    padding: 0;
}

.article-facts li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    margin-bottom: 0;
}

.article-facts li:last-child {
    border-bottom: none;
}

.article-facts svg {
    width: 1rem;
    height: 1rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.related-articles {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-article {
    display: block;
    padding: 1rem;
    background: white;
    border-radius: var(--radius);
    text-decoration: none;
    transition: var(--transition);
}

.related-article:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
    text-decoration: none;
}

.related-article h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.related-article p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
}

.contact-card {
    padding: 1.5rem;
    background: white;
    border-radius: var(--radius-lg);
    text-align: center;
}

.contact-card p {
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

/* Specialized Article Layouts */
.tips-overview {
    margin: 3rem 0;
}

.tips-grid {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

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

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

.tip-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--background-alt);
    border-radius: var(--radius);
    font-size: 0.875rem;
}

.tip-number {
    width: 2rem;
    height: 2rem;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.tip-section {
    margin: 4rem 0;
}

.tip-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.tip-number-large {
    width: 3rem;
    height: 3rem;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* Financing-specific styles */
.financing-breakdown,
.budget-breakdown {
    margin: 2rem 0;
}

.breakdown-grid {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

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

.breakdown-item {
    text-align: center;
    padding: 2rem;
    background: var(--background-alt);
    border-radius: var(--radius-lg);
}

.breakdown-percentage {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.breakdown-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.breakdown-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.interest-comparison,
.loan-terms {
    margin: 2rem 0;
}

.comparison-table {
    display: grid;
    gap: 0.5rem;
    margin-top: 1rem;
    background: var(--background-alt);
    padding: 1rem;
    border-radius: var(--radius-lg);
}

.comparison-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 1rem;
    padding: 0.75rem;
    background: white;
    border-radius: var(--radius);
}

.comparison-row.header {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.comparison-row.highlight {
    background: #eff6ff;
    border: 2px solid var(--primary-color);
}

.terms-comparison {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

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

.term-option {
    position: relative;
    padding: 2rem;
    background: white;
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
}

.term-option.recommended {
    border-color: var(--primary-color);
}

.term-duration {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.term-payment {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.term-total,
.term-interest {
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.term-badge {
    position: absolute;
    top: -0.5rem;
    right: 1rem;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Location-specific styles */
.vienna-districts,
.graz-analysis,
.salzburg-analysis {
    margin: 3rem 0;
}

.district-analysis {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.district-card {
    padding: 2rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    position: relative;
}

.district-card.premium {
    border: 2px solid #f59e0b;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.district-card.recommended {
    border: 2px solid var(--primary-color);
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

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

.price-tag {
    background: var(--text-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.recommendation-badge {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.district-rating {
    margin: 1rem 0;
}

.rating-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.rating-stars {
    color: var(--warning);
}

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

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

.thank-you-icon {
    margin: 0 auto 2rem;
    width: 6rem;
    height: 6rem;
}

.thank-you-message {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.next-steps {
    margin: 4rem 0;
}

.steps-grid {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

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

.step-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    text-align: left;
}

.step-number {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.step-content p {
    color: var(--text-secondary);
    margin: 0;
}

.contact-info-box {
    background: var(--background-alt);
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin: 3rem 0;
}

.contact-info-box h3 {
    margin-bottom: 1rem;
    text-align: center;
}

.contact-details {
    display: grid;
    gap: 1rem;
}

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

.related-content {
    background: var(--background-alt);
}

.content-grid {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

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

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

.content-icon {
    width: 3rem;
    height: 3rem;
    color: var(--primary-color);
    margin: 0 auto 1rem;
}

.content-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    margin-top: 1rem;
}

/* Legal Pages */
.legal-content {
    padding: 4rem 0;
}

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

.legal-intro {
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--background-alt);
    border-radius: var(--radius-lg);
}

.legal-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.legal-section:last-child {
    border-bottom: none;
}

.legal-section h2 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.legal-section h3 {
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.contact-box {
    background: var(--background-alt);
    padding: 1.5rem;
    border-radius: var(--radius);
    margin: 1rem 0;
    border-left: 4px solid var(--primary-color);
}

.rights-grid {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

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

.right-item {
    padding: 1.5rem;
    background: var(--background-alt);
    border-radius: var(--radius);
}

.right-item h4 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.pricing-table {
    margin: 1rem 0;
}

.pricing-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.pricing-row:last-child {
    border-bottom: none;
}

.service {
    font-weight: 500;
}

.rate {
    color: var(--primary-color);
    font-weight: 600;
}

.legal-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border);
    background: var(--background-alt);
    padding: 2rem;
    border-radius: var(--radius-lg);
}

/* Cookie Management */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
    padding: 1.5rem;
    z-index: 9999;
    transform: translateY(100%);
    transition: var(--transition);
}

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

.cookie-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-icon {
    width: 2rem;
    height: 2rem;
    color: var(--warning);
    flex-shrink: 0;
}

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

.cookie-text h3 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.article-body svg{
    max-width: 200px;
}

.cookie-text p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

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

.cookie-management {
    background: var(--background-alt);
    padding: 2rem 0;
}

.cookie-control-panel {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.cookie-categories {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.cookie-category {
    padding: 2rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

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

.category-header h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
}

.category-header svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--primary-color);
}

.required-badge {
    background: var(--error);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.optional-badge {
    background: var(--text-light);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.cookie-details {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.cookie-details h4 {
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.cookie-info-box {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: var(--radius);
    margin: 1rem 0;
}

.cookie-info-box svg {
    width: 2rem;
    height: 2rem;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.third-party-services {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.service-item {
    padding: 1.5rem;
    background: var(--background-alt);
    border-radius: var(--radius);
}

.service-item h4 {
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.service-item p {
    margin-bottom: 0.5rem;
}

.cookie-options {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

.option-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--background-alt);
    border-radius: var(--radius);
}

.option-item svg {
    width: 2rem;
    height: 2rem;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.option-item h4 {
    margin-bottom: 0.5rem;
}

.browser-links {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

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

.browser-item {
    padding: 1rem;
    background: var(--background-alt);
    border-radius: var(--radius);
}

.browser-item h4 {
    margin-bottom: 0.5rem;
}

.impact-warning {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: var(--radius);
    margin: 2rem 0;
}

.impact-warning svg {
    width: 2rem;
    height: 2rem;
    color: var(--warning);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.impact-warning h3 {
    color: #92400e;
    margin-bottom: 0.5rem;
    margin-top: 0;
}

.impact-warning p {
    color: #92400e;
    margin: 0;
}

.functionality-impact {
    margin-top: 2rem;
}

.functionality-impact h3 {
    margin-bottom: 1rem;
}

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

.footer-content {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

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

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.footer-logo {
    width: 2rem;
    height: 2rem;
    color: var(--primary-color);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

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

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

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: white;
    text-decoration: underline;
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    text-decoration: none;
}

.social-links svg {
    width: 1.25rem;
    height: 1.25rem;
}

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

/* Responsive Design */
@media (max-width: 767px) {
    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: var(--shadow-lg);
        padding: 1rem;
        gap: 0;
    }
    
    .nav-menu.active .nav-link {
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border);
    }
    
    .nav-menu.active .nav-link:last-child {
        border-bottom: none;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        justify-content: center;
        width: 100%;
    }
    
    .article-content .container {
        grid-template-columns: 1fr;
    }
    
    .comparison-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        text-align: center;
    }
    
    .comparison-row > div {
        padding: 0.25rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .cookie-banner,
    .footer {
        display: none;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .article-content {
        padding: 1rem 0;
    }
    
    * {
        box-shadow: none !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --border: #000000;
        --text-secondary: #000000;
    }
    
    .btn-outline {
        border-color: #000000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Styles for Accessibility */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10000;
}

.skip-link:focus {
    top: 6px;
}
