/* ============================================================
   POLISH 2026 — Tourix Group (TRG)
   Loaded LAST (after redesign.css). Adds visible depth,
   texture, and premium detailing across the homepage.
   ============================================================ */

:root { --gold:#c9a227; --gold2:#d4af37; --gold-lt:#ecc659; --ink:#15151c; --muted:#5d5d68; --line:#ececf1; }

html { scroll-behavior: smooth; }
::selection { background: rgba(201,162,39,0.25); color: #1a1408; }

/* ---------- Navbar: brand lockup + tighter nav ---------- */
.logo { gap: 12px !important; }
.logo img { height: 46px !important; }
.logo-text {
    display: flex !important; flex-direction: column; line-height: 1.05;
    font-weight: 900; font-size: 1.15rem; color: var(--ink) !important;
}
.logo-text small {
    font-weight: 600; font-size: .62rem; letter-spacing: 2px;
    color: var(--gold); text-transform: uppercase; margin-top: 3px;
}
.nav-links { align-items: center; }
.nav-links a { font-size: .98rem; }
.nav-links a[href="/login"] {
    box-shadow: 0 8px 22px rgba(201,162,39,0.32), inset 0 1px 0 rgba(255,255,255,0.5) !important;
}
.nav-links a[href="/login"]:hover { transform: translateY(-2px); }
@media (max-width: 620px){ .logo-text small { display:none; } .logo-text { font-size: 1rem; } }

/* ---------- HERO: dotted texture + layered depth ---------- */
.hero-x-grid-bg {
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background-image: radial-gradient(rgba(201,162,39,0.16) 1.2px, transparent 1.2px);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(ellipse 75% 60% at 72% 32%, #000 0%, transparent 72%);
            mask-image: radial-gradient(ellipse 75% 60% at 72% 32%, #000 0%, transparent 72%);
    opacity: .8;
}
.hero-x-orb.orb-a { width: 580px; height: 580px; }
/* decorative outlined frame behind the hero image → adds composition depth */
.hero-x-visual::before {
    content:''; position:absolute; z-index:0;
    inset: 26px -26px -26px 22px;
    border: 2px solid rgba(201,162,39,0.30);
    border-radius: 30px; transform: rotate(1.6deg);
}
.hero-x-visual::after {
    content:''; position:absolute; z-index:0;
    width: 120px; height: 120px; left: -34px; top: -30px;
    background-image: radial-gradient(rgba(201,162,39,0.42) 2px, transparent 2px);
    background-size: 16px 16px; opacity:.7;
}
.hero-x-frame { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.hero-x-frame:hover { transform: rotate(0deg) scale(1.015); }
.hero-x-frame::after {
    content:''; position:absolute; inset:0;
    background: linear-gradient(180deg, transparent 55%, rgba(20,16,4,0.28));
    pointer-events:none;
}

/* ---------- HERO: real "apps on App Store" strip ---------- */
.hero-apps { margin-top: 30px; }
.hero-apps-label {
    display:inline-flex; align-items:center; gap:8px;
    font-size:.82rem; font-weight:700; color:#8a8a93; letter-spacing:.3px; margin-bottom:14px;
}
.hero-apps-label .fa-apple { color:#1a1a1a; font-size:1rem; }
.hero-apps-row { display:flex; flex-wrap:wrap; gap:14px; }
.hero-apps-row a {
    display:block; width:52px; height:52px; border-radius:14px; overflow:hidden;
    box-shadow: 0 8px 20px rgba(20,20,35,0.14); border:1px solid rgba(255,255,255,0.9);
    transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s;
}
.hero-apps-row a:hover { transform: translateY(-5px); box-shadow: 0 16px 30px rgba(201,162,39,0.3); }
.hero-apps-row img { width:100%; height:100%; object-fit:cover; display:block; }
@media (max-width:900px){ .hero-apps-row { justify-content:center; } .hero-x-visual::before, .hero-x-visual::after { display:none; } }
@media (max-width:480px){ .hero-apps-row a { width:46px; height:46px; } }

/* ---------- Section headers: refined tag + accent underline ---------- */
.section-tag {
    display:inline-flex; align-items:center; gap:8px; border-radius:999px !important;
    font-weight:800 !important; box-shadow: 0 6px 18px rgba(201,162,39,0.12);
}
.section-title { position: relative; }
.section-header .section-title::after {
    content:''; display:block; width:64px; height:4px; margin:18px auto 0;
    background: linear-gradient(90deg, var(--gold-lt), var(--gold)); border-radius:999px;
}

/* ---------- Stats cards: gradient accent + lift ---------- */
.stats-section .stat {
    position: relative; overflow: hidden; border-radius: 22px !important;
    transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s !important;
}
.stats-section .stat::before {
    content:''; position:absolute; top:0; right:0; left:0; height:4px;
    background: linear-gradient(90deg, var(--gold-lt), var(--gold), var(--gold2));
    transform: scaleX(0); transform-origin: right; transition: transform .45s ease;
}
.stats-section .stat:hover { transform: translateY(-8px); box-shadow: 0 26px 60px rgba(201,162,39,0.18) !important; }
.stats-section .stat:hover::before { transform: scaleX(1); }

/* ---------- Cards: gradient hover accent bar ---------- */
.service-card, .feature-card, .partner-card, .app-card { position: relative; overflow: hidden; }
.service-card::before, .feature-card::before, .partner-card::before, .app-card::before {
    content:''; position:absolute; top:0; right:0; left:0; height:4px;
    background: linear-gradient(90deg, var(--gold-lt), var(--gold), var(--gold2));
    transform: scaleX(0); transform-origin: right; transition: transform .45s ease; z-index:4;
}
.service-card:hover::before, .feature-card:hover::before, .partner-card:hover::before, .app-card:hover::before {
    transform: scaleX(1);
}
.service-icon { transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.service-card:hover .service-icon { transform: translateY(-4px) rotate(-6deg) scale(1.06); }
.partner-card .fa-hotel, .partner-card .fa-store, .partner-card .fa-building, .partner-card .fa-graduation-cap { transition: transform .4s; }
.partner-card:hover [class*="fa-"] { transform: scale(1.12); }

/* app-store button gets a subtle apple-black sheen already; add icon pop */
.app-card:hover .app-icon { transform: scale(1.05); transition: transform .4s; }

/* ---------- WhatsApp float: gentle attention ---------- */
.floating-contact { box-shadow: 0 10px 28px rgba(37,211,102,0.45) !important; animation: wapulse 2.6s infinite; }
@keyframes wapulse { 0%,100%{ box-shadow:0 10px 28px rgba(37,211,102,0.45);} 50%{ box-shadow:0 10px 36px rgba(37,211,102,0.7);} }

/* ---------- FAQ: nicer hover ---------- */
.faq-item { transition: box-shadow .3s, border-color .3s, transform .3s; }
.faq-item:hover { border-color: rgba(201,162,39,0.4) !important; box-shadow: 0 14px 40px rgba(20,20,35,0.08); transform: translateY(-2px); }

/* ============================================================
   FOOTER — multi-column, dark, branded
   ============================================================ */
.site-footer {
    background: linear-gradient(180deg, #0e0e0e 0%, #14100a 100%);
    color: #b7b7bd; padding: 72px 0 26px; position: relative;
    border-top: 3px solid transparent;
    border-image: linear-gradient(90deg, var(--gold-lt), var(--gold), var(--gold2)) 1;
}
.foot-grid {
    display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr 1.1fr; gap: 40px;
    padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.foot-brand { max-width: 340px; }
.foot-logo { height: 66px; width: auto; margin-bottom: 20px; }
.foot-about { color: #9a9aa3; line-height: 2; font-size: .95rem; margin-bottom: 22px; }
.foot-social { display: flex; gap: 12px; }
.foot-social a {
    width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: var(--gold); font-size: 1.1rem; text-decoration: none;
    background: linear-gradient(135deg, rgba(201,162,39,0.16), rgba(212,175,55,0.06));
    border: 1px solid rgba(201,162,39,0.3); transition: transform .3s, background .3s, color .3s;
}
.foot-social a:hover { transform: translateY(-4px); background: linear-gradient(135deg,#ecc659,#c9a227); color: #1a1408; }
.foot-social a.wa { color: #25d366; border-color: rgba(37,211,102,0.35); background: linear-gradient(135deg, rgba(37,211,102,0.16), rgba(18,140,126,0.06)); }
.foot-social a.wa:hover { background: #25d366; color: #073; }

.foot-col h4 {
    color: #fff; font-size: 1.08rem; font-weight: 800; margin-bottom: 20px; position: relative; padding-bottom: 12px;
}
.foot-col h4::after { content:''; position:absolute; bottom:0; right:0; width:34px; height:3px; background: linear-gradient(90deg,var(--gold-lt),var(--gold)); border-radius:999px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { margin-bottom: 13px; }
.foot-col a { color: #a7a7ae; text-decoration: none; font-size: .95rem; transition: color .25s, padding .25s; display: inline-block; }
.foot-col a:hover { color: var(--gold); padding-right: 6px; }
.foot-contact li { display: flex; align-items: flex-start; gap: 10px; color: #a7a7ae; font-size: .95rem; }
.foot-contact li i { color: var(--gold); margin-top: 4px; width: 16px; text-align: center; }
.foot-contact a { color: #a7a7ae; }

.foot-bottom {
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px;
    padding-top: 24px; color: #6f6f77; font-size: .88rem;
}
.foot-bottom .copyright { color: #6f6f77; font-size: .88rem; }
.foot-legal { display: flex; align-items: center; gap: 10px; }
.foot-legal a { color: #8a8a92; text-decoration: none; transition: color .25s; }
.foot-legal a:hover { color: var(--gold); }
.foot-legal .sep { color: #444; }

@media (max-width: 900px) {
    .foot-grid { grid-template-columns: 1fr 1fr; gap: 34px 30px; }
    .foot-brand { grid-column: 1 / -1; max-width: none; }
}
@media (max-width: 560px) {
    .foot-grid { grid-template-columns: 1fr; }
    .foot-bottom { flex-direction: column; text-align: center; }
}

/* ============================================================
   SPLASH / LOADING SCREEN — branded
   ============================================================ */
.loading-screen {
    background: radial-gradient(circle at 50% 38%, #211a12 0%, #141210 60%, #0d0d0d 100%) !important;
}
.splash-inner { display: flex; flex-direction: column; align-items: center; }
.splash-logo-wrap {
    position: relative; width: 150px; height: 150px;
    display: flex; align-items: center; justify-content: center; margin-bottom: 26px;
}
.splash-ring {
    position: absolute; inset: 0; border-radius: 50%;
    border: 3px solid rgba(201,162,39,0.16);
    border-top-color: #e6bd36; border-right-color: #c9a227;
    animation: spin 1s linear infinite;
}
.splash-logo {
    width: 96px; height: auto;
    filter: drop-shadow(0 0 22px rgba(201,162,39,0.55));
    animation: splashPulse 1.9s ease-in-out infinite;
}
.splash-name {
    color: #ecd487; font-weight: 900; font-size: 1.3rem; letter-spacing: .3px;
    animation: splashFade .8s ease both;
}
.splash-en {
    color: #8f7c41; font-weight: 600; font-size: .7rem; letter-spacing: 5px;
    text-transform: uppercase; margin-top: 7px; animation: splashFade 1.1s ease both;
}
@keyframes splashPulse { 0%,100% { transform: scale(1); opacity: .92; } 50% { transform: scale(1.07); opacity: 1; } }
@keyframes splashFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ============================================================
   ACCESSIBILITY — skip link + focus
   ============================================================ */
.skip-link {
    position: fixed; top: -60px; inset-inline-start: 16px; z-index: 100001;
    background: linear-gradient(135deg, #ecc659, #c9a227); color: #1a1408; font-weight: 800;
    padding: 10px 22px; border-radius: 10px; text-decoration: none; box-shadow: 0 8px 24px rgba(201,162,39,.4);
    transition: top .25s;
}
.skip-link:focus { top: 16px; outline: 3px solid #1a1408; }
.faq-item:focus-visible { outline: 3px solid rgba(201,162,39,.6); outline-offset: 3px; }

/* ============================================================
   3D HERO SCENE (Three.js canvas) — hero visual centerpiece
   ============================================================ */
.hero-3d-wrap {
    position: relative; width: 100%; aspect-ratio: 1 / 1; z-index: 2;
    background: radial-gradient(circle at 50% 45%, rgba(201,162,39,0.12), transparent 62%);
}
.hero-3d { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
@media (max-width: 900px) { .hero-3d-wrap { max-width: 420px; margin: 0 auto; aspect-ratio: 1 / 1; } }

/* ============================================================
   READING PROGRESS BAR
   ============================================================ */
.scroll-progress {
    position: fixed; top: 0; inset-inline-start: 0; height: 3px; width: 0; z-index: 100000;
    background: linear-gradient(90deg, #ecc659, #c9a227, #d8b53e);
    box-shadow: 0 0 10px rgba(201,162,39,0.5); transition: width .1s linear;
}

/* ============================================================
   COOKIE CONSENT
   ============================================================ */
.cookie-consent {
    position: fixed; inset-inline: 20px; bottom: 20px; z-index: 4000; max-width: 760px; margin-inline: auto;
    background: rgba(20,18,16,0.96); backdrop-filter: blur(10px); color: #e8e8ee;
    border: 1px solid rgba(201,162,39,0.35); border-radius: 16px; padding: 16px 22px;
    display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
    box-shadow: 0 18px 50px rgba(0,0,0,0.4);
    transform: translateY(160%); opacity: 0; transition: transform .5s cubic-bezier(.2,.7,.2,1), opacity .5s;
}
.cookie-consent.show { transform: translateY(0); opacity: 1; }
.cookie-text { font-size: .92rem; line-height: 1.6; flex: 1; min-width: 220px; }
.cookie-text .fa-cookie-bite { color: #c9a227; margin-inline-end: 6px; }
.cookie-text a { color: #e9cf82; text-decoration: underline; }
.cookie-accept {
    background: linear-gradient(135deg, #ecc659, #c9a227); color: #1a1408; border: none; cursor: pointer;
    font-family: 'Cairo', sans-serif; font-weight: 800; font-size: .9rem; padding: 11px 28px; border-radius: 999px;
    white-space: nowrap; transition: transform .3s;
}
.cookie-accept:hover { transform: translateY(-2px); }
@media (max-width: 560px) { .cookie-consent { flex-direction: column; text-align: center; } }

/* ============================================================
   TECHNOLOGIES STRIP
   ============================================================ */
.tech-strip { margin-top: 58px; text-align: center; }
.tech-strip-label {
    display: block; color: #8a8a93; font-size: .82rem; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase; margin-bottom: 22px;
}
.tech-strip-icons {
    display: flex; justify-content: center; flex-wrap: wrap; align-items: center;
    gap: clamp(26px, 5vw, 56px); font-size: clamp(2rem, 4vw, 2.7rem); color: #bdb7a7;
}
.tech-strip-icons i { transition: color .3s, transform .3s; }
.tech-strip-icons i:hover { color: #c9a227; transform: translateY(-5px); }

/* ============================================================
   HOW WE WORK — process steps
   ============================================================ */
.how-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.how-step {
    position: relative; background: #fff; border: 1px solid var(--line); border-radius: 22px;
    padding: 42px 26px 30px; box-shadow: 0 14px 46px rgba(20,20,35,0.06); text-align: center;
    transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s, border-color .4s;
}
.how-step:hover { transform: translateY(-8px); box-shadow: 0 26px 60px rgba(201,162,39,0.16); border-color: rgba(201,162,39,0.4); }
.how-num {
    position: absolute; top: -18px; inset-inline-start: 26px;
    width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 1.05rem; color: #1a1408;
    background: linear-gradient(135deg, #ecc659, #c9a227); box-shadow: 0 10px 24px rgba(201,162,39,0.35);
}
.how-ic {
    width: 74px; height: 74px; margin: 8px auto 20px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 1.9rem; color: #c9a227;
    background: linear-gradient(135deg, rgba(201,162,39,0.12), rgba(212,175,55,0.05));
    transition: transform .4s cubic-bezier(.2,.7,.2,1);
}
.how-step:hover .how-ic { transform: scale(1.08) rotate(-6deg); }
.how-step h3 { font-size: 1.2rem; font-weight: 800; color: var(--ink); margin-bottom: 10px; }
.how-step p { color: var(--muted); line-height: 1.75; font-size: .95rem; }
@media (max-width: 980px) { .how-grid { grid-template-columns: repeat(2, 1fr); gap: 34px 22px; } }
@media (max-width: 520px) { .how-grid { grid-template-columns: 1fr; } }

/* ============================================================
   LANGUAGE SWITCHER
   ============================================================ */
.lang-switch { position: relative; display: inline-block; }
.lang-current {
    display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
    background: rgba(201,162,39,0.10); border: 1px solid rgba(201,162,39,0.30);
    color: #4a4a55; font-family: 'Cairo', sans-serif; font-weight: 700; font-size: .9rem;
    padding: 9px 15px; border-radius: 999px; transition: all .3s;
}
.lang-current:hover { border-color: var(--gold); color: var(--gold); }
.lang-current .fa-globe { color: var(--gold); }
.lang-current .caret { font-size: .68rem; opacity: .7; }
.lang-menu {
    position: absolute; top: calc(100% + 10px); inset-inline-end: 0; min-width: 200px;
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
    box-shadow: 0 18px 50px rgba(20,20,40,0.16); padding: 8px; z-index: 1200;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: all .25s;
}
.lang-switch:hover .lang-menu, .lang-switch.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu a {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px;
    color: #4a4a55 !important; text-decoration: none; font-size: .92rem; font-weight: 600; transition: background .2s;
}
.lang-menu a:hover { background: rgba(201,162,39,0.10); }
.lang-menu a.active { background: linear-gradient(135deg, rgba(201,162,39,0.16), rgba(212,175,55,0.06)); color: var(--gold) !important; }
.lang-menu .lang-code {
    display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 22px;
    font-size: .7rem; font-weight: 800; color: #9c7a10; background: rgba(201,162,39,0.12); border-radius: 6px;
}

/* Mobile sidebar language row */
.sidebar-langs { margin-top: 26px; padding: 22px 24px 0; border-top: 1px solid rgba(201,162,39,0.15); }
.sidebar-langs-title { color: #c9a227; font-weight: 700; font-size: .95rem; margin-bottom: 14px; }
.sidebar-langs-title .fa-globe { margin-inline-end: 6px; }
.sidebar-langs-row { display: flex; flex-wrap: wrap; gap: 8px; }
.sidebar-langs-row a {
    padding: 8px 14px; border-radius: 999px; background: rgba(201,162,39,0.12);
    border: 1px solid rgba(201,162,39,0.28); color: #e9cf82 !important; text-decoration: none;
    font-size: .85rem; font-weight: 700; transition: all .25s;
}
.sidebar-langs-row a.active, .sidebar-langs-row a:hover {
    background: linear-gradient(135deg,#ecc659,#c9a227); color: #1a1408 !important; border-color: transparent;
}

/* ============================================================
   LTR locale adjustments (site is authored RTL-first)
   ============================================================ */
[dir="ltr"] .hero-x-sub { margin-inline-start: 0; }
[dir="ltr"] .foot-contact li i { margin-top: 4px; }
[dir="ltr"] .lang-menu { text-align: left; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .floating-contact { animation: none; }
    .splash-ring { animation-duration: 2.4s; }
    .splash-logo { animation: none; }
}
