/* --------------------------------------
       1) CSS Variables & Theme Definitions
    -------------------------------------- */
:root {
    --color-primary: #825415;
    /* brand primary */
    --color-primary-hover: #A0561A;
    /* hover for primary buttons/links */
    --color-background: #F2F2F2;
    /* page background */
    --color-light: #FFFFFF;
    /* light surface */
    --color-text: #1A1A1A;
    /* primary text */
    --color-muted: #000000;
    /* secondary text */
    --color-heading: #111111;
    /* headings */
    --color-accent: #FFD580;
    /* accent highlight */
    --max-width: 1200px;
    /* container max width */
    --transition-speed: 0.3s;
    /* for interactive elements */
}

/* --------------------------------------
       2) Base Reset
    -------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color var(--transition-speed),
        color var(--transition-speed),
        transform var(--transition-speed),
        box-shadow var(--transition-speed);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: var(--color-background);
    color: var(--color-text);
    overflow-x: hidden;
}

/* --------------------------------------
       3) Utility & Global Classes
    -------------------------------------- */
.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
}

h1,
h2,
h3,
h4 {
    margin-bottom: 0.5rem;
    color: var(--color-heading);
}

p {
    margin-bottom: 1rem;
    color: var(--color-muted);
}

a {
    text-decoration: none;
    color: var(--color-primary);
}

a:hover {
    color: var(--color-primary-hover);
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    transition: background-color var(--transition-speed),
        transform var(--transition-speed),
        box-shadow var(--transition-speed);
    font-family: inherit;
}

/* --------------------------------------
       4) Header / Navbar
    -------------------------------------- */
header {
    background-color: var(--color-light);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-primary);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

nav li a {
    font-weight: 500;
    color: var(--color-text);
}

nav li a:hover {
    color: var(--color-primary);
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text);
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }

    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        bottom: 0;
        width: 220px;
        background-color: var(--color-light);
        flex-direction: column;
        transform: translateX(100%);
        visibility: hidden;
        z-index: 200;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    nav ul.open {
        display: flex;
        transform: translateX(0);
        visibility: visible;
    }

    nav li {
        padding: 1rem;
        border-bottom: 1px solid #e0e0e0;
    }

    nav {
        width: 100%;
    }
}

/* --------------------------------------
       5) Page Title Section
    -------------------------------------- */
.page-title {
    background-color: var(--color-primary);
    color: var(--color-light);
    padding: 4rem 0;
    text-align: center;
}

.page-title h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.page-title p {
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

/* --------------------------------------
       6) FAQ Section
    -------------------------------------- */
.faq-section {
    padding: 4rem 0;
    background-color: var(--color-light);
}

.faq-container {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.faq-index {
    flex: 1;
    min-width: 200px;
}

.faq-index h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.faq-index ul {
    list-style: none;
}

.faq-index li {
    margin-bottom: 0.75rem;
}

.faq-index li a {
    font-size: 1rem;
    color: var(--color-primary);
}

.faq-index li a:hover {
    text-decoration: underline;
}

.faq-content {
    flex: 3;
    min-width: 300px;
}

.faq-item {
    margin-bottom: 1.5rem;
    border-radius: 8px;
    background-color: var(--color-background);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.faq-item summary {
    font-size: 1.125rem;
    font-weight: 500;
    padding: 1rem 1.5rem;
    cursor: pointer;
    list-style: none;
    position: relative;
    background-color: var(--color-accent);
    color: var(--color-text);
}

.faq-item summary:hover {
    background-color: var(--color-primary-hover);
    color: var(--color-light);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "＋";
    position: absolute;
    right: 1.5rem;
    font-size: 1.25rem;
    transition: transform var(--transition-speed);
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    padding: 1rem 1.5rem;
    font-size: 1rem;
    color: var(--color-text);
    background-color: var(--color-light);
    border-top: 1px solid #e0e0e0;
}

/* --------------------------------------
       7) Footer
    -------------------------------------- */
footer {
    background-color: var(--color-primary);
    color: var(--color-light);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
}

.footer-about,
.footer-links,
.footer-contact {
    flex: 1 1 200px;
}

.footer-about img.footer-logo {
    display: block;
    margin-top: 1rem;
    max-width: 120px;
    height: auto;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links ul li a {
    color: var(--color-light);
    font-size: 0.9rem;
    transition: color var(--transition-speed);
}

.footer-links ul li a:hover {
    color: var(--color-light);
    opacity: 0.8;
}

.footer-contact h3 {
    margin-bottom: 0.5rem;
}

.footer-contact p {
    margin-bottom: 0.5rem;
}

.social-icons a {
    margin-right: 0.5rem;
    font-size: 1.2rem;
    color: var(--color-light);
    transition: color var(--transition-speed);
}

.social-icons a:hover {
    opacity: 0.8;
}

.download-buttons img {
    max-width: 120px;
    margin-right: 0.5rem;
    margin-top: 0.5rem;
}

/* --------------------------------------
       8) Responsive Adjustments
    -------------------------------------- */
@media (max-width: 768px) {
    .faq-container {
        flex-direction: column;
    }

    .faq-index,
    .faq-content {
        width: 100%;
        max-width: 100%;
    }
}