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

:root {
    /* Hand-drawn color palette */
    --primary-color: #2E8B57;
    --primary-dark: #1F5F3F;
    --primary-light: #4FBC78;
    --secondary-color: #4A90E2;
    --accent-color: #F39C12;
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
    --text-white: #FFFFFF;
    --bg-white: #FFFFFF;
    --bg-light: #F8F9FA;
    --bg-gray: #ECF0F1;
    --border-color: #BDC3C7;
    --shadow-light: rgba(0, 0, 0, 0.05);
    --shadow-medium: rgba(0, 0, 0, 0.1);
    --shadow-dark: rgba(0, 0, 0, 0.2);
    
    /* Hand-drawn fonts */
    --font-primary: 'Comic Sans MS', 'Trebuchet MS', cursive;
    --font-secondary: 'Marker Felt', 'Comic Sans MS', cursive;
    --font-body: 'Trebuchet MS', 'Lucida Grande', sans-serif;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

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

/* Hand-drawn animations */
@keyframes hand-draw {
    0% {
        stroke-dasharray: 0, 1000;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        stroke-dasharray: 1000, 0;
        opacity: 1;
    }
}

@keyframes wobble {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-2deg); }
    75% { transform: rotate(2deg); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

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

p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
    transform: scale(1.05);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    background-color: var(--primary-color);
    color: var(--text-white);
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    transform: rotate(-1deg);
}

.btn:hover {
    transform: rotate(1deg) scale(1.05);
    box-shadow: 0 5px 15px var(--shadow-medium);
    animation: wobble 0.5s ease-in-out;
}

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

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

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

.btn-secondary:hover {
    background-color: #357ABD;
    border-color: #357ABD;
}

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

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

/* Header */
.header {
    background-color: var(--bg-white);
    box-shadow: 0 2px 10px var(--shadow-light);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-brand .logo {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.nav-brand .logo:hover {
    transform: scale(1.1) rotate(-2deg);
}

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

.nav-menu li a {
    font-family: var(--font-primary);
    font-weight: bold;
    color: var(--text-dark);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    background-color: var(--primary-color);
    color: var(--text-white);
    transform: rotate(-1deg);
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    margin: 3px 0;
    border-radius: 2px;
    transition: 0.3s;
}

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

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    animation: float 20s infinite linear;
}

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

.hero-text h1 {
    font-size: 3.5rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    transform: rotate(-1deg);
}

.hero-text p {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

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

.hero-image {
    text-align: center;
    animation: float 6s ease-in-out infinite;
}

.hero-banner {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 20px var(--shadow-light));
}

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

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 3rem;
    transform: rotate(0.5deg);
}

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

.services h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark);
    transform: rotate(-0.5deg);
}

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

.service-card {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 5px 20px var(--shadow-light);
    transition: all 0.3s ease;
    transform: rotate(-1deg);
    border: 3px solid transparent;
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    transform: rotate(1deg) translateY(-10px);
    box-shadow: 0 15px 30px var(--shadow-medium);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(-5deg);
    animation: wobble 0.5s ease-in-out;
}

.service-card h3 {
    font-family: var(--font-primary);
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* About Preview */
.about-preview {
    padding: 80px 0;
}

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

.about-text h2 {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    transform: rotate(-0.5deg);
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.about-img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    filter: drop-shadow(0 10px 20px var(--shadow-light));
    transform: rotate(1deg);
    transition: transform 0.3s ease;
}

.about-img:hover {
    transform: rotate(-1deg) scale(1.05);
}

/* Testimonials */
.testimonials {
    background-color: var(--bg-light);
    position: relative;
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
    transform: rotate(0.5deg);
}

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

.testimonial-card {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px var(--shadow-light);
    transition: all 0.3s ease;
    transform: rotate(-0.5deg);
    position: relative;
}

.testimonial-card:hover {
    transform: rotate(0.5deg) translateY(-5px);
    box-shadow: 0 15px 30px var(--shadow-medium);
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 3px solid var(--primary-color);
}

.testimonial-content p {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

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

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

/* Blog Preview */
.blog-preview {
    padding: 80px 0;
}

.blog-preview h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark);
    transform: rotate(-0.5deg);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.blog-card {
    background-color: var(--bg-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow-light);
    transition: all 0.3s ease;
    transform: rotate(-0.5deg);
}

.blog-card:hover {
    transform: rotate(0.5deg) translateY(-10px);
    box-shadow: 0 15px 30px var(--shadow-medium);
}

.blog-card.featured {
    grid-column: span 2;
    transform: rotate(0deg);
}

.blog-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.blog-content {
    padding: 2rem;
}

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

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

.blog-category {
    background-color: var(--primary-color);
    color: var(--text-white);
    padding: 0.2rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-family: var(--font-primary);
}

.blog-content h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-family: var(--font-primary);
}

