/* brand_v2 components — all UI component styles.
   Uses CSS custom properties from theme.css. */

/* === Site header === */
.site-header {
    background: var(--color-header);
    border-bottom: 1px solid var(--color-header-border);
    padding: 0 1.5rem;
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.logo-link { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.logo-img { height: 36px; width: auto; }
.logo-text { font-size: 1.25rem; font-weight: 700; color: var(--color-text); }
.header-nav { display: flex; align-items: center; gap: 0.75rem; }

/* === Buttons === */
.btn-cta, .btn-cta-secondary {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: background 0.2s;
    cursor: pointer;
    text-decoration: none;
    border: none;
}
.btn-cta {
    background: var(--color-btn);
    color: #fff;
}
.btn-cta:hover { background: var(--color-btn-hover); text-decoration: none; }
.btn-cta-secondary {
    background: var(--color-surface);
    color: var(--color-text);
    border: 1px solid var(--color-surface-border);
}
.btn-cta-secondary:hover { background: var(--color-surface-hover); text-decoration: none; }

.btn-cta:focus-visible,
.btn-cta-secondary:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px var(--color-accent);
}

/* === Footer === */
footer {
    background: var(--color-footer);
    border-top: 1px solid var(--color-footer-border);
    padding: 1.5rem;
    margin-top: auto;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    font-size: 0.875rem;
    opacity: 0.7;
}

/* === Navigation === */
.nav-menu {
    display: flex;
    gap: 0.25rem;
    list-style: none;
    margin-right: 1.5rem;
}
.nav-menu a {
    color: var(--color-text);
    opacity: 0.8;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    transition: opacity 0.2s, background 0.2s;
}
.nav-menu a:hover {
    opacity: 1;
    background: rgba(255,255,255,0.06);
    text-decoration: none;
}
.nav-menu a.active {
    opacity: 1;
    background: rgba(255,255,255,0.1);
}

/* === Burger menu === */
.burger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 6px;
    background: none;
    border: none;
    cursor: pointer;
}
.burger-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}
.burger-btn.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.burger-btn.open span:nth-child(2) {
    opacity: 0;
}
.burger-btn.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* === Hero section === */
.hero {
    text-align: center;
    padding: 3rem 1rem;
    background: var(--color-surface);
    border-radius: 12px;
    margin-bottom: 2rem;
}
.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}
.hero p,
.hero .hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto 1.5rem;
}
.hero .btn-cta {
    font-size: 1rem;
    padding: 0.75rem 2rem;
}
.hero-logo {
    max-height: 64px;
    width: auto;
    margin-bottom: 1.25rem;
}

/* === CTA group === */
.cta-group {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}
.cta-group .btn-cta,
.cta-group .btn-cta-secondary {
    font-size: 1rem;
    padding: 0.65rem 1.75rem;
}

/* === Cards grid === */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin: 1.5rem 0;
}
.card {
    background: var(--color-surface);
    border: 1px solid var(--color-surface-border);
    border-radius: 10px;
    padding: 1.25rem;
    transition: border-color 0.2s, transform 0.2s;
}
.card:hover {
    border-color: var(--color-accent);
    transform: translateY(-2px);
}
.card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.card p {
    font-size: 0.9rem;
    opacity: 0.75;
    line-height: 1.5;
}

/* === Section blocks === */
.section {
    margin: 2.5rem 0;
}
.section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-accent);
    display: inline-block;
}

/* === CTA banner === */
.cta-banner {
    background: linear-gradient(135deg, var(--color-btn), var(--color-accent));
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    margin: 2rem 0;
}
.cta-banner h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    border: none;
    padding: 0;
    color: #fff;
}
.cta-banner .btn-cta {
    background: #fff;
    color: var(--color-btn);
    font-size: 1rem;
    padding: 0.75rem 2rem;
}
.cta-banner .btn-cta:hover {
    background: #f0f0f0;
}
.cta-banner .btn-cta-secondary {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border-color: rgba(255,255,255,0.3);
}

/* === Service page CTA === */
.service-cta {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-surface-border);
}

