/*
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: 2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* ===== VARIABLES ===== */
:root {
    --color-header-bg:   #852e47;
    --color-header-text: #ffffff;
    --color-bg:          #ffffff;
    --color-text:        #000000;
    --color-card-navy:   #0d244d;
    --color-card-brown:  #aa542b;
    --color-card-orange: #c2441c;
    --color-card-text:   #ffffff;
    --color-accent:      #852e47;
    --color-accent-dark: #6b2239;
    --color-border:      #e8e8e8;
    --color-bg-light:    #f5f7fa;
    --radius:            12px;
    --radius-sm:         8px;
    --shadow:            0 4px 24px rgba(0,0,0,.10);
    --shadow-hover:      0 12px 40px rgba(0,0,0,.18);
    --section-y:         60px;
    --container:         1200px;
    --transition:        0.3s ease;
}

/* ===== RESET / BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    font-size: 16px;
}

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

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

ul { list-style: none; }

/* ===== CONTAINER ===== */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== HEADER ===== */
.site-header {
    background: var(--color-header-bg);
    color: var(--color-header-text);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0,0,0,.25);
}

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

/* Logo */
.site-header__logo { display: flex; align-items: center; flex-shrink: 0; }
.site-header__logo img { max-height: 48px; width: auto; }
.site-header__logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-header-text);
    letter-spacing: .5px;
}

/* Nav */
.site-header__nav { flex: 1; display: flex; justify-content: flex-end; }

.site-header__menu {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-header__menu-item { position: relative; }

.site-header__menu-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: .92rem;
    font-weight: 600;
    color: var(--color-header-text);
    white-space: nowrap;
    transition: background var(--transition);
}
.site-header__menu-link:hover {
    background: rgba(255,255,255,.15);
    text-decoration: none;
}

.site-header__dropdown-arrow { font-size: .65rem; opacity: .8; }

/* Dropdown */
.site-header__dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    min-width: 260px;
    background: var(--color-header-bg);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-hover);
    list-style: none;
    padding: 8px 0;
    z-index: 200;
}
.site-header__dropdown li a {
    display: block;
    padding: 10px 18px;
    font-size: .9rem;
    color: var(--color-header-text);
    transition: background var(--transition);
}
.site-header__dropdown li a:hover {
    background: rgba(255,255,255,.15);
    text-decoration: none;
}
.site-header__menu-item--has-dropdown:hover .site-header__dropdown { display: block; }

/* Burger */
.site-header__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-shrink: 0;
}
.site-header__burger-line {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--color-header-text);
    border-radius: 2px;
    transition: transform .3s, opacity .3s;
}
.site-header__burger.is-open .site-header__burger-line:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.site-header__burger.is-open .site-header__burger-line:nth-child(2) { opacity: 0; }
.site-header__burger.is-open .site-header__burger-line:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile nav */
.site-header__nav.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--color-header-bg);
    padding: 16px 24px 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,.3);
    z-index: 999;
    animation: slideDown .3s ease;
}
@keyframes slideDown { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }

/* ===== FOOTER ===== */
.site-footer {
    background: var(--color-header-bg);
    color: var(--color-header-text);
    padding: 48px 0 24px;
    margin-top: var(--section-y);
}

.site-footer__cols {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(255,255,255,.15);
}

.site-footer__brand { display: flex; align-items: center; }
.site-footer__brand img { max-height: 44px; }
.site-footer__brand-name { font-size: 1.15rem; font-weight: 700; }
.site-footer__tagline { margin-top: 12px; font-size: .88rem; opacity: .8; line-height: 1.5; }

.site-footer__col-title {
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: .7;
    margin-bottom: 14px;
}

.site-footer__menu { list-style: none; padding: 0; margin: 0; }
.site-footer__menu li { margin-bottom: 8px; }
.site-footer__menu a {
    font-size: .9rem;
    opacity: .85;
    transition: opacity var(--transition);
}
.site-footer__menu a:hover { opacity: 1; text-decoration: none; }

.site-footer__bottom {
    padding-top: 24px;
    text-align: center;
}
.site-footer__copy { font-size: .84rem; opacity: .65; }

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity .65s ease, transform .65s ease;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-left  { opacity: 0; transform: translateX(-40px); transition: opacity .65s ease, transform .65s ease; }
.reveal-right { opacity: 0; transform: translateX(40px);  transition: opacity .65s ease, transform .65s ease; }
.reveal-left.is-visible, .reveal-right.is-visible { opacity: 1; transform: translateX(0); }

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0d244d 0%, #852e47 60%, #c2441c 100%);
    overflow: hidden;
    padding: 72px 0;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('img/hero-bg.jpg') center/cover no-repeat;
    opacity: .18;
}
.hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.hero__content { color: #fff; }
.hero__h1 {
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}
.hero__text {
    font-size: 1rem;
    opacity: .9;
    line-height: 1.75;
    max-width: 520px;
}
.hero__widget { display: flex; justify-content: flex-end; }
.hero__widget .exchange-widget {
    background: rgba(255,255,255,.06);
    border-radius: var(--radius);
    padding: 12px;
    backdrop-filter: blur(4px);
}

/* ===== SECTIONS ===== */
.section {
    padding: var(--section-y) 0;
}
.section--bg {
    background: var(--color-bg-light);
}
.section__title {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--color-text);
}
.section__lead {
    font-size: 1.02rem;
    line-height: 1.75;
    margin-bottom: 28px;
    max-width: 820px;
}