.blog-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.read-more {
    color: var(--primary-color);
    font-weight: bold;
    font-family: var(--font-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: var(--primary-dark);
    transform: translateX(5px);
}

.blog-link {
    text-align: center;
    margin-top: 3rem;
}

/* Contact Section */
.contact {
    background-color: var(--bg-light);
    position: relative;
}

.contact h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
    transform: rotate(-0.5deg);
}

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

.contact-info {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px var(--shadow-light);
    transform: rotate(-1deg);
    height: fit-content;
}

.contact-info h3 {
    color: var(--text-dark);
    margin-bottom: 2rem;
    font-family: var(--font-primary);
}

.contact-item {
    margin-bottom: 1.5rem;
}

.contact-item strong {
    display: block;
    color: var(--text-dark);
    font-family: var(--font-primary);
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
}

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

.social-links a {
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: var(--text-white);
    border-radius: 20px;
    text-decoration: none;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    transform: rotate(-2deg);
}

.social-links a:hover {
    background-color: var(--primary-dark);
    transform: rotate(2deg) scale(1.05);
}

/* Contact Form */
.contact-form {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px var(--shadow-light);
    transform: rotate(1deg);
}

.contact-form h3 {
    color: var(--text-dark);
    margin-bottom: 2rem;
    font-family: var(--font-primary);
    text-align: center;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 3px solid var(--border-color);
    border-radius: 15px;
    font-family: var(--font-body);
    font-size: 1rem;
    background-color: var(--bg-white);
    transition: all 0.3s ease;
    transform: rotate(-0.5deg);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    transform: rotate(0deg);
    box-shadow: 0 0 10px var(--shadow-light);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--text-dark);
    color: var(--text-white);
    padding: 1rem;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 -5px 20px var(--shadow-dark);
}

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

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

.cookie-content p {
    margin: 0;
    flex: 1;
    min-width: 300px;
}

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

