/* ============================================
   TIARATOO.COM — Global Stylesheet
   Clean editorial design, SEO-optimized structure
   ============================================ */

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

:root {
    --bg: #0a0a0f;
    --bg-card: #12121a;
    --bg-card-hover: #1a1a26;
    --bg-surface: #16161f;
    --bg-subtle: #1e1e2a;
    --accent: #f0443c;
    --accent-soft: #ff6b64;
    --accent-muted: rgba(240, 68, 60, 0.15);
    --accent-border: rgba(240, 68, 60, 0.3);
    --gold: #f5c542;
    --green: #34d399;
    --text: #eeeef2;
    --text-secondary: #a0a0b4;
    --text-muted: #6b6b80;
    --border: rgba(255,255,255,0.07);
    --border-hover: rgba(255,255,255,0.14);
    --radius: 14px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --shadow: 0 8px 32px rgba(0,0,0,0.4);
    --max-width: 1100px;
    --nav-h: 64px;
    --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
    --font-serif: 'Libre Baskerville', Georgia, serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* ─── HEADER ─── */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(10,10,15,0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: var(--nav-h);
}

.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
    width: 36px; height: 36px; border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), #ff8a65);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 16px; color: #fff;
}
.logo-text { font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }
.logo-tag { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; }

.nav-desktop { display: flex; align-items: center; gap: 6px; }
.nav-desktop a {
    font-size: 13px; padding: 6px 12px; border-radius: 99px;
    color: var(--text-secondary); transition: all 0.2s;
}
.nav-desktop a:hover { color: var(--text); background: var(--accent-muted); }
.nav-desktop a.active { color: var(--text); background: var(--accent-muted); border: 1px solid var(--accent-border); }

.nav-cta {
    margin-left: 10px; padding: 8px 18px; border-radius: 99px;
    background: var(--accent); color: #fff; font-weight: 600;
    font-size: 13px; border: none; cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(240,68,60,0.4); }

.hamburger {
    display: none; width: 36px; height: 36px; border-radius: 8px;
    border: 1px solid var(--border); background: transparent;
    align-items: center; justify-content: center; cursor: pointer;
}
.hamburger span, .hamburger span::before, .hamburger span::after {
    display: block; width: 18px; height: 2px; background: var(--text);
    border-radius: 2px; position: relative; transition: 0.2s;
}
.hamburger span::before { content: ''; position: absolute; top: -6px; width: 18px; }
.hamburger span::after { content: ''; position: absolute; bottom: -6px; width: 14px; }

.mobile-nav {
    display: none; background: var(--bg-card);
    border-bottom: 1px solid var(--border); padding: 12px 20px;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
    display: block; padding: 8px 0; font-size: 14px;
    color: var(--text-secondary); border-bottom: 1px solid var(--border);
}
.mobile-nav a:last-child { border: none; }

@media (max-width: 768px) {
    .nav-desktop { display: none; }
    .hamburger { display: flex; }
}

