/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #e63946;
    --primary-dark: #c1121f;
    --secondary: #457b9d;
    --dark: #1d3557;
    --light: #f1faee;
    --gray: #6c757d;
    --gray-light: #e9ecef;
    --border-radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
    overflow-x: hidden;
}

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

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
}

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

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

/* ===== Header ===== */
.header {
    background: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 15px;
    padding-bottom: 15px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.5rem;
    text-decoration: none;
}

.logo svg {
    stroke: var(--primary);
}

.nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--dark);
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

/* ===== Hero Sections ===== */
.hero, .page-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 100px 20px 80px;
    text-align: center;
}

.hero h1, .page-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: white;
}

.hero-subtitle, .lead {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.95;
    line-height: 1.7;
}

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

.content-section {
    background: white;
}

/* ===== Features Grid ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: var(--light);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-card svg {
    stroke: var(--primary);
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--dark);
}

/* ===== Steps ===== */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin: 50px 0;
}

.step {
    text-align: center;
    position: relative;
}

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

.step h3 {
    margin-bottom: 10px;
}

/* ===== Testimonials ===== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background: var(--light);
    padding: 30px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary);
}

.testimonial-author {
    margin-top: 15px;
    font-weight: 600;
    color: var(--gray);
}

/* ===== CTA Section ===== */
.cta-section {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--dark) 100%);
    color: white;
    text-align: center;
}

.cta-section h2 {
    color: white;
    margin-bottom: 15px;
}

.cta-section p {
    max-width: 600px;
    margin: 0 auto 30px;
    opacity: 0.95;
}

