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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Comic Sans MS', 'Marker Felt', cursive, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fefefe;
    overflow-x: hidden;
}

/* Hand-drawn style variables */
:root {
    --primary-color: #2d5aa0;
    --secondary-color: #4CAF50;
    --accent-color: #FF6B35;
    --text-color: #333;
    --bg-color: #fefefe;
    --light-gray: #f8f9fa;
    --border-color: #ddd;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --hand-drawn-shadow: 2px 2px 0 rgba(0,0,0,0.1);
}

/* Hand-drawn elements */
.hand-drawn {
    position: relative;
    border: 2px solid var(--primary-color);
    border-radius: 15px 25px 20px 30px / 25px 15px 30px 20px;
    transform: rotate(-0.5deg);
}

.hand-drawn::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 1px solid var(--primary-color);
    border-radius: 20px 30px 25px 35px / 30px 20px 35px 25px;
    transform: rotate(0.8deg);
    opacity: 0.5;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: bold;
    line-height: 1.2;
    text-transform: none;
    position: relative;
}

h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.25rem;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
    transform: rotate(-1deg);
}

h3 {
    font-size: 1.5rem;
    color: var(--text-color);
}

p {
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: #555;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    border: 2px solid;
    border-radius: 25px 15px 20px 30px / 15px 25px 30px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background: none;
    font-family: inherit;
    transform: rotate(-0.3deg);
}

.btn:hover {
    transform: rotate(0.5deg) translateY(-2px);
    box-shadow: var(--hand-drawn-shadow);
}

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

.btn-primary:hover {
    background-color: #1e3f6f;
    border-color: #1e3f6f;
}

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

.btn-secondary:hover {
    background-color: #45a049;
    border-color: #45a049;
}

.btn-outline {
    background-color: transparent;
    color:#4caf50;
    border-color: #4caf50;
}

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

/* Header */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--border-color);
    transform: rotate(-0.1deg);
}

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

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

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

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
    border-radius: 1px;
    transform: rotate(-1deg);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform: rotate(-1deg);
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" patternUnits="userSpaceOnUse" width="100" height="100"><circle cx="25" cy="25" r="1" fill="%23000" opacity="0.02"/><circle cx="75" cy="75" r="1" fill="%23000" opacity="0.02"/><circle cx="50" cy="10" r="1" fill="%23000" opacity="0.02"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

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

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    transform: rotate(-0.5deg);
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #555;
}

.hero-image img {
    width: 100%;
    height: auto;
    transform: rotate(1deg);
    filter: drop-shadow(3px 3px 6px rgba(0,0,0,0.1));
}

/* Services Section */
.services {
    padding: 80px 0;
    background: var(--bg-color);
}

.services h2 {
    text-align: center;
    margin-bottom: 3rem;
    transform: rotate(-0.3deg);
}

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

.service-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 20px 15px 25px 18px / 15px 25px 18px 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    transform: rotate(-0.5deg);
}

.service-card:nth-child(even) {
    transform: rotate(0.5deg);
}

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

.service-card img {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
}

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

.service-card ul {
    text-align: left;
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.service-card li {
    margin-bottom: 0.5rem;
    position: relative;
}

.service-card li::before {
    content: '✓';
    position: absolute;
    left: -1.2rem;
    color: var(--secondary-color);
    font-weight: bold;
}

/* About Preview Section */
.about-preview {
    padding: 80px 0;
    background: var(--light-gray);
}

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

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 15px 25px 20px 30px / 25px 15px 30px 20px;
    transform: rotate(-1deg);
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.1));
}

/* Testimonials Section */
.testimonials {
    padding: 80px 0;
    background: white;
}

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

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

.testimonial-card {
    background: var(--light-gray);
    border: 2px solid var(--border-color);
    border-radius: 25px 20px 30px 15px / 20px 30px 15px 25px;
    padding: 2rem;
    text-align: center;
    transform: rotate(0.5deg);
}

.testimonial-card:nth-child(even) {
    transform: rotate(-0.5deg);
}

.testimonial-card img {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.testimonial-card h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.testimonial-card span {
    color: #777;
    font-size: 0.9rem;
}

/* Blog Section */
.blog-preview {
    padding: 80px 0;
    background: var(--light-gray);
}

.blog-preview h2 {
    text-align: center;
    margin-bottom: 3rem;
}

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

.blog-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 20px 25px 15px 30px / 25px 15px 30px 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    transform: rotate(-0.3deg);
}

.blog-card:nth-child(even) {
    transform: rotate(0.3deg);
}

.blog-card:hover {
    transform: rotate(0deg) translateY(-3px);
}

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

.blog-content {
    padding: 1.5rem;
}

.blog-content h3 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.blog-date {
    color: #777;
    font-size: 0.9rem;
}

.blog-cta {
    text-align: center;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: white;
}

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

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

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

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

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

.contact-form {
    background: var(--light-gray);
    padding: 2rem;
    border: 2px solid var(--border-color);
    border-radius: 20px 15px 25px 30px / 15px 25px 30px 20px;
    transform: rotate(-0.5deg);
}

