/* ══════════════════════════════════════════════════════════
   Craft Site — Case Study (shared stylesheet)
   Reuses the design tokens from the root index.html
   ══════════════════════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg:            #050505;
    --card:          #111111;
    --card-hover:    #1a1a1a;
    --accent:        #FF4500;
    --accent-dim:    rgba(255,69,0,0.1);
    --accent-glow:   rgba(255,69,0,0.35);
    --white:         #ffffff;
    --muted:         rgba(255,255,255,0.5);
    --muted-light:   rgba(255,255,255,0.7);
    --border:        rgba(255,255,255,0.08);
    --border-strong: rgba(255,255,255,0.18);
    --ease:          cubic-bezier(0.23, 1, 0.32, 1);
}

html { scroll-behavior: smooth; }
body {
    background: var(--bg);
    color: var(--white);
    font-family: 'Cairo', sans-serif;
    font-weight: 400;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
body.ltr { font-family: 'Inter', sans-serif; }
.font-serif { font-family: 'Playfair Display', serif; }
a { color: inherit; }

/* ── Ambient glow ── */
.glow {
    position: fixed; top: -20%; left: 50%; transform: translateX(-50%);
    width: 1100px; height: 700px; pointer-events: none; z-index: 0;
    background: radial-gradient(ellipse at center, var(--accent-dim), transparent 62%);
    filter: blur(40px); opacity: 0.7;
}

