/* ============================================
   COMMON.CSS — Mobile-Only / H5 Web App UI
   Fixed Mobile-Responsive Viewport (Even on Laptops/Desktops)
   Palette: Warm Golden Amber, Soft Ivory/Cream, Obsidian Charcoal
   Fonts: Outfit (Headings) + Plus Jakarta Sans (Body)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&display=swap');

:root {
    /* Color Palette */
    --primary-color: #d89020;
    --primary-hover: #c47f15;
    --primary-dark: #ad6d0d;
    --primary-light: #fdf6ec;
    --primary-gradient: linear-gradient(135deg, #e5a32b 0%, #c47f15 100%);
    --primary-glow: rgba(216, 144, 32, 0.35);
    
    --secondary-color: #2b3a30;
    --secondary-light: #3e5245;
    --accent-gold: #f59e0b;
    --accent-amber: #e69c24;

    /* Backgrounds */
    --bg-body: #fbf8f3;
    --bg-card: #ffffff;
    --bg-surface: #ffffff;
    --bg-card-warm: #f6f1e7;
    --bg-warm-alt: #f3ede2;
    --bg-highlight-card: #e4a532;
    --bg-dark: #131714;
    --bg-dark-surface: #1a201c;
    --bg-dark-card: #202722;
    --bg-glass-dark: rgba(19, 23, 20, 0.94);

    /* Text Colors */
    --text-main: #1e2420;
    --text-muted: #6b756e;
    --text-light: #8e9a91;
    --text-white: #ffffff;
    --text-dark: #141815;

    /* Borders & Accents */
    --border-color: #e9e1d5;
    --border-subtle: #efe8dc;
    --border-warm: rgba(216, 144, 32, 0.28);
    --border-dark: rgba(255, 255, 255, 0.1);

    /* Shadows & Transitions */
    --shadow-xs: 0 2px 8px rgba(35, 25, 10, 0.04);
    --shadow-sm: 0 6px 18px rgba(35, 25, 10, 0.06);
    --shadow-md: 0 12px 32px rgba(35, 25, 10, 0.08);
    --shadow-lg: 0 22px 50px rgba(35, 25, 10, 0.12);
    --shadow-glow: 0 10px 30px rgba(216, 144, 32, 0.25);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-pill: 999px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --header-height: 62px;
    --mobile-width: 480px;
}

/* ── Reset & Base ── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 15px;
    background-color: #0c0f0d;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-main);
    background-color: #0d110e;
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(216, 144, 32, 0.09) 0%, transparent 40%),
        radial-gradient(circle at 85% 85%, rgba(216, 144, 32, 0.07) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(26, 34, 28, 0.5) 0%, transparent 70%);
    background-attachment: fixed;
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

body.no-scroll {
    overflow: hidden;
}

/* ── Centered Mobile Viewport Frame ── */
.mobile-app-wrapper {
    width: 100%;
    max-width: var(--mobile-width);
    min-height: 100vh;
    background-color: var(--bg-body);
    position: relative;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(216, 144, 32, 0.2);
    overflow-x: hidden;
    padding-bottom: 64px; /* Space for sticky bottom bar */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ── Mobile Container ── */
.container {
    width: 100%;
    padding: 0 1.15rem;
    margin: 0 auto;
}

/* ── Custom Scrollbar ── */
::-webkit-scrollbar {
    width: 5px;
}
::-webkit-scrollbar-track {
    background: #171d18;
}
::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

/* ── Mobile Buttons ── */
.btn-primary-pill,
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--primary-gradient);
    color: #ffffff !important;
    font-family: 'Outfit', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    padding: 0.75rem 1.45rem;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(216, 144, 32, 0.32);
    transition: var(--transition);
    text-align: center;
}

.btn-primary-pill:active,
.btn-primary:active {
    transform: scale(0.98);
}

.btn-outline-pill,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-main) !important;
    font-family: 'Outfit', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    padding: 0.75rem 1.45rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-color);
    cursor: pointer;
    box-shadow: var(--shadow-xs);
    transition: var(--transition);
    text-align: center;
}

.btn-outline-pill:active,
.btn-secondary:active {
    transform: scale(0.98);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--primary-color);
    padding: 0.45rem 0.65rem;
    border-radius: var(--radius-pill);
    transition: var(--transition);
}

.btn-sm {
    padding: 0.45rem 1rem !important;
    font-size: 0.82rem !important;
}

.btn-full {
    width: 100% !important;
}

