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

body {
    font-family: 'Georgia', serif;
    line-height: 1.6;
    color: #2c1810;
    background-color: #fdf9f3;
    overflow-x: hidden;
}

/* Hand-drawn color palette */
:root {
    --burgundy: #722f37;
    --gold: #d4af37;
    --cream: #fdf9f3;
    --dark-burgundy: #5a252a;
    --light-gold: #f4e4a6;
    --sketch-brown: #8b4513;
    --shadow-color: rgba(114, 47, 55, 0.1);
}

/* Hand-drawn styling effects */
.hand-drawn {
    position: relative;
    filter: drop-shadow(2px 2px 0px var(--sketch-brown));
}

.hand-drawn::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid var(--sketch-brown);
    border-radius: 5px;
    transform: rotate(-0.5deg);
    z-index: -1;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Georgia', serif;
    font-weight: bold;
    color: var(--burgundy);
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    text-align: center;
    position: relative;
    margin-bottom: 2rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
}

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

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--burgundy);
    color: white;
    padding: 1rem;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-consent.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-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Header */
.header {
    background: var(--cream);
    box-shadow: 0 2px 10px var(--shadow-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    border-bottom: 3px solid var(--gold);
}

.navbar {
    padding: 1rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--burgundy);
}

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

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

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

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}

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

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

/* Hamburger menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--burgundy);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    margin-top: 80px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--cream) 0%, var(--light-gold) 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" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23722f37" opacity="0.05"/><circle cx="75" cy="75" r="1" fill="%23722f37" opacity="0.05"/><circle cx="50" cy="10" r="1" fill="%23722f37" opacity="0.05"/><circle cx="10" cy="90" r="1" fill="%23722f37" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    z-index: 1;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-size: 3rem;
    color: var(--burgundy);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--dark-burgundy);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    filter: drop-shadow(3px 3px 6px var(--shadow-color));
}

/* Buttons */
.btn, .cta-button, .submit-btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--burgundy);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid var(--burgundy);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before, .cta-button::before, .submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before, .cta-button:hover::before, .submit-btn:hover::before {
    left: 100%;
}

.btn:hover, .cta-button:hover, .submit-btn:hover {
    background: var(--gold);
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-color);
}

.btn-secondary {
    background: transparent;
    color: var(--burgundy);
}

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

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

.about, .services, .testimonials, .blog, .subscription, .legal {
    position: relative;
}

.about {
    background: white;
}

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

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat img {
    width: 30px;
    height: 30px;
}

.about-image img {
    width: 100%;
    max-width: 300px;
    height: auto;
}

/* Services */
.services {
    background: var(--light-gold);
}

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

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: transform 0.3s ease;
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gold);
    border-radius: 17px;
    z-index: -1;
    transform: rotate(1deg);
}

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

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

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

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

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

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow-color);
    position: relative;
    transform: rotate(-0.5deg);
}

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

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--gold);
    line-height: 1;
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 1.5rem;
    padding-top: 1rem;
}

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

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

/* Blog */
.blog {
    background: white;
}

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

.blog-card {
    background: var(--cream);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: transform 0.3s ease;
}

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

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

.blog-card h3 a:hover {
    color: var(--gold);
}

.blog-meta {
    display: flex;
    gap: 1rem;
    color: var(--sketch-brown);
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* Blog Articles */
.blog-article {
    display: none;
    padding: 6rem 0 4rem;
    background: white;
}

.blog-article.active {
    display: block;
}

.back-link {
    color: var(--burgundy);
    text-decoration: none;
    margin-top: 2rem;
    display: inline-block;
}

.back-link:hover {
    color: var(--gold);
}

/* Subscription Form */
.subscription {
    background: var(--burgundy);
    color: white;
    text-align: center;
}

.subscription h2 {
    color: white;
}

.subscription-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    background: white;
    color: var(--burgundy);
}

.form-group input::placeholder {
    color: var(--sketch-brown);
}

.submit-btn {
    background: var(--gold);
    border: 2px solid var(--gold);
    color: var(--burgundy);
    font-weight: bold;
}

/* Legal */
.legal {
    background: var(--light-gold);
    text-align: center;
}

.legal-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.legal-link {
    color: var(--burgundy);
    text-decoration: none;
    padding: 10px 20px;
    border: 2px solid var(--burgundy);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.legal-link:hover {
    background: var(--burgundy);
    color: white;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow-y: auto;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px var(--shadow-color);
}

.modal-text {
    padding-top: 1rem;
    line-height: 1.6;
}

.modal-text h3 {
    color: var(--burgundy);
    font-size: 1.3rem;
    margin: 2rem 0 1rem 0;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 0.5rem;
}

.modal-text h4 {
    color: var(--dark-burgundy);
    font-size: 1.1rem;
    margin: 1.5rem 0 0.5rem 0;
}

.modal-text p {
    margin-bottom: 1rem;
    color: #333;
}

.modal-text ul {
    margin: 1rem 0 1.5rem 1.5rem;
    color: #444;
}

.modal-text li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.modal-text strong {
    color: var(--burgundy);
    font-weight: bold;
}

.close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--burgundy);
    z-index: 1001;
}

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

/* Modal responsive design */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 2% auto;
        padding: 1.5rem;
        max-height: 95vh;
    }
    
    .modal-text h3 {
        font-size: 1.2rem;
    }
    
    .modal-text h4 {
        font-size: 1rem;
    }
}

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

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

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

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

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

.footer-section a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--gold);
}

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

.social-links a {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--burgundy);
    color: var(--light-gold);
}

/* Thanks Page */
.thanks-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--cream) 0%, var(--light-gold) 100%);
}

.thanks-content {
    text-align: center;
    max-width: 600px;
    padding: 3rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--shadow-color);
}

.thanks-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 2rem;
}

.thanks-content h1 {
    color: var(--burgundy);
    margin-bottom: 1.5rem;
}

.thanks-content p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.back-home {
    display: inline-block;
    padding: 12px 30px;
    background: var(--burgundy);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.back-home:hover {
    background: var(--gold);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: var(--cream);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px var(--shadow-color);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about-stats {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .legal-links {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.8rem;
    }
    
    .hero-text p {
        font-size: 1rem;
    }
    
    .service-card,
    .testimonial-card,
    .blog-card {
        padding: 1.5rem;
    }
    
    .subscription-form {
        padding: 0 1rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--cream);
}

::-webkit-scrollbar-thumb {
    background: var(--burgundy);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}
