/*
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
*/

/* ==========================================================================
   Variables
   ========================================================================== */

:root {
    --crypto-color-header-bg: #261c15;
    --crypto-color-header-text: #fefee3;
    --crypto-color-section-bg: #fefee3;
    --crypto-color-section-text: #261c15;
    --crypto-color-accent-bg: #ff4242;
    --crypto-color-accent-text: #fefee3;
    --crypto-section-y: 20px;
    --crypto-container-width: 1200px;
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: var(--crypto-color-section-bg);
    color: var(--crypto-color-section-text);
    line-height: 1.5;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

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

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

button {
    font-family: inherit;
    cursor: pointer;
}

.container {
    width: 100%;
    max-width: var(--crypto-container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   Header
   ========================================================================== */

.header {
    background-color: var(--crypto-color-header-bg);
    color: var(--crypto-color-header-text);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 15px;
    padding-bottom: 15px;
}

.header__logo {
    display: flex;
    align-items: center;
    transition: opacity 0.3s ease;
}

.header__logo:hover {
    opacity: 0.8;
}

.header__logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--crypto-color-header-text);
    letter-spacing: 0.5px;
}

.header__nav {
    display: flex;
}

.header__menu {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.header__menu a {
    position: relative;
    font-size: 15px;
    font-weight: 500;
    color: var(--crypto-color-header-text);
    transition: color 0.3s ease;
}

.header__menu a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background-color: var(--crypto-color-accent-bg);
    transition: width 0.3s ease;
}

.header__menu a:hover,
.header__menu .current-menu-item a {
    color: var(--crypto-color-accent-bg);
}

.header__menu a:hover::after {
    width: 100%;
}

/* Burger button */

.header__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    padding: 0;
    background: none;
    border: none;
}

.header__burger-line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--crypto-color-header-text);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.header__burger--active .header__burger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.header__burger--active .header__burger-line:nth-child(2) {
    opacity: 0;
}

.header__burger--active .header__burger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav */

.header__mobile-nav {
    display: none;
    max-height: 0;
    overflow: hidden;
    background-color: var(--crypto-color-header-bg);
    transition: max-height 0.35s ease;
}

.header__mobile-nav--open {
    max-height: 500px;
}

.header__mobile-menu {
    display: flex;
    flex-direction: column;
    padding: 10px 20px 20px;
}

.header__mobile-menu a {
    display: block;
    padding: 12px 0;
    font-size: 16px;
    font-weight: 500;
    color: var(--crypto-color-header-text);
    border-bottom: 1px solid rgba(254, 254, 227, 0.1);
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.header__mobile-menu a:hover {
    color: var(--crypto-color-accent-bg);
    padding-left: 8px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    background-color: var(--crypto-color-header-bg);
    color: var(--crypto-color-header-text);
    margin-top: calc(var(--crypto-section-y) * 2);
}

.footer__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    padding-top: 40px;
    padding-bottom: 30px;
}

.footer__col {
    flex: 1;
    min-width: 160px;
}

.footer__title {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 700;
    color: var(--crypto-color-header-text);
}

.footer__menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__menu a {
    font-size: 14px;
    color: var(--crypto-color-header-text);
    opacity: 0.85;
    transition: opacity 0.3s ease, color 0.3s ease, padding-left 0.3s ease;
}

.footer__menu a:hover {
    opacity: 1;
    color: var(--crypto-color-accent-bg);
    padding-left: 4px;
}

.footer__bottom {
    border-top: 1px solid rgba(254, 254, 227, 0.1);
    padding: 18px 0;
}

.footer__copyright {
    margin: 0;
    font-size: 13px;
    opacity: 0.7;
    text-align: center;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 15px;
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.btn--primary {
    background-color: var(--crypto-color-accent-bg);
    color: var(--crypto-color-accent-text);
}

.btn--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(255, 66, 66, 0.35);
}

/* ==========================================================================
   Scroll reveal animation
   ========================================================================== */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* ==========================================================================
   Page hero
   ========================================================================== */

.page-hero {
    padding: calc(var(--crypto-section-y) * 2) 0;
    background-color: var(--crypto-color-section-bg);
    color: var(--crypto-color-section-text);
}

