/* ============================================================
   LEO'S PIZZA & WINGS — Secondary page styles
   (About, Contact — shares tokens/components from style.css)
   ============================================================ */


/* ---------- Page hero (photo banner, reused on About/Contact) ---------- */

.page-hero {
    position: relative;
    padding: 96px 0 84px;
    text-align: center;
    overflow: hidden;
    isolation: isolate;
}

.page-hero .ph-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.page-hero .ph-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-hero .ph-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 15, 9, .72) 0%, rgba(20, 15, 9, .6) 45%, var(--bg) 96%);
}

.page-hero .eyebrow {
    color: #ffcda8;
}

.page-hero .eyebrow::before {
    background: #ffcda8;
}

.page-hero h1 {
    font-size: clamp(2.3rem, 4.8vw, 3.6rem);
    margin-top: 14px;
    color: #fff;
}

.page-hero h1 em {
    font-style: normal;
    color: var(--accent-2);
}

.page-hero p {
    color: rgba(255, 255, 255, .85);
    max-width: 560px;
    margin: 16px auto 0;
    font-size: 1.05rem;
    line-height: 1.65;
}


/* ---------- Values grid (About) ---------- */

.value-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.value-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 30px 26px;
    text-align: center;
    transition: transform .35s var(--ease), border-color .3s;
}

.value-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 77, 46, .35);
}

.value-card .ic {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(255, 77, 46, .1);
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
}

.value-card h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.value-card p {
    font-size: .86rem;
    color: var(--text-dim);
    line-height: 1.6;
}

@media (max-width:980px) {
    .value-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width:560px) {
    .value-grid {
        grid-template-columns: 1fr;
    }
}


/* ---------- Gallery (About) ---------- */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 160px;
    gap: 16px;
}

.gallery-grid a {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    display: block;
}

.gallery-grid a:nth-child(4n+1) {
    grid-row: span 2;
}

.gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s var(--ease);
}

.gallery-grid a:hover img {
    transform: scale(1.08);
}

@media (max-width:980px) {
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width:560px) {
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 120px;
    }
    .gallery-grid a:nth-child(4n+1) {
        grid-row: span 1;
    }
}


/* ---------- Timeline (About) ---------- */

.timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.tl-row {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 24px;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
}

.tl-row:last-child {
    border-bottom: none;
}

.tl-year {
    font-family: var(--ff-display);
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--accent);
}

.tl-copy b {
    display: block;
    margin-bottom: 4px;
    font-size: 1rem;
}

.tl-copy span {
    color: var(--text-dim);
    font-size: .88rem;
    line-height: 1.55;
}


/* ---------- Contact grid + form ---------- */

.contact-grid {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 40px;
    align-items: start;
}