/* ===== Buttons ===== */
.cta-btn {
    display: inline-block;
    padding: 16px 40px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.cta-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.cta-large {
    padding: 20px 50px;
    font-size: 1.25rem;
}

.cta-floating {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    padding: 18px 35px;
    box-shadow: var(--shadow-lg);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ===== Footer ===== */
.footer {
    background: var(--dark);
    color: white;
    padding: 40px 0;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.footer-links a {
    color: white;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: white;
}

/* ===== About/Contact/Privacy Pages ===== */
.values-grid, .contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.value-card, .contact-method {
    background: var(--light);
    padding: 25px;
    border-radius: var(--border-radius);
}

.contact-method {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.contact-method svg {
    stroke: var(--primary);
    flex-shrink: 0;
}

.contact-method strong {
    display: block;
    margin-bottom: 5px;
}

.contact-method p {
    margin: 0;
    color: var(--gray);
    font-size: 0.9rem;
}

/* ===== Contact Form ===== */
.contact-form-container {
    max-width: 600px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid var(--gray-light);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

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

/* ===== FAQ ===== */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px;
    background: var(--light);
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--dark);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: bold;
}

.faq-question[aria-expanded="true"]::after {
    content: '−';
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer p {
    padding: 20px 0;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 20px 20px;
}

/* ===== Contact Page ===== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 60px;
    align-items: start;
}

.contact-info {
    background: var(--light);
    padding: 40px;
    border-radius: var(--border-radius);
}

/* ===== Safety/ Guidelines Intro/Conclusion ===== */
.safety-intro,
.guidelines-intro {
    background: var(--light);
    padding: 30px;
    border-radius: var(--border-radius);
    margin-bottom: 40px;
}

.safety-conclusion {
    background: var(--light);
    padding: 30px;
    border-radius: var(--border-radius);
    margin-top: 40px;
}

/* ===== Tips Articles ===== */
.tips-content {
    max-width: 800px;
    margin: 0 auto;
}

.tips-articles {
    margin-top: 40px;
}

.tip-article {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
}

.tip-article h2 {
    margin-top: 0;
    color: var(--dark);
}

.lead-paragraph {
    font-size: 1.25rem;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto 2rem;
    opacity: 0.95;
}

/* ===== Stories ===== */
.stories-intro {
    max-width: 700px;
    margin: 0 auto 40px;
    text-align: center;
}

.share-your-story {
    background: var(--light);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    margin-top: 40px;
}

/* ===== Guidelines ===== */
.guidelines-section {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    border-left: 4px solid var(--primary);
}

/* ===== Features Preview ===== */
.features-preview {
    background: var(--light);
    padding: 80px 0;
}

.features-preview .features-grid {
    margin-top: 50px;
}

.policy-content h2,
.terms-content h2,
.safety-content h2,
.guidelines-content h2 {
    margin-top: 40px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gray-light);
}

.policy-content h2:first-child,
.terms-content h2:first-child,
.safety-content h2:first-child,
.guidelines-content h2:first-child {
    margin-top: 0;
}

.policy-content ul,
.terms-content ul,
.safety-content ul,
.guidelines-content ul {
    margin: 15px 0 15px 25px;
}

.policy-content li,
.terms-content li,
.safety-content li,
.guidelines-content li {
    margin-bottom: 8px;
}

.last-updated {
    margin-top: 40px;
    font-size: 0.9rem;
    color: var(--gray);
    font-style: italic;
}

/* ===== Safety Grid ===== */
.safety-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.safety-card {
    background: var(--light);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
}

.safety-icon {
    width: 70px;
    height: 70px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.safety-icon svg {
    stroke: white;
}

/* ===== Stories ===== */
.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.story-card {
    background: var(--light);
    padding: 35px;
    border-radius: var(--border-radius);
    position: relative;
}

.story-icon {
    width: 60px;
    height: 60px;
    background: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.story-icon svg {
    stroke: white;
}

.story-source {
    display: block;
    margin-top: 20px;
    font-style: italic;
    color: var(--gray);
}

/* ===== Blog ===== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.blog-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-image {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-image svg {
    stroke: white;
    opacity: 0.8;
}

.blog-card h2 {
    padding: 0 25px;
    margin-top: 20px;
    font-size: 1.3rem;
}

.blog-card h2 a {
    color: var(--dark);
    text-decoration: none;
}

.blog-card h2 a:hover {
    color: var(--primary);
}

.blog-meta {
    padding: 0 25px;
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.blog-card > p {
    padding: 0 25px;
    color: var(--gray);
    margin-bottom: 20px;
}

.read-more {
    display: block;
    padding: 0 25px 25px;
    color: var(--primary);
    font-weight: 600;
}

/* ===== Blog Article ===== */
.blog-article {
    max-width: 800px;
}

.article-header {
    text-align: center;
    margin-bottom: 50px;
}

.article-meta {
    color: var(--gray);
    font-size: 0.95rem;
}

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

.article-content h2 {
    margin-top: 40px;
    margin-bottom: 20px;
}

.article-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}

.article-content ul, .article-content ol {
    margin: 15px 0 15px 25px;
}

.article-content li {
    margin-bottom: 10px;
}

.article-cta {
    background: var(--light);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    margin: 60px 0 40px;
}

.article-cta h3 {
    margin-bottom: 10px;
}

.article-navigation {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 2px solid var(--gray-light);
}

.back-to-blog {
    font-weight: 600;
}

.related-articles {
    max-width: 300px;
}

.related-articles h4 {
    margin-bottom: 10px;
    font-size: 1rem;
}

.related-articles ul {
    list-style: none;
    margin: 0;
}

.related-articles li {
    margin-bottom: 8px;
}

.related-articles a {
    font-size: 0.95rem;
    color: var(--gray);
}

.related-articles a:hover {
    color: var(--primary);
}

/* ===== How It Works Vertical Steps ===== */
.steps-vertical {
    max-width: 800px;
    margin: 0 auto;
}

.step-vertical {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

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

.step-content-vertical h3 {
    margin-bottom: 10px;
}

.tips-section {
    max-width: 800px;
    margin: 60px auto 0;
    padding-top: 40px;
    border-top: 2px solid var(--gray-light);
}

.tips-list {
    list-style: none;
    margin: 20px 0;
}

.tips-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-light);
}

.tips-list li strong {
    color: var(--primary);
}

/* ===== Features Detailed ===== */
.features-detailed {
    max-width: 800px;
    margin: 0 auto;
}

.feature-detailed {
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 2px solid var(--gray-light);
}

.feature-detailed:last-child {
    border-bottom: none;
}

.feature-icon-large {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.feature-detailed ul {
    margin: 15px 0 15px 25px;
}

/* ===== Text Center ===== */
.text-center {
    text-align: center;
    margin-top: 40px;
}

/* ===== Mobile Menu ===== */
.nav.active {
    display: flex;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow);
        gap: 15px;
    }

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

    .hero-subtitle, .lead {
        font-size: 1.1rem;
    }

    .cta-floating {
        bottom: 20px;
        right: 20px;
        padding: 15px 25px;
        font-size: 1rem;
    }

    .article-navigation {
        flex-direction: column;
        gap: 30px;
    }
}