/*
Theme Name: Crypto
Theme URI: https://wordpress.org
Author: Orkhan Chichitov
Author URI: https://wordpress.org
Description: A simple and clean WordPress theme for cryptocurrency-related websites. It features a modern design, responsive layout, and customizable options to create a unique online presence for your crypto business or blog.
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.2
Version: 1.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* ============================================================
   CSS Variables
   ============================================================ */
:root {
    --crypto-bg:          #000000;
    --crypto-bg-alt:      #0c0c0c;
    --crypto-text:        #ffffff;
    --crypto-card-bg:     #5d0018;
    --crypto-gradient:    linear-gradient(135deg, #252628, #5d0018);
    --crypto-gold:        #d29f22;
    --crypto-gold-light:  #e8b83a;
    --crypto-border:      rgba(210, 159, 34, 0.25);
    --crypto-section-y:   80px;
    --crypto-radius:      12px;
    --crypto-shadow:      0 8px 32px rgba(0, 0, 0, 0.6);
    --crypto-shadow-card: 0 4px 20px rgba(93, 0, 24, 0.4);
    --crypto-transition:  0.35s ease;
    --crypto-font:        -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    background-color: var(--crypto-bg);
    color: var(--crypto-text);
    font-family: var(--crypto-font);
    line-height: 1.7;
    overflow-x: hidden;
}

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

a { color: var(--crypto-gold); text-decoration: none; transition: color var(--crypto-transition); }
a:hover { color: var(--crypto-gold-light); }

ul, ol { list-style: none; }

/* ============================================================
   Container
   ============================================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================================
   Header
   ============================================================ */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--crypto-gradient);
    border-bottom: 1px solid var(--crypto-border);
    backdrop-filter: blur(10px);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    gap: 24px;
}

.header__logo { display: flex; align-items: center; }
.header__logo img { height: 44px; width: auto; }
.header__logo-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--crypto-gold);
    letter-spacing: -0.5px;
}

/* Desktop nav */
.header__nav { flex: 1; display: flex; justify-content: flex-end; }

.header__menu {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
}

.header__menu li { position: relative; }

.header__menu li a {
    display: block;
    padding: 8px 14px;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 6px;
    transition: background var(--crypto-transition), color var(--crypto-transition);
    white-space: nowrap;
}
.header__menu li a:hover,
.header__menu li.current-menu-item > a,
.header__menu li.current-menu-ancestor > a {
    background: rgba(210, 159, 34, 0.15);
    color: var(--crypto-gold);
}

/* Dropdown */
.header__menu li ul {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: #1a1a1a;
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius);
    min-width: 220px;
    padding: 8px;
    box-shadow: var(--crypto-shadow);
    list-style: none;
    z-index: 999;
}
.header__menu li:hover > ul { display: block; animation: dropIn 0.2s ease; }

.header__menu li ul li a {
    padding: 9px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
}

@keyframes dropIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Burger */
.header__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 40px;
    height: 40px;
}
.header__burger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Burger open state */
.header__burger.is-open .header__burger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__burger.is-open .header__burger-line:nth-child(2) { opacity: 0; }
.header__burger.is-open .header__burger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.header__nav.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    height: fit-content;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #111111;
    padding: 24px;
    overflow-y: auto;
    animation: slideDown 0.3s ease;
    z-index: 998;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Main
   ============================================================ */
.site-main { min-height: 60vh; }

/* ============================================================
   Hero Section
   ============================================================ */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.85) 0%, rgba(93,0,24,0.5) 100%);
}

.hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding-top: 60px;
    padding-bottom: 60px;
}

.hero__content { max-width: 600px; }

.hero__title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    color: #ffffff;
    margin-bottom: 24px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.8);
}
.hero__title span { color: var(--crypto-gold); }

.hero__text {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.88);
    margin-bottom: 32px;
    line-height: 1.75;
}
.hero__text p + p { margin-top: 16px; }

.hero__widget {
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius);
    padding: 24px;
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
}

.widget-wrap { display: flex; justify-content: center; }
.widget-wrap iframe { border-radius: 8px; max-width: 100%; }

/* ============================================================
   Page Hero (inner pages)
   ============================================================ */
.page-hero {
    position: relative;
    min-height: 380px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    padding: 80px 0;
}
.page-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.88) 0%, rgba(93,0,24,0.55) 100%);
}
.page-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
}
.page-hero__title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.2;
}
.page-hero__lead {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.75;
}
.page-hero__lead p + p { margin-top: 14px; }

/* ============================================================
   Sections
   ============================================================ */
.section {
    padding: var(--crypto-section-y) 0;
}
.section--alt {
    background: var(--crypto-bg-alt);
}
.section--gradient {
    background: var(--crypto-gradient);
}
.section__title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.3;
}
.section__subtitle {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--crypto-gold);
    margin-bottom: 14px;
}
.section__text {
    color: rgba(255,255,255,0.85);
    line-height: 1.8;
    max-width: 780px;
}
.section__text p + p { margin-top: 16px; }

