/* Treasure Infinity Global — main stylesheet (plain CSS, no build step) */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --navy-950: #05070C;
  --navy-900: #0B0F1A;
  --navy-800: #0F1420;
  --navy-700: #161D2E;
  --gold-300: #E6CB94;
  --gold-400: #D4AF6A;
  --gold-500: #C39A4F;
  --gold-600: #B8923F;
  --ivory-50: #F4F2EC;
  --ivory-200: #DAD6C9;
  --max-width: 1280px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  background-color: var(--navy-950);
  color: var(--ivory-50);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  max-width: 100vw;
}

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

h1, h2, h3, .font-display {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  margin: 0;
}

a { color: inherit; text-decoration: none; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold-400);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ── Layout helpers ── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 48px 0; }
.section--darker { background: var(--navy-900); }
@media (min-width: 640px) { .section { padding: 64px 0; } }
@media (min-width: 1024px) { .section { padding: 80px 0; } }

.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: 30px; }
@media (min-width: 640px) { .section-header h2 { font-size: 36px; } }

/* ── Star divider (signature brand element) ── */
.star-divider { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--gold-500); }
.star-divider::before, .star-divider::after { content: ""; height: 1px; width: 40px; background: var(--gold-600); opacity: 0.6; }
.star-divider .eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--ivory-200); }

/* ── Header / nav ── */
.site-header { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid rgba(255,255,255,0.05); background: rgba(5,7,12,0.9); backdrop-filter: blur(8px); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 40px; height: 40px; border-radius: 4px; }
.brand span { font-family: 'Cormorant Garamond', serif; font-size: 18px; letter-spacing: 0.02em; display: none; }
@media (min-width: 640px) { .brand span { display: inline; } }

nav.primary-nav { display: none; gap: 24px; align-items: center; }
@media (min-width: 1024px) { nav.primary-nav { display: flex; } }
nav.primary-nav a { font-size: 14px; color: var(--ivory-200); transition: color .15s; }
nav.primary-nav a:hover { color: var(--gold-400); }

.menu-toggle { display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(184,146,63,0.4); border-radius: 6px; padding: 8px; background: transparent; color: var(--ivory-50); cursor: pointer; }
@media (min-width: 1024px) { .menu-toggle { display: none; } }

.mobile-nav { display: none; border-top: 1px solid rgba(255,255,255,0.05); background: var(--navy-950); padding: 16px 24px; }
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.mobile-nav a { font-size: 14px; color: var(--ivory-200); }
@media (min-width: 1024px) { .mobile-nav { display: none !important; } }

/* ── Footer ── */
.site-footer { border-top: 1px solid rgba(255,255,255,0.05); background: var(--navy-900); }
.footer-grid { display: grid; gap: 40px; padding: 48px 0; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer-grid h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--gold-500); margin-bottom: 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-grid a { font-size: 14px; color: var(--ivory-200); }
.footer-grid a:hover { color: var(--gold-400); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); padding: 24px 0; font-size: 12px; color: rgba(218,214,201,0.6); }

/* ── Hero ── */
.hero { position: relative; overflow: hidden; background: var(--navy-950); padding: 64px 0; text-align: center; }
@media (min-width: 640px) { .hero { padding: 96px 0; } }
@media (min-width: 1024px) { .hero { padding: 112px 0; } }
.hero h1 { font-size: 40px; line-height: 1.15; }
@media (min-width: 640px) { .hero h1 { font-size: 60px; } }
@media (min-width: 1024px) { .hero h1 { font-size: 72px; } }
.hero p { max-width: 640px; margin: 24px auto 0; font-size: 18px; color: var(--ivory-200); }
.hero .cta-row { margin-top: 40px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 0 16px; }
@media (min-width: 640px) { .hero .cta-row { flex-direction: row; padding: 0; } }

.btn { display: inline-block; border-radius: 6px; padding: 12px 28px; font-size: 14px; font-weight: 500; cursor: pointer; text-align: center; width: 100%; }
@media (min-width: 640px) { .btn { width: auto; } }
.btn-primary { background: var(--gold-500); color: var(--navy-950); border: none; }
.btn-primary:hover { background: var(--gold-400); }
.btn-outline { background: transparent; color: var(--ivory-50); border: 1px solid rgba(184,146,63,0.5); }
.btn-outline:hover { border-color: var(--gold-400); }

/* ── Cards / grids ── */
.grid { display: grid; gap: 32px; }
.grid-2 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card { border: 1px solid rgba(184,146,63,0.2); background: var(--navy-800); border-radius: 12px; padding: 24px; }
.card:hover { border-color: rgba(212,175,106,0.4); }

.avatar { border-radius: 50%; overflow: hidden; margin: 0 auto; width: 160px; height: 160px; }
@media (min-width: 640px) { .avatar { width: 288px; height: 288px; } }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.text-center { text-align: center; }
.muted { color: rgba(244,242,236,0.7); }
.gold { color: var(--gold-400); }

/* ── Forms ── */
.field { margin-bottom: 20px; text-align: left; }
.field label { display: block; font-size: 14px; color: var(--ivory-200); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; border-radius: 6px; border: 1px solid rgba(255,255,255,0.1);
  background: var(--navy-800); color: var(--ivory-50); padding: 12px 16px; font-size: 16px; font-family: inherit;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--gold-400); outline: none; }
.form-error { color: #f87171; font-size: 14px; margin-top: 8px; }
.form-success { border: 1px solid rgba(184,146,63,0.3); background: var(--navy-800); border-radius: 12px; padding: 32px; text-align: center; }

/* ── Floating actions ── */
.floating-actions { position: fixed; bottom: 24px; right: 24px; z-index: 50; display: flex; flex-direction: column; gap: 12px; }
.floating-actions a { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0,0,0,0.3); transition: transform .15s; }
.floating-actions a:hover { transform: scale(1.05); }
.fab-whatsapp { background: #25D366; }
.fab-telegram { background: #229ED9; }

/* ── Accordion (FAQ) ── */
.accordion-item { border-bottom: 1px solid rgba(255,255,255,0.05); }
.accordion-trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; background: none; border: none; color: var(--ivory-50); font-size: 16px; text-align: left; cursor: pointer; font-family: inherit; }
.accordion-panel { display: none; padding-bottom: 20px; font-size: 14px; color: rgba(244,242,236,0.8); line-height: 1.7; }
.accordion-item.open .accordion-panel { display: block; }
.accordion-icon { transition: transform .15s; }
.accordion-item.open .accordion-icon { transform: rotate(180deg); }

/* ── Draft notice (legal pages) ── */
.draft-notice { margin: 0 auto 32px; max-width: 720px; border: 1px solid rgba(184,146,63,0.4); background: rgba(195,154,79,0.1); border-radius: 6px; padding: 16px 20px; font-size: 14px; color: var(--gold-300); }

.prose { max-width: 720px; margin: 0 auto; line-height: 1.7; }
.prose h2 { font-size: 22px; margin-top: 32px; margin-bottom: 12px; font-family: 'Inter', sans-serif; font-weight: 500; }
.prose p { color: var(--ivory-200); margin-bottom: 12px; }

table.admin-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
table.admin-table th { border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 12px; text-transform: uppercase; font-size: 12px; letter-spacing: 0.05em; color: rgba(218,214,201,0.6); }
table.admin-table td { border-bottom: 1px solid rgba(255,255,255,0.05); padding: 12px 0; }