.contact-form h3 {
    margin-bottom: 1.5rem;
    text-align: center;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 15px 10px 20px 8px / 10px 20px 8px 15px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: white;
}

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

/* Footer */
.footer {
    background: var(--text-color);
    color: white;
    padding: 3rem 0 1rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-color);
    transform: rotate(-0.1deg);
}

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

.footer-section h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

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

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

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--accent-color);
}

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

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

.social-links a {
    display: inline-block;
    margin-right: 1rem;
    font-size: 1.5rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.2) rotate(5deg);
}

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

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(45, 90, 160, 0.95);
    color: white;
    padding: 1rem;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    border-top: 3px solid var(--accent-color);
    backdrop-filter: blur(10px);
}

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

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

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

.cookie-buttons .btn {
    font-size: 0.9rem;
    padding: 8px 16px;
}

/* Cookie Modal */
.cookie-modal {
    display: none;
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.cookie-modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border: 2px solid var(--border-color);
    border-radius: 20px 15px 25px 30px / 15px 25px 30px 20px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    transform: rotate(-0.3deg);
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--text-color);
}

.cookie-category {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--light-gray);
}

.cookie-category label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: bold;
}

.cookie-category span {
    font-weight: normal;
    color: #666;
    margin-top: 0.5rem;
    display: block;
}

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

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

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

.contact-box {
    background: var(--light-gray);
    padding: 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 15px 20px 10px 25px / 20px 10px 25px 15px;
    margin: 1.5rem 0;
    transform: rotate(-0.3deg);
}

.contact-info {
    background: var(--light-gray);
    padding: 2rem;
    border: 2px solid var(--primary-color);
    border-radius: 20px 15px 25px 30px / 15px 25px 30px 20px;
    margin: 2rem 0;
    transform: rotate(0.3deg);
}

/* About Page Specific */
.about-hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--light-gray) 0%, #e9ecef 100%);
}

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

.company-story {
    padding: 80px 0;
    background: white;
}

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

.values {
    padding: 80px 0;
    background: var(--light-gray);
}

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

.value-card {
    background: white;
    padding: 2rem;
    text-align: center;
    border: 2px solid var(--border-color);
    border-radius: 20px 15px 25px 30px / 15px 25px 30px 20px;
    transform: rotate(-0.5deg);
    transition: transform 0.3s ease;
}

.value-card:nth-child(even) {
    transform: rotate(0.5deg);
}

.value-card:hover {
    transform: rotate(0deg) translateY(-3px);
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.team {
    padding: 80px 0;
    background: white;
}

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

.team-member {
    text-align: center;
    background: var(--light-gray);
    padding: 2rem;
    border: 2px solid var(--border-color);
    border-radius: 25px 20px 30px 15px / 20px 30px 15px 25px;
    transform: rotate(0.3deg);
}

.team-member:nth-child(even) {
    transform: rotate(-0.3deg);
}

.member-image img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 1rem;
    object-fit: cover;
}

.member-title {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 1rem;
}

.stats {
    padding: 80px 0;
    background: var(--primary-color);
    color: white;
}

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

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

.stat-card {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px 15px 25px 30px / 15px 25px 30px 20px;
    transform: rotate(-0.5deg);
}

