/* ==================== HERO SECTION ==================== */
.hero {
    position: relative;
    min-height: calc(100vh - var(--header-h));
    display: flex;
    align-items: center;
    padding: 160px 0 100px;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 60px;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(3rem, 5.5vw, 5.8rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
}

[dir="rtl"] .hero-title {
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 540px;
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 36px;
    padding-top: 32px;
    border-top: 1px solid var(--line);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    color: var(--text);
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.stat-number span {
    color: var(--gold);
}

.stat-label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

/* Hero Media / Graphic Visual */
.hero-visual {
    position: relative;
    display: grid;
    place-items: center;
}

.hero-visual-bg {
    position: absolute;
    width: 100%;
    aspect-ratio: 1;
    max-width: 460px;
    background: radial-gradient(circle, var(--gold-wash-strong) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    transform: translateZ(0);
    will-change: transform, opacity;
    animation: pulse-glow 6s ease-in-out infinite;
}

.hero-main-img {
    position: relative;
    z-index: 2;
    width: min(380px, 80%);
    filter: drop-shadow(0 12px 24px rgba(229, 183, 87, 0.14));
    transform: translateZ(0);
    will-change: transform;
    animation: float 6s ease-in-out infinite;
}

.hero-floating-card {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    background: rgba(18, 21, 27, 0.94);
    border: 1px solid var(--line-gold);
    border-radius: var(--radius);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22), 0 0 18px rgba(229, 183, 87, 0.08);
    transform: translateZ(0);
    will-change: transform;
    animation: float 5s ease-in-out infinite 1s;
}

.hero-floating-card.card-1 {
    top: 12%;
    inset-inline-start: -20px;
}

.hero-floating-card.card-2 {
    bottom: 12%;
    inset-inline-end: -10px;
}

.floating-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    color: #0c0e12;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    border-radius: 10px;
    font-size: 16px;
}

.floating-info strong {
    display: block;
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
}

.floating-info small {
    color: var(--muted);
    font-size: 11px;
}

/* ==================== STORE HIGHLIGHTS ==================== */
.highlights-section {
    padding: 100px 0;
    background: var(--surface);
    border-block: 1px solid var(--line);
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.highlight-card {
    position: relative;
    padding: 32px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    overflow: hidden;
}

.highlight-card:hover {
    transform: translateY(-6px);
    border-color: var(--line-gold);
    background: var(--surface-3);
}

.highlight-num {
    position: absolute;
    top: 24px;
    inset-inline-end: 28px;
    color: var(--quiet);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.highlight-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    color: var(--gold);
    background: var(--gold-wash);
    border: 1px solid var(--line-gold);
    border-radius: var(--radius);
    font-size: 20px;
    margin-bottom: 24px;
}

.highlight-card h3 {
    color: var(--text);
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 8px;
}

.highlight-card p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.highlight-card p .hl-link {
    color: var(--gold);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: opacity .2s;
}

.highlight-card p .hl-link:hover {
    opacity: .8;
}

/* ==================== CATALOG SECTION ==================== */
.services-page-hero {
    padding: 160px 0 60px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
}

/* Keep the store page visually even instead of exposing the global ambient layers at the edges. */
body[data-page="services"] {
    background: var(--bg);
}

body[data-page="services"]::before,
body[data-page="services"]::after {
    display: none;
}

.catalog-section {
    padding: 120px 0;
    background: var(--bg);
}

/* ── Store Views (Category ↔ Services transition) ──────────────── */
.store-view {
    transition: opacity .3s, transform .3s;
}
.store-view-hidden {
    display: none;
}
.store-view-hidden.fade-in {
    display: block;
    animation: fadeSlideUp .35s ease;
}
@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Back Button ───────────────────────────────────────────────── */
.back-to-cats-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    margin-bottom: 20px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: .2s;
    font-family: inherit;
}
.back-to-cats-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* ── Services View Header ──────────────────────────────────────── */
/* ── Public Category Grid (1:1 square cards) ───────────────────── */
.public-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 160px);
    justify-content: center;
    gap: 14px;
}
.public-cat-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: var(--surface);
    cursor: pointer;
    transition: .25s;
    text-align: center;
    font-family: inherit;
    overflow: hidden;
}
.public-cat-card:hover {
    border-color: var(--cat-color);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,.15);
}
.public-cat-card.active {
    border-color: var(--cat-color);
    background: color-mix(in srgb, var(--cat-color) 8%, var(--surface));
}
.public-cat-icon {
    width: 65%;
    height: 65%;
    display: grid;
    place-items: center;
    color: var(--cat-color);
    font-size: 40px;
    transition: .25s;
}
.public-cat-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.public-cat-card:hover .public-cat-icon {
    transform: scale(0.75);
    opacity: .35;
}
.public-cat-label {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    opacity: 0;
    transition: .25s;
    pointer-events: none;
}
.public-cat-card:hover .public-cat-label {
    opacity: 1;
}
.public-cat-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}
.public-cat-count {
    font-size: 11px;
    color: var(--muted);
}
.public-cat-share {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: none;
    background: rgba(0,0,0,.5);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 11px;
    cursor: pointer;
    opacity: 0;
    transition: .2s;
    z-index: 2;
}
.public-cat-card:hover .public-cat-share {
    opacity: 1;
}