/* ── Layout ── */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }
.sec  { padding: 84px 0; }
.sec-eyebrow {
    display: inline-block; font-family: 'Inter', sans-serif; font-size: 12px;
    font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 14px;
}
.sec-h2 { font-size: clamp(26px, 4vw, 40px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.sec-lead { color: var(--muted-light); max-width: 640px; margin-top: 14px; font-size: 16px; }

/* ── Scroll-in ── */
.s-in { opacity: 0; transform: translateY(26px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.s-in.on { opacity: 1; transform: none; }

/* ══════════════ NAV ══════════════ */
nav {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
    width: 94%; max-width: 760px; z-index: 1000;
    background: rgba(255,255,255,0.14);
    backdrop-filter: blur(32px) saturate(2.2) brightness(1.1);
    -webkit-backdrop-filter: blur(32px) saturate(2.2) brightness(1.1);
    border: 1px solid rgba(255,255,255,0.3); border-radius: 9999px;
    padding: 10px 18px; display: flex; align-items: center;
    justify-content: space-between; gap: 14px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.55);
    animation: nav-in 0.6s var(--ease) both;
}
@keyframes nav-in { from { opacity:0; transform:translateX(-50%) translateY(-18px); } to { opacity:1; transform:translateX(-50%) translateY(0); } }
.logo { display: flex; align-items: center; gap: 9px; text-decoration: none; flex-shrink: 0; direction: ltr; }
.logo-dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; }
.logo-mark { display: inline-flex; width: 25px; height: 25px; color: var(--white); }
.logo-mark svg { width: 100%; height: 100%; }
.foot-logo-mark { display: inline-flex; width: 22px; height: 22px; color: var(--white); }
.foot-logo-mark svg { width: 100%; height: 100%; }
.logo-text { font-size: 15px; font-weight: 700; color: var(--white); letter-spacing: -0.02em; font-family: 'Inter', sans-serif; }
.nav-back { font-size: 13px; color: var(--muted); text-decoration: none; transition: color 0.2s; white-space: nowrap; }
.nav-back:hover { color: var(--white); }
.nav-end { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.lang-toggle {
    display: flex; align-items: center; background: rgba(255,255,255,0.05);
    border: 1px solid var(--border); border-radius: 9999px; overflow: hidden;
    font-size: 12px; font-weight: 600; font-family: 'Inter', sans-serif;
}
.lang-toggle a { padding: 5px 11px; text-decoration: none; color: var(--muted); transition: all 0.2s; }
.lang-toggle a.active { background: var(--white); color: #000; }
.nav-cta {
    background: var(--accent); color: #000; text-decoration: none; padding: 7px 16px;
    border-radius: 9999px; font-size: 13px; font-weight: 700; white-space: nowrap;
    transition: opacity 0.2s; box-shadow: 0 4px 16px rgba(255,69,0,0.3);
}
.nav-cta:hover { opacity: 0.88; }

/* ══════════════ HERO ══════════════ */
.hero { padding: 150px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.badge {
    display: inline-flex; align-items: center; gap: 7px; font-family: 'Inter', sans-serif;
    font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--accent); background: var(--accent-dim);
    border: 1px solid rgba(255,69,0,0.25); padding: 6px 13px; border-radius: 9999px;
}
.hero h1 { font-size: clamp(34px, 5.4vw, 58px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; margin: 20px 0 6px; }
.hero-latin { font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.hero-tag { font-size: 18px; color: var(--muted-light); margin: 18px 0 24px; max-width: 460px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.meta-chip {
    font-size: 12.5px; color: var(--muted-light); background: var(--card);
    border: 1px solid var(--border); border-radius: 9999px; padding: 5px 12px;
    font-family: 'Inter', sans-serif;
}
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
    display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
    padding: 12px 22px; border-radius: 9999px; font-size: 14px; font-weight: 700;
    transition: transform 0.2s var(--ease), opacity 0.2s, background 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #000; box-shadow: 0 6px 24px rgba(255,69,0,0.32); }
.btn-primary:hover { opacity: 0.9; }
.btn-ghost { background: transparent; color: var(--white); border: 1px solid var(--border-strong); }
.btn-ghost:hover { background: rgba(255,255,255,0.06); }
.btn svg { width: 16px; height: 16px; }

.hero-shot {
    border-radius: 16px; overflow: hidden; border: 1px solid var(--border-strong);
    background: var(--card); box-shadow: 0 30px 80px rgba(0,0,0,0.6);
    transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
    transition: transform 0.6s var(--ease);
}
body.ltr .hero-shot { transform: perspective(1400px) rotateY(6deg) rotateX(2deg); }
.hero-shot:hover { transform: perspective(1400px) rotateY(0) rotateX(0); }
.hero-shot-bar { display: flex; gap: 6px; padding: 10px 14px; background: #0c0c0c; border-bottom: 1px solid var(--border); direction: ltr; }
.hero-shot-bar span { width: 10px; height: 10px; border-radius: 50%; background: #2a2a2a; }
.hero-shot img { width: 100%; display: block; }

/* ══════════════ ABOUT ══════════════ */
.about-body { max-width: 760px; }
.about-body p { color: var(--muted-light); font-size: 16.5px; margin-top: 16px; }
.about-body p:first-child { margin-top: 0; }
.about-body strong { color: var(--white); font-weight: 700; }

/* ══════════════ CARD GRIDS ══════════════ */
.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.feat {
    background: var(--card); border: 1px solid var(--border); border-radius: 16px;
    padding: 24px; transition: border-color 0.3s, transform 0.3s var(--ease), background 0.3s;
}
.feat:hover { border-color: var(--border-strong); transform: translateY(-4px); background: var(--card-hover); }
.feat-ico {
    width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
    background: var(--accent-dim); border: 1px solid rgba(255,69,0,0.22); margin-bottom: 16px;
}
.feat-ico svg { width: 20px; height: 20px; stroke: var(--accent); }
.feat h3 { font-size: 17px; font-weight: 700; margin-bottom: 7px; }
.feat p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* panels (the "sides") */
.panel {
    position: relative; background: var(--card); border: 1px solid var(--border);
    border-radius: 16px; padding: 24px 24px 24px 24px; overflow: hidden;
    transition: border-color 0.3s, transform 0.3s var(--ease);
}
.panel::before { content: ''; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); opacity: 0.85; }
.panel:hover { border-color: var(--border-strong); transform: translateY(-4px); }
.panel-tag {
    display: inline-block; font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent);
    background: var(--accent-dim); padding: 4px 10px; border-radius: 9999px; margin-bottom: 12px;
}
.panel h3 { font-size: 17px; font-weight: 700; margin-bottom: 7px; }
.panel p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* tech chips */
.tech { display: flex; flex-wrap: wrap; gap: 10px; }
.tech span {
    font-family: 'Inter', sans-serif; font-size: 13px; color: var(--muted-light);
    background: var(--card); border: 1px solid var(--border); border-radius: 9999px; padding: 7px 15px;
}

/* ══════════════ REVIEW ══════════════ */
.review-card {
    position: relative; background: linear-gradient(160deg, #141414, #0c0c0c);
    border: 1px solid var(--border-strong); border-radius: 22px; padding: 44px 40px 36px;
    max-width: 780px; margin: 0 auto; overflow: hidden;
}
.review-quote-mark { font-family: 'Playfair Display', serif; font-size: 120px; line-height: 0.6; color: var(--accent); opacity: 0.18; position: absolute; top: 34px; inset-inline-start: 28px; }
.review-text { font-size: clamp(18px, 2.4vw, 23px); font-weight: 500; line-height: 1.6; position: relative; z-index: 1; }
.review-who { display: flex; align-items: center; gap: 14px; margin-top: 26px; }
.review-avatar {
    width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
    background: var(--accent); color: #000; font-weight: 800; font-family: 'Inter', sans-serif; font-size: 18px;
}
.review-name { font-weight: 700; font-size: 16px; }
.review-role { font-size: 13.5px; color: var(--muted); }
.review-social {
    display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 13px;
    color: var(--accent); text-decoration: none; font-family: 'Inter', sans-serif;
}
.review-social:hover { text-decoration: underline; }
.review-social svg { width: 14px; height: 14px; }

/* ══════════════ OTHER WORK ══════════════ */
.more-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.more-card {
    display: block; text-decoration: none; background: var(--card); border: 1px solid var(--border);
    border-radius: 14px; overflow: hidden; transition: border-color 0.3s, transform 0.3s var(--ease);
}
.more-card:hover { border-color: var(--border-strong); transform: translateY(-4px); }
.more-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.more-card span { display: block; padding: 11px 14px; font-size: 13.5px; font-weight: 600; }

/* ══════════════ CTA ══════════════ */
.cta { text-align: center; }
.cta-box {
    background: radial-gradient(ellipse at top, rgba(255,69,0,0.12), transparent 60%), var(--card);
    border: 1px solid var(--border-strong); border-radius: 26px; padding: 60px 32px;
}
.cta-box h2 { font-size: clamp(26px, 4vw, 40px); font-weight: 800; letter-spacing: -0.02em; }
.cta-box p { color: var(--muted-light); margin: 14px auto 28px; max-width: 480px; }

/* ══════════════ FOOTER ══════════════ */
footer { border-top: 1px solid var(--border); padding: 40px 0; margin-top: 40px; }
.foot-inner { max-width: 1120px; margin: 0 auto; padding: 0 28px; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.foot-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; font-family: 'Inter', sans-serif; }
.foot-logo-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.foot-links { display: flex; flex-wrap: wrap; gap: 18px; list-style: none; }
.foot-links a { font-size: 14px; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.foot-links a:hover { color: var(--white); }
.foot-copy { font-size: 13px; color: var(--muted); font-family: 'Inter', sans-serif; }

/* ══════════════ FLOAT WHATSAPP ══════════════ */
.wa-float {
    position: fixed; bottom: 24px; inset-inline-end: 24px; width: 54px; height: 54px; z-index: 900;
    background: #25D366; border-radius: 50%; display: grid; place-items: center;
    box-shadow: 0 8px 30px rgba(37,211,102,0.4); transition: transform 0.2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ══════════════ RESPONSIVE ══════════════ */
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; gap: 32px; }
    .hero-shot { transform: none; order: -1; }
    body.ltr .hero-shot { transform: none; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .more-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .sec { padding: 60px 0; }
    .hero { padding: 130px 0 20px; }
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .more-grid { grid-template-columns: repeat(2, 1fr); }
    nav { padding: 9px 14px; gap: 8px; }
    .nav-back { display: none; }
    .review-card { padding: 34px 24px 28px; }
    .foot-inner { flex-direction: column; text-align: center; }
}