/* ── Badges & Eyebrows ── */
.badge-pill,
.section-prefix {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--primary-light);
    color: var(--primary-color);
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(216, 144, 32, 0.25);
    margin-bottom: 0.65rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.25;
    margin-bottom: 0.85rem;
}

.section-title--center,
.section-intro--center {
    text-align: center;
}

.section-header-center {
    text-align: center;
    margin: 0 auto 2.5rem;
}

.section-lead {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ── MOBILE HEADER (FIXED TOP, ALWAYS MOBILE) ── */
#main-header,
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 100%;
    max-width: var(--mobile-width);
    height: var(--header-height);
    z-index: 1000;
    display: flex;
    align-items: center;
    background: rgba(19, 23, 20, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(216, 144, 32, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.header-container {
    width: 100%;
    padding: 0 1.15rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 36px;
    width: auto;
    filter: drop-shadow(0 2px 6px rgba(216, 144, 32, 0.3));
}

/* Hamburger toggle is ALWAYS visible */
.mobile-menu-toggle {
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2.5px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* Desktop nav is permanently hidden from top bar */
.header-auth {
    display: none !important;
}

/* ── MOBILE NAV DRAWER (ALWAYS MOBILE) ── */
.nav-list {
    position: fixed;
    top: 0;
    right: max(0px, calc(50vw - (var(--mobile-width) / 2) - 280px));
    width: 280px;
    height: 100vh;
    background: #171d18;
    border-left: 1px solid rgba(216, 144, 32, 0.25);
    padding: 1.25rem 1.25rem 2rem;
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.6);
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    overflow-y: auto;
    visibility: hidden;
}

.nav-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.85rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-drawer-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.nav-close-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.nav-close-btn:hover {
    background: rgba(216, 144, 32, 0.25);
    border-color: rgba(216, 144, 32, 0.45);
    color: #f7ce68;
    transform: rotate(90deg);
}

.nav-list.active {
    right: max(0px, calc(50vw - (var(--mobile-width) / 2)));
    visibility: visible;
}

.nav-list ul {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.nav-list a {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 1rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.98rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: var(--transition);
}

.nav-list a:hover {
    color: #ffffff;
    background: rgba(216, 144, 32, 0.18);
    border-color: rgba(216, 144, 32, 0.3);
}

.nav-drawer-cta {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 100%;
    max-width: var(--mobile-width);
    height: 100vh;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 998;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ── Content Sections Base ── */
.content-section {
    padding: 3.75rem 0;
    position: relative;
}

.content-section--warm {
    background-color: var(--bg-warm-alt);
}

.content-section--white {
    background-color: #ffffff;
}

/* ── MOBILE FOOTER (ALWAYS 1-COL MOBILE) ── */
#main-footer,
footer {
    background-color: var(--bg-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 3.5rem 0 2rem;
    border-top: 1px solid rgba(216, 144, 32, 0.2);
    position: relative;
}

.footer-top {
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
    margin-bottom: 2.5rem;
}

.footer-brand .footer-logo img {
    height: 38px;
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: 0.88rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 1.25rem;
}

.footer-socials {
    display: flex;
    gap: 0.65rem;
}

.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--primary-color);
    font-size: 0.95rem;
    border: 1px solid rgba(216, 144, 32, 0.2);
    transition: var(--transition);
}

.footer-col h4,
.footer-nav h4,
.footer-contact h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.45rem;
}

.footer-col h4::after,
.footer-nav h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
}

.footer-nav ul,
.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.footer-contact li {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    line-height: 1.45;
}

.footer-contact i {
    color: var(--primary-color);
    font-size: 1rem;
    margin-top: 2px;
}

.footer-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.footer-gallery-item {
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(216, 144, 32, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.footer-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.65rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.55);
}

.footer-bottom a {
    color: var(--primary-color);
}

/* ── STICKY MOBILE BOTTOM BAR (ALWAYS VISIBLE) ── */
.mobile-bottom-bar {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 100%;
    max-width: var(--mobile-width);
    height: 60px;
    background: rgba(19, 23, 20, 0.98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(216, 144, 32, 0.25);
    z-index: 1005;
    padding: 0 0.85rem;
    align-items: center;
    gap: 0.65rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

.mobile-bottom-bar a {
    flex: 1;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.88rem;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.mobile-bottom-bar .btn-login {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(216, 144, 32, 0.3);
}

.mobile-bottom-bar .btn-register {
    background: var(--primary-gradient);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(216, 144, 32, 0.35);
}