/* ─── HERO (Homepage) ─── */
.hero {
    padding: 60px 0 40px;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(240,68,60,0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 100%, rgba(245,197,66,0.04) 0%, transparent 50%);
}
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 5px 14px; border-radius: 99px;
    background: var(--accent-muted); border: 1px solid var(--accent-border);
    font-size: 12px; color: var(--accent-soft); margin-bottom: 16px;
}
.hero-badge::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent); box-shadow: 0 0 8px var(--accent);
}
.hero h1 {
    font-family: var(--font-serif); font-size: clamp(28px, 4vw, 42px);
    line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 16px;
}
.hero h1 em { font-style: normal; color: var(--accent-soft); }
.hero-desc { font-size: 15px; color: var(--text-secondary); max-width: 500px; margin-bottom: 24px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.btn-main {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 24px; border-radius: 99px;
    background: linear-gradient(135deg, var(--accent), #d63030);
    border: 1px solid rgba(255,150,140,0.5);
    color: #fff; font-weight: 600; font-size: 14px;
    cursor: pointer; transition: all 0.2s;
    box-shadow: 0 12px 32px rgba(240,68,60,0.3);
}
.btn-main:hover { transform: translateY(-1px); box-shadow: 0 16px 40px rgba(240,68,60,0.45); }

.btn-outline {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 22px; border-radius: 99px;
    border: 1px solid var(--border-hover); background: transparent;
    color: var(--text-secondary); font-size: 13px; cursor: pointer;
    transition: all 0.2s;
}
.btn-outline:hover { border-color: var(--accent-border); color: var(--text); background: var(--accent-muted); }

.hero-visual {
    background: var(--bg-card); border-radius: var(--radius-lg);
    border: 1px solid var(--border); padding: 24px;
    box-shadow: var(--shadow);
}
.hero-stat { margin-bottom: 16px; }
.hero-stat-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 4px; }
.hero-stat-value { font-size: 28px; font-weight: 700; color: var(--gold); }
.hero-stat-sub { font-size: 12px; color: var(--text-secondary); }
.hero-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.hero-tag {
    padding: 4px 10px; border-radius: 6px; font-size: 11px;
    background: var(--bg-subtle); border: 1px solid var(--border);
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { order: -1; }
}

/* ─── SECTION ─── */
.section { padding: 48px 0; }
.section-label {
    font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em;
    color: var(--accent-soft); margin-bottom: 6px;
}
.section-title {
    font-family: var(--font-serif); font-size: clamp(22px, 3vw, 30px);
    line-height: 1.25; margin-bottom: 8px;
}
.section-desc { font-size: 14px; color: var(--text-secondary); max-width: 560px; margin-bottom: 28px; }

/* ─── ARTICLE CARDS (Homepage) ─── */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.article-card {
    background: var(--bg-card); border-radius: var(--radius);
    border: 1px solid var(--border); padding: 20px;
    transition: all 0.25s; position: relative; overflow: hidden;
}
.article-card:hover {
    border-color: var(--accent-border); transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}
.article-card-cat {
    font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--accent-soft); margin-bottom: 8px;
    padding: 3px 8px; background: var(--accent-muted); border-radius: 4px;
    display: inline-block;
}
.article-card h3 { font-size: 16px; margin-bottom: 8px; line-height: 1.35; }
.article-card p { font-size: 13px; color: var(--text-secondary); margin-bottom: 12px; }
.article-card-meta { font-size: 11px; color: var(--text-muted); }
.article-card-link {
    font-size: 13px; color: var(--accent-soft); font-weight: 500;
    display: inline-flex; align-items: center; gap: 4px;
}
.article-card-link::after { content: '→'; }

@media (max-width: 768px) { .article-grid { grid-template-columns: 1fr; } }

/* ─── ARTICLE PAGE ─── */
.article-page { padding: 40px 0 60px; }
.article-header { max-width: 720px; margin: 0 auto 32px; }
.article-header .breadcrumb {
    font-size: 12px; color: var(--text-muted); margin-bottom: 16px;
    display: flex; gap: 6px; align-items: center;
}
.article-header .breadcrumb a { color: var(--text-secondary); }
.article-header .breadcrumb a:hover { color: var(--accent-soft); }
.article-header h1 {
    font-family: var(--font-serif); font-size: clamp(26px, 4vw, 36px);
    line-height: 1.25; margin-bottom: 12px;
}
.article-header .meta { font-size: 13px; color: var(--text-muted); display: flex; gap: 16px; flex-wrap: wrap; }

.article-body {
    max-width: 720px; margin: 0 auto;
    font-size: 16px; line-height: 1.8; color: var(--text-secondary);
}
.article-body h2 {
    font-family: var(--font-serif); font-size: 22px; color: var(--text);
    margin: 36px 0 12px; padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}
.article-body h3 { font-size: 18px; color: var(--text); margin: 28px 0 10px; }
.article-body p { margin-bottom: 18px; }
.article-body ul, .article-body ol { margin: 0 0 18px 20px; }
.article-body li { margin-bottom: 8px; }
.article-body ol { list-style: decimal; }
.article-body ul { list-style: disc; }
.article-body strong { color: var(--text); font-weight: 600; }
.article-body a { color: var(--accent-soft); border-bottom: 1px solid var(--accent-border); }
.article-body a:hover { color: var(--accent); }
.article-body blockquote {
    margin: 24px 0; padding: 16px 20px;
    border-left: 3px solid var(--accent); background: var(--accent-muted);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic; color: var(--text);
}

.callout-box {
    background: var(--bg-card); border: 1px solid var(--accent-border);
    border-radius: var(--radius); padding: 20px; margin: 24px 0;
}
.callout-box h4 { font-size: 15px; color: var(--accent-soft); margin-bottom: 8px; }
.callout-box p { font-size: 14px; margin-bottom: 0; }

