/* ═══════════════════════════════════════════
   LOKLU v5.0 — SHARED LIGHT PREMIUM THEME
   Orange palette — consistent across ALL app pages
   ═══════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Instrument+Serif:ital@1&family=Space+Mono:wght@400;700&display=swap');

*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}

:root {
    --bg: #ffffff;
    --bg-page: #fffbf5;
    --bg-card: #ffffff;
    --bg-card-hover: #fffaf5;
    --bg-elevated: #fff7ed;
    --border: rgba(0,0,0,0.06);
    --border-hover: rgba(255,120,40,0.25);
    --text: #1a1a2e;
    --text-2: #5a5a7a;
    --text-3: #9595aa;
    --accent: #ff7828;
    --accent-2: #ea580c;
    --accent-light: #fb923c;
    --accent-bg: rgba(255,120,40,0.06);
    --accent-bg-2: rgba(255,120,40,0.1);
    --cyan: #00b894;
    --cyan-bg: rgba(0,184,148,0.08);
    --pink: #e84393;
    --pink-bg: rgba(232,67,147,0.06);
    --amber: #f59e0b;
    --amber-bg: rgba(245,158,11,0.06);
    --blue: #0984e3;
    --blue-bg: rgba(9,132,227,0.06);
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 20px;
    --font: 'Inter', -apple-system, system-ui, sans-serif;
    --serif: 'Instrument Serif', Georgia, serif;
    --mono: 'Space Mono', monospace;
}

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg-page);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-2); }

/* ── NAVIGATION ─────────────────── */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    transition: all 0.3s ease;
    background: transparent;
}
.nav.scrolled {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: none;
    box-shadow: 0 1px 12px rgba(0,0,0,0.04);
}
.nav-inner {
    max-width: 1280px; margin: 0 auto; padding: 0 32px;
    display: flex; align-items: center; justify-content: space-between;
    height: 90px;
}
.nav-logo {
    font-weight: 800; font-size: 22px; letter-spacing: -0.5px;
    display: flex; align-items: center; color: var(--text);
    margin-left: -16px; margin-top: 20px; height: 90px; overflow: visible;
}
.nav-logo:hover { color: var(--text); }
.logo-accent { color: var(--accent); }
.logo-dot {
    width: 6px; height: 6px; background: var(--accent-2);
    border-radius: 50%; margin-left: 2px; display: inline-block;
}
.nav-links { display: flex; gap: 32px; }
.nav-links a {
    color: var(--text-2); font-size: 14px; font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-auth {
    color: var(--text-2); font-size: 14px; font-weight: 500;
    transition: color 0.2s;
}
.nav-auth:hover { color: var(--accent); }
.btn-nav {
    background: var(--accent); color: #fff !important; padding: 8px 20px;
    border-radius: 10px; font-size: 14px; font-weight: 600;
    transition: all 0.2s;
}
.btn-nav:hover { background: var(--accent-2); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(255,120,40,0.25); }
.nav-mobile-btn {
    display: none; background: none; border: none; cursor: pointer;
    color: var(--text); width: 28px; height: 28px;
}
.nav-mobile {
    display: none; flex-direction: column; gap: 4px; padding: 8px 24px 16px;
    background: rgba(255,255,255,0.95); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
    color: var(--text-2); padding: 10px 0; font-size: 15px; font-weight: 500;
    border-bottom: 1px solid var(--border);
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover { color: var(--accent); }

/* ── FOOTER ─────────────────────── */
.footer {
    background: var(--bg); border-top: 1px solid var(--border); padding: 64px 0 32px;
    margin-top: 80px;
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
    margin-bottom: 48px;
}
.footer-brand img { height: 180px !important; margin-top: 10px; margin-bottom: -60px; display: block; }
.footer-brand .nav-logo { height: auto; overflow: hidden; margin-top: 0; }
.footer-brand p { color: var(--text-2); font-size: 14px; line-height: 1.7; margin-top: 12px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col h4 { font-size: 13px; font-weight: 700; color: var(--text); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.footer-col a { color: var(--text-2); font-size: 14px; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 24px; border-top: 1px solid var(--border);
    font-size: 13px; color: var(--text-3);
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: var(--text-3); font-size: 13px; }
.footer-bottom-links a:hover { color: var(--text); }

/* ── COMMON BUTTONS ─────────────── */
.btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--accent); color: #fff; padding: 14px 28px;
    border-radius: 12px; font-size: 15px; font-weight: 600;
    border: none; cursor: pointer; transition: all 0.2s;
}
.btn-primary:hover { background: var(--accent-2); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(255,120,40,0.25); }

.btn-secondary {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--bg-card); color: var(--text); padding: 14px 28px;
    border-radius: 12px; font-size: 15px; font-weight: 600;
    border: 1px solid var(--border); cursor: pointer; transition: all 0.2s;
}
.btn-secondary:hover { border-color: var(--border-hover); background: var(--bg-card-hover); }

/* ── CARDS ──────────────────────── */
.card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 24px; transition: all 0.25s;
    box-shadow: var(--shadow-sm);
}
.card:hover { border-color: var(--border-hover); box-shadow: var(--shadow-md); }