/* === Contact info === */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}
.contact-item {
    background: var(--color-surface);
    border-radius: 8px;
    padding: 1.25rem;
    border-left: 3px solid var(--color-accent);
}
.contact-item h3 {
    font-size: 0.9rem;
    opacity: 0.6;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.contact-item p {
    font-size: 1rem;
}

/* === Privacy / legal text === */
.legal-page main {
    max-width: 800px;
}
.legal-text {
    max-width: 800px;
}
.legal-text h2 {
    font-size: 1.25rem;
    margin: 2rem 0 0.5rem;
    color: var(--color-accent);
}
.legal-text p,
.legal-text ul {
    margin-bottom: 1rem;
    opacity: 0.85;
}
.legal-text ul {
    padding-left: 1.5rem;
}
.legal-text li {
    margin-bottom: 0.25rem;
}

/* === Category page === */
.category-page .page-content {
    margin-top: 1rem;
}

/* === 404 page === */
.error-page {
    text-align: center;
    padding: 4rem 1rem;
}
.error-page h1 {
    font-size: 6rem;
    opacity: 0.15;
    margin-bottom: -1rem;
}
.error-page h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.error-page p {
    opacity: 0.6;
    margin-bottom: 1.5rem;
}
.error-page .btn-cta {
    display: inline-block;
}

/* === Promo code card === */
.promo-card {
    background: var(--color-surface);
    border: 1px solid var(--color-accent);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    max-width: 480px;
    margin: 1.5rem auto;
}
.promo-label {
    display: block;
    font-size: 0.85rem;
    opacity: 0.7;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.promo-code-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.promo-code {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent);
    background: rgba(255,255,255,0.05);
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    letter-spacing: 0.1em;
    user-select: all;
}
.btn-copy {
    background: var(--color-btn);
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-copy:hover {
    background: var(--color-btn-hover);
}
.btn-copy.copied {
    background: var(--color-accent);
}
.promo-note {
    display: block;
    font-size: 0.8rem;
    opacity: 0.6;
    margin-bottom: 0.75rem;
}
.promo-cta {
    margin-top: 0.5rem;
}

/* === Promo banner === */
.promo-banner {
    text-align: center;
    margin: 1.5rem 0;
}
.promo-image {
    width: 100%;
    max-width: 600px;
    border-radius: 12px;
    margin: 0 auto;
    display: block;
}

/* === Trust / legal zone === */
.trust-zone {
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
    border-top: 1px solid var(--color-surface-border);
}
.age-badge {
    display: inline-block;
    background: var(--color-surface);
    border: 1px solid var(--color-surface-border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}
.disclaimer {
    font-size: 0.8rem;
    opacity: 0.5;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* === Language switcher === */
.lang-switcher {
    display: flex;
    gap: 0.25rem;
    margin-right: 0.5rem;
}
.lang-switcher a {
    color: var(--color-text);
    opacity: 0.5;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.4rem;
    border-radius: 3px;
    text-decoration: none;
    transition: opacity 0.2s;
}
.lang-switcher a:hover {
    opacity: 0.8;
    text-decoration: none;
}
.lang-switcher a.active {
    opacity: 1;
    background: rgba(255,255,255,0.1);
}

/* === Footer navigation === */
.footer-nav {
    max-width: 1200px;
    margin: 0 auto 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}
.footer-nav a {
    color: var(--color-text);
    opacity: 0.6;
    font-size: 0.85rem;
}
.footer-nav a:hover {
    opacity: 1;
}
.footer-custom {
    max-width: 1200px;
    margin: 0 auto 1rem;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.7;
}

/* === FAQ (details/summary) === */
details {
    background: var(--color-surface);
    border: 1px solid var(--color-surface-border);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    overflow: hidden;
}
details summary {
    padding: 1rem 1.25rem;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
details summary::-webkit-details-marker {
    display: none;
}
details summary::after {
    content: '+';
    font-size: 1.25rem;
    opacity: 0.5;
    transition: transform 0.2s;
    pointer-events: none;
    flex-shrink: 0;
}
details[open] summary::after {
    content: '\2212';
}
details > div,
details > p {
    padding: 0 1.25rem 1rem;
    opacity: 0.85;
    line-height: 1.6;
}

/* === Trust items strip === */
.trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    padding: 1.5rem 0;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    opacity: 0.7;
}
.trust-icon { font-size: 1.1rem; }

/* === Payment methods strip === */
.payments-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    padding: 1rem 0;
    border-top: 1px solid var(--color-surface-border);
}
.payment-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    opacity: 0.6;
}
.payment-icon { font-size: 1.1rem; }

/* === Category card links === */
.card-link {
    display: block;
    text-decoration: none;
    color: var(--color-text);
}
.card-link:hover { text-decoration: none; }

/* === Card icon === */
.card-icon { font-size: 1.5rem; margin-bottom: 0.5rem; }

/* === Card image === */
.card-image {
    width: calc(100% + 2.5rem);
    margin: -1.25rem -1.25rem 1rem;
    border-radius: 8px 8px 0 0;
    display: block;
}

/* === Child links list === */
.child-links {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}
.child-links li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-surface-border);
}
.child-links a {
    display: block;
    padding: 0.25rem 0;
}

/* === Service page === */
.service-page .page-content { margin-bottom: 2rem; }
.service-page .section {
    border-left: 3px solid var(--color-accent);
    padding-left: 1.25rem;
}

/* === Legal page enhancements === */
.legal-page main { line-height: 1.8; }
.legal-updated {
    font-size: 0.8rem;
    opacity: 0.5;
    margin-bottom: 1.5rem;
}

/* === Summary section === */
.summary-section {
    background: var(--color-surface);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

/* === Content image alignment (MVP: centered only) === */
.page-content .img-center {
    display: block;
    margin: 1rem auto;
    max-width: 100%;
    height: auto;
}

/* === Responsive === */
@media (max-width: 768px) {
    .hero { padding: 2rem 1rem; }
    .hero h1 { font-size: 1.75rem; }
    .hero-logo { max-height: 48px; }
    .header-inner { height: 56px; }
    .header-nav { gap: 0.5rem; }
    .btn-cta, .btn-cta-secondary {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }
    .burger-btn { display: flex; }
    .nav-menu {
        display: none;
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        background: var(--color-header);
        border-bottom: 1px solid var(--color-header-border);
        flex-direction: column;
        padding: 0.75rem 1rem;
        margin: 0;
        z-index: 100;
    }
    .nav-menu.open {
        display: flex;
    }
    .nav-menu a {
        padding: 0.6rem 0.75rem;
    }
    .site-header {
        position: relative;
    }
    .lang-switcher {
        margin-right: 0.25rem;
    }
    .header-cta {
        padding: 0.35rem 0.6rem;
        font-size: 0.75rem;
    }
    .cta-group .btn-cta,
    .cta-group .btn-cta-secondary {
        font-size: 0.875rem;
        padding: 0.5rem 1.25rem;
    }
    .promo-code { font-size: 1.25rem; }
}