.page-hero__inner {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.page-hero__content {
    flex: 1 1 320px;
}

.page-hero__title {
    margin: 0 0 16px;
    font-size: 38px;
    line-height: 1.2;
}

.page-hero__text {
    margin: 0 0 14px;
    font-size: 16px;
}

.page-hero__media {
    flex: 1 1 320px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.page-hero__media img {
    transition: transform 0.5s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-hero__media:hover img {
    transform: scale(1.06);
}

.page-hero__widget {
    margin-top: calc(var(--crypto-section-y) + 5px);
}

.exchange-widget {
    display: flex;
    justify-content: center;
}

.exchange-widget iframe {
    max-width: 100%;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* ==========================================================================
   Generic sections
   ========================================================================== */

.section {
    padding: var(--crypto-section-y) 0;
}

.section--light {
    background-color: var(--crypto-color-section-bg);
    color: var(--crypto-color-section-text);
}

.section--accent {
    background-color: var(--crypto-color-accent-bg);
    color: var(--crypto-color-accent-text);
}

.section__title {
    margin: 0 0 10px;
    font-size: 28px;
    text-align: center;
}

.section__lead {
    max-width: 720px;
    margin: 0 auto 10px;
    text-align: center;
    font-size: 16px;
}

.section__text {
    margin: 0 0 14px;
    font-size: 15px;
}

.section__media {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.section__media img {
    transition: transform 0.5s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section__media:hover img {
    transform: scale(1.06);
}

.section__columns {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.section__columns > * {
    flex: 1 1 320px;
}

/* ==========================================================================
   Content list (bulleted text lists)
   ========================================================================== */

.content-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 16px 0;
}

.content-list li {
    position: relative;
    padding-left: 24px;
}

.content-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--crypto-color-accent-bg);
}

/* ==========================================================================
   Cards (advantages, etc.)
   ========================================================================== */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: var(--crypto-section-y);
}

.card {
    background-color: var(--crypto-color-section-bg);
    color: var(--crypto-color-section-text);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.16);
}

.card__icon {
    display: block;
    width: 44px;
    height: 44px;
    margin-bottom: 14px;
    color: var(--crypto-color-accent-bg);
    transition: transform 0.3s ease;
}

.card:hover .card__icon {
    transform: scale(1.15) rotate(-6deg);
}

.card__title {
    margin: 0 0 8px;
    font-size: 18px;
}

.card__text {
    margin: 0;
    font-size: 14px;
}

/* ==========================================================================
   Steps
   ========================================================================== */

.steps__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: var(--crypto-section-y);
}

.steps__item {
    background-color: var(--crypto-color-section-bg);
    color: var(--crypto-color-section-text);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.steps__item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.16);
}

.steps__number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-bottom: 14px;
    border-radius: 50%;
    background-color: var(--crypto-color-accent-bg);
    color: var(--crypto-color-accent-text);
    font-weight: 700;
    transition: transform 0.3s ease;
}

.steps__item:hover .steps__number {
    transform: scale(1.15);
}

.steps__title {
    margin: 0;
    font-size: 15px;
}

/* ==========================================================================
   Checklist
   ========================================================================== */

.checklist__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: var(--crypto-section-y);
}

.checklist__item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    background-color: var(--crypto-color-section-bg);
    color: var(--crypto-color-section-text);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.checklist__item:hover {
    transform: translateX(8px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.checklist__icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--crypto-color-accent-bg);
}

.checklist__text {
    margin: 0;
    font-size: 15px;
}

/* ==========================================================================
   Routes / related links
   ========================================================================== */

.routes__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: var(--crypto-section-y);
}

.routes__link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    background-color: var(--crypto-color-section-bg);
    color: var(--crypto-color-section-text);
    border-radius: 14px;
    font-weight: 600;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.routes__link:hover {
    transform: translateY(-5px);
    background-color: var(--crypto-color-accent-bg);
    color: var(--crypto-color-accent-text);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.15);
}

.routes__icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--crypto-color-accent-bg);
    transition: color 0.3s ease;
}

.routes__link:hover .routes__icon {
    color: var(--crypto-color-accent-text);
}

/* ==========================================================================
   Reviews
   ========================================================================== */

.reviews__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: var(--crypto-section-y);
}

.reviews__item {
    background-color: var(--crypto-color-section-bg);
    color: var(--crypto-color-section-text);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.reviews__item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.16);
}

.reviews__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 14px;
    border-radius: 50%;
    background-color: var(--crypto-color-accent-bg);
    color: var(--crypto-color-accent-text);
}

.reviews__text {
    margin: 0;
    font-size: 15px;
    font-style: italic;
}

/* ==========================================================================
   FAQ accordion
   ========================================================================== */

.faq__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: var(--crypto-section-y);
}

.faq__item {
    background-color: var(--crypto-color-section-bg);
    color: var(--crypto-color-section-text);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}

.faq__question {
    margin: 0;
    font-size: 16px;
}

.faq__toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 22px;
    background: none;
    border: none;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    color: inherit;
}

.faq__icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--crypto-color-accent-bg);
    transition: transform 0.3s ease;
}

.faq__item--open .faq__icon {
    transform: rotate(45deg);
}

.faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq__answer p {
    margin: 0;
    padding: 0 22px 20px;
    font-size: 15px;
}

.faq__item--open .faq__answer {
    max-height: 600px;
}

/* ==========================================================================
   CTA
   ========================================================================== */

.cta {
    text-align: center;
}

.cta__title {
    margin: 0 0 12px;
    font-size: 28px;
}

.cta__text {
    max-width: 640px;
    margin: 0 auto 20px;
    font-size: 16px;
}

/* ==========================================================================
   404 page
   ========================================================================== */

.error404__wrapper {
    padding: calc(var(--crypto-section-y) * 3) 0;
    text-align: center;
}

.error404__code {
    font-size: 120px;
    font-weight: 800;
    line-height: 1;
    color: var(--crypto-color-accent-bg);
}

.error404__title {
    margin: 10px 0 12px;
    font-size: 30px;
}

.error404__text {
    margin: 0 0 24px;
    font-size: 16px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .header__nav {
        display: none;
    }

    .header__burger {
        display: flex;
    }

    .header__mobile-nav {
        display: block;
    }

    .footer__inner {
        flex-direction: column;
        gap: 28px;
    }

    .page-hero__title {
        font-size: 30px;
    }

    .section__title {
        font-size: 24px;
    }

    .section__columns {
        flex-direction: column;
    }

    .error404__code {
        font-size: 90px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .header__inner {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .header__logo-text {
        font-size: 20px;
    }

    .page-hero__title {
        font-size: 26px;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}