.article-cta-box {
    margin: 36px 0; padding: 24px; border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(240,68,60,0.1), rgba(245,197,66,0.05));
    border: 1px solid var(--accent-border); text-align: center;
}
.article-cta-box h3 { font-size: 18px; margin-bottom: 8px; color: var(--text); }
.article-cta-box p { font-size: 14px; color: var(--text-secondary); margin-bottom: 16px; }

/* Related articles */
.related-section { padding: 40px 0; border-top: 1px solid var(--border); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 768px) { .related-grid { grid-template-columns: 1fr; } }

/* ─── CTA BANNER ─── */
.cta-banner {
    margin: 40px 0; padding: 32px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--accent), #c0392b);
    border: 1px solid rgba(255,180,170,0.4);
    display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: center;
    box-shadow: 0 20px 60px rgba(240,68,60,0.3);
}
.cta-banner h2 { font-size: 22px; line-height: 1.3; color: #fff; }
.cta-banner p { font-size: 14px; color: rgba(255,255,255,0.8); margin-top: 6px; }
.cta-banner .btn-main {
    background: rgba(0,0,0,0.25); border-color: rgba(255,255,255,0.4);
    box-shadow: none;
}
.cta-banner .btn-main:hover { background: rgba(0,0,0,0.35); }
.cta-banner-note { font-size: 11px; color: rgba(255,255,255,0.6); margin-top: 8px; }
@media (max-width: 768px) { .cta-banner { grid-template-columns: 1fr; } }

/* ─── FOOTER ─── */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 32px 0; font-size: 12px; color: var(--text-muted);
}
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 24px; }
.footer-col h4 { font-size: 13px; color: var(--text); margin-bottom: 10px; font-weight: 600; }
.footer-col a { display: block; padding: 3px 0; color: var(--text-secondary); font-size: 13px; }
.footer-col a:hover { color: var(--accent-soft); }
.footer-bottom { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 11px; }
@media (max-width: 768px) { .footer-inner { grid-template-columns: 1fr; } }

/* ─── FAQ (Reusable) ─── */
.faq-list { max-width: 720px; }
.faq-item {
    border-bottom: 1px solid var(--border); overflow: hidden;
}
.faq-q {
    padding: 14px 0; cursor: pointer; font-size: 15px; font-weight: 500;
    display: flex; justify-content: space-between; align-items: center;
    color: var(--text);
}
.faq-q::after { content: '+'; font-size: 18px; color: var(--text-muted); transition: 0.2s; }
.faq-item.open .faq-q::after { content: '−'; color: var(--accent-soft); }
.faq-a {
    max-height: 0; overflow: hidden; transition: max-height 0.3s;
    font-size: 14px; color: var(--text-secondary); line-height: 1.7;
}
.faq-a-inner { padding: 0 0 14px; }
.faq-item.open .faq-a { max-height: 300px; }

/* ─── UTILITIES ─── */
.text-accent { color: var(--accent-soft); }
.text-gold { color: var(--gold); }
.text-green { color: var(--green); }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.text-center { text-align: center; }
.text-small { font-size: 12px; }
.text-muted { color: var(--text-muted); }

/* ─── REVEAL ANIMATION ─── */
.reveal {
    opacity: 0; transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

/* ─── LP GRIDS (Mobile Fix) ─── */
.lp-info-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.lp-steps-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 20px;
}
.lp-info-card, .lp-step-card {
    background: var(--bg-card); border-radius: var(--radius);
    border: 1px solid var(--border); padding: 20px;
}
.lp-step-card { padding: 16px; text-align: center; }
.lp-step-num {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--accent); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 14px; margin-bottom: 10px;
}
.lp-info-label {
    font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--accent-soft); margin-bottom: 8px;
}
.lp-info-title { font-size: 16px; font-weight: 600; margin-bottom: 6px; }

@media (max-width: 768px) {
    .lp-info-grid { grid-template-columns: 1fr; }
    .lp-steps-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .lp-steps-grid { grid-template-columns: 1fr; }
}

/* ─── POSTER GALLERY (LP) ─── */
.poster-gallery {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.poster-gallery img {
    width: 100%; border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}
.poster-gallery img:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 32px rgba(0,0,0,0.5);
    border-color: var(--accent-border);
}
@media (max-width: 768px) {
    .poster-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .poster-gallery { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; }
}