.cookie-buttons .btn {
    padding: 0.5rem 1rem;
    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.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cookie-modal.show {
    opacity: 1;
    visibility: visible;
}

.cookie-modal-content {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.cookie-modal.show .cookie-modal-content {
    transform: scale(1);
}

.cookie-modal-content h3 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    text-align: center;
}

.cookie-option {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-option label {
    cursor: pointer;
    font-family: var(--font-primary);
    color: var(--text-dark);
}

.cookie-option input[type="checkbox"] {
    transform: scale(1.2);
    accent-color: var(--primary-color);
}

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

/* Footer */
.footer {
    background-color: var(--text-dark);
    color: var(--text-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 h4 {
    color: var(--text-white);
    margin-bottom: 1rem;
    font-family: var(--font-primary);
}

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

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

.footer-section ul li a {
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-section ul li a:hover,
.footer-section ul li a.active {
    color: var(--primary-light);
    transform: translateX(5px);
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.footer-section p {
    color: var(--text-light);
    line-height: 1.6;
}

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

.footer-bottom p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.9rem;
}

/* Page-specific styles */
.page-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--text-white);
    text-align: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M20 20c0-5.5-4.5-10-10-10s-10 4.5-10 10 4.5 10 10 10 10-4.5 10-10zm10 0c0-5.5-4.5-10-10-10s-10 4.5-10 10 4.5 10 10 10 10-4.5 10-10z'/%3E%3C/g%3E%3C/svg%3E");
}

.page-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    transform: rotate(-1deg);
}

.page-hero p {
    font-size: 1.2rem;
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

/* Company Story */
.company-story {
    padding: 80px 0;
}

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

.story-text h2 {
    margin-bottom: 1.5rem;
    transform: rotate(-0.5deg);
}

.story-image {
    text-align: center;
}

.about-image {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    transform: rotate(1deg);
    filter: drop-shadow(0 10px 20px var(--shadow-light));
    transition: transform 0.3s ease;
}

.about-image:hover {
    transform: rotate(-1deg) scale(1.05);
}

/* Mission & Values */
.mission-values {
    background-color: var(--bg-light);
    padding: 80px 0;
}

.mission-values h2 {
    text-align: center;
    margin-bottom: 3rem;
    transform: rotate(0.5deg);
}

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

.value-card {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 5px 20px var(--shadow-light);
    transform: rotate(-1deg);
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: rotate(1deg) translateY(-5px);
    box-shadow: 0 15px 30px var(--shadow-medium);
}

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

/* Team Section */
.team-section {
    padding: 80px 0;
}

.team-section h2 {
    text-align: center;
    margin-bottom: 1rem;
    transform: rotate(-0.5deg);
}

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

.team-member {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 5px 20px var(--shadow-light);
    transform: rotate(-1deg);
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: rotate(1deg) translateY(-5px);
    box-shadow: 0 15px 30px var(--shadow-medium);
}

.team-member h3 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.team-member h4 {
    color: var(--primary-color);
    font-size: 1rem;
    margin-bottom: 1rem;
}

/* Company Info */
.company-info {
    background-color: var(--bg-light);
    padding: 80px 0;
}

.company-info h2 {
    text-align: center;
    margin-bottom: 3rem;
    transform: rotate(0.5deg);
}

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

.info-card {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px var(--shadow-light);
    transform: rotate(-0.5deg);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: rotate(0.5deg) translateY(-5px);
    box-shadow: 0 15px 30px var(--shadow-medium);
}

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

.info-card ul {
    padding-left: 1rem;
}

.info-card ul li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--text-white);
    text-align: center;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M30 30c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-section h2 {
    color: var(--text-white);
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    transform: rotate(-1deg);
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.cta-buttons .btn-outline {
    border-color: var(--text-white);
    color: var(--text-white);
}

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

/* Blog Posts */
.blog-posts {
    padding: 80px 0;
}

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

.blog-posts .blog-card.featured {
    grid-column: span 2;
}

/* Newsletter Signup */
.newsletter-signup {
    background-color: var(--bg-light);
    padding: 60px 0;
}

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

.newsletter-content h2 {
    margin-bottom: 1rem;
    transform: rotate(-0.5deg);
}

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

.newsletter-form input {
    flex: 1;
    min-width: 250px;
    padding: 1rem;
    border: 3px solid var(--border-color);
    border-radius: 25px;
    font-size: 1rem;
    font-family: var(--font-body);
    transform: rotate(-1deg);
}

.newsletter-form input:focus {
    border-color: var(--primary-color);
    outline: none;
    transform: rotate(0deg);
}

.newsletter-form button {
    transform: rotate(1deg);
}

/* Article Page */
.article-page {
    padding: 120px 0 80px;
    max-width: 800px;
    margin: 0 auto;
}

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

.breadcrumb {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

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

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

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

.article-category {
    background-color: var(--primary-color);
    color: var(--text-white);
    padding: 0.2rem 0.8rem;
    border-radius: 15px;
    font-family: var(--font-primary);
}

.article-page h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    transform: rotate(-0.5deg);
}

.article-intro {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.6;
    font-style: italic;
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: 15px;
    border-left: 5px solid var(--primary-color);
}

.article-image {
    margin: 2rem 0;
    text-align: center;
}

.featured-image {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    filter: drop-shadow(0 10px 20px var(--shadow-light));
    transform: rotate(-0.5deg);
}

.article-content {
    line-height: 1.8;
}

.article-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 0.5rem;
    transform: rotate(-0.3deg);
}

.article-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.article-content h4 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

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

.article-content li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
    line-height: 1.6;
}

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

.article-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--bg-gray);
    gap: 1rem;
    flex-wrap: wrap;
}

.related-articles {
    background-color: var(--bg-light);
    padding: 60px 0;
}

.related-articles h2 {
    text-align: center;
    margin-bottom: 2rem;
    transform: rotate(-0.5deg);
}

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

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

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

.legal-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    transform: rotate(-0.5deg);
}

.last-updated {
    color: var(--text-light);
    font-style: italic;
}

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

.legal-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 0.5rem;
    transform: rotate(-0.3deg);
}

.legal-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

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

.legal-content li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
    line-height: 1.6;
}

.legal-navigation {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--bg-gray);
}

.legal-navigation .btn {
    margin: 0.5rem;
}

/* Cookie Table */
.cookie-table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
    background-color: var(--bg-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-light);
}

