/* ── Astungkara — Custom CSS ── */

/* Noise overlay for atmospheric texture */
.noise-overlay {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 250px;
    mix-blend-mode: overlay;
    opacity: 0.04;
}

/* ── Buttons ── */

.btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2.75rem;
    border: 1px solid rgba(201, 168, 76, 0.4);
    color: #c9a84c;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.btn-gold::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(201, 168, 76, 0.07);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.btn-gold:hover {
    color: #e8c96e;
    border-color: rgba(201, 168, 76, 0.65);
    box-shadow: 0 0 32px rgba(201, 168, 76, 0.12);
}

.btn-gold:hover::before {
    transform: scaleX(1);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(245, 240, 232, 0.5);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.btn-ghost:hover {
    color: rgba(245, 240, 232, 0.8);
    border-color: rgba(255, 255, 255, 0.18);
}

/* ── Cards ── */

.option-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.1rem 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.04);
    background: rgba(255, 255, 255, 0.015);
    text-decoration: none;
    transition: border-color 0.3s ease, background 0.3s ease;
    cursor: pointer;
}

.option-card:hover {
    border-color: rgba(201, 168, 76, 0.18);
    background: rgba(201, 168, 76, 0.03);
}

.consultation-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.75rem;
    transition: border-color 0.3s ease;
}

.consultation-card:hover {
    border-color: rgba(201, 168, 76, 0.15);
}

/* ── Form inputs ── */

.field {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #f5f0e8;
    padding: 0.875rem 1rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.25s ease, background 0.25s ease;
    -webkit-appearance: none;
    border-radius: 0;
}

.field::placeholder {
    color: rgba(245, 240, 232, 0.2);
}

.field:focus {
    border-color: rgba(201, 168, 76, 0.4);
    background: rgba(255, 255, 255, 0.05);
}

.field-label {
    display: block;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(245, 240, 232, 0.35);
    margin-bottom: 0.5rem;
}

/* ── Google button ── */

.google-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 1.1rem 0.55rem 0.65rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 999px;
    color: rgba(245, 240, 232, 0.45);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease, transform 0.18s ease;
    cursor: pointer;
}

.google-btn .g-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.google-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.20);
    color: rgba(245, 240, 232, 0.75);
    transform: translateY(-1px);
}

.or-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.25rem 0;
}

.or-divider::before,
.or-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
}

.or-divider span {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.6rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: rgba(245, 240, 232, 0.18);
}

/* ── Section titles (consultation) ── */

.section-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.6rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: rgba(201, 168, 76, 0.5);
    margin-bottom: 0.75rem;
}

.section-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    font-style: italic;
    font-weight: 300;
    color: rgba(245, 240, 232, 0.75);
    line-height: 1.8;
}

/* ── Toast ── */

.toast {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    padding: 0.75rem 1.5rem;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8rem;
    color: rgba(245, 240, 232, 0.65);
    white-space: nowrap;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast.success { border-color: rgba(90, 122, 58, 0.4); color: #7aaa50; }
.toast.error   { border-color: rgba(153, 27, 27, 0.4); color: #f87171; }

/* ── Loading state ── */

.loading-dots::after {
    content: '';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%   { content: ''; }
    25%  { content: '.'; }
    50%  { content: '..'; }
    75%  { content: '...'; }
}

/* ── Divider ── */

.divider-gold {
    width: 2rem;
    height: 1px;
    background: rgba(201, 168, 76, 0.3);
    margin: 0 auto;
}

/* ── Scrollbar ── */

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: #080808; }
::-webkit-scrollbar-thumb { background: rgba(201, 168, 76, 0.25); border-radius: 2px; }

/* ── Safe area (notch support) ── */

.pb-safe { padding-bottom: env(safe-area-inset-bottom, 1.5rem); }

/* ── Bottom navigation ── */

#bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: stretch;
    background: rgba(8, 8, 8, 0.96);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    height: calc(60px + env(safe-area-inset-bottom, 0px));
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-decoration: none;
    color: rgba(245, 240, 232, 0.22);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.55rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: color 0.2s ease;
    padding: 0 0.25rem;
    -webkit-tap-highlight-color: transparent;
}

.nav-item:hover,
.nav-item.nav-active { color: rgba(201, 168, 76, 0.8); }

.nav-featured { color: rgba(245, 240, 232, 0.32); position: relative; }

.nav-featured::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 2.5rem;
    height: 1px;
    background: rgba(201, 168, 76, 0.25);
}

.nav-featured:hover,
.nav-featured.nav-active { color: #c9a84c; }

/* Push page content above the fixed nav */
.has-bottom-nav { padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)); }

/* ── Reduced motion ── */

@media (prefers-reduced-motion: reduce) {
    .animate-fade-up,
    .animate-float,
    .animate-glow,
    .animate-breathe {
        animation: none !important;
        opacity: 1 !important;
    }

    .btn-gold,
    .btn-gold::before,
    .option-card,
    .field {
        transition: none !important;
    }
}
