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

body {
    padding-top: 80px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: hsl(25, 25%, 15%);
    background-color: hsl(45, 20%, 97%);
    color-scheme: light only;
    overflow-x: hidden;
}

/* Color Variables */
:root {
    --sage: hsl(85, 35%, 45%);
    --sage-light: hsl(85, 25%, 75%);
    --sage-dark: hsl(85, 45%, 35%);
    --earth: hsl(25, 75%, 55%);
    --earth-light: hsl(25, 50%, 75%);
    --cream: hsl(45, 40%, 95%);
    --charcoal: hsl(25, 25%, 15%);
    --muted: hsl(25, 10%, 50%);
    --white: #ffffff;
}

/* Sticky Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 1rem 0;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.98);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-links a {
    font-size: 1.125rem;
    text-decoration: none;
    color: var(--sage-dark);
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--sage), var(--sage-dark));
    color: var(--white);
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, var(--earth), var(--earth-light));
    border-radius: 50px;
    transition: width 0.4s ease;
    z-index: -1;
}

.nav-links a:hover::before {
    width: 100%;
}

.nav-links a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--charcoal);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }

p {
    margin-bottom: 1rem;
}

/* FAQ Section Styles */
.faq {
    padding: 3rem 0;
    min-height: calc(100vh - 80px);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    margin-bottom: 2rem;
    color: var(--charcoal);
}

/* FAQ Index - Question Links */
.faq-index {
    background: var(--white);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    max-width: 800px;
    margin: 0 auto 3rem;
    columns: 2;
    column-gap: 2rem;
}

.faq-index a {
    color: var(--sage-dark);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
    padding: 0.25rem 0;
    font-size: 1.5rem;
    line-height: 1.4;
    break-inside: avoid;
    width: 100%;
}

.faq-index a:hover {
    color: var(--earth);
    transform: translateX(5px);
}

/* FAQ Items Container */
.faq-items {
    max-width: 900px;
    margin: 0 auto 3rem;
}

.faq-items h3 {
    color: var(--sage-dark);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--cream);
    font-size: 1.75rem;
    position: relative;
    scroll-margin-top: 100px;
}

.faq-items h3:first-child {
    margin-top: 0;
    border-top: none;
}

.faq-items h3::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 30px;
    background: linear-gradient(135deg, var(--sage), var(--earth));
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.faq-items h3:hover::before {
    opacity: 1;
}

.faq-items p {
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
}

/* FAQ Disclaimer */
.faq-disclaimer {
    background: linear-gradient(135deg, hsla(85, 35%, 45%, 0.05), hsla(25, 75%, 55%, 0.05));
    border-left: 4px solid var(--earth);
    border-radius: 0.75rem;
    padding: 2rem;
    margin-top: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.faq-disclaimer p {
    color: var(--charcoal);
    line-height: 1.7;
    margin: 0;
}

.faq-disclaimer strong {
    color: var(--sage-dark);
    font-weight: 600;
}

.faq-disclaimer em {
    color: var(--earth);
    font-style: normal;
    font-weight: 500;
}

/* Footer */
.footer {
    background-color: var(--charcoal);
    color: var(--white);
    padding: 3rem 0;
    margin-top: 5rem;
}

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

.footer-brand h3 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    color: var(--white);
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: var(--sage-light);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--sage-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--white);
}

.contact-link svg {
    width: 1rem;
    height: 1rem;
}

.footer-copyright {
    text-align: center;
}

.footer-copyright p {
    color: var(--sage-light);
    font-size: 0.875rem;
}

.footer-bottom {
    border-top: 1px solid hsla(85, 35%, 45%, 0.2);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: var(--sage-light);
    font-size: 0.875rem;
}

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

/* Target highlight animation */
.faq-items h3:target {
    animation: highlight 1s ease;
}

@keyframes highlight {
    0% {
        background: linear-gradient(90deg, transparent, hsla(85, 35%, 45%, 0.1), transparent);
    }
    50% {
        background: linear-gradient(90deg, transparent, hsla(85, 35%, 45%, 0.2), transparent);
    }
    100% {
        background: transparent;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    .site-header {
        padding: 0.75rem 0;
    }
    
    .nav-links a {
        font-size: 1rem;
        padding: 0.4rem 1.25rem;
    }
    
    .faq-index {
        columns: 1;
        padding: 1.5rem;
    }
    
    .faq-items {
        padding: 0 1rem;
    }
    
    .faq-items h3 {
        font-size: 1.125rem;
        scroll-margin-top: 80px;
    }
    
    .faq-items h3::before {
        display: none;
    }
    
    .faq-items p {
        padding-left: 0;
        font-size: 0.95rem;
    }
    
    .faq-disclaimer {
        margin: 2rem 1rem;
        padding: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-contact {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .faq {
        padding: 2rem 0;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .faq-index a {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .faq-items h3 {
        margin-top: 2rem;
    }
}

@media (min-width: 640px) {
    .footer-contact {
        flex-direction: row;
        justify-content: center;
    }
}