/* Guard-e-Loo Branding Colors from WordPress theme */
:root {
    --gel-honey: #f4e4c1;
    --gel-orange: #ff8c42;
    --gel-brown: #5c4033;
    --gel-black: #1a1a1a;
    --gel-white: #ffffff;
    --gel-gray-light: #f5f5f5;
    --gel-gray: #999;
    --gel-success: #28a745;
    --gel-warning: #ffc107;
    --gel-danger: #dc3545;
    --gel-info: #17a2b8;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--gel-brown);
    background-color: var(--gel-white);
}

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

/* Header */
.site-header {
    background-color: var(--gel-honey);
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.logo-section {
    flex: 0 0 200px;
}

.maggie-logo {
    max-width: 150px;
    height: auto;
}

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

.main-nav a {
    color: var(--gel-brown);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--gel-orange);
}

.main-nav a.admin-link {
    background: var(--gel-orange);
    color: var(--gel-white);
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--gel-honey) 0%, var(--gel-white) 100%);
    padding: 4rem 0;
}

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

.hero-text h1 {
    font-size: 3.5rem;
    color: var(--gel-brown);
    margin-bottom: 1rem;
}

.tagline {
    font-size: 1.5rem;
    color: var(--gel-orange);
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--gel-brown);
}

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

.hero-image img {
    max-width: 100%;
    height: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

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

.btn-primary:hover {
    background-color: #ff7629;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 140, 66, 0.3);
}

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

.btn-secondary:hover {
    background-color: #4a3329;
}

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

/* Features Section */
.features-section,
.how-it-works-preview,
.cta-section {
    padding: 4rem 0;
}

.features-section h2,
.how-it-works-preview h2,
.content-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--gel-brown);
    margin-bottom: 2rem;
}

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

.feature-card {
    background: var(--gel-white);
    padding: 2rem;
    border-radius: 8px;
    border: 2px solid var(--gel-honey);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.feature-card h3 {
    color: var(--gel-orange);
    margin-bottom: 1rem;
}

.feature-card.negative h3 {
    color: var(--gel-gray);
}

/* Process Steps */
.process-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 3rem 0;
}

.step {
    flex: 1;
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gel-orange);
    color: var(--gel-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.step h3 {
    color: var(--gel-brown);
    margin-bottom: 0.5rem;
}

.step-arrow {
    font-size: 2rem;
    color: var(--gel-orange);
}

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

/* CTA Section */
.cta-section {
    background: var(--gel-brown);
    color: var(--gel-white);
}

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

.cta-content h2 {
    color: var(--gel-white);
}

/* Page Header */
.page-header {
    background: var(--gel-honey);
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    color: var(--gel-brown);
    margin-bottom: 0.5rem;
}

.page-header .subtitle {
    font-size: 1.2rem;
    color: var(--gel-brown);
}

/* Content Section */
.content-section {
    padding: 3rem 0;
}

.content-block {
    margin: 3rem 0;
}

.content-block h2 {
    text-align: left;
    font-size: 2rem;
}

.content-block ul {
    margin-left: 2rem;
}

.content-block li {
    margin: 0.5rem 0;
}

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

.flow-step {
    background: var(--gel-gray-light);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
}

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

.cta-box {
    background: var(--gel-honey);
    padding: 3rem;
    border-radius: 8px;
    text-align: center;
    margin: 3rem 0;
}

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

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

.blog-card {
    background: var(--gel-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

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

.blog-content {
    padding: 1.5rem;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--gel-gray);
}

.blog-category a {
    color: var(--gel-orange);
    text-decoration: none;
}

.blog-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.blog-title a {
    color: var(--gel-brown);
    text-decoration: none;
}

.blog-title a:hover {
    color: var(--gel-orange);
}

.blog-excerpt {
    color: var(--gel-brown);
    margin-bottom: 1rem;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    background: var(--gel-honey);
    color: var(--gel-brown);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.9rem;
}

.tag:hover {
    background: var(--gel-orange);
    color: var(--gel-white);
}

.read-more {
    color: var(--gel-orange);
    text-decoration: none;
    font-weight: 600;
}

/* Blog Post */
.blog-post {
    padding: 3rem 0;
}

.post-header {
    margin-bottom: 2rem;
}

.post-title {
    font-size: 2.5rem;
    color: var(--gel-brown);
    margin-bottom: 1rem;
}

.post-featured-image {
    margin: 2rem 0;
}

.post-featured-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 8px;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.post-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.post-content p {
    margin-bottom: 1rem;
}

.post-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--gel-honey);
}

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

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

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--gel-honey);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--gel-orange);
}

textarea.form-control {
    resize: vertical;
}

.error {
    color: var(--gel-danger);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

/* Contact Form */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.maggie-contact {
    text-align: center;
    margin-top: 2rem;
}

.maggie-contact img {
    max-width: 200px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin: 3rem 0;
}

.page-info {
    color: var(--gel-gray);
}

/* Flash Messages */
.flash-messages {
    position: sticky;
    top: 0;
    z-index: 100;
}

.alert {
    padding: 1rem 1.5rem;
    border-radius: 4px;
    margin-bottom: 0;
    position: relative;
}

.alert-success {
    background: var(--gel-success);
    color: var(--gel-white);
}

.alert-danger {
    background: var(--gel-danger);
    color: var(--gel-white);
}

.alert-warning {
    background: var(--gel-warning);
    color: var(--gel-brown);
}

.alert-info {
    background: var(--gel-info);
    color: var(--gel-white);
}

.close-alert {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: inherit;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Footer */
.site-footer {
    background: var(--gel-brown);
    color: var(--gel-white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

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

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

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

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

.footer-section a {
    color: var(--gel-white);
    text-decoration: none;
}

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

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

/* Responsive */
@media (max-width: 768px) {
    .hero-content,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }

    .process-steps {
        flex-direction: column;
    }

    .step-arrow {
        transform: rotate(90deg);
        margin: 1rem 0;
    }

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