/* ===== STEPS LIST ===== */
.steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: steps;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.steps-list__item {
    counter-increment: steps;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 22px;
    background: var(--color-bg-light);
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--color-accent);
    transition: box-shadow var(--transition), transform var(--transition);
}
.steps-list__item:hover { box-shadow: var(--shadow); transform: translateX(4px); }
.steps-list__item::before {
    content: counter(steps);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    background: var(--color-accent);
    color: #fff;
    font-weight: 700;
    font-size: .9rem;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ===== TABLE ===== */
.crypto-table-wrap { overflow-x: auto; }
.crypto-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .95rem;
}
.crypto-table th {
    background: var(--color-card-navy);
    color: #fff;
    padding: 13px 18px;
    text-align: left;
    font-weight: 600;
}
.crypto-table td {
    padding: 13px 18px;
    border-bottom: 1px solid var(--color-border);
}
.crypto-table tr:last-child td { border-bottom: none; }
.crypto-table tr:nth-child(even) td { background: var(--color-bg-light); }
.crypto-table tr:hover td { background: #fce8ee; }

/* ===== FEATURE CARDS (3-col) ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.cards-grid--2 { grid-template-columns: repeat(2, 1fr); }
.cards-grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }

.card--navy   { background: var(--color-card-navy);   color: var(--color-card-text); }
.card--brown  { background: var(--color-card-brown);  color: var(--color-card-text); }
.card--orange { background: var(--color-card-orange); color: var(--color-card-text); }
.card--light  { background: var(--color-bg-light);    color: var(--color-text); }

.card__img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform .5s ease;
}
.card:hover .card__img { transform: scale(1.05); }

.card__body { padding: 22px 24px; flex: 1; }
.card__title { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.card__text  { font-size: .9rem; line-height: 1.65; opacity: .9; }

/* ===== CHECKLIST ===== */
.checklist {
    list-style: none;
    padding: 0;
    margin: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.checklist li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: .97rem;
    padding: 10px 14px;
    background: var(--color-bg-light);
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}
.checklist li:hover { background: #fce8ee; }
.checklist li::before {
    content: '✓';
    display: inline-block;
    min-width: 22px;
    height: 22px;
    background: var(--color-accent);
    color: #fff;
    border-radius: 50%;
    font-size: .75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ===== CTA BUTTON ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    text-decoration: none;
}
.btn--primary {
    background: var(--color-accent);
    color: #fff;
}
.btn--primary:hover {
    background: var(--color-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(133,46,71,.4);
    text-decoration: none;
}
.btn--large { padding: 16px 40px; font-size: 1.1rem; }

.section__cta { margin-top: 32px; }

/* ===== FAQ ===== */
.faq-list { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.faq-item {
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    overflow: hidden;
    transition: box-shadow var(--transition);
}
.faq-item:hover { box-shadow: var(--shadow); }
.faq-item__question {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    padding: 18px 22px;
    cursor: pointer;
    background: var(--color-bg-light);
    border: none;
    width: 100%;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.faq-item__question::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--color-accent);
    flex-shrink: 0;
    transition: transform var(--transition);
}
.faq-item.is-open .faq-item__question::after { transform: rotate(45deg); }
.faq-item__answer {
    display: none;
    padding: 16px 22px 20px;
    font-size: .95rem;
    line-height: 1.7;
    border-top: 1px solid var(--color-border);
}
.faq-item.is-open .faq-item__answer { display: block; }

/* ===== BTC PRICE CHART ===== */
.btc-chart {
    background: var(--color-bg-light);
    border-radius: var(--radius);
    padding: 28px 28px 20px;
    box-shadow: var(--shadow);
    margin: 24px 0;
}
.btc-chart__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}
.btc-chart__label { display: block; font-size: .85rem; color: #555; margin-bottom: 4px; }
.btc-chart__price {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--color-card-navy);
}
.btc-chart__change {
    font-size: .95rem;
    font-weight: 600;
    margin-left: 8px;
}
.btc-chart__change--up   { color: #16a34a; }
.btc-chart__change--down { color: #dc2626; }
.btc-chart__periods { display: flex; gap: 8px; }
.btc-chart__period-btn {
    padding: 7px 16px;
    border-radius: 20px;
    border: 2px solid var(--color-border);
    background: #fff;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}
.btc-chart__period-btn:hover,
.btc-chart__period-btn--active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}
.btc-chart__canvas-wrap { position: relative; width: 100%; }
.btc-chart__canvas { width: 100%; height: auto; display: block; }
.btc-chart__updated {
    font-size: .8rem;
    color: #888;
    margin-top: 12px;
}
.btc-chart__note {
    font-size: .82rem;
    color: #999;
    font-style: italic;
    margin-top: 4px;
}

/* ===== EXCHANGE WIDGET ===== */
.exchange-widget {
    display: flex;
    justify-content: center;
}
.exchange-widget iframe { max-width: 100%; border-radius: var(--radius-sm); }

/* ===== COUNTRY LINKS ===== */
.country-list {
    list-style: none;
    padding: 0;
    margin: 16px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.country-list li a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--color-card-navy);
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: .9rem;
    font-weight: 600;
    transition: background var(--transition), transform var(--transition);
}
.country-list li a:hover {
    background: var(--color-accent);
    transform: translateY(-2px);
    text-decoration: none;
}

/* ===== 2-COL LAYOUT ===== */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}
.two-col__img {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.two-col__img img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    transition: transform .6s ease;
}
.two-col__img:hover img { transform: scale(1.04); }

/* ===== POLICY PAGES ===== */
.policy-page { max-width: 820px; margin: 0 auto; padding: var(--section-y) 24px; }
.policy-page h1 { font-size: clamp(1.6rem, 2.8vw, 2.4rem); font-weight: 800; margin-bottom: 12px; }
.policy-page h2 { font-size: 1.25rem; font-weight: 700; margin: 32px 0 12px; color: var(--color-card-navy); }
.policy-page p  { margin-bottom: 14px; line-height: 1.75; }
.policy-page ul { padding-left: 20px; margin-bottom: 14px; }
.policy-page ul li { margin-bottom: 6px; list-style: disc; }

/* ===== ABOUT PAGE ===== */
.about-hero {
    background: linear-gradient(135deg, var(--color-card-navy) 0%, var(--color-accent) 100%);
    color: #fff;
    padding: 64px 0;
    text-align: center;
}
.about-hero h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; }
.about-hero p  { margin-top: 14px; font-size: 1.05rem; opacity: .9; max-width: 640px; margin-inline: auto; }

/* ===== CONTACT PAGE ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
    margin-top: 40px;
}
.contact-card {
    background: var(--color-bg-light);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
}
.contact-card h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: 14px; }
.contact-card .email-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background: var(--color-accent);
    color: #fff;
    border-radius: var(--radius-sm);
    font-weight: 700;
    transition: background var(--transition);
}
.contact-card .email-link:hover { background: var(--color-accent-dark); text-decoration: none; }

/* ===== SECTION IMAGES (parallax hosts) ===== */
.section-img-wrap {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 32px;
}
.section-img-wrap img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform .6s ease;
}
.section-img-wrap:hover img { transform: scale(1.04); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .cards-grid--4 { grid-template-columns: repeat(2, 1fr); }
    .hero__inner { grid-template-columns: 1fr; }
    .hero__widget { justify-content: center; }
    .site-footer__cols { grid-template-columns: 1fr 1fr; }
    .two-col { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    :root { --section-y: 40px; }
    .cards-grid, .cards-grid--2, .cards-grid--3 { grid-template-columns: 1fr; }
    .site-header__nav { display: none; }
    .site-header__burger { display: flex; }
    .site-header__nav.is-open .site-header__menu { flex-direction: column; width: 100%; gap: 4px; }
    .site-header__nav.is-open .site-header__menu-item { width: 100%; }
    .site-header__nav.is-open .site-header__menu-link { padding: 12px 16px; }
    .site-header__nav.is-open .site-header__dropdown { position: static; box-shadow: none; background: rgba(0,0,0,.15); border-radius: var(--radius-sm); margin-top: 4px; display: none; }
    .site-header__nav.is-open .site-header__menu-item--has-dropdown.is-open .site-header__dropdown { display: block; }
    .hero { padding: 48px 0; min-height: auto; }
    .hero__h1 { font-size: 1.7rem; }
    .hero__widget .exchange-widget iframe { width: 100% !important; }
    .site-footer__cols { grid-template-columns: 1fr; gap: 28px; }
    .contact-grid { grid-template-columns: 1fr; }
    .btc-chart__header { flex-direction: column; align-items: flex-start; }
    .crypto-table { font-size: .85rem; }
    .crypto-table th, .crypto-table td { padding: 10px 12px; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero__h1 { font-size: 1.4rem; }
    .section__title { font-size: 1.3rem; }
    .btn--large { padding: 13px 24px; font-size: 1rem; }
    .btc-chart { padding: 18px 16px; }
    .btc-chart__price { font-size: 1.5rem; }
    .hero__widget .exchange-widget { padding: 6px; }
}