@media (max-width:980px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.info-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

.form-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.form-card h3 {
    font-size: 1.3rem;
    margin-bottom: 6px;
}

.form-card .sub {
    color: var(--text-dim);
    font-size: .9rem;
    margin-bottom: 26px;
}

.cf-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

@media (max-width:560px) {
    .cf-row {
        grid-template-columns: 1fr;
    }
}

.cf-field {
    margin-bottom: 16px;
}

.cf-field label {
    display: block;
    font-size: .72rem;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 7px;
}

.cf-field input,
.cf-field select,
.cf-field textarea {
    width: 100%;
    padding: 13px 15px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 11px;
    color: var(--text);
    font-size: .95rem;
    font-family: inherit;
    outline: none;
    transition: border-color .2s;
}

.cf-field input:focus,
.cf-field select:focus,
.cf-field textarea:focus {
    border-color: var(--accent);
}

.cf-field.err input,
.cf-field.err textarea {
    border-color: #d9362b;
}

.cf-success {
    background: rgba(46, 157, 99, .1);
    border: 1px solid rgba(46, 157, 99, .3);
    color: var(--green);
    border-radius: 12px;
    padding: 16px 18px;
    font-weight: 600;
    font-size: .92rem;
    display: none;
    align-items: center;
    gap: 10px;
}

.cf-success.show {
    display: flex;
}


/* ---------- Auth (login / create account) ---------- */

.auth-wrap {
    padding: 70px 0 90px;
    min-height: 56vh;
    display: flex;
    align-items: center;
}

.auth-tabs {
    display: flex;
    background: var(--bg-soft);
    border-radius: var(--radius-full);
    padding: 4px;
    gap: 4px;
    margin-bottom: 22px;
}

.auth-tabs button {
    flex: 1;
    border: none;
    background: transparent;
    padding: 11px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: .88rem;
    color: var(--text-dim);
    cursor: pointer;
    transition: .2s;
}

.auth-tabs button.on {
    background: var(--accent);
    color: #fff;
}

.auth-error {
    display: none;
    background: rgba(217, 54, 43, .1);
    border: 1px solid rgba(217, 54, 43, .3);
    color: #d9362b;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.auth-error.show {
    display: block;
}

.auth-note {
    font-size: .78rem;
    color: var(--text-dim);
    text-align: center;
    margin-top: 18px;
    line-height: 1.5;
}


/* ============================================================
   DASHBOARD — sidebar layout + tab panels
   ============================================================ */

.dash-wrap {
    padding: 50px 0 100px;
}

.dash-shell {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
    align-items: start;
}

@media (max-width:860px) {
    .dash-shell {
        grid-template-columns: 1fr;
    }
}


/* ---------- Sidebar ---------- */

.dash-sidebar {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 24px 18px;
    position: sticky;
    top: 106px;
}

@media (max-width:860px) {
    .dash-sidebar {
        position: static;
    }
}

.dash-side-user {
    text-align: center;
    padding-bottom: 18px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.dash-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 10px;
    overflow: hidden;
    background: linear-gradient(155deg, var(--accent), #b8280f);
    color: #fff;
    font-family: var(--ff-display);
    font-weight: 700;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dash-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dash-avatar.lg {
    width: 80px;
    height: 80px;
    font-size: 1.8rem;
}

.dash-side-name {
    font-weight: 800;
    font-size: .95rem;
}

.dash-side-email {
    font-size: .75rem;
    color: var(--text-dim);
    margin-top: 2px;
    word-break: break-all;
}

.dash-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

@media (max-width:860px) {
    .dash-nav {
        flex-direction: row;
    }
}

.dash-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    text-align: left;
    padding: 13px 15px;
    border-radius: 12px;
    border: none;
    background: transparent;
    color: var(--text-dim);
    font-weight: 700;
    font-size: .9rem;
    cursor: pointer;
    transition: .2s;
}

@media (max-width:860px) {
    .dash-nav-item {
        justify-content: center;
    }
}

.dash-nav-item:hover {
    background: var(--bg-soft);
    color: var(--text);
}

.dash-nav-item.on {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 10px 22px -10px rgba(255, 77, 46, .55);
}


/* ---------- Section heads ---------- */

.dash-section-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.dash-section-hd h2 {
    font-size: 1.5rem;
}


/* ---------- Order cards ---------- */

.order-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 22px 24px;
    margin-bottom: 18px;
    transition: box-shadow .3s, border-color .3s;
}

.order-card:hover {
    border-color: rgba(255, 77, 46, .3);
    box-shadow: 0 16px 34px -20px rgba(20, 15, 9, .25);
}

.order-card-hd {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.order-card-hd b {
    font-family: var(--ff-display);
    font-size: 1.08rem;
}

.order-card-meta {
    font-size: .79rem;
    color: var(--text-dim);
    margin-top: 4px;
}

.order-card-total {
    font-family: var(--ff-display);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--accent);
    white-space: nowrap;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .72rem;
    font-weight: 700;
    color: var(--green);
    background: rgba(46, 157, 99, .1);
    border: 1px solid rgba(46, 157, 99, .3);
    padding: 5px 12px;
    border-radius: var(--radius-full);
}

.order-item-bullets {
    list-style: none;
    margin: 16px 0 18px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.order-item-bullets li {
    font-size: .88rem;
    color: var(--text);
    padding-left: 15px;
    position: relative;
}

.order-item-bullets li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 900;
}

.order-card-ft {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 4px;
    border-top: 1px dashed var(--line);
    padding-top: 16px;
}

.order-card-ft .btn {
    padding: 10px 22px;
    font-size: .85rem;
}

.order-card-ft .btn.ghost {
    padding: 10px 22px;
    font-size: .85rem;
}

.dash-empty {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 60px 30px;
    text-align: center;
}

.dash-empty .ic {
    font-size: 2.6rem;
    margin-bottom: 14px;
    opacity: .6;
}

.dash-empty p {
    color: var(--text-dim);
    margin-bottom: 20px;
}


/* ---------- Profile ---------- */

.profile-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 680px;
}