/* ── Service Card Share Button ─────────────────────────────────── */
.service-card .card-top {
    position: relative;
}
.service-share-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--surface-2);
    color: var(--muted);
    display: grid;
    place-items: center;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
}
.service-share-btn:hover {
    color: var(--gold-light);
    border-color: var(--line-gold);
    background: var(--gold-wash);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(229, 183, 87, 0.2);
}

@media (max-width: 500px) {
    .public-cat-grid { grid-template-columns: repeat(auto-fill, 120px); gap: 10px; }
    .public-cat-icon { width: 40px; height: 40px; font-size: 20px; }
}

/* ==================== PORTFOLIO SHOWCASE ==================== */
.portfolio-section {
    padding: 120px 0;
    background: var(--surface);
    border-block: 1px solid var(--line);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
    margin-top: 40px;
}

.portfolio-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface-2);
    border: 1px solid var(--line);
    transition: var(--transition);
}

.portfolio-item:hover {
    transform: translateY(-8px);
    border-color: var(--line-gold);
    box-shadow: var(--shadow);
}

.portfolio-img-box {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--surface-3);
}

.portfolio-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease);
}

.portfolio-item:hover .portfolio-img-box img {
    transform: scale(1.08);
}

.portfolio-info {
    padding: 24px;
}

.portfolio-tag {
    color: var(--gold);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.portfolio-title {
    color: var(--text);
    font-size: 18px;
    font-weight: 800;
}

/* ==================== TESTIMONIALS ==================== */
.reviews-section {
    padding: 120px 0;
    background: var(--surface);
    border-top: 1px solid var(--line);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.review-card {
    padding: 30px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.review-card:hover {
    border-color: var(--line-gold);
    transform: translateY(-4px);
}

.stars {
    color: #f1c40f;
    font-size: 14px;
    margin-bottom: 16px;
}

.review-text {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}

.reviewer {
    display: flex;
    align-items: center;
    gap: 14px;
}

.reviewer-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gold-wash);
    border: 1px solid var(--line-gold);
    display: grid;
    place-items: center;
    color: var(--gold);
    font-weight: 800;
    overflow: hidden;
    flex-shrink: 0;
}

.reviewer-info strong {
    display: block;
    color: var(--text);
    font-size: 14px;
    font-weight: 800;
}

.reviewer-info span {
    color: var(--quiet);
    font-size: 12px;
}

/* ==================== FAQ ACCORDION ==================== */
.faq-section {
    padding: 120px 0;
    background: var(--surface);
    border-top: 1px solid var(--line);
}

.faq-container {
    max-width: 800px;
    margin: 48px auto 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--line-gold);
    background: var(--surface-3);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.faq-item.active {
    border-color: var(--line-gold);
    background: var(--surface-3);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 28px;
    color: var(--text);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.faq-question i {
    color: var(--gold);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 28px 24px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* ==================== ABOUT & CONTACT ==================== */
.about-section {
    padding: 120px 0;
    background: var(--bg);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.contact-section {
    padding: 120px 0;
    background: var(--surface);
    border-top: 1px solid var(--line);
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.contact-card:hover {
    border-color: var(--line-gold);
    background: var(--surface-3);
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(229, 183, 87, 0.15);
}

.contact-card i {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    color: var(--gold);
    background: var(--gold-wash);
    border: 1px solid var(--line-gold);
    border-radius: var(--radius);
    font-size: 20px;
}

.contact-card h4 {
    color: var(--text);
    font-size: 15px;
    font-weight: 700;
}

.contact-card p {
    color: var(--muted);
    font-size: 14px;
    margin-top: 4px;
}

/* Responsive Rules */
@media (max-width: 992px) {
    .hero .container { grid-template-columns: 1fr; text-align: center; }
    .hero-subtitle { margin-inline: auto; }
    .hero-btns { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-visual { order: -1; }
    .hero-floating-card.card-1 { inset-inline-start: 10px; }
    .hero-floating-card.card-2 { inset-inline-end: 10px; }
    .highlights-grid { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; }
    .contact-cards { grid-template-columns: 1fr; }
}

/* Light Theme Pages Overrides */
body.light-theme .hero-floating-card {
    background: var(--surface-glass);
    box-shadow: 0 8px 28px rgba(28, 25, 23, 0.06);
}

body.light-theme .highlight-card,
body.light-theme .contact-card,
body.light-theme .faq-item {
    background: var(--surface);
    border-color: var(--line);
}

body.light-theme .highlight-card:hover,
body.light-theme .contact-card:hover,
body.light-theme .faq-item:hover,
body.light-theme .faq-item.active {
    background: var(--surface-2);
    border-color: var(--line-gold);
    box-shadow: 0 8px 28px rgba(28, 25, 23, 0.06);
}

body.light-theme::before {
    background:
        radial-gradient(circle at 80% 10%, rgba(176, 138, 58, 0.04), transparent 35%),
        radial-gradient(circle at 10% 45%, rgba(176, 138, 58, 0.03), transparent 40%),
        radial-gradient(circle at 50% 85%, rgba(176, 138, 58, 0.02), transparent 40%);
}

body.light-theme::after {
    background-image: radial-gradient(rgba(28, 25, 23, 0.03) 1px, transparent 1px);
    opacity: 0.4;
}

.about-social-btn {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--surface-2);
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 16px;
    text-decoration: none;
    transition: var(--transition);
}
.about-social-btn:hover {
    color: var(--gold);
    border-color: var(--line-gold);
    background: var(--gold-wash);
    transform: translateY(-3px);
}
