/* Explain: App-specific layout utilities and structural CSS for header and sections. */
.wrap {
    width: 100%;
    max-width: 76rem;
    margin-inline: auto;
    padding-inline: 1rem;
}

.section-app {
    padding-block: 3rem;
}

@media (min-width: 768px) {
    .section-app {
        padding-block: 4.5rem;
    }
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 14px rgba(120, 80, 30, 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-block: 0.7rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 0.9rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #ffffff;
    font-size: 1.15rem;
    box-shadow: 0 6px 14px rgba(232, 89, 12, 0.3);
}

.brand-name {
    display: block;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.12rem;
    line-height: 1.1;
    color: var(--text-color);
}

.brand-tag {
    display: block;
    font-size: 0.66rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.nav-desktop {
    align-items: center;
    gap: 0.15rem;
}

/* ---------- Hero ---------- */
.hero-app {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 18%, rgba(242, 183, 5, 0.24), transparent 42%),
        radial-gradient(circle at 88% 6%, rgba(232, 89, 12, 0.16), transparent 45%),
        linear-gradient(140deg, #fff8ec 0%, #ffeed8 100%);
    border-bottom: 1px solid var(--border-color);
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--secondary-color);
    color: rgba(255, 255, 255, 0.82);
    margin-top: 4rem;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* ---------- Header nav dropdown ---------- */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: none;
    border: 0;
    cursor: pointer;
    font-family: var(--font-body);
}

.nav-caret {
    font-size: 0.6rem;
    transition: transform 0.25s ease;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 70;
    padding-top: 0.5rem;
}

.nav-dropdown-panel {
    min-width: 12rem;
    padding: 0.4rem;
    border-radius: var(--radius-md);
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-hover);
}

.nav-dropdown-item {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-dropdown-item:hover {
    background: var(--surface-alt);
    color: var(--primary-color);
}

@media (min-width: 1024px) {
    .nav-dropdown:hover .nav-dropdown-menu {
        display: block;
    }

    .nav-dropdown:hover .nav-caret {
        transform: rotate(180deg);
    }
}

.nav-dropdown.is-open .nav-dropdown-menu {
    display: block;
}

.nav-dropdown.is-open .nav-caret {
    transform: rotate(180deg);
}