/* =========================================================
   Ostinela — Ivory & Ruby template
   Warm ivory light, ruby accent, elegant serif headings
   ========================================================= */

@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 {
    --bg: #f7f3ec;
    --bg-2: #efe7db;
    --panel: #fffdf9;
    --ink: #211c17;
    --text: #211c17;
    --muted: #6c6258;
    --faint: #9b9084;
    --border: rgba(33, 28, 23, 0.12);
    --border-strong: rgba(33, 28, 23, 0.24);
    --ruby: #bf2f49;
    --ruby-2: #a11f38;
    --ruby-soft: rgba(191, 47, 73, 0.10);
    --rose: #e06d84;
    --serif: 'Fraunces', Georgia, serif;
    --sans: 'Inter', system-ui, sans-serif;
    --radius: 14px;
    --radius-lg: 20px;
    --shadow: 0 22px 50px -26px rgba(90, 40, 30, 0.30);
    --shadow-sm: 0 12px 30px -18px rgba(90, 40, 30, 0.26);
    --container: 1180px;
    --nav-h: 78px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

body {
    font-family: var(--sans);
    background: var(--bg);
    background-image: radial-gradient(900px 500px at 82% -8%, rgba(191,47,73,0.06), transparent 60%);
    background-attachment: fixed;
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.14; letter-spacing: -0.01em; color: var(--ink); }
a { color: var(--ruby); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--ruby-2); }
img { max-width: 100%; display: block; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 26px; }
::selection { background: rgba(191,47,73,0.22); color: var(--ink); }

::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--ruby); border-radius: 20px; border: 3px solid var(--bg-2); }

/* =========================================================
   HEADER
   ========================================================= */
.header {
    position: sticky; top: 0; z-index: 1000; height: var(--nav-h);
    display: flex; align-items: center;
    background: rgba(247, 243, 236, 0.86);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}
.header .container { width: 100%; }
.header-content { display: flex; align-items: center; justify-content: center; position: relative; }
.logo img { height: 46px; width: auto; }

/* =========================================================
   HERO
   ========================================================= */
.hero { text-align: center; padding: 70px 0 40px; position: relative; }
.hero-content { max-width: 860px; margin: 0 auto; }
.hero-content h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); margin-bottom: 22px; }
.hero-content h1::after { content: ""; display: block; width: 84px; height: 3px; margin: 22px auto 0; background: var(--ruby); border-radius: 3px; }
.hero-content p { color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.18rem); max-width: 720px; margin: 0 auto; }

/* section titles */
.section-title { font-family: var(--serif); text-align: center; font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 600; margin: 0 auto 40px; color: var(--ink); }

/* =========================================================
   CASINO RANKING
   ========================================================= */
.casino-ranking { padding: 44px 0 30px; }
.casino-ranking .container { display: flex; flex-direction: column; gap: 22px; }
.casino-ranking .section-title { margin-bottom: 8px; }

.casino-card {
    position: relative; display: grid; grid-template-columns: 60px 130px 1fr auto; align-items: center; gap: 28px;
    background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px 32px;
    box-shadow: var(--shadow-sm); transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}
.casino-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(191,47,73,0.4); }
.casino-ranking .casino-card:first-of-type { border-color: var(--ruby); box-shadow: 0 0 0 1px var(--ruby) inset, var(--shadow-sm); }