.stat-card:nth-child(even) {
    transform: rotate(0.5deg);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

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

.cta-section {
    padding: 80px 0;
    background: var(--light-gray);
    text-align: center;
}

/* Blog Pages */
.blog-header {
    padding: 120px 0 60px;
    background: var(--light-gray);
    text-align: center;
}

.blog-articles {
    padding: 60px 0;
    background: white;
}

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

.article-card {
    background: var(--light-gray);
    border: 2px solid var(--border-color);
    border-radius: 20px 25px 15px 30px / 25px 15px 30px 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transform: rotate(-0.3deg);
    transition: transform 0.3s ease;
}

.article-card:nth-child(even) {
    transform: rotate(0.3deg);
}

.article-card:hover {
    transform: rotate(0deg) translateY(-5px);
}

.article-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.article-content {
    padding: 2rem;
}

.article-meta {
    margin-bottom: 1rem;
}

.article-date,
.article-category,
.read-time {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.article-category {
    background: var(--secondary-color);
}

.read-time {
    background: var(--accent-color);
}

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

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

/* Article Pages */
.article-header {
    padding: 120px 0 60px;
    background: var(--light-gray);
}

.breadcrumb {
    margin-bottom: 2rem;
    color: #777;
}

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

.article-content {
    padding: 60px 0;
    background: white;
}

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

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

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

.article-text h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

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

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

.related-articles {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

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

.related-card {
    background: var(--light-gray);
    padding: 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 15px 20px 10px 25px / 20px 10px 25px 15px;
    transform: rotate(-0.3deg);
}

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

.related-card h4 a {
    color: var(--primary-color);
    text-decoration: none;
}

.article-cta {
    padding: 60px 0;
    background: var(--primary-color);
    color: white;
    text-align: center;
}

.article-cta h2 {
    color: white;
}

/* Newsletter */
.newsletter {
    padding: 60px 0;
    background: var(--primary-color);
    color: white;
    text-align: center;
}

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

.newsletter-form {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
    margin-top: 2rem;
}

.newsletter-form input {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
}

.newsletter-form button {
    white-space: nowrap;
}

/* Thank You Page */
.thank-you-section {
    padding: 120px 0 80px;
    background: var(--light-gray);
    text-align: center;
}

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

.thank-you-icon {
    margin-bottom: 2rem;
}

.response-info {
    background: white;
    padding: 2rem;
    border: 2px solid var(--border-color);
    border-radius: 20px 15px 25px 30px / 15px 25px 30px 20px;
    margin: 2rem 0;
    text-align: left;
    transform: rotate(-0.3deg);
}

.response-info ul {
    margin-top: 1rem;
    padding-left: 1.5rem;
}

.response-info li {
    margin-bottom: 0.5rem;
}

.contact-reminder {
    background: var(--primary-color);
    color: white;
    padding: 2rem;
    border-radius: 25px 20px 30px 15px / 20px 30px 15px 25px;
    margin: 2rem 0;
    transform: rotate(0.3deg);
}

.contact-reminder h3 {
    color: white;
    margin-bottom: 1rem;
}

.contact-details a {
    color: var(--accent-color);
    text-decoration: none;
}

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

.additional-info {
    padding: 60px 0;
    background: white;
}

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

.info-card {
    text-align: center;
    padding: 2rem;
    background: var(--light-gray);
    border: 2px solid var(--border-color);
    border-radius: 20px 15px 25px 30px / 15px 25px 30px 20px;
    transform: rotate(-0.5deg);
}

.info-card:nth-child(even) {
    transform: rotate(0.5deg);
}

.related-services {
    padding: 60px 0;
    background: var(--light-gray);
}

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

.service-preview-card {
    background: white;
    padding: 2rem;
    text-align: center;
    border: 2px solid var(--border-color);
    border-radius: 20px 15px 25px 30px / 15px 25px 30px 20px;
    transform: rotate(-0.3deg);
    transition: transform 0.3s ease;
}

.service-preview-card:nth-child(even) {
    transform: rotate(0.3deg);
}

.service-preview-card:hover {
    transform: rotate(0deg) translateY(-3px);
}

.service-preview-card img {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
}

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

.learn-more:hover {
    color: var(--accent-color);
}

/* Cookie Management on Cookie Page */
.cookie-category-info {
    background: var(--light-gray);
    padding: 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 15px 20px 10px 25px / 20px 10px 25px 15px;
    margin: 1rem 0;
    transform: rotate(-0.2deg);
}

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

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

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

.cookie-controls {
    background: var(--light-gray);
    padding: 2rem;
    border: 2px solid var(--primary-color);
    border-radius: 20px 15px 25px 30px / 15px 25px 30px 20px;
    text-align: center;
    margin: 2rem 0;
    transform: rotate(0.3deg);
}

.cookie-controls h3 {
    margin-bottom: 1rem;
}

.cookie-controls button {
    margin: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow);
        transform: translateY(-100%);
        transition: transform 0.3s ease;
        border-top: 2px solid var(--border-color);
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .hero-content,
    .about-content,
    .about-hero-content,
    .story-grid,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .services-grid,
    .testimonials-grid,
    .blog-grid,
    .values-grid,
    .team-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 15px;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons {
        justify-content: center;
    }

    .newsletter-form {
        flex-direction: column;
        max-width: 300px;
    }

    .newsletter-form input {
        margin-bottom: 1rem;
    }

    .action-buttons {
        flex-direction: column;
        align-items: center;
    }

    .action-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 0 60px;
    }

    .services,
    .about-preview,
    .testimonials,
    .blog-preview,
    .contact {
        padding: 60px 0;
    }

    .service-card,
    .testimonial-card,
    .blog-card {
        transform: rotate(0deg);
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .cookie-modal-content {
        margin: 2% auto;
        padding: 1.5rem;
        width: 95%;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .cookie-banner,
    .cookie-modal,
    .hamburger {
        display: none !important;
    }

    body {
        font-family: serif;
        color: black;
        background: white;
    }

    .hero,
    .services,
    .about-preview,
    .testimonials,
    .blog-preview,
    .contact {
        padding: 2rem 0;
    }

    .hand-drawn {
        border: 1px solid black;
        border-radius: 5px;
        transform: none;
    }

    .btn {
        border: 1px solid black;
        border-radius: 5px;
        transform: none;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
        transform: none !important;
    }

    .hand-drawn {
        transform: none;
    }

    .btn {
        transform: none;
    }

    .service-card,
    .testimonial-card,
    .blog-card,
    .value-card,
    .team-member,
    .stat-card,
    .article-card {
        transform: none;
    }
}

/* Focus styles for accessibility */
button:focus,
input:focus,
select:focus,
textarea:focus,
a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000080;
        --secondary-color: #008000;
        --accent-color: #FF4500;
        --text-color: #000;
        --bg-color: #fff;
        --border-color: #000;
    }

    .hand-drawn {
        border: 3px solid var(--primary-color);
    }
}
