:root{ --primary:#0a8754; --primary-600:#0c6c46; --secondary:#12e39a; --accent:#33b1ff; --warning:#ffbe0b; --dark:#0e1e25; --muted:#6b7b83; --bg:#f6f9fb; --grad-primary:linear-gradient(135deg, #0a8754, #0c6c46); --grad-accent:linear-gradient(135deg, #12e39a, #33b1ff); }
*{ box-sizing:border-box; margin:0; padding:0; }
html,body{ margin:0; padding:0; font-family:'Cairo','Tajawal',system-ui,-apple-system,Segoe UI,Roboto; background:#fff; color:#181a1b; overflow-x:hidden; width:100%; max-width:100vw; position:relative; }
html{ scroll-behavior:smooth; }
.skip-link{ position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden; }
.skip-link:focus{ left:auto; right:12px; top:12px; width:auto; height:auto; background:#111; color:#fff; padding:8px 10px; border-radius:8px; }
.container{ width:100%; max-width:1100px; margin:0 auto; padding:0 16px; box-sizing:border-box; overflow-x:hidden; }
.site-header{ background:rgba(255,255,255,.8); border-bottom:1px solid #eee; position:sticky; top:0; z-index:10; transition:box-shadow .2s ease, backdrop-filter .2s ease, background .2s ease; backdrop-filter:saturate(1.1) blur(6px); width:100%; overflow-x:hidden; }
.site-header.scrolled{ box-shadow:0 10px 24px rgba(0,0,0,.06); backdrop-filter:saturate(1.1) blur(4px); }
.site-header .brand{ font-weight:700; color:var(--dark); text-decoration:none; }
.header-flex{ display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; overflow-x:hidden; }
.site-header nav{ display:flex; gap:14px; align-items:center; flex-wrap:wrap; overflow-x:hidden; }
.site-header a{ color:#222; text-decoration:none; padding:10px 8px; position:relative; transition:color .2s ease, opacity .2s ease; }
.site-header a::after{ content:""; position:absolute; inset:auto 8px -2px 8px; height:2px; background:var(--grad-accent); transform:scaleX(0); transform-origin:left; transition:transform .25s ease; border-radius:2px; }
.site-header a:hover::after, .site-header a.active::after{ transform:scaleX(1); }
.site-header a:hover{ color:var(--primary); }
.site-header .btn{ background:var(--primary); color:#fff; border-radius:10px; padding:10px 14px; box-shadow:0 8px 18px rgba(10,135,84,.18); }
.site-header .contact-link{ color:#0a8754; }
.site-header a.active{ border-bottom:2px solid var(--primary); }
.menu-toggle{ display:none; background:#fff; border:1px solid #e5e5e5; border-radius:8px; padding:8px 10px; }
.site-footer{ margin-top:56px; padding:28px 0; border-top:1px solid #eee; color:var(--muted); background:linear-gradient(180deg, #fff, #f9fbfc); width:100%; overflow-x:hidden; }
.hero{ background:linear-gradient(135deg,#f8fffb,#eef7ff); padding:48px 20px; border-radius:20px; text-align:center; margin:20px 0; position:relative; overflow:hidden; box-shadow:0 8px 20px rgba(0,0,0,.06); border:1px solid #edf0f2; max-width:100%; width:100%; }
.hero::before{ content:""; position:absolute; inset:0; background:radial-gradient(1200px 400px at 50% 120%, rgba(14,30,37,.15), transparent 60%); pointer-events:none; }
.hero::after{ content:""; position:absolute; inset:auto -10% -40% -10%; height:160px; background:radial-gradient(closest-side, rgba(10,135,84,.16), transparent 70%); filter:blur(24px); }
.hero h1{ margin:0 0 10px; font-size:32px; line-height:1.2; color:#0e1e25; letter-spacing:.2px; animation:fadeUp .6s ease both; }
.hero p{ margin:0 0 16px; color:#3b3b3b; font-size:16px; animation:fadeUp .7s ease both; }
.hero .hero-cta{ display:flex; gap:10px; justify-content:center; flex-wrap:wrap; }
.btn{ display:inline-block; background:#e9eef2; color:#111; padding:12px 16px; border-radius:12px; text-decoration:none; transition:transform .12s ease, box-shadow .25s ease, background .2s ease; }
.btn.primary{ background:var(--grad-primary); color:#fff; box-shadow:0 12px 22px rgba(10,135,84,.22); }
.btn:hover{ transform:translateY(-1px); box-shadow:0 6px 20px rgba(0,0,0,.08); }
.btn:focus, .menu-toggle:focus, input:focus, textarea:focus, a:focus{ outline:3px solid rgba(10,135,84,.35); outline-offset:2px; }
.features{ display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:18px; margin-top:22px; width:100%; overflow-x:hidden; }
.feature{ background:#fff; border:1px solid #edf0f2; border-radius:16px; padding:18px; box-shadow:0 8px 22px rgba(0,0,0,.04); transition:transform .15s ease, box-shadow .25s ease; }
.feature:hover{ transform:translateY(-3px); box-shadow:0 16px 28px rgba(0,0,0,.07); }
.grid.projects{ display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:16px; width:100%; overflow-x:hidden; }
.card{ padding:20px; border:1px solid #edf0f2; border-radius:16px; background:#fff; box-shadow:0 8px 24px rgba(0,0,0,.05); transition:transform .18s ease, box-shadow .28s ease; animation:fadeUp .6s ease both; }
.card:hover{ transform:translateY(-4px); box-shadow:0 18px 36px rgba(0,0,0,.08); }
.card img{ display:block; width:100%; height:auto; border-radius:12px; margin-bottom:10px; }
.grid.cards{ display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:14px; width:100%; overflow-x:hidden; }
.form{ display:grid; gap:12px; max-width:640px; }
.field{ display:grid; gap:6px; }
input,textarea{ padding:10px 12px; border:1px solid #ccd6dd; border-radius:8px; font-family:inherit; }
.messages{ list-style:none; padding:0; margin:14px 0; }
.messages .success{ background:#e8f8ef; border:1px solid #c9efd9; color:#146c43; padding:10px; border-radius:8px; }
.error{ color:#b42318; background:#fee4e2; border:1px solid #fecdca; padding:8px 10px; border-radius:8px; margin-top:6px; }

/* Extra professional sections */
.stats{ display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:12px; margin:24px 0; width:100%; overflow-x:hidden; }
.stat{ background:#fff; border:1px solid #eee; border-radius:12px; padding:16px; text-align:center; }
.stat .num{ font-size:28px; font-weight:700; color:var(--primary); }
.stat .label{ color:#555; }
.projects-preview h2, .services-cards h2, .testimonials h2, .cta-final h2{ margin-top:24px; }
.quotes{ display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:14px; width:100%; overflow-x:hidden; }
.footer-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:16px; padding:16px 0; width:100%; overflow-x:hidden; }
.copy{ padding:10px 0; border-top:1px solid #eee; color:#6b7b83; }
.list.plain{ list-style:none; padding:0; margin:0; }

/* Floating action buttons */
.fab{ position:fixed; left:16px; bottom:16px; display:flex; flex-direction:column; gap:10px; z-index:20; width:auto; overflow-x:hidden; }
.fab-btn{ width:44px; height:44px; display:flex; align-items:center; justify-content:center; border-radius:50%; box-shadow:0 6px 16px rgba(0,0,0,.15); text-decoration:none; color:#fff; font-weight:700; }
.fab-btn:hover{ transform:translateY(-2px); box-shadow:0 10px 24px rgba(0,0,0,.18); }

/* Section titles */
h1, h2, h3{ color:#121416; }
h2{ font-size:28px; margin:12px 0; }

/* Animations */
@keyframes fadeUp{ from{ opacity:0; transform:translateY(8px);} to{ opacity:1; transform:translateY(0);} }
.reveal{ opacity:0; transform:translateY(10px); transition:opacity .6s ease, transform .6s ease; }
.reveal.is-visible{ opacity:1; transform:none; }
.reveal-up{ opacity:0; transform:translateY(16px); transition:opacity .7s cubic-bezier(.2,.75,.2,1), transform .7s cubic-bezier(.2,.75,.2,1); }
.reveal-up.is-visible{ opacity:1; transform:none; }
.reveal-scale{ opacity:0; transform:scale(.96); transition:opacity .6s ease, transform .6s ease; }
.reveal-scale.is-visible{ opacity:1; transform:scale(1); }
.gradient-text{ background:var(--grad-accent); -webkit-background-clip:text; background-clip:text; color:transparent; }
.fab-btn.whatsapp{ background:#25D366; }
.fab-btn.call{ background:#0a8754; }

@media (max-width: 768px){
  #main-nav{ display:none; }
  #main-nav.open{ 
    display:flex !important; 
    flex-direction:column; 
    align-items:flex-start; 
    gap:8px; 
    background:#fff; 
    position:absolute; 
    right:12px; 
    top:56px; 
    padding:12px; 
    border:1px solid #eee; 
    border-radius:12px; 
    box-shadow:0 4px 20px rgba(0,0,0,.06); 
    z-index:1000; 
    min-width:200px;
  }
  .menu-toggle{ display:inline-block; cursor:pointer; }
  .hero{ padding:32px 16px; border-radius:16px; margin:16px 0; }
  .hero h1{ font-size:24px; line-height:1.2; margin-bottom:8px; }
  .hero p{ font-size:14px; margin-bottom:16px; }
  .hero .hero-cta{ flex-direction:column; gap:8px; }
  .grid.cards, .grid.projects, .features, .quotes, .stats{ gap:8px; }
  .btn{ padding:8px 12px; border-radius:6px; font-size:13px; }
  .fab{ left:8px; bottom:8px; gap:4px; }
  .container{ padding:0 8px; }
  .card{ padding:12px; }
  .stat{ padding:12px; }
  .stat .num{ font-size:20px; }
  h2{ font-size:20px; margin:8px 0; }
  .site-header nav{ gap:8px; }
  .site-header a{ padding:6px 4px; font-size:13px; }
  .site-header .contact-link{ display:none; }
  #main-nav a{ display:block; padding:8px 12px; margin:2px 0; border-radius:6px; }
  #main-nav a:hover{ background:#f5f5f5; }
}