/* ============================================================
   Text + Image blocks
   ============================================================ */
.block-text {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}
.block-text--reverse { direction: rtl; }
.block-text--reverse > * { direction: ltr; }

.block-text__image {
    border-radius: var(--crypto-radius);
    overflow: hidden;
    box-shadow: var(--crypto-shadow);
    position: relative;
}
.block-text__image::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius);
    pointer-events: none;
}
.block-text__image img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.block-text__image:hover img { transform: scale(1.04); }

/* ============================================================
   Lists
   ============================================================ */
.content-list {
    list-style: none;
    margin: 16px 0;
}
.content-list li {
    padding: 8px 0 8px 28px;
    position: relative;
    color: rgba(255,255,255,0.85);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.content-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: var(--crypto-gold);
    border-radius: 50%;
}

/* ============================================================
   Comparison Table
   ============================================================ */
.table-wrap {
    overflow-x: auto;
    border-radius: var(--crypto-radius);
    border: 1px solid var(--crypto-border);
    margin-top: 24px;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.compare-table thead {
    background: linear-gradient(135deg, #252628, #5d0018);
}
.compare-table th {
    color: var(--crypto-gold);
    font-weight: 600;
    padding: 14px 16px;
    text-align: left;
    white-space: nowrap;
    border-bottom: 1px solid var(--crypto-border);
}
.compare-table td {
    padding: 12px 16px;
    color: rgba(255,255,255,0.85);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    vertical-align: top;
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:nth-child(even) td { background: rgba(255,255,255,0.03); }
.compare-table tr:hover td { background: rgba(210, 159, 34, 0.06); }

/* ============================================================
   Cards
   ============================================================ */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.card {
    background: var(--crypto-card-bg);
    border-radius: var(--crypto-radius);
    padding: 28px 24px;
    box-shadow: var(--crypto-shadow-card);
    border: 1px solid rgba(210, 159, 34, 0.15);
    transition: transform var(--crypto-transition), box-shadow var(--crypto-transition);
    color: var(--crypto-text);
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(93, 0, 24, 0.6);
}
.card__icon {
    font-size: 2.2rem;
    margin-bottom: 16px;
    display: block;
}
.card__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--crypto-gold);
    margin-bottom: 10px;
}
.card__text {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.7;
}

/* ============================================================
   Safety Checklist
   ============================================================ */
.checklist {
    list-style: none;
    margin: 16px 0;
}
.checklist li {
    padding: 10px 0 10px 36px;
    position: relative;
    color: rgba(255,255,255,0.85);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 0.95rem;
}
.checklist li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 10px;
    width: 22px;
    height: 22px;
    background: var(--crypto-gold);
    color: #000;
    font-weight: 700;
    font-size: 0.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 22px;
    text-align: center;
}

/* ============================================================
   FAQ / Accordion
   ============================================================ */
.faq { margin-top: 24px; }

.faq__item {
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius);
    margin-bottom: 12px;
    overflow: hidden;
    background: #0a0a0a;
    transition: box-shadow var(--crypto-transition);
}
.faq__item:hover { box-shadow: 0 4px 20px rgba(210, 159, 34, 0.1); }

.faq__question {
    width: 100%;
    background: none;
    border: none;
    padding: 18px 52px 18px 20px;
    text-align: left;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: color var(--crypto-transition), background var(--crypto-transition);
}
.faq__question:hover { color: var(--crypto-gold); background: rgba(210, 159, 34, 0.05); }
.faq__question.is-open { color: var(--crypto-gold); background: rgba(210, 159, 34, 0.08); }

.faq__question::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    color: var(--crypto-gold);
    transition: transform 0.3s ease;
    line-height: 1;
}
.faq__question.is-open::after { transform: translateY(-50%) rotate(45deg); }

.faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq__answer.is-open { max-height: 600px; }

.faq__answer-inner {
    padding: 0 20px 20px;
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
    line-height: 1.75;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform var(--crypto-transition), box-shadow var(--crypto-transition), background var(--crypto-transition);
    text-decoration: none;
    border: none;
}
.btn--gold {
    background: var(--crypto-gold);
    color: #000000;
    box-shadow: 0 4px 20px rgba(210, 159, 34, 0.35);
}
.btn--gold:hover {
    background: var(--crypto-gold-light);
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(210, 159, 34, 0.5);
}
.btn--outline {
    background: transparent;
    border: 2px solid var(--crypto-gold);
    color: var(--crypto-gold);
}
.btn--outline:hover {
    background: var(--crypto-gold);
    color: #000000;
    transform: translateY(-2px);
}

.cta-wrap { margin-top: 32px; display: flex; gap: 16px; flex-wrap: wrap; }

/* ============================================================
   Widget section
   ============================================================ */
.widget-section {
    background: var(--crypto-bg-alt);
    border-top: 1px solid var(--crypto-border);
    border-bottom: 1px solid var(--crypto-border);
}
.widget-section__inner {
    display: flex;
    justify-content: center;
    padding: 48px 0;
}

