/* Freshex — shared design system */
:root{
  --bg:#ffffff; --bg-alt:#f7f9fc; --text:#111827; --muted:#5b6472; --border:#e5e9f0;
  --accent:#2563eb; --accent-dark:#1d4ed8; --accent-light:#eff4ff;
  --amber:#d97706; --amber-light:#fef3e2;
  --success:#16a34a; --radius:14px;
  --shadow:0 1px 3px rgba(16,24,40,.06), 0 1px 2px rgba(16,24,40,.04);
  --shadow-lg:0 12px 32px rgba(16,24,40,.10);
  --header-h:72px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0; background:var(--bg); color:var(--text);
  font-family:-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  line-height:1.6; -webkit-font-smoothing:antialiased;
}
html[dir="rtl"] body{ font-family:"Segoe UI",Tahoma,Arial,sans-serif; }
img{max-width:100%; display:block}
a{color:inherit; text-decoration:none}
ul{margin:0; padding:0; list-style:none}
h1,h2,h3,h4{margin:0; line-height:1.25; font-weight:800; letter-spacing:-.01em}
p{margin:0}
.container{max-width:1140px; margin:0 auto; padding:0 24px}
.hidden{display:none !important}

/* Buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:13px 24px; border-radius:10px; font-weight:700; font-size:15px;
  border:1px solid transparent; cursor:pointer; transition:transform .12s, box-shadow .12s;
}
.btn:hover{ transform:translateY(-1px); }
.btn-primary{ background:var(--accent); color:#fff; box-shadow:0 4px 14px rgba(37,99,235,.28); }
.btn-primary:hover{ background:var(--accent-dark); }
.btn-secondary{ background:#fff; color:var(--text); border-color:var(--border); }
.btn-secondary:hover{ border-color:var(--accent); }
.btn-whatsapp{ background:#25D366; color:#fff; }
.btn-whatsapp:hover{ background:#1ebe5a; }
.btn-lg{ padding:16px 30px; font-size:16px; }
.btn-block{ width:100%; }

/* Header */
header.site{
  position:sticky; top:0; z-index:50; background:rgba(255,255,255,.92); backdrop-filter:blur(10px);
  border-bottom:1px solid var(--border);
}
.nav-wrap{ display:flex; align-items:center; justify-content:space-between; height:var(--header-h); }
.brand{ display:flex; align-items:center; gap:9px; font-weight:800; font-size:19px; color:var(--text); }
.brand .mark{
  width:34px; height:34px; border-radius:9px; background:linear-gradient(135deg,#2563eb,#1e3a8a);
  color:#fff; display:flex; align-items:center; justify-content:center; font-size:16px; font-weight:800;
}
.nav-links{ display:flex; align-items:center; gap:30px; }
.nav-links a{ font-weight:600; font-size:14.5px; color:var(--muted); }
.nav-links a:hover, .nav-links a.active{ color:var(--accent); }
.nav-actions{ display:flex; align-items:center; gap:10px; }
.lang-dropdown{ position:relative; }
.lang-switch{
  display:inline-flex; align-items:center; gap:6px; padding:8px 12px; border-radius:8px;
  border:1px solid var(--border); font-weight:700; font-size:13px; color:var(--text);
  background:none; cursor:pointer; font-family:inherit;
}
.lang-switch:hover{ border-color:var(--accent); color:var(--accent); }
.lang-switch .caret{ font-size:10px; transition:transform .15s; }
.lang-switch[aria-expanded="true"] .caret{ transform:rotate(180deg); }
.lang-menu{
  position:absolute; top:calc(100% + 8px); inset-inline-end:0; min-width:150px;
  background:#fff; border:1px solid var(--border); border-radius:10px; box-shadow:var(--shadow-lg);
  padding:6px; margin:0; opacity:0; transform:translateY(-6px); pointer-events:none;
  transition:opacity .15s, transform .15s; z-index:60;
}
.lang-menu.open{ opacity:1; transform:translateY(0); pointer-events:auto; }
.lang-option{
  display:flex; align-items:center; justify-content:space-between; gap:10px; padding:9px 10px;
  border-radius:7px; font-size:13.5px; font-weight:600; color:var(--text);
}
a.lang-option:hover{ background:var(--accent-light); color:var(--accent); }
.lang-option.active{ color:var(--accent); background:var(--accent-light); cursor:default; }
.nav-toggle{ display:none; background:none; border:none; cursor:pointer; padding:8px; }
.nav-toggle span{ display:block; width:22px; height:2px; background:var(--text); margin:4px 0; }

@media (max-width: 860px){
  .nav-links{
    position:fixed; inset-inline-start:0; top:var(--header-h); width:100%; background:#fff;
    flex-direction:column; align-items:flex-start; gap:0; padding:8px 24px 20px;
    border-bottom:1px solid var(--border); transform:translateY(-8px); opacity:0; pointer-events:none;
    transition:opacity .15s, transform .15s;
  }
  .nav-links.open{ transform:translateY(0); opacity:1; pointer-events:auto; }
  .nav-links > a{ padding:12px 0; width:100%; border-bottom:1px solid var(--border); }
  .nav-links .lang-dropdown{ width:100%; border-bottom:1px solid var(--border); }
  .nav-links .lang-switch{ width:100%; justify-content:space-between; border:none; padding:12px 0; }
  .nav-links .lang-menu{ position:static; box-shadow:none; border:none; padding:0 0 10px; margin:0; transform:none; }
  .nav-links .lang-option{ padding:10px 0; }
  .nav-toggle{ display:block; }
  .nav-actions .btn-primary-nav{ display:none; }
}

/* Hero */
.hero{
  background:radial-gradient(circle at 20% 10%, #1e3a8a 0%, #0f1420 48%, #0a0e17 100%);
  color:#fff; padding:88px 0 100px; position:relative; overflow:hidden;
}
.hero .glow{ position:absolute; width:480px; height:480px; border-radius:50%; filter:blur(110px); opacity:.28; background:#2563eb; top:-140px; inset-inline-end:-120px; }
.hero-grid{ display:grid; grid-template-columns:1.1fr .9fr; gap:56px; align-items:center; position:relative; z-index:1; }
.eyebrow{
  display:inline-flex; align-items:center; gap:8px; background:rgba(37,99,235,.18); border:1px solid rgba(96,165,250,.4);
  color:#93c5fd; font-size:13px; font-weight:700; letter-spacing:.03em; padding:7px 14px; border-radius:999px; margin-bottom:20px;
}
.eyebrow .dot{ width:7px; height:7px; border-radius:50%; background:#4ade80; box-shadow:0 0 8px #4ade80; }
.hero h1{ font-size:46px; color:#fff; }
.hero h1 span{ color:#60a5fa; }
.hero p.lead{ color:#cbd5e1; font-size:17.5px; margin-top:18px; max-width:540px; line-height:1.65; }
.hero-actions{ display:flex; gap:14px; margin-top:30px; flex-wrap:wrap; }
.trust-strip{ display:flex; gap:22px; margin-top:36px; flex-wrap:wrap; }
.trust-strip .item{ display:flex; align-items:center; gap:8px; color:#9aa4b6; font-size:13.5px; font-weight:600; }
.hero-visual img{ border-radius:16px; box-shadow:0 30px 80px rgba(0,0,0,.5); }

/* Sections */
section{ padding:88px 0; }
.section-alt{ background:var(--bg-alt); }
.section-head{ max-width:640px; margin:0 auto 48px; text-align:center; }
.section-head.left{ margin:0 0 44px; text-align:start; }
.kicker{ color:var(--accent); font-weight:700; font-size:13px; letter-spacing:.06em; text-transform:uppercase; margin-bottom:10px; display:block; }
.section-head h2{ font-size:34px; }
.section-head p{ color:var(--muted); font-size:16.5px; margin-top:14px; }

/* Service cards */
.grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.card{
  background:#fff; border:1px solid var(--border); border-radius:var(--radius); padding:32px 28px;
  box-shadow:var(--shadow); transition:box-shadow .15s, transform .15s;
}
.card:hover{ box-shadow:var(--shadow-lg); transform:translateY(-3px); }
.card .icon{
  width:52px; height:52px; border-radius:13px; display:flex; align-items:center; justify-content:center;
  font-size:24px; background:var(--accent-light); margin-bottom:18px;
}
.card h3{ font-size:19px; margin-bottom:10px; }
.card p{ color:var(--muted); font-size:15px; }
.card ul{ margin-top:14px; }
.card ul li{ display:flex; gap:8px; align-items:flex-start; color:var(--muted); font-size:14px; padding:4px 0; }
.card ul li b{ color:var(--text); }

/* Why-us / feature list */
.grid-2{ display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.feat{ display:flex; gap:16px; padding:22px; border:1px solid var(--border); border-radius:var(--radius); background:#fff; }
.feat .icon{
  width:46px; height:46px; min-width:46px; border-radius:12px; background:var(--accent-light);
  display:flex; align-items:center; justify-content:center; font-size:21px;
}
.feat h4{ font-size:16px; margin-bottom:5px; }
.feat p{ color:var(--muted); font-size:14px; }

/* Process steps */
.steps{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; counter-reset:step; }
.step{ position:relative; padding:28px 22px; border:1px solid var(--border); border-radius:var(--radius); background:#fff; }
.step .num{
  width:36px; height:36px; border-radius:10px; background:var(--accent); color:#fff; font-weight:800;
  display:flex; align-items:center; justify-content:center; margin-bottom:16px; font-size:15px;
}
.step h4{ font-size:16px; margin-bottom:6px; }
.step p{ color:var(--muted); font-size:14px; }

/* Portfolio teaser + cards */
.proj-card{
  display:grid; grid-template-columns:1fr 1fr; gap:0; border:1px solid var(--border); border-radius:var(--radius);
  overflow:hidden; background:#fff; box-shadow:var(--shadow); margin-bottom:28px;
}
.proj-media{ display:flex; align-items:center; justify-content:center; overflow:hidden; background:var(--bg-alt); }
.proj-card img{ width:100%; height:auto; max-height:100%; object-fit:contain; }
.proj-body{ padding:36px; display:flex; flex-direction:column; }
.proj-tag{ display:inline-block; background:var(--accent-light); color:var(--accent); font-size:12px; font-weight:700; padding:5px 12px; border-radius:999px; margin-bottom:14px; width:fit-content; }
.proj-body h3{ font-size:24px; margin-bottom:10px; }
.proj-body p.desc{ color:var(--muted); font-size:15px; margin-bottom:18px; }
.proj-feats{ display:flex; flex-wrap:wrap; gap:8px; margin-bottom:22px; }
.proj-feats span{ background:var(--bg-alt); border:1px solid var(--border); font-size:12.5px; font-weight:600; padding:6px 11px; border-radius:8px; color:var(--text); }
.proj-actions{ display:flex; gap:12px; margin-top:auto; flex-wrap:wrap; }
.demo-box{
  background:var(--bg-alt); border:1px dashed var(--border); border-radius:10px; padding:14px 16px; margin-top:18px; font-size:13px;
}
.demo-box .row{ display:flex; justify-content:space-between; padding:3px 0; }
.demo-box b{ font-family:ui-monospace,Menlo,monospace; }
.demo-box .role{ color:var(--muted); }
.coming-soon{
  border:2px dashed var(--border); border-radius:var(--radius); padding:50px 30px; text-align:center; color:var(--muted);
}
.coming-soon .icon{ font-size:32px; margin-bottom:10px; }

/* CTA banner */
.cta-banner{
  background:linear-gradient(135deg,#1e3a8a,#0f1420); color:#fff; border-radius:20px; padding:56px 48px;
  text-align:center; position:relative; overflow:hidden;
}
.cta-banner h2{ font-size:30px; color:#fff; }
.cta-banner p{ color:#cbd5e1; margin-top:12px; font-size:16px; }
.cta-banner .hero-actions{ justify-content:center; margin-top:26px; }

/* FAQ */
.faq-item{ border-bottom:1px solid var(--border); padding:22px 0; }
.faq-item summary{ font-weight:700; font-size:16px; cursor:pointer; list-style:none; display:flex; justify-content:space-between; align-items:center; }
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary .plus{ font-size:20px; color:var(--accent); transition:transform .15s; }
.faq-item[open] summary .plus{ transform:rotate(45deg); }
.faq-item p{ color:var(--muted); margin-top:12px; font-size:14.5px; line-height:1.7; }

/* Contact page */
.contact-grid{ display:grid; grid-template-columns:1.1fr .9fr; gap:40px; }
.form-card{ background:#fff; border:1px solid var(--border); border-radius:var(--radius); padding:36px; box-shadow:var(--shadow); }
.field{ margin-bottom:18px; }
.field label{ display:block; font-size:13.5px; font-weight:700; margin-bottom:7px; }
.field input, .field select, .field textarea{
  width:100%; padding:12px 14px; border:1px solid var(--border); border-radius:9px; background:var(--bg-alt);
  color:var(--text); font-family:inherit; font-size:14.5px;
}
.field textarea{ min-height:120px; resize:vertical; }
.contact-info .item{ display:flex; gap:14px; align-items:flex-start; padding:18px 0; border-bottom:1px solid var(--border); }
.contact-info .item:last-child{ border-bottom:none; }
.contact-info .icon{ width:44px; height:44px; min-width:44px; border-radius:11px; background:var(--accent-light); display:flex; align-items:center; justify-content:center; font-size:19px; }
.contact-info h4{ font-size:15px; margin-bottom:3px; }
.contact-info p{ color:var(--muted); font-size:14px; }
.alert-success{ background:#dcfce7; color:#166534; border:1px solid #86efac; border-radius:10px; padding:14px 18px; margin-bottom:22px; font-size:14.5px; font-weight:600; }
.alert-error{ background:#fee2e2; color:#991b1b; border:1px solid #fca5a5; border-radius:10px; padding:14px 18px; margin-bottom:22px; font-size:14.5px; font-weight:600; }
.honeypot{ position:absolute; left:-9999px; opacity:0; }

/* Footer */
footer.site{ background:#0a0e17; color:#9aa4b6; padding:56px 0 28px; margin-top:0; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:40px; margin-bottom:40px; }
.footer-brand .brand{ color:#fff; }
.footer-brand p{ color:#7c8aa5; font-size:14px; margin-top:14px; max-width:320px; }
.footer-col h4{ color:#fff; font-size:14px; margin-bottom:16px; }
.footer-col li{ margin-bottom:10px; }
.footer-col a{ color:#9aa4b6; font-size:14px; }
.footer-col a:hover{ color:#fff; }
.footer-bottom{ border-top:1px solid rgba(255,255,255,.08); padding-top:24px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; font-size:13px; color:#7c8aa5; }

/* WhatsApp floating button */
.wa-float{
  position:fixed; bottom:22px; inset-inline-end:22px; width:58px; height:58px; border-radius:50%;
  background:#25D366; color:#fff; display:flex; align-items:center; justify-content:center; font-size:28px;
  box-shadow:0 8px 24px rgba(37,211,102,.4); z-index:60;
}

/* Responsive */
@media (max-width: 900px){
  .hero-grid{ grid-template-columns:1fr; }
  .hero-visual{ order:-1; }
  .hero h1{ font-size:34px; }
  .grid-3{ grid-template-columns:1fr; }
  .grid-2{ grid-template-columns:1fr; }
  .steps{ grid-template-columns:1fr 1fr; }
  .proj-card{ grid-template-columns:1fr; }
  .contact-grid{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr; gap:28px; }
  .section-head h2{ font-size:27px; }
  section{ padding:64px 0; }
  .cta-banner{ padding:40px 24px; }
}