.profile-hd {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 26px;
    padding-bottom: 26px;
    border-bottom: 1px solid var(--line);
    flex-wrap: wrap;
}

.profile-name {
    font-family: var(--ff-display);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.avatar-edit-btn {
    background: none;
    border: 1px solid var(--line);
    border-radius: var(--radius-full);
    padding: 7px 15px;
    font-size: .76rem;
    font-weight: 700;
    color: var(--text-dim);
    cursor: pointer;
    transition: .2s;
}

.avatar-edit-btn:hover {
    border-color: rgba(26, 21, 16, .4);
    color: var(--text);
}

.profile-rows {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 26px;
}

.profile-row {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.profile-row .ic {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--bg-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.profile-row b {
    display: block;
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-dim);
    margin-bottom: 3px;
    font-weight: 700;
}

.profile-row span {
    font-size: .92rem;
    color: var(--text);
    font-weight: 600;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    background: var(--bg-soft);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 26px;
}

@media (max-width:480px) {
    .profile-stats {
        grid-template-columns: 1fr;
    }
}

.pstat {
    text-align: center;
}

.pstat b {
    display: block;
    font-family: var(--ff-display);
    font-size: 1.3rem;
}

.pstat span {
    font-size: .68rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: .05em;
    font-weight: 600;
}

.profile-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

@media (max-width:480px) {
    .profile-actions {
        grid-template-columns: 1fr;
    }
}


/* ---------- Lightweight modal (dashboard-only) ---------- */

.modal-ov {
    position: fixed;
    inset: 0;
    z-index: 400;
    background: rgba(23, 19, 16, .5);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-ov.show {
    display: flex;
}

.modal-card {
    background: var(--bg);
    width: 100%;
    max-width: 600px;
    max-height: 88vh;
    overflow-y: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    box-shadow: 0 30px 60px -20px rgba(20, 15, 9, .4);
    animation: modalUp .25s var(--ease);
}

@keyframes modalUp {
    from {
        transform: translateY(24px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-hd {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 22px;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    background: var(--bg);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.modal-hd .t {
    font-family: var(--ff-display);
    font-weight: 700;
    font-size: 1.1rem;
}

.modal-x {
    margin-left: auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--line);
    cursor: pointer;
    flex-shrink: 0;
}

.modal-bd {
    padding: 22px;
}

.mo-order-items {
    margin-bottom: 4px;
}

.mo-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: .88rem;
    padding: 6px 0;
    color: var(--text-dim);
}

.mo-line b {
    color: var(--text);
    font-weight: 600;
}

.mo-divider {
    border-top: 1px solid var(--line);
    margin-top: 10px;
    padding-top: 10px;
}

.mo-total-row {
    display: flex;
    justify-content: space-between;
    font-weight: 800;
    font-size: 1.05rem;
    padding-top: 10px;
    margin-top: 6px;
    border-top: 1px solid var(--line);
    color: var(--text);
}

.confirm-receipt-actions {
    display: flex;
    gap: 10px;
}

.confirm-receipt-actions .btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: .82rem;
    padding: 11px 12px;
}


/* ---------- FAQ accordion ---------- */

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 760px;
    margin: 0 auto;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 20px 22px;
    cursor: pointer;
    font-weight: 700;
    font-size: .98rem;
}

.faq-q .arrow {
    transition: transform .3s var(--ease);
    color: var(--accent);
    flex-shrink: 0;
}

.faq-item.open .faq-q .arrow {
    transform: rotate(180deg);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s var(--ease);
}

.faq-item.open .faq-a {
    max-height: 220px;
}

.faq-a-inner {
    padding: 0 22px 20px;
    color: var(--text-dim);
    font-size: .9rem;
    line-height: 1.6;
}