/* ═══════════════════════════════════════════════════════════
   ORANA STAY — Global Stylesheet
   app.css  ·  loaded once via index.html
═══════════════════════════════════════════════════════════ */

/* ── FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── DESIGN TOKENS ── */
:root {
    --ink:          #0f1923;
    --ink-soft:     #2d3a45;
    --surface:      #f7f4ef;
    --white:        #ffffff;
    --accent:       #e8601c;
    --accent-warm:  #f47c3c;
    --teal:         #1a6b6b;
    --teal-light:   #e8f4f4;
    --muted:        #8a9aa8;
    --border:       #e2dcd4;
    --card-bg:      #ffffff;
    --serif:        'Playfair Display', Georgia, serif;
    --sans:         'DM Sans', system-ui, sans-serif;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--sans);
    background: var(--surface);
    color: var(--ink);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ── BLAZOR LOADING ── */
.loading-progress {
    position: relative; display: block;
    width: 8rem; height: 8rem;
    margin: 20vh auto 1rem auto;
}
.loading-progress circle {
    fill: none; stroke: #e0e0e0;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}
.loading-progress circle:last-child {
    stroke: var(--accent);
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}
.loading-progress-text {
    position: absolute; text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}
.loading-progress-text::after { content: var(--blazor-load-percentage-text, "Loading"); }

#blazor-error-ui {
    background: lightyellow; bottom: 0;
    box-shadow: 0 -1px 2px rgba(0,0,0,.2);
    display: none; left: 0;
    padding: 0.6rem 1.25rem 0.7rem; position: fixed; width: 100%; z-index: 1000;
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 0.75rem; top: 0.5rem; }

/* ── VALIDATION ── */
.valid.modified:not([type=checkbox]) { outline: 1px solid #26b050; }
.invalid { outline: 1px solid red; }
.validation-message { color: red; }

/* ═══════════════════════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════════════════════ */
.os-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(247,244,239,0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0 48px; height: 68px;
    display: flex; align-items: center; justify-content: space-between;
    font-family: var(--sans);
}

.os-nav__logo {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none; flex-shrink: 0;
}
.os-nav__logo-mark {
    width: 32px; height: 32px; background: var(--accent);
    border-radius: 8px; display: flex; align-items: center; justify-content: center;
    color: white; font-family: var(--serif); font-weight: 700; font-size: 16px; line-height: 1;
}
.os-nav__logo-text {
    font-family: var(--serif); font-size: 18px; font-weight: 600;
    color: var(--ink); letter-spacing: -0.3px;
}

.os-nav__links {
    display: flex; align-items: center; gap: 36px;
    list-style: none; margin: 0; padding: 0;
}
.os-nav__links a {
    text-decoration: none; color: var(--ink-soft);
    font-size: 14px; font-weight: 500;
    transition: color 0.2s; white-space: nowrap;
}
.os-nav__links a:hover,
.os-nav__links a.active { color: var(--accent); }

.os-nav__actions { display: flex; gap: 12px; align-items: center; flex-shrink: 0; }

.os-nav__btn-ghost {
    background: none; border: 1.5px solid var(--border); color: var(--ink);
    padding: 8px 20px; border-radius: 6px; font-size: 14px; font-weight: 500;
    cursor: pointer; text-decoration: none; transition: all 0.2s;
    font-family: var(--sans); white-space: nowrap;
}
.os-nav__btn-ghost:hover { border-color: var(--ink); background: var(--ink); color: white; }

.os-nav__btn-primary {
    background: var(--accent); border: 1.5px solid var(--accent); color: white;
    padding: 8px 22px; border-radius: 6px; font-size: 14px; font-weight: 600;
    cursor: pointer; text-decoration: none; transition: all 0.2s;
    font-family: var(--sans); white-space: nowrap;
}
.os-nav__btn-primary:hover { background: #d05518; border-color: #d05518; transform: translateY(-1px); }

/* Hamburger */
.os-nav__hamburger {
    display: none; flex-direction: column; gap: 5px;
    cursor: pointer; padding: 4px; background: none; border: none;
}
.os-nav__hamburger span {
    display: block; width: 22px; height: 2px;
    background: var(--ink); border-radius: 2px; transition: all 0.25s;
}
.os-nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.os-nav__hamburger.open span:nth-child(2) { opacity: 0; }
.os-nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.os-nav__drawer {
    display: none; position: fixed;
    top: 68px; left: 0; right: 0;
    background: rgba(247,244,239,0.99);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 24px 32px 32px;
    flex-direction: column; gap: 4px;
    z-index: 99;
}
.os-nav__drawer.open { display: flex; }

.os-nav__drawer a {
    text-decoration: none; color: var(--ink-soft);
    font-size: 16px; font-weight: 500;
    padding: 12px 0; border-bottom: 1px solid var(--border);
    transition: color 0.2s; font-family: var(--sans);
}
.os-nav__drawer a:last-of-type { border-bottom: none; }
.os-nav__drawer a:hover,
.os-nav__drawer a.active { color: var(--accent); }

.os-nav__drawer-actions {
    display: flex; gap: 12px; margin-top: 20px;
}
.os-nav__drawer-actions .os-nav__btn-ghost,
.os-nav__drawer-actions .os-nav__btn-primary { flex: 1; text-align: center; }

@media (max-width: 1024px) {
    .os-nav { padding: 0 24px; }
    .os-nav__links { display: none; }
    .os-nav__actions { display: none; }
    .os-nav__hamburger { display: flex; }
}
@media (max-width: 480px) {
    .os-nav { padding: 0 20px; }
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
.os-footer {
    background: var(--ink);
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 64px 48px 40px;
    font-family: var(--sans);
}
.os-footer__inner { max-width: 1280px; margin: 0 auto; }

.os-footer__top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px; margin-bottom: 60px;
}

/* Brand column */
.os-footer__brand-logo {
    display: inline-flex; align-items: center; gap: 10px;
    text-decoration: none; margin-bottom: 16px;
}
.os-footer__brand-mark {
    width: 32px; height: 32px; background: var(--accent);
    border-radius: 8px; display: flex; align-items: center; justify-content: center;
    color: white; font-family: var(--serif); font-weight: 700; font-size: 16px; line-height: 1;
}
.os-footer__brand-name {
    font-family: var(--serif); font-size: 18px; font-weight: 600;
    color: white; letter-spacing: -0.3px;
}
.os-footer__brand-desc {
    font-size: 14px; color: rgba(255,255,255,0.4); line-height: 1.65;
    max-width: 280px; font-weight: 300; margin-bottom: 24px;
}
.os-footer__social { display: flex; gap: 10px; }
.os-footer__social a {
    width: 34px; height: 34px;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px; display: flex; align-items: center; justify-content: center;
    text-decoration: none; font-size: 14px;
    transition: background 0.2s, border-color 0.2s;
}
.os-footer__social a:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.18); }