/* ── SECTION HEADERS ────────────── */
.section { padding: 100px 0; }
.section-tag {
    font-family: var(--mono); font-size: 13px; color: var(--accent);
    margin-bottom: 12px; letter-spacing: 0.02em;
}
.section-title {
    font-size: clamp(28px, 4vw, 40px); font-weight: 800;
    letter-spacing: -0.03em; line-height: 1.15; color: var(--text);
}
.section-sub { font-size: 17px; color: var(--text-2); line-height: 1.6; margin-top: 12px; max-width: 600px; }

/* ── FORM ELEMENTS ──────────────── */
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="tel"],
select, textarea {
    width: 100%; padding: 12px 16px; font-family: var(--font); font-size: 15px;
    color: var(--text); background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-sm); outline: none; transition: all 0.2s;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-bg); }

label { display: block; font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 6px; }

/* ── UTILITIES ──────────────────── */
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-2); }
.text-small { font-size: 13px; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

/* ── RESPONSIVE ─────────────────── */
@media(max-width:768px) {
    .nav-links, .nav-right { display: none; }
    .nav-mobile-btn { display: block; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    .section { padding: 60px 0; }
}
@media(max-width:480px) {
    .footer-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════
   LOKLU v5.0 — COMPREHENSIVE MOBILE RESPONSIVE
   ═══════════════════════════════════════════ */

/* ── TABLET (max 1024px) ───────────────── */
@media (max-width: 1024px) {
    .container { padding: 0 24px; }
    .nav-inner { padding: 0 24px; }
    .nav-links { gap: 20px; }
    .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
    .section-title { font-size: clamp(24px, 3.5vw, 36px); }
}

/* ── MOBILE (max 768px) ────────────────── */
@media (max-width: 768px) {
    /* --- Nav --- */
    .nav-inner { height: 70px; padding: 0 16px; }
    .nav-logo { height: 70px; margin-top: 15px; }
    .nav-logo img { height: 200px; }
    .nav-links, .nav-right { display: none; }
    .nav-mobile-btn { display: block; }

    .nav-mobile {
        display: none; flex-direction: column; gap: 0;
        padding: 0 16px 12px;
        background: rgba(255,255,255,0.97);
        backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border);
    }
    .nav-mobile.open { display: flex; }
    .nav-mobile a {
        padding: 14px 0; font-size: 16px; font-weight: 500;
        color: var(--text-2); border-bottom: 1px solid var(--border);
        min-height: 48px; display: flex; align-items: center;
    }
    .nav-mobile a:last-child { border-bottom: none; }
    .nav-mobile a:hover, .nav-mobile a:active { color: var(--accent); }
    .nav-mobile .btn-nav {
        margin-top: 8px; text-align: center; justify-content: center;
        border-radius: 10px; padding: 14px 20px;
    }

    /* --- Container --- */
    .container { padding: 0 16px; }

    /* --- Typography --- */
    .section-title { font-size: 24px; }
    .section-sub { font-size: 15px; margin-top: 8px; }
    .section-tag { font-size: 12px; }

    /* --- Sections --- */
    .section { padding: 48px 0; }

    /* --- Cards --- */
    .card { padding: 20px; border-radius: 12px; }

    /* --- Buttons --- */
    .btn-primary, .btn-secondary {
        padding: 14px 24px; font-size: 15px; width: 100%;
        justify-content: center; border-radius: 12px;
        min-height: 48px;
    }
    .btn-nav { padding: 10px 16px; font-size: 13px; }

    /* --- Forms --- */
    input[type="text"], input[type="email"], input[type="password"],
    input[type="number"], input[type="tel"], select, textarea {
        padding: 14px 16px; font-size: 16px; /* 16px prevents iOS zoom */
        min-height: 48px; border-radius: 10px;
    }

    /* --- Footer --- */
    .footer { padding: 48px 0 24px; margin-top: 48px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-brand img { height: 120px !important; }
    .footer-brand p { font-size: 13px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    .footer-bottom-links { flex-wrap: wrap; justify-content: center; gap: 12px; }
}

/* ── SMALL MOBILE (max 480px) ──────────── */
@media (max-width: 480px) {
    .nav-inner { height: 60px; padding: 0 12px; }
    .nav-logo { height: 60px; margin-top: 10px; }
    .nav-logo img { height: 170px; }

    .container { padding: 0 12px; }

    .section-title { font-size: 22px; letter-spacing: -0.02em; }
    .section-sub { font-size: 14px; }
    .section { padding: 36px 0; }

    .card { padding: 16px; border-radius: 10px; }
    .btn-primary, .btn-secondary { padding: 12px 20px; font-size: 14px; }

    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer-col h4 { font-size: 12px; }
    .footer-col a { font-size: 13px; }
}

/* ── TOUCH HELPERS ─────────────────────── */
@media (hover: none) and (pointer: coarse) {
    /* Bigger tap targets on touch devices */
    .nav-mobile a { min-height: 52px; }
    .btn-primary, .btn-secondary, .btn-nav { min-height: 48px; }
    a, button { -webkit-tap-highlight-color: rgba(255,120,40,0.1); }
}
