/* Riseax site shell — shared header, footer, buttons and page primitives.
   Extracted from homepage-new.css so every public page shares one header/
   footer implementation instead of the removed legacy theme (style.css). */

html { scroll-behavior: smooth; }
body {
    margin: 0;
    overflow-x: hidden;
    color: #151416;
    background: #fffdfa;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
.container { width: auto; max-width: 1100px; margin-inline: auto; }

/* ---- Header ---- */
.site-header {
    height: 76px;
    background: rgba(255, 253, 250, .96);
    border-bottom: 1px solid #eeeae5;
    position: relative;
    z-index: 20;
}
.nav-wrap { height: 100%; display: grid; grid-template-columns: 180px 1fr auto; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; }
.brand img { display: block; width: auto; height: 32px; }
.primary-nav { display: flex; justify-content: center; gap: 42px; font-size: 12px; font-weight: 700; }
.account-nav { display: flex; align-items: center; gap: 24px; font-size: 12px; font-weight: 700; }
/* Text links get vertical padding so tap targets meet the 24px minimum
   without changing the visual rhythm (adjacent gaps reduced to match). */
.primary-nav a, .account-nav a:not(.button) { padding-block: 10px; }
.nav-toggle { display: none; border: 0; background: none; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; margin: 5px; background: #151416; }

/* ---- Buttons ---- */
.button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 22px;
    border-radius: 24px;
    font-size: 12px;
    font-weight: 800;
    transition: transform .2s ease, box-shadow .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button b { font-size: 17px; line-height: 1; }
.button-primary { color: #fff; background: #ff474f; box-shadow: 0 12px 28px rgba(255, 71, 79, .25); }
.button-outline { color: #151416; background: #fff; border: 1px solid #d9d5d0; box-shadow: 0 5px 15px rgba(20, 18, 16, .06); }
.nav-cta { min-height: 44px; padding-inline: 20px; }
.button-row { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 13px; }

/* ---- Footer ---- */
.site-footer { padding: 70px 0 26px; color: #d8d9de; background: #1e1f24; }
.footer-main { display: grid; grid-template-columns: 1.5fr repeat(3, .7fr); gap: 65px; padding-bottom: 62px; }
.footer-brand > a { color: #fff; font-size: 27px; font-weight: 800; letter-spacing: -.04em; }
.footer-brand > a span { color: #ff474f; }
.footer-brand .footer-logo { display: inline-block; }
.footer-brand .footer-logo img { width: 132px; height: auto; display: block; }
.footer-brand p { max-width: 310px; margin: 25px 0 0; color: #999ba4; font-size: 14px; line-height: 1.75; }
.footer-column { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.footer-column a { padding-block: 6px; }
/* !important needed: riseax-global-typography.css sizes every h3 at 30px
   with !important; footer headings are labels, not document headings. */
.footer-column h3 { margin: 0 0 6px; color: #fff; text-transform: uppercase; letter-spacing: .13em; font-size: 12px !important; }
.footer-column a { color: #a6a7af; font-size: 13px; transition: color .2s; }
.footer-column a:hover { color: #fff; }
.footer-bottom { min-height: 72px; padding-top: 25px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #34353b; }
.footer-bottom p { margin: 0; color: #858790; font-size: 11px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 10px; color: #fff; background: #2d2f36; font-size: 17px; transition: background .2s, transform .2s; }
.footer-social a img { width: 18px; height: 18px; object-fit: contain; filter: brightness(0) invert(1); }
.footer-social a:hover { background: #ff474f; transform: translateY(-2px); }

/* ---- Sub-page primitives (about, services, contact, legal, auth) ---- */
.page-hero {
    padding: 72px 0 56px;
    background: linear-gradient(110deg, #fffdfa 0%, #fffdfa 70%, #fff8e9 100%);
    border-bottom: 1px solid #f0ece6;
}
.page-hero .container { max-width: 760px; text-align: center; }
.page-hero .overline { margin: 0 0 14px; color: #777277; text-transform: uppercase; letter-spacing: .18em; font-size: 9px; font-weight: 800; }
.page-hero h1 { margin: 0 0 14px; }
.page-hero .lede { max-width: 620px; margin: 0 auto; color: #68666a; font-size: 15px; }

.page-section { padding: 64px 0; }
.page-section.soft { background: #fbf8f3; }

/* Legal / long-form text */
.prose { max-width: 760px; margin-inline: auto; padding: 0 16px; }
.prose h2 { margin: 40px 0 12px; }
.prose h3 { margin: 32px 0 10px; }
.prose p, .prose li { color: #55535a; font-size: 15px; line-height: 1.75; }
.prose ul, .prose ol { padding-left: 22px; margin: 12px 0 20px; }
.prose li { margin-bottom: 8px; }
.prose a { color: #d53a42; font-weight: 600; }
.prose strong { color: #151416; }

/* Simple centered card (password reset, status pages) */
.shell-card-wrap { display: flex; justify-content: center; padding: 64px 16px 88px; }
.shell-card {
    width: 100%;
    max-width: 520px;
    padding: 34px 36px 30px;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(31, 37, 51, .08);
}
.shell-card h1 { margin: 0 0 10px; }
.shell-card .card-intro { margin: 0 0 24px; color: #6b7280; font-size: 15px; }
.shell-field { margin-bottom: 20px; }
.shell-field label { display: block; margin: 0 0 10px; color: #374151; font-size: 15px; font-weight: 700; }
.shell-field input {
    width: 100%;
    min-height: 56px;
    padding: 0 18px;
    border: 1px solid #e6eaf2;
    border-radius: 12px;
    background: #fff;
    color: #1f2533;
    font-size: 15px;
    box-sizing: border-box;
}
.shell-field input:focus { outline: none; border-color: #d53a42; box-shadow: 0 0 0 3px rgba(213, 58, 66, .12); }
.shell-submit {
    width: 100%;
    min-height: 56px;
    border: 0;
    border-radius: 14px;
    background: #d53a42;
    box-shadow: 0 16px 30px rgba(216, 63, 70, .28);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
}
.shell-card .card-footer-link { margin-top: 18px; text-align: center; font-size: 14px; color: #55535a; }
.shell-card .card-footer-link a { color: #d53a42; font-weight: 700; }
.shell-card .alert { padding: 12px 16px; margin-bottom: 16px; border-radius: 12px; font-size: 14px; }
.shell-card .alert-danger { background: #fdecec; color: #9c2b31; border: 1px solid #f5c8ca; }
.shell-card .alert-success { background: #eaf9ef; color: #14683a; border: 1px solid #bfe8cd; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .site-header { height: auto; min-height: 70px; }
    .nav-wrap { min-height: 70px; grid-template-columns: 1fr auto; }
    .nav-toggle { display: block; }
    .primary-nav, .account-nav { display: none; grid-column: 1 / -1; }
    .nav-open .primary-nav, .nav-open .account-nav { display: flex; flex-direction: column; align-items: flex-start; gap: 17px; padding: 5px 0 20px; }
    .nav-open .account-nav { padding-top: 0; }
    .footer-main { grid-template-columns: 1.4fr repeat(3, 1fr); gap: 30px; }
}

@media (max-width: 768px) {
    .container { padding-inline: 16px; }
    .button-row { flex-direction: column; align-items: center; }
    .button-row .button { width: 100%; max-width: 320px; }
    .page-hero { padding: 48px 0 40px; }
    .page-section { padding: 48px 0; }
    .shell-card { padding: 24px 18px; border-radius: 22px; }
    .footer-main { grid-template-columns: 1fr 1fr; gap: 40px 25px; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-bottom { gap: 20px; flex-direction: column; align-items: flex-start; }
}
