/* =========================================================
   Tulqueva — Terracotta Fields template (unified)
   Warm cream base, deep-forest bands, terracotta accent, Fraunces serif
   Covers homepage + inner-page class systems
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --primary-color: #d1603d;
    --primary-dark: #b34a2a;
    --secondary-color: #2f3d2f;
    --accent-color: #d1603d;
    --highlight-color: #e08a4a;
    --bg-color: #faf4ea;
    --surface: #fffdf9;
    --card-bg: #fffdf9;
    --text-color: #2a241d;
    --text-muted: #6f6558;
    --border-color: #ece2d2;
    --border-strong: rgba(209, 96, 61, 0.4);
    --font-primary: 'Fraunces', Georgia, serif;
    --font-secondary: 'Inter', system-ui, sans-serif;
    --max-width: 1180px;
    --section-padding: 66px 0;
    --card-padding: 26px;
    --radius: 14px;
    --radius-sm: 10px;
    --transition: all 0.25s ease;
    --grad: linear-gradient(120deg, #e08a4a 0%, #d1603d 100%);
    --shadow: 0 22px 46px -24px rgba(74, 56, 38, 0.32);
    --shadow-sm: 0 10px 26px -16px rgba(74, 56, 38, 0.24);
    --nav-h: 72px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body, body.dark-theme {
    font-family: var(--font-secondary);
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-primary); line-height: 1.15; font-weight: 600; letter-spacing: -0.01em; color: var(--text-color); }
a { color: var(--primary-dark); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-color); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
::selection { background: rgba(209,96,61,0.22); color: var(--secondary-color); }

::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: #efe6d6; }
::-webkit-scrollbar-thumb { background: var(--primary-color); border-radius: 20px; border: 3px solid #efe6d6; }

/* =========================================================
   HEADER
   ========================================================= */