/* ============================================================
   Country table section
   ============================================================ */
.country-section__flag {
    font-size: 1.8rem;
    margin-right: 8px;
}

/* ============================================================
   Sub-headings inside sections
   ============================================================ */
.section__h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--crypto-gold);
    margin: 28px 0 12px;
}

/* ============================================================
   Policy pages
   ============================================================ */
.policy-content {
    max-width: 820px;
    margin: 0 auto;
}
.policy-content h2 {
    font-size: 1.4rem;
    color: var(--crypto-gold);
    margin: 36px 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--crypto-border);
}
.policy-content p {
    color: rgba(255,255,255,0.85);
    margin-bottom: 14px;
    line-height: 1.8;
}
.policy-content ul {
    list-style: none;
    margin: 12px 0 20px 0;
}
.policy-content ul li {
    padding: 6px 0 6px 24px;
    position: relative;
    color: rgba(255,255,255,0.8);
}
.policy-content ul li::before {
    content: '–';
    position: absolute;
    left: 0;
    color: var(--crypto-gold);
}

/* ============================================================
   Scroll animations
   ============================================================ */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
}
[data-animate-delay="1"] { transition-delay: 0.1s; }
[data-animate-delay="2"] { transition-delay: 0.2s; }
[data-animate-delay="3"] { transition-delay: 0.3s; }
[data-animate-delay="4"] { transition-delay: 0.4s; }

/* ============================================================
   Footer
   ============================================================ */
.footer {
    background: var(--crypto-gradient);
    border-top: 1px solid var(--crypto-border);
    margin-top: auto;
}

.footer__top {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    padding: 60px 0 40px;
}

.footer__logo { display: flex; align-items: center; margin-bottom: 20px; }
.footer__logo img { height: 40px; width: auto; }
.footer__logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--crypto-gold);
}

.footer__about-text {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
    margin-bottom: 14px;
}
.footer__contact-text {
    font-size: 0.83rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
}
.footer__contact-text a {
    color: var(--crypto-gold);
}

.footer__cols {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.footer__col-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--crypto-gold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.footer__links { list-style: none; }
.footer__links li { margin-bottom: 10px; }
.footer__links a {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.72);
    transition: color var(--crypto-transition);
}
.footer__links a:hover { color: var(--crypto-gold); }

.footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
}
.footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.footer__copy {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
}
.footer__bottom-nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.footer__bottom-nav a {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
    transition: color var(--crypto-transition);
}
.footer__bottom-nav a:hover { color: var(--crypto-gold); }

/* ============================================================
   Parallax image overlay (hero scroll effect)
   ============================================================ */
.hero__parallax-img {
    position: absolute;
    inset: -20px;
    background-size: cover;
    background-position: center;
    will-change: transform;
    z-index: 0;
}

/* ============================================================
   Contact form / info block
   ============================================================ */
.contact-info {
    background: var(--crypto-card-bg);
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius);
    padding: 32px;
    margin-top: 24px;
    box-shadow: var(--crypto-shadow-card);
}
.contact-info p { color: rgba(255,255,255,0.85); margin-bottom: 10px; }
.contact-info a { color: var(--crypto-gold); font-weight: 600; }

/* ============================================================
   Responsive — 1024px
   ============================================================ */
@media (max-width: 1024px) {
    .hero__inner {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .hero__widget { justify-content: center; }
    .block-text { grid-template-columns: 1fr; gap: 32px; }
    .block-text--reverse { direction: ltr; }
    .footer__top { grid-template-columns: 1fr; gap: 40px; }
    .footer__cols { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   Responsive — 768px
   ============================================================ */
@media (max-width: 768px) {
    :root { --crypto-section-y: 48px; }

    .header__nav { display: none; }
    .header__burger { display: flex; }

    .header__nav.is-open .header__menu {
        flex-direction: column;
        gap: 4px;
        width: 100%;
    }
    .header__nav.is-open .header__menu li a {
        font-size: 1.05rem;
        padding: 14px 16px;
        border-radius: 8px;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }
    .header__nav.is-open .header__menu li ul {
        display: block;
        position: static;
        background: rgba(255,255,255,0.05);
        border: none;
        box-shadow: none;
        padding: 4px 0 4px 16px;
    }

    .hero { min-height: auto; background-attachment: scroll; }
    .page-hero { min-height: auto; padding: 60px 0; }

    .card-grid { grid-template-columns: 1fr; }

    .footer__cols { grid-template-columns: 1fr 1fr; }
    .footer__bottom-inner { flex-direction: column; text-align: center; }
}

/* ============================================================
   Responsive — 480px
   ============================================================ */
@media (max-width: 480px) {
    .hero__title { font-size: 1.8rem; }
    .section__title { font-size: 1.4rem; }
    .footer__cols { grid-template-columns: 1fr; }
    .compare-table th, .compare-table td { padding: 10px 12px; font-size: 0.82rem; }
    .btn { padding: 12px 24px; font-size: 0.9rem; }
    .widget-wrap iframe { width: 100% !important; height: 380px !important; }
}
