/* ===== Flowly Web Works — clean & minimal, bilingual (LTR/RTL) ===== */

:root {
  --ink: #18181B;
  --ink-soft: #3F3F46;
  --muted: #71717A;
  --line: #E7E5E4;
  --bg: #FFFFFF;
  --bg-alt: #FAFAF9;
  --accent: #2F6BFF;
  --accent-soft: #EAF0FF;
  --radius: 16px;
  --maxw: 1120px;
  --space: clamp(64px, 9vw, 120px);
  --font: 'Heebo', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

a { color: inherit; text-decoration: none; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1.5px solid transparent; cursor: pointer; transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}
.btn-lg { padding: 16px 34px; font-size: 16px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(47,107,255,.28); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; }
.brand-mark { width: 16px; height: 16px; border-radius: 5px; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); display: inline-block; }
.brand-accent { color: var(--muted); font-weight: 500; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink-soft); font-size: 15px; font-weight: 500; transition: color .2s; }
.nav a:hover { color: var(--accent); }
.nav-cta { color: var(--accent) !important; font-weight: 600 !important; }
.lang-toggle {
  font-family: var(--font); background: var(--bg-alt); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--ink); transition: background .2s, border-color .2s;
}
.lang-toggle:hover { background: var(--accent-soft); border-color: var(--accent); }

/* ===== Hero ===== */
.hero { padding: clamp(70px, 11vw, 140px) 0 var(--space); }
.eyebrow { color: var(--accent); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: 13px; margin-bottom: 22px; }
.hero-title { font-size: clamp(40px, 7vw, 76px); line-height: 1.04; font-weight: 800; letter-spacing: -.02em; max-width: 16ch; }
.hero-title span { display: block; }
.accent-text { color: var(--accent); }
.hero-sub { margin-top: 28px; font-size: clamp(17px, 2.2vw, 21px); color: var(--ink-soft); max-width: 56ch; font-weight: 400; }
.hero-actions { margin-top: 38px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { margin-top: 64px; display: flex; gap: clamp(28px, 6vw, 72px); flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 34px; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-num { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; letter-spacing: -.02em; }
.stat-label { color: var(--muted); font-size: 14px; font-weight: 500; }

/* ===== Sections ===== */
.section { padding: var(--space) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { margin-bottom: 56px; max-width: 40ch; }
.section-eyebrow { color: var(--accent); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: 13px; margin-bottom: 12px; }
.section-title { font-size: clamp(30px, 4.5vw, 48px); line-height: 1.1; font-weight: 800; letter-spacing: -.02em; }

/* ===== Cards / grids ===== */
.grid { display: grid; gap: 22px; }
.grid-services { grid-template-columns: repeat(4, 1fr); }
.grid-work { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .2s ease, box-shadow .2s ease, border-color .2s; }

.service-card { padding: 30px 26px; }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(24,24,27,.07); border-color: transparent; }
.service-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font-size: 22px; margin-bottom: 18px; }
.service-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.service-card p { color: var(--muted); font-size: 15px; }

/* ===== Work cards ===== */
.work-card { overflow: hidden; }
.work-card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(24,24,27,.10); border-color: transparent; }
.work-thumb { height: 190px; position: relative; display: flex; align-items: flex-end; padding: 18px; overflow: hidden; }
.work-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .4s ease; }
.work-card:hover .work-img { transform: scale(1.04); }
.thumb-1 { background: linear-gradient(135deg, #1E3A5F, #2F6BFF); }
.thumb-2 { background: linear-gradient(135deg, #0F766E, #14B8A6); }
.thumb-3 { background: linear-gradient(135deg, #6D28D9, #A78BFA); }
.thumb-4 { background: linear-gradient(135deg, #B45309, #F59E0B); }
.thumb-5 { background: linear-gradient(135deg, #BE123C, #FB7185); }
.thumb-6 { background: linear-gradient(135deg, #0E7490, #38BDF8); }
.work-tag { position: relative; z-index: 2; background: rgba(255,255,255,.95); color: var(--ink); font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 999px; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.work-body { padding: 24px 26px 28px; }
.work-body h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; letter-spacing: -.01em; }
.work-body p { color: var(--ink-soft); font-size: 15px; margin-bottom: 16px; }
.work-meta { color: var(--muted); font-size: 13px; font-weight: 500; letter-spacing: .01em; }

/* ===== Capability bands ===== */
.bands-head { margin-top: 64px; margin-bottom: 28px; }
.bands-title { font-size: clamp(22px, 3vw, 30px); font-weight: 800; letter-spacing: -.02em; }
.bands { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.band { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; transition: border-color .2s, box-shadow .2s, transform .2s; }
.band:hover { border-color: var(--accent); box-shadow: 0 12px 30px rgba(24,24,27,.06); transform: translateY(-3px); }
.band-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); font-size: 19px; margin-bottom: 14px; }
.band h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.band p { color: var(--muted); font-size: 14px; line-height: 1.55; }

/* ===== About ===== */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.about-text p { color: var(--ink-soft); font-size: 17px; margin-top: 18px; max-width: 56ch; }
.about-list { list-style: none; margin-top: 26px; display: grid; gap: 12px; }
.about-list li { padding-inline-start: 28px; position: relative; color: var(--ink-soft); font-weight: 500; }
.about-list li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--accent); font-weight: 800; }
.about-card { padding: 30px 28px; background: var(--bg-alt); }
.about-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips span { background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 8px 15px; font-size: 14px; font-weight: 500; }

/* ===== Contact ===== */
.contact { text-align: center; }
.contact-inner { max-width: 620px; margin: 0 auto; }
.contact-title { font-size: clamp(32px, 5vw, 52px); font-weight: 800; letter-spacing: -.02em; }
.contact-sub { color: var(--ink-soft); font-size: 18px; margin-top: 16px; }
.contact-actions { margin-top: 32px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.contact-note { margin-top: 20px; font-size: 13px; color: var(--muted); font-style: italic; }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-copy { color: var(--muted); font-size: 14px; }

/* ===== RTL adjustments ===== */
[dir="rtl"] body, [dir="rtl"] { text-align: right; }
[dir="rtl"] .hero-title, [dir="rtl"] .section-head { margin-inline-start: 0; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .grid-services { grid-template-columns: repeat(2, 1fr); }
  .grid-work { grid-template-columns: repeat(2, 1fr); }
  .bands { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .nav { display: none; }
  .grid-services, .grid-work { grid-template-columns: 1fr; }
  .hero-title { font-size: clamp(34px, 11vw, 48px); }
}