header, .sticky-header {
    position: sticky; top: 0; z-index: 1000; height: var(--nav-h);
    display: flex; align-items: center;
    background: rgba(250, 244, 234, 0.88);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-color);
}
header .container, .sticky-header .container, .header-container {
    display: flex; align-items: center; justify-content: space-between; gap: 18px; width: 100%;
    max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
}
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo-icon { height: 36px; width: auto; }
.logo-text { font-family: var(--font-primary); font-weight: 700; font-size: 1.4rem; letter-spacing: -0.01em; color: var(--secondary-color); }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; background: var(--secondary-color); color: #f6f1e6; text-align: center; padding: 78px 0 70px; overflow: hidden; }
.hero::before { content: ""; position: absolute; top: -130px; left: 50%; transform: translateX(-50%); width: 660px; height: 360px; background: radial-gradient(circle, rgba(209,96,61,0.4), transparent 65%); filter: blur(20px); }
.hero .container { position: relative; z-index: 1; max-width: 900px; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 600; color: #fbf6ec; margin-bottom: 20px; }
.hero h1::after { content: ""; display: block; width: 88px; height: 4px; margin: 22px auto 0; background: var(--grad); border-radius: 4px; }
.hero p { color: #c9c3b2; font-size: clamp(1rem, 1.6vw, 1.16rem); max-width: 720px; margin: 0 auto; }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn-primary, .btn, .btn-secondary, .btn-highlight {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--font-secondary); font-weight: 700; font-size: 0.95rem;
    padding: 13px 26px; border-radius: 10px; cursor: pointer; border: 1px solid transparent; transition: var(--transition); text-align: center;
}
.btn-primary, .btn.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 12px 26px -12px rgba(209,96,61,0.7); }
.btn-primary:hover, .btn.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 32px -12px rgba(209,96,61,0.85); }
.btn-secondary { background: transparent; color: #f6f1e6; border-color: rgba(246,241,230,0.4); }
.btn-secondary:hover { background: rgba(246,241,230,0.12); color: #fff; }
.btn-highlight { background: var(--grad); color: #fff; }
.btn-highlight:hover { transform: translateY(-2px); color: #fff; }

/* =========================================================
   RANKING (homepage)
   ========================================================= */
.ranking { padding: 60px 0 40px; }
.ranking > h3 { text-align: center; font-size: 2rem !important; margin-bottom: 34px !important; color: var(--text-color); }
.ranking .container { display: flex; flex-direction: column; gap: 22px; }

.ranking-card {
    position: relative; display: grid; grid-template-columns: 60px 150px 1fr auto; align-items: center; gap: 28px;
    background: var(--surface); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 26px 30px;
    box-shadow: var(--shadow-sm); transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}
.ranking-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.ranking-card.featured { border-color: var(--primary-color); box-shadow: 0 0 0 1px var(--primary-color) inset, var(--shadow-sm); }
.rank-badge { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; font-family: var(--font-primary); font-weight: 700; font-size: 1.2rem; color: #fff; background: var(--grad); }
.ranking-card:not(.featured) .rank-badge { background: rgba(209,96,61,0.12); color: var(--primary-dark); }
.card-logo img { max-width: 130px; max-height: 66px; width: auto; object-fit: contain; }
.card-info { min-width: 0; }
.card-info h3 { font-size: 1.35rem; margin-bottom: 6px; }
.description { color: var(--text-muted); margin-bottom: 12px; font-weight: 500; }
.rating-bar-container { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; max-width: 340px; }
.rating-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--primary-dark); background: rgba(209,96,61,0.12); border: 1px solid rgba(209,96,61,0.3); padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.rating-bar { flex: 1; height: 8px; background: #efe6d6; border-radius: 999px; overflow: hidden; }
.rating-fill { height: 100%; background: var(--grad); border-radius: 999px; transition: width 1.1s var(--ease); }
.feature-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.feature-tags li { font-size: 0.78rem; color: var(--text-muted); background: #f4ece0; border: 1px solid var(--border-color); padding: 5px 12px; border-radius: 999px; }
.card-cta { display: flex; }
.card-cta .btn-primary { white-space: nowrap; }

/* =========================================================
   REGULATION (homepage)
   ========================================================= */
.regulation { padding: var(--section-padding); }
.regulation .container { max-width: 900px; }
.regulation h2 { text-align: center; font-size: clamp(1.8rem, 3vw, 2.3rem); margin-bottom: 26px; }
.regulation-content { background: var(--surface); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow-sm); }
.regulation-content p { color: var(--text-muted); margin-bottom: 15px; }
.regulation-content ul { margin: 8px 0 18px; }
.regulation-content li { position: relative; padding-left: 30px; margin-bottom: 12px; color: var(--text-muted); }
.regulation-content li::before { content: "\2713"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: rgba(209,96,61,0.14); color: var(--primary-dark); font-size: 0.72rem; font-weight: 700; }

/* =========================================================
   FAQ / ACCORDION (homepage)
   ========================================================= */
.faq { padding: var(--section-padding); }
.faq .container { max-width: 860px; }
.faq h2 { text-align: center; font-size: clamp(1.8rem, 3vw, 2.3rem); margin-bottom: 34px; }
.accordion { display: flex; flex-direction: column; gap: 12px; }
.accordion-item { background: var(--surface); border: 1px solid var(--border-color); border-radius: var(--radius-sm); overflow: hidden; transition: border-color 0.25s, box-shadow 0.25s; }
.accordion-item.active { border-color: var(--primary-color); box-shadow: var(--shadow-sm); }
.accordion-header {
    width: 100%; text-align: left; background: none; border: none; cursor: pointer;
    font-family: var(--font-primary); font-weight: 600; font-size: 1.05rem; color: var(--text-color);
    padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.accordion-header .icon { flex-shrink: 0; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: rgba(209,96,61,0.12); color: var(--primary-dark); font-weight: 700; font-size: 1.1rem; }
.accordion-item.active .accordion-header .icon { background: var(--grad); color: #fff; }
.accordion-body { display: none; padding: 0 24px 22px; }
.accordion-body p { color: var(--text-muted); }
.accordion > p { margin-top: 22px; font-size: 0.86rem; color: var(--text-muted); line-height: 1.7; }
.accordion > p a { color: var(--primary-dark) !important; }

/* =========================================================
   CARDS (inner pages) + generic
   ========================================================= */
.card {
    background: var(--surface); border: 1px solid var(--border-color); border-radius: var(--radius); padding: var(--card-padding);
    box-shadow: var(--shadow-sm); transition: transform 0.3s var(--ease), box-shadow 0.3s; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { color: var(--text-color); }
.card p { color: var(--text-muted); }
.card a.btn { margin-top: auto; }
section p a, .container p a { color: var(--primary-dark); }

/* =========================================================
   FOOTER (shared, deep forest)
   ========================================================= */
.main-footer { background: var(--secondary-color); color: #c2c9be; padding: 52px 0 30px; margin-top: 60px; }
.main-footer .container { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.footer-row { width: 100%; display: flex; justify-content: center; }
.footer-row.row-1 h3 { color: #fbf6ec; font-size: 1.4rem; }
.footer-row.row-1 h3 a { color: #fbf6ec; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; align-items: center; }
.footer-nav a { color: #cdd3c7; font-size: 0.92rem; }
.footer-nav a:hover { color: #eaa27f; }
.footer-nav span { color: rgba(246,241,230,0.2); }
.trust-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px; }
.trust-logos img { height: 46px; width: auto; opacity: 0.85; filter: grayscale(0.2) brightness(1.1); transition: var(--transition); }
.trust-logos img:hover { opacity: 1; filter: none; }
.trustpilot { color: #cdd3c7; font-weight: 600; }
.trustpilot .star, .trustpilot .stars { color: #eaa27f; letter-spacing: 2px; }
.disclaimer { color: #8b917f; font-size: 0.8rem; max-width: 900px; margin: 0 auto; line-height: 1.7; }

/* =========================================================
   POPUPS (age) — JS toggles display:flex
   ========================================================= */
.popup-overlay { position: fixed; inset: 0; z-index: 3000; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(47, 61, 47, 0.55); backdrop-filter: blur(5px); }
.popup-content { width: 100%; max-width: 420px; background: var(--surface); border-radius: var(--radius); padding: 34px; text-align: center; box-shadow: var(--shadow); }
.popup-content h2 { font-size: 1.6rem; margin-bottom: 12px; }
.popup-content p { color: var(--text-muted); margin-bottom: 22px; }
.popup-buttons { display: flex; flex-direction: column; gap: 12px; }
.popup-buttons .btn-secondary { color: var(--text-muted); border-color: var(--border-color); }
.popup-buttons .btn-secondary:hover { background: #f4ece0; color: var(--text-color); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 820px) {
    .ranking-card { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 14px; padding: 30px 22px; }
    .rating-bar-container { max-width: 100%; width: 100%; justify-content: center; }
    .feature-tags { justify-content: center; }
    .card-cta, .card-cta .btn-primary { width: 100%; }
}
@media (max-width: 768px) {
    .footer-nav { gap: 8px 14px; }
    .footer-nav span { display: none; }
    .regulation-content { padding: 28px 20px; }
    .hero { padding: 56px 0 50px; }
}
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
