/* Global Styles */
:root {
    --bg-color: #F4F1EA;
    /* Vintage Cream */
    --text-color: #1A1A1A;
    /* Ink Black */
    --primary-color: #FF4D4D;
    /* Vibrant Red */
    --secondary-color: #FFD93D;
    /* Mustard Yellow */
    --accent-color: #00C9A7;
    /* Teal */
    --border-width: 3px;
    --border-radius: 12px;
    --shadow: 6px 6px 0px #1A1A1A;
    --transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
    overflow-x: hidden;
}

/* Grain Overlay */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
    border: var(--border-width) solid var(--text-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    filter: sepia(0.2) contrast(1.1);
    /* Vintage photo look */
}

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

/* Typography */
h1,
h2,
h3 {
    font-family: 'Abril Fatface', cursive;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--text-color);
}

h1 {
    font-size: 4.5rem;
    letter-spacing: 1px;
    text-shadow: 3px 3px 0px rgba(0, 0, 0, 0.1);
}

h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--primary-color);
    transform: skewX(-15deg);
}

h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

p {
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--bg-color);
    padding: 15px 35px;
    border-radius: 50px;
    /* Pill shape */
    font-weight: 700;
    font-size: 1.1rem;
    border: var(--border-width) solid var(--text-color);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0px var(--text-color);
    background-color: #ff6b6b;
}

.btn-primary:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px var(--text-color);
}

.btn-nav {
    background-color: var(--text-color);
    color: var(--bg-color);
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    border: 2px solid var(--text-color);
}

.btn-nav:hover {
    background-color: transparent;
    color: var(--text-color);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(244, 241, 234, 0.95);
    border-bottom: var(--border-width) solid var(--text-color);
    z-index: 1000;
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Abril Fatface', cursive;
    font-size: 1.5rem;
    color: var(--text-color);
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links li a {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-links li a:hover {
    color: var(--primary-color);
    text-decoration: underline;
    text-decoration-thickness: 3px;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 30px;
    height: 4px;
    background-color: var(--text-color);
    margin: 5px;
    border-radius: 2px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

/* Abstract shapes for hero background */
.hero::before {
    content: '';
    position: absolute;
    top: 10%;
    left: -5%;
    width: 300px;
    height: 300px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    border: var(--border-width) solid var(--text-color);
    z-index: -1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 10%;
    right: -5%;
    width: 250px;
    height: 250px;
    background-color: var(--accent-color);
    transform: rotate(45deg);
    border: var(--border-width) solid var(--text-color);
    z-index: -1;
}

.hero-content {
    max-width: 900px;
    background-color: var(--bg-color);
    padding: 40px;
    border: var(--border-width) solid var(--text-color);
    border-radius: 20px;
    box-shadow: 10px 10px 0px var(--text-color);
    position: relative;
    z-index: 1;
}

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

.bg-light {
    background-color: #EAE7DE;
    /* Slightly darker cream */
    border-top: var(--border-width) solid var(--text-color);
    border-bottom: var(--border-width) solid var(--text-color);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text {
    background: var(--white);
    padding: 30px;
    border: var(--border-width) solid var(--text-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    background-color: #fff;
}

.about-image img {
    transform: rotate(2deg);
    transition: var(--transition);
}

.about-image img:hover {
    transform: rotate(0deg) scale(1.02);
}

/* Benefits Section */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.benefit-card {
    background: var(--bg-color);
    padding: 40px;
    border: var(--border-width) solid var(--text-color);
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.benefit-card:nth-child(1) {
    transform: rotate(-1deg);
}

.benefit-card:nth-child(2) {
    transform: rotate(1deg);
}

.benefit-card:nth-child(3) {
    transform: rotate(-1deg);
}

.benefit-card:hover {
    transform: translateY(-10px) rotate(0deg);
    box-shadow: 10px 10px 0px var(--text-color);
    background-color: var(--white);
}

.benefit-card .icon {
    font-size: 3rem;
    margin-bottom: 20px;
    background-color: var(--secondary-color);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    border: var(--border-width) solid var(--text-color);
    margin: 0 auto 20px;
    display: inline-block;
}

/* Process Section */
.process-steps {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    text-align: center;
}

.step {
    flex: 1;
    position: relative;
    padding: 20px;
    border: var(--border-width) dashed var(--text-color);
    border-radius: 20px;
    background-color: #fff;
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--bg-color);
    border: var(--border-width) solid var(--text-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: -50px auto 20px;
    /* Pull up */
    font-family: 'Abril Fatface', cursive;
}

/* Reviews Section */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.review-card {
    background: var(--bg-color);
    padding: 30px;
    border: var(--border-width) solid var(--text-color);
    border-radius: 15px;
    box-shadow: var(--shadow);
    position: relative;
}

.review-card::before {
    content: '"';
    font-family: 'Abril Fatface', cursive;
    font-size: 5rem;
    color: var(--accent-color);
    position: absolute;
    top: -20px;
    left: 20px;
    opacity: 0.5;
}

.review-text {
    font-style: italic;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.review-author {
    font-weight: 700;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Contact Section */
.contact-container {
    display: flex;
    justify-content: center;
}

.contact-form-wrapper {
    width: 100%;
    max-width: 600px;
    text-align: center;
    background-color: var(--secondary-color);
    padding: 40px;
    border: var(--border-width) solid var(--text-color);
    border-radius: 20px;
    box-shadow: 12px 12px 0px var(--text-color);
}

.contact-form {
    margin-top: 40px;
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

input,
textarea {
    width: 100%;
    padding: 15px;
    border: var(--border-width) solid var(--text-color);
    border-radius: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg-color);
}

input:focus,
textarea:focus {
    outline: none;
    box-shadow: 4px 4px 0px var(--text-color);
    transform: translate(-2px, -2px);
}

.form-success {
    margin-top: 20px;
    color: var(--text-color);
    font-weight: 700;
    text-align: center;
    background-color: var(--accent-color);
    padding: 10px;
    border: 2px solid var(--text-color);
    border-radius: 8px;
}

/* License Section */
.license-section {
    padding: 60px 0;
    text-align: center;
    background-color: var(--text-color);
    color: var(--bg-color);
    border-top: 5px solid var(--primary-color);
}

.license-info h3 {
    margin-bottom: 30px;
    color: var(--bg-color);
}

.license-info p {
    color: #ccc;
    margin-bottom: 10px;
}

.license-info .disclaimer {
    font-size: 0.8rem;
    margin-top: 30px;
    opacity: 0.6;
}

/* Footer */
.footer {
    background-color: #000;
    color: #888;
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .nav-links {
        position: absolute;
        right: 0px;
        height: 100vh;
        top: 60px;
        background-color: var(--bg-color);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        transform: translateX(100%);
        transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
        padding-top: 50px;
        border-left: var(--border-width) solid var(--text-color);
    }

    .nav-links.nav-active {
        transform: translateX(0%);
    }

    .burger {
        display: block;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .process-steps {
        flex-direction: column;
        gap: 50px;
    }

    .step-number {
        margin: -40px auto 20px;
    }
}

/* Page Content Spacer */
.page-content {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 120px;
    /* Account for fixed header */
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--bg-color);
    margin: 15% auto;
    padding: 40px;
    border: var(--border-width) solid var(--text-color);
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 10px 10px 0px var(--text-color);
    text-align: center;
    position: relative;
    animation: modalPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPop {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close-modal {
    color: var(--text-color);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 20px;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
}

.modal-content h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.modal-content .close-btn {
    margin-top: 20px;
}