.ranking-number { font-family: var(--serif); font-size: 2.6rem; font-weight: 700; color: var(--ruby); text-align: center; line-height: 1; }
.casino-logo-link { display: block; }
.casino-logo { width: 130px; height: 80px; display: grid; place-items: center; border-radius: 12px; background: var(--ruby-soft); border: 1px solid var(--border); font-family: var(--serif); font-weight: 700; font-size: 1.2rem; color: var(--ruby-2); transition: transform 0.3s var(--ease); }
.casino-logo-link:hover .casino-logo { transform: scale(1.04); }
.casino-info { min-width: 0; }
.casino-title { font-family: var(--serif); font-size: 1.42rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.casino-subtitle { color: var(--muted); margin-bottom: 6px; }
.verified-badge { display: inline-block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ruby-2); background: var(--ruby-soft); border: 1px solid rgba(191,47,73,0.3); padding: 3px 11px; border-radius: 999px; margin-bottom: 10px; }
.offer-text { color: var(--ink); font-size: 1.05rem; font-weight: 500; margin-bottom: 14px; }
.pwr-score { margin-bottom: 14px; max-width: 340px; }
.pwr-label { font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ruby-2); font-weight: 700; margin-bottom: 6px; }
.progress-bar { height: 8px; background: #eaded2; border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--ruby); border-radius: 999px; transition: width 1.1s var(--ease); }
.feature-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.feature-tag { font-size: 0.78rem; color: var(--muted); background: var(--bg-2); border: 1px solid var(--border); padding: 6px 13px; border-radius: 999px; }
.casino-cta { padding: 14px 30px; border-radius: 999px; font-family: var(--sans); font-weight: 700; color: #fff !important; background: var(--ruby); white-space: nowrap; box-shadow: 0 12px 28px -12px rgba(191,47,73,0.6); transition: transform 0.25s var(--ease), background 0.2s; }
.casino-cta:hover { transform: translateY(-3px); background: var(--ruby-2); }

/* =========================================================
   REGULATION
   ========================================================= */
.regulation-section { padding: 56px 0; }
.regulation-section .container { max-width: 1000px; }
.regulation-section h2 { text-align: center; font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 34px; }
.regulation-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.regulation-item { background: var(--panel); border: 1px solid var(--border); border-top: 3px solid var(--ruby); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.regulation-item h3 { font-size: 1.2rem; margin-bottom: 8px; color: var(--ink); }
.regulation-item p, .regulation-content > p { color: var(--muted); }
.regulation-content > p { grid-column: 1 / -1; }

/* =========================================================
   FAQ
   ========================================================= */
.faq-section { padding: 56px 0; }
.faq-section .container { max-width: 860px; }
.faq-section h2 { text-align: center; font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 34px; }
.faq-accordion { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color 0.25s, box-shadow 0.25s; }
.faq-item.active { border-color: var(--ruby); box-shadow: var(--shadow-sm); }
.faq-question { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; cursor: pointer; font-family: var(--serif); font-weight: 600; font-size: 1.08rem; color: var(--ink); }
.faq-icon { flex-shrink: 0; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--ruby-soft); color: var(--ruby-2); font-size: 1.3rem; font-weight: 700; transition: transform 0.3s var(--ease); }
.faq-item.active .faq-icon { transform: rotate(45deg); background: var(--ruby); color: #fff; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease); }
.faq-item.active .faq-answer { max-height: 600px; }
.faq-answer p, .answer-content p, .answer-content { color: var(--muted); }
.faq-answer > *, .answer-content { padding: 0 24px; }
.faq-answer p:last-child, .answer-content p:last-child { padding-bottom: 22px; }
.faq-answer p:first-child { padding-top: 4px; }

/* =========================================================
   FOOTER (deep contrast band)
   ========================================================= */
.footer { background: #1c140f; color: #cabfb4; padding: 54px 0 30px; margin-top: 60px; }
.footer-content { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.footer-disclaimer p, .footer-disclaimer { color: #9d9084; font-size: 0.88rem; max-width: 780px; margin: 0 auto; }
.footer-links { width: 100%; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; }
.footer-grid a { color: #d8ccc0; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--rose); }
.footer-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 24px; }
.logo-item { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.logo-btn { display: block; }
.logo-img { height: 50px; width: auto; opacity: 0.9; filter: grayscale(0.2); transition: 0.25s; }
.logo-img:hover { opacity: 1; filter: none; }
.trustpilot-logo { display: flex; align-items: center; gap: 8px; color: #d8ccc0; font-weight: 600; }
.trustpilot-logo .stars { color: var(--rose); letter-spacing: 2px; }
.footer-legal p, .footer-legal { color: #8a7e72; font-size: 0.8rem; max-width: 900px; margin: 0 auto; line-height: 1.7; }
.footer-bottom { color: #8a7e72; font-size: 0.82rem; border-top: 1px solid rgba(255,255,255,0.08); padding-top: 22px; width: 100%; text-align: center; }
.footer-bottom a { color: var(--rose); }

/* =========================================================
   LEGAL PAGES
   ========================================================= */
.legal-content { padding: 50px 0 40px; }
.legal-content .container { max-width: 900px; }
.breadcrumb { font-size: 0.85rem; color: var(--muted); margin-bottom: 22px; }
.breadcrumb a { color: var(--ruby); }
.legal-header { text-align: center; margin-bottom: 34px; }
.legal-header h1 { font-size: clamp(2rem, 4vw, 3rem); }
.legal-subtitle { color: var(--muted); margin-top: 10px; }
.legal-body { display: flex; flex-direction: column; gap: 20px; }
.legal-section { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); }
.legal-section h2 { font-size: 1.5rem; margin-bottom: 14px; color: var(--ink); padding-bottom: 12px; border-bottom: 2px solid var(--ruby); display: inline-block; }
.legal-section h3 { font-size: 1.2rem; margin: 20px 0 8px; color: var(--ink); }
.legal-section p, .legal-section li { color: var(--muted); margin-bottom: 12px; }
.legal-section ul { padding-left: 4px; list-style: none; }
.legal-section li { position: relative; padding-left: 26px; }
.legal-section li::before { content: ""; position: absolute; left: 3px; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--ruby); }
.legal-section a { color: var(--ruby) !important; text-decoration: underline; text-underline-offset: 3px; }
.legal-section strong { color: var(--ink); }

/* =========================================================
   CONTACT / FORMS
   ========================================================= */
.contact-form-container { max-width: 720px; margin: 0 auto; }
.contact-form { display: grid; gap: 18px; margin-top: 10px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; }
.form-group label { margin-bottom: 8px; color: var(--ink); font-weight: 600; font-size: 0.92rem; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 13px 15px; font-size: 1rem; font-family: var(--sans);
    background: var(--panel); border: 1px solid var(--border-strong); border-radius: 10px; color: var(--ink); transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--ruby); box-shadow: 0 0 0 3px var(--ruby-soft); }
.radio-group { display: flex; flex-direction: column; gap: 10px; }
.radio-label { display: flex; align-items: center; gap: 10px; color: var(--muted); cursor: pointer; }
.radio-label input, .form-group input[type="checkbox"], .form-group input[type="radio"] { width: auto; accent-color: var(--ruby); }
.submit-btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 32px; border-radius: 999px; font-family: var(--sans); font-weight: 700; color: #fff; background: var(--ruby); border: none; cursor: pointer; transition: transform 0.25s var(--ease), background 0.2s; }
.submit-btn:hover { transform: translateY(-2px); background: var(--ruby-2); color: #fff; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin: 26px 0; }
.contact-card { background: var(--panel); border: 1px solid var(--border); border-top: 3px solid var(--ruby); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); text-align: center; }
.contact-card h3 { margin-bottom: 8px; }
.contact-info { color: var(--muted); }
.form-message, .success-message { background: var(--ruby-soft); border: 1px solid rgba(191,47,73,0.3); border-radius: var(--radius); padding: 18px; text-align: center; color: var(--ruby-2); margin-top: 16px; }
.unsubscribe-form { max-width: 560px; margin: 0 auto; display: grid; gap: 16px; }

/* =========================================================
   SCROLL PROGRESS + REVEAL
   ========================================================= */
#scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 1100; background: var(--ruby); transition: width 0.08s linear; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in-view { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 820px) {
    .casino-card { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 14px; padding: 30px 22px; }
    .pwr-score { max-width: 100%; width: 100%; }
    .feature-tags { justify-content: center; }
    .casino-cta { width: 100%; }
    .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .hero { padding: 48px 0 30px; }
    .legal-section { padding: 24px 20px; }
    .footer-grid { gap: 8px 16px; }
}
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
    .reveal { opacity: 1; transform: none; }
    #scroll-progress { display: none; }
}
