/* 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;
}
.footer-locale-flags {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.footer-locale-flags a { display: inline-flex; opacity: 0.6; transition: opacity 0.15s; }
.footer-locale-flags a:hover { opacity: 1; }

/* === Navigation === */
.nav-menu {
    list-style: none;
}
/* Desktop nav — inline links, hidden on mobile */
.nav-menu--desktop {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
/* Mobile drawer — hidden on desktop, shown via .open */
.nav-menu--mobile {
    display: none;
}
/* Desktop CTA buttons (header-actions) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
/* CTA buttons inside mobile drawer */
.nav-menu-cta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    list-style: none;
    margin-left: 1rem;
}
[dir="rtl"] .nav-menu-cta {
    margin-left: 0;
    margin-right: 1rem;
}
.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;
}

/* === Benefits grid — centered incomplete rows === */
.benefits-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
    margin: 1.5rem 0;
}
.benefits-grid .card {
    flex: 0 1 calc(33.333% - 1rem);
    min-width: 280px;
    box-sizing: border-box;
}

/* === 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 (dropdown disclosure) === */
.lang-switcher {
    position: relative;
    margin-right: 0.5rem;
}
.lang-switcher-trigger {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: none;
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    color: var(--color-text);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    opacity: 0.75;
    transition: opacity 0.2s, border-color 0.2s;
    font-family: inherit;
    line-height: 1.4;
}
.lang-switcher-trigger:hover {
    opacity: 1;
    border-color: rgba(255,255,255,0.15);
}
.lang-switcher-trigger[aria-expanded="true"] {
    opacity: 1;
    border-color: rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.06);
}
.lang-switcher-trigger:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}
.lang-switcher-arrow {
    transition: transform 0.2s;
    flex-shrink: 0;
}
.lang-switcher-trigger[aria-expanded="true"] .lang-switcher-arrow {
    transform: rotate(180deg);
}
.lang-switcher-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 160px;
    background: var(--color-header);
    border: 1px solid var(--color-header-border);
    border-radius: 6px;
    padding: 0.35rem 0;
    list-style: none;
    margin: 0;
    z-index: 200;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.lang-switcher[data-open] .lang-switcher-menu {
    display: block;
}
.lang-switcher-menu--scrollable {
    max-height: 280px;
    overflow-y: auto;
    overscroll-behavior: contain;
}
.lang-switcher-menu li {
    list-style: none;
}
.lang-switcher-menu a {
    display: block;
    padding: 0.45rem 0.85rem;
    color: var(--color-text);
    font-size: 0.825rem;
    text-decoration: none;
    opacity: 0.75;
    transition: opacity 0.15s, background 0.15s;
    white-space: nowrap;
}
.lang-switcher-menu a:hover,
.lang-switcher-menu a:focus {
    opacity: 1;
    background: rgba(255,255,255,0.06);
    text-decoration: none;
}
.lang-switcher-menu a[aria-current="page"] {
    opacity: 1;
    background: rgba(255,255,255,0.1);
    font-weight: 600;
}
.lang-switcher-menu a.lang-switcher-away {
    opacity: 0.5;
    font-style: italic;
}
.lang-switcher-menu a:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: -2px;
}
[dir="rtl"] .lang-switcher-menu {
    right: auto;
    left: 0;
}
/* Flag icons in language switcher */
.lang-flag {
    display: inline-block;
    width: 20px;
    height: 15px;
    border-radius: 2px;
    vertical-align: middle;
    margin-inline-end: 0.4rem;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.15);
    flex-shrink: 0;
    object-fit: cover;
}