.cookie-table th,
.cookie-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--bg-gray);
}

.cookie-table th {
    background-color: var(--primary-color);
    color: var(--text-white);
    font-family: var(--font-primary);
    font-weight: bold;
}

.cookie-table tr:hover {
    background-color: var(--bg-light);
}

.cookie-settings-section {
    text-align: center;
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
}

/* Thank You Page */
.thank-you-page {
    padding: 120px 0 80px;
    text-align: center;
}

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

.thank-you-icon {
    margin-bottom: 2rem;
    animation: float 3s ease-in-out infinite;
}

.thank-you-page h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    transform: rotate(-0.5deg);
}

.thank-you-message {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.thank-you-details {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 20px;
    margin: 3rem 0;
    transform: rotate(-0.5deg);
}

.thank-you-details h2 {
    margin-bottom: 2rem;
    color: var(--text-dark);
}

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

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

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

.step-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.step-content p {
    color: var(--text-light);
    line-height: 1.6;
}

.contact-reminder {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 20px;
    margin: 3rem 0;
    box-shadow: 0 5px 15px var(--shadow-light);
    transform: rotate(0.5deg);
}

.contact-reminder h2 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.contact-reminder .contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
    text-align: left;
}

.contact-reminder .contact-item {
    color: var(--text-light);
    line-height: 1.6;
}

.contact-reminder .contact-item strong {
    color: var(--text-dark);
    display: block;
    margin-bottom: 0.2rem;
}

.thank-you-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.social-share {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 20px;
    margin: 3rem 0;
    transform: rotate(-0.3deg);
}

.social-share h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--text-white);
    border-radius: 25px;
    text-decoration: none;
    font-family: var(--font-primary);
    margin: 0.5rem;
    transition: all 0.3s ease;
    transform: rotate(-1deg);
}

.social-link:hover {
    background-color: var(--primary-dark);
    transform: rotate(1deg) scale(1.05);
    color: var(--text-white);
}

.newsletter-section {
    background-color: var(--bg-light);
    padding: 60px 0;
}

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

.newsletter-section h2 {
    margin-bottom: 1rem;
    transform: rotate(-0.5deg);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--bg-white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
        box-shadow: 0 5px 20px var(--shadow-medium);
    }
    
    .nav-menu.show {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-card.featured {
        grid-column: span 1;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        justify-content: center;
    }
    
    .story-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .newsletter-form {
        flex-direction: column;
        align-items: center;
    }
    
    .newsletter-form input {
        min-width: 100%;
    }
    
    .article-navigation {
        flex-direction: column;
        text-align: center;
    }
    
    .next-steps {
        grid-template-columns: 1fr;
    }
    
    .thank-you-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-reminder .contact-info {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    
    .page-hero h1 {
        font-size: 2.5rem;
    }
    
    .article-page h1 {
        font-size: 2rem;
    }
    
    .legal-header h1 {
        font-size: 2rem;
    }
    
    .thank-you-page h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-text p {
        font-size: 1.1rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .service-card,
    .testimonial-card,
    .blog-card {
        padding: 1.5rem;
    }
    
    .cookie-modal-content {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .cookie-buttons .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.3rem; }
    
    .page-hero h1,
    .article-page h1,
    .legal-header h1,
    .thank-you-page h1 {
        font-size: 1.8rem;
    }
}

/* Print styles */
@media print {
    .header,
    .footer,
    .cookie-banner,
    .cookie-modal,
    .hamburger,
    .btn,
    .social-links,
    .newsletter-form {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
        background: white;
    }
    
    .container {
        max-width: 100%;
        margin: 0;
        padding: 0;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: black;
        transform: none;
    }
    
    .service-card,
    .testimonial-card,
    .blog-card,
    .value-card,
    .team-member,
    .info-card {
        transform: none;
        box-shadow: none;
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }
    
    img {
        max-width: 100%;
        height: auto;
        transform: none;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero::before,
    .page-hero::before,
    .cta-section::before {
        animation: none;
    }
    
    .service-card,
    .testimonial-card,
    .blog-card,
    .btn,
    .hero-image {
        animation: none;
        transform: none;
    }
    
    .service-card:hover,
    .testimonial-card:hover,
    .blog-card:hover,
    .btn:hover {
        transform: none;
    }
}

/* Focus styles for accessibility */
*:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

.btn:focus,
input:focus,
textarea:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

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

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