/* Nav columns */
.os-footer__col-title {
    font-size: 11px; text-transform: uppercase; letter-spacing: 1px;
    color: rgba(255,255,255,0.3); font-weight: 700; margin-bottom: 16px;
}
.os-footer__col-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.os-footer__col-links a {
    text-decoration: none; color: rgba(255,255,255,0.55);
    font-size: 14px; transition: color 0.2s; display: inline-block;
}
.os-footer__col-links a:hover { color: white; }

/* Bottom bar */
.os-footer__bottom {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.06);
    font-size: 13px; color: rgba(255,255,255,0.25); flex-wrap: wrap; gap: 12px;
}
.os-footer__bottom-links { display: flex; gap: 20px; }
.os-footer__bottom-links a {
    text-decoration: none; color: rgba(255,255,255,0.25); transition: color 0.2s;
}
.os-footer__bottom-links a:hover { color: rgba(255,255,255,0.6); }

@media (max-width: 1024px) {
    .os-footer__top { grid-template-columns: 1fr 1fr; gap: 40px; }
    .os-footer { padding: 56px 32px 36px; }
}
@media (max-width: 640px) {
    .os-footer__top { grid-template-columns: 1fr; gap: 32px; }
    .os-footer { padding: 48px 24px 32px; }
    .os-footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ═══════════════════════════════════════════════════════════
   SHARED PAGE UTILITIES
═══════════════════════════════════════════════════════════ */

/* Nav spacer — pushes page content below fixed nav */
.nav-spacer { height: 68px; }

/* Shared hero block used by Features, HowItWorks */
.page-hero {
    padding: 80px 48px 72px;
    max-width: 1280px; margin: 0 auto;
    text-align: center;
}
.hero-label {
    font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px;
    color: var(--accent); font-weight: 700; margin-bottom: 16px;
}
.page-hero h1 {
    font-family: var(--serif);
    font-size: clamp(40px, 5.5vw, 68px);
    font-weight: 700; line-height: 1.08; letter-spacing: -2px;
    color: var(--ink); margin-bottom: 22px;
}
.page-hero h1 em { font-style: normal; color: var(--accent); }
.hero-desc {
    font-size: 18px; color: var(--ink-soft); line-height: 1.65;
    font-weight: 300; max-width: 560px; margin: 0 auto 40px;
}
.hero-ctas {
    display: flex; gap: 14px; justify-content: center;
    align-items: center; flex-wrap: wrap;
}

/* Shared buttons */
.btn-primary {
    background: var(--accent); color: white;
    padding: 13px 30px; border-radius: 8px; font-size: 15px; font-weight: 600;
    text-decoration: none; border: none; cursor: pointer; font-family: var(--sans);
    transition: all 0.2s; display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { background: #d05518; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232,96,28,0.28); }

.btn-ghost {
    background: white; color: var(--ink);
    padding: 13px 30px; border-radius: 8px; font-size: 15px; font-weight: 500;
    text-decoration: none; border: 1.5px solid var(--border); cursor: pointer;
    font-family: var(--sans); transition: all 0.2s;
}
.btn-ghost:hover { border-color: var(--ink); }

@media (max-width: 768px) {
    .page-hero { padding: 64px 24px 48px; }
    .page-hero h1 { letter-spacing: -1px; }
    .hero-desc { font-size: 16px; }
}