/* === 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;
}

/* === Footer columns (structured footer) === */
.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 1.5rem;
    text-align: left;
}
[dir="rtl"] .footer-columns { text-align: right; }
.footer-col-heading {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.5;
    margin-bottom: 0.75rem;
    font-weight: 600;
}
.footer-col-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-col-links li { margin-bottom: 0.15rem; }
.footer-col-links a {
    display: block;
    padding: 0.25rem 0;
    color: var(--color-text);
    opacity: 0.65;
    font-size: 0.875rem;
    transition: opacity 0.15s;
}
.footer-col-links a:hover { opacity: 1; text-decoration: none; }
.footer-col-images {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}
.footer-col-images a { display: inline-flex; }
.footer-col-img {
    height: 28px;
    width: auto;
    opacity: 0.75;
    transition: opacity 0.15s;
}
.footer-col-img:hover { opacity: 1; }

/* === 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;
}

/* === Strip sections (trust & payments shared) === */
.strip-section { text-align: center; }
.strip-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text);
    opacity: 0.5;
    margin-bottom: 0.75rem;
}
.strip-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}
.strip-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    background: var(--color-surface);
    border: 1px solid var(--color-surface-border);
    border-radius: 20px;
}
.strip-pill-icon { font-size: 1.2rem; }
.trust-section { padding: 1.5rem 0; }
.payments-section { padding: 1.25rem 0; }

/* === 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 === */
.page-content .img-center,
.page-content .gp-content-img {
    display: block;
    margin: 1rem auto;
    max-width: 100%;
    height: auto;
}

/* === Responsive — compact mode (<=960px) === */
@media (max-width: 960px) {
    .burger-btn { display: flex; }
    .site-header { position: relative; }
    .header-inner { height: 56px; }
    .header-nav { gap: 0.5rem; }
    .nav-menu--desktop { display: none; }
    .header-actions { display: none; }
    .nav-menu--mobile {
        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--mobile.open { display: flex; }
    .nav-menu a { padding: 0.6rem 0.75rem; }
    /* CTA buttons in drawer — stacked vertically */
    .nav-menu-cta {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        margin-left: 0;
        margin-top: 0.75rem;
        padding-top: 0.75rem;
        border-top: 1px solid var(--color-header-border);
    }
    [dir="rtl"] .nav-menu-cta { margin-right: 0; }
    .nav-menu-cta .header-cta {
        width: 100%;
        text-align: center;
        padding: 0.6rem 1rem;
        font-size: 0.875rem;
        box-sizing: border-box;
    }
    /* Language switcher — flag only */
    .lang-switcher { margin-right: 0.25rem; }
    .lang-switcher-current { display: none; }
    .lang-switcher-arrow { display: none; }
    .lang-switcher-trigger { padding: 0.25rem; gap: 0; }
    /* Keep text visible when no flag available */
    .lang-switcher-trigger--no-flag .lang-switcher-current { display: inline; }
    .lang-switcher-menu {
        right: -0.5rem;
        min-width: 140px;
    }
    [dir="rtl"] .lang-switcher-menu {
        right: auto;
        left: -0.5rem;
    }
    /* Footer columns — 2 col on tablet */
    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}
/* === Responsive — small screens (<=768px) === */
@media (max-width: 768px) {
    .hero { padding: 2rem 1rem; }
    .hero h1 { font-size: 1.75rem; }
    .hero-logo { max-height: 48px; }
    .btn-cta, .btn-cta-secondary {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }
    .cta-group .btn-cta,
    .cta-group .btn-cta-secondary {
        font-size: 0.875rem;
        padding: 0.5rem 1.25rem;
    }
    .benefits-grid .card { flex: 1 1 100%; min-width: 0; }
    .promo-code { font-size: 1.25rem; }
    .page-content .gp-content-img[data-gp-width-pct] {
        min-width: min(100%, 280px);
    }
}
/* === Responsive — mobile footer (<=480px) === */
@media (max-width: 480px) {
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}
/* === Responsive — very small screens (<=360px) === */
@media (max-width: 360px) {
    .site-header { padding: 0 0.75rem; }
    .logo-img { height: 28px; }
    .logo-text { font-size: 1rem; }
}
