/* ==========================================================================
   مكتب أحمد توفيق للمحاسبة والمراجعة — stylesheet
   Palette: navy + gold. RTL first.
   ========================================================================== */

:root{
  --navy-900:#061225;
  --navy-800:#0B1F3A;
  --navy-700:#12305A;
  --gold:#C9A24B;
  --gold-light:#E3C783;
  --gold-deep:#A9853A;
  --cream:#F8F6F1;
  --cream-2:#F1EDE3;
  --ink:#16202E;
  --body:#3C4757;
  --muted:#6B7787;
  --line:#E5DFD1;
  --white:#FFFFFF;
  --shadow-sm:0 1px 2px rgba(11,31,58,.06), 0 8px 24px rgba(11,31,58,.06);
  --shadow-lg:0 18px 44px rgba(11,31,58,.14);
  --radius:16px;
  --maxw:1120px;
}

*,*::before,*::after{box-sizing:border-box}

html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}

body{
  margin:0;
  background:var(--white);
  color:var(--body);
  font-family:'Tajawal','Segoe UI',system-ui,-apple-system,'Noto Sans Arabic',sans-serif;
  font-size:17px;
  line-height:1.9;
  font-weight:400;
  -webkit-font-smoothing:antialiased;
}

h1,h2,h3,h4{color:var(--ink);font-weight:800;line-height:1.35;margin:0 0 .6em;letter-spacing:-.2px}
p{margin:0 0 1rem}
a{color:inherit;text-decoration:none}
img,svg{max-width:100%}
ul{margin:0;padding:0;list-style:none}

.container{width:min(var(--maxw), 100% - 2.5rem);margin-inline:auto}

.skip{position:absolute;inset-inline-start:-9999px;top:0;background:var(--gold);color:var(--navy-900);padding:.6rem 1rem;z-index:200;font-weight:700}
.skip:focus{inset-inline-start:1rem;top:1rem}

:focus-visible{outline:3px solid var(--gold);outline-offset:3px;border-radius:6px}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.5rem;
  padding:.85rem 1.7rem;border-radius:999px;font-weight:700;font-size:1rem;
  border:1px solid transparent;cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
  white-space:nowrap;
}
.btn-gold{background:var(--gold);color:var(--navy-900);box-shadow:0 8px 20px rgba(201,162,75,.28)}
.btn-gold:hover{background:var(--gold-light);transform:translateY(-2px);box-shadow:0 12px 26px rgba(201,162,75,.34)}
.btn-ghost{border-color:rgba(255,255,255,.38);color:var(--white)}
.btn-ghost:hover{border-color:var(--gold);color:var(--gold-light);transform:translateY(-2px)}
.btn-sm{padding:.6rem 1.25rem;font-size:.95rem}

.text-link{display:inline-block;color:var(--navy-800);font-weight:700;border-bottom:1px solid var(--gold);padding-bottom:2px}
.text-link:hover{color:var(--gold-deep)}

/* ---------- header ---------- */
.site-header{
  position:sticky;top:0;z-index:100;
  background:rgba(6,18,37,.96);
  backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(201,162,75,.28);
}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:1.5rem;min-height:76px}

.brand{display:flex;align-items:center;gap:.75rem;color:var(--white)}
.brand-mark{
  display:grid;place-items:center;
  width:46px;height:46px;border-radius:12px;
  background:linear-gradient(150deg,var(--gold-light),var(--gold) 45%,var(--gold-deep));
  color:var(--navy-900);font-weight:800;font-size:1.45rem;line-height:1;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.25);
  padding-bottom:4px;
}
.brand-text{display:flex;flex-direction:column;line-height:1.35}
.brand-text strong{font-size:1.06rem;font-weight:700}
.brand-text small{font-size:.78rem;color:var(--gold-light);letter-spacing:.4px}

.site-nav{display:flex;align-items:center;gap:1.6rem}
.nav-list{display:flex;align-items:center;gap:1.5rem}
.nav-list a{color:#DCE4EF;font-size:.98rem;font-weight:500;padding:.35rem 0;position:relative}
.nav-list a::after{
  content:"";position:absolute;inset-inline:0;bottom:-2px;height:2px;background:var(--gold);
  transform:scaleX(0);transform-origin:inline-start;transition:transform .2s ease;
}
.nav-list a:hover{color:var(--white)}
.nav-list a:hover::after{transform:scaleX(1)}

.nav-toggle{display:none;background:none;border:1px solid rgba(255,255,255,.25);border-radius:10px;padding:.55rem .6rem;cursor:pointer}
.nav-toggle span{display:block;width:20px;height:2px;background:var(--gold-light);margin:4px 0;border-radius:2px}

/* ---------- hero ---------- */
.hero{position:relative;overflow:hidden;background:
  radial-gradient(1100px 560px at 88% -12%, rgba(201,162,75,.20), transparent 62%),
  radial-gradient(700px 420px at 8% 110%, rgba(18,48,90,.85), transparent 65%),
  linear-gradient(165deg,#0B1F3A 0%, #08182E 55%, #061225 100%);
  color:var(--white);
  padding-block:clamp(3.5rem,7vw,6.5rem);
}
.pattern{
  position:absolute;inset:0;pointer-events:none;opacity:.75;
  background-image:
    repeating-linear-gradient(45deg, rgba(201,162,75,.07) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(-45deg, rgba(201,162,75,.07) 0 1px, transparent 1px 26px);
  mask-image:radial-gradient(circle at 70% 30%, #000 20%, transparent 78%);
  -webkit-mask-image:radial-gradient(circle at 70% 30%, #000 20%, transparent 78%);
}
.hero-grid{position:relative;display:grid;grid-template-columns:1.15fr .85fr;gap:clamp(2rem,5vw,4rem);align-items:center}
.hero-copy{max-width:44rem}

.eyebrow{
  font-size:.86rem;font-weight:700;letter-spacing:1.2px;color:var(--gold-light);
  margin:0 0 1rem;text-transform:none;
}
.eyebrow-dark{color:var(--gold-deep)}

.hero h1{text-wrap:balance;color:var(--white);font-size:clamp(1.95rem,4.4vw,3.25rem);line-height:1.28;margin-bottom:1.1rem}
.hero h1 .gold{color:var(--gold-light)}
.lead{color:#C6D2E2;font-size:clamp(1rem,1.4vw,1.1rem);line-height:2.05;max-width:38rem}

.hero-actions{display:flex;flex-wrap:wrap;gap:.9rem;margin:1.9rem 0 2rem}

.hero-facts{display:flex;flex-wrap:wrap;gap:.6rem 1.6rem;color:#AEBCCD;font-size:.94rem}
.hero-facts li{display:flex;align-items:center;gap:.55rem}
.hero-facts li::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--gold);flex:none}

.hero-card{
  background:rgba(255,255,255,.045);
  border:1px solid rgba(201,162,75,.35);
  border-radius:20px;padding:1.7rem 1.6rem;
  backdrop-filter:blur(8px);
  box-shadow:0 24px 60px rgba(0,0,0,.25);
}
.card-kicker{margin:0 0 1rem;color:var(--gold-light);font-weight:700;font-size:.9rem;letter-spacing:.6px}
.card-list li{display:flex;align-items:flex-start;gap:.7rem;color:#E4EAF3;font-size:.98rem;padding:.55rem 0;border-bottom:1px solid rgba(255,255,255,.07)}
.card-list li:last-child{border-bottom:0;padding-bottom:0}
.card-list svg{width:19px;height:19px;flex:none;margin-top:.35rem;stroke:var(--gold);stroke-width:2.4;fill:none;stroke-linecap:round;stroke-linejoin:round}

/* ---------- strip ---------- */
.strip{background:var(--navy-800);border-top:1px solid rgba(201,162,75,.18);border-bottom:1px solid rgba(201,162,75,.18)}
.strip-inner{display:flex;flex-wrap:wrap;justify-content:center;gap:.8rem 2.2rem;padding:1rem 0;color:#9FB0C6;font-size:.9rem;font-weight:500;letter-spacing:.3px}

/* ---------- sections ---------- */
.section{padding-block:clamp(3.5rem,7vw,6rem);scroll-margin-top:88px}
.section-cream{background:var(--cream)}
.section-head{max-width:44rem;margin-bottom:clamp(2rem,4vw,3rem)}
.section-head h2{font-size:clamp(1.55rem,3vw,2.25rem)}
.section-sub{color:var(--muted);margin:0}
.section-head-light h2{color:var(--white)}
.section-head-light .section-sub{color:#B9C6D8}

/* ---------- services ---------- */
.svc-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1.15rem}
.svc{
  position:relative;overflow:hidden;
  background:var(--white);border:1px solid var(--line);border-radius:var(--radius);
  padding:1.6rem 1.5rem 1.5rem;
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.svc::before{
  content:"";position:absolute;inset-inline:0;top:0;height:3px;
  background:linear-gradient(90deg,var(--gold),var(--gold-light));
  transform:scaleX(0);transform-origin:inline-start;transition:transform .25s ease;
}
.svc:hover{transform:translateY(-4px);box-shadow:var(--shadow-lg);border-color:#D9D2C0}
.svc:hover::before{transform:scaleX(1)}
.svc-icon{
  display:grid;place-items:center;width:46px;height:46px;border-radius:12px;
  background:rgba(11,31,58,.06);margin-bottom:1.1rem;transition:background .2s ease;
}
.svc-icon svg{width:23px;height:23px;fill:none;stroke:var(--navy-800);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.svc:hover .svc-icon{background:rgba(201,162,75,.16)}
.svc:hover .svc-icon svg{stroke:var(--gold-deep)}
.svc h3{font-size:1.12rem;margin-bottom:.45rem}
.svc p{color:var(--muted);font-size:.96rem;line-height:1.95;margin:0}

/* ---------- about ---------- */
.about-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:clamp(2rem,5vw,3.5rem);align-items:start}
.about-copy h2{font-size:clamp(1.55rem,3vw,2.25rem)}
.about-copy p{font-size:1.02rem;line-height:2.05}

.facts-card{background:var(--navy-800);color:#DDE5F0;border-radius:20px;padding:1.8rem 1.6rem;box-shadow:var(--shadow-sm);border:1px solid rgba(201,162,75,.28)}
.facts-card h3{color:var(--gold-light);font-size:.95rem;letter-spacing:.6px;margin-bottom:1rem}
.facts-card li{display:flex;align-items:flex-start;gap:.7rem;padding:.55rem 0;border-bottom:1px solid rgba(255,255,255,.08);font-size:.97rem;line-height:1.75}
.facts-card li:last-child{border-bottom:0;padding-bottom:0}
.dot{width:7px;height:7px;border-radius:50%;background:var(--gold);flex:none;margin-top:.65rem}

/* ---------- why ---------- */
.why{position:relative;overflow:hidden;background:
  radial-gradient(900px 480px at 12% 0%, rgba(18,48,90,.9), transparent 60%),
  linear-gradient(160deg,#0B1F3A,#061225);color:#C6D2E2;scroll-margin-top:88px}
.why .container{position:relative}
.why-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1.4rem}
.why-item{padding:1.6rem 1.5rem;border:1px solid rgba(255,255,255,.1);border-radius:var(--radius);background:rgba(255,255,255,.03)}
.why-num{display:block;font-size:1.6rem;font-weight:800;color:var(--gold);letter-spacing:1px;margin-bottom:.5rem}
.why-item h3{color:var(--white);font-size:1.1rem;margin-bottom:.45rem}
.why-item p{color:#B4C2D4;font-size:.96rem;line-height:1.95;margin:0}

/* ---------- contact ---------- */
.contact-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1.1rem}
.contact-card{
  display:flex;flex-direction:column;gap:.25rem;
  background:var(--white);border:1px solid var(--line);border-radius:var(--radius);
  padding:1.5rem 1.4rem;transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
a.contact-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-lg);border-color:#D6CFBD}
.contact-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:11px;background:rgba(201,162,75,.14);margin-bottom:.85rem}
.contact-icon svg{width:21px;height:21px;fill:none;stroke:var(--gold-deep);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.contact-label{font-size:.85rem;font-weight:700;color:var(--muted);letter-spacing:.4px}
.contact-value{font-size:1.03rem;font-weight:700;color:var(--ink);line-height:1.7}
.contact-note{font-size:.86rem;color:var(--muted)}

/* ---------- footer ---------- */
.site-footer{background:var(--navy-900);color:#9FB0C6;padding-block:2.4rem;border-top:3px solid var(--gold)}
.footer-inner{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1.2rem}
.footer-brand{display:flex;align-items:center;gap:.7rem;color:var(--white)}
.brand-mark-sm{width:38px;height:38px;font-size:1.15rem;border-radius:10px}
.footer-brand div{display:flex;flex-direction:column;line-height:1.4}
.footer-brand strong{font-size:.98rem}
.footer-brand span{font-size:.8rem;color:var(--gold-light)}
.footer-nav{display:flex;flex-wrap:wrap;gap:1.3rem;font-size:.92rem}
.footer-nav a:hover{color:var(--gold-light)}
.copyright{margin:0;font-size:.84rem;color:#7F8FA5}

/* ---------- responsive ---------- */
@media (max-width:960px){
  .hero-grid{grid-template-columns:1fr}
  .hero-card{order:2}
  .about-grid{grid-template-columns:1fr}
}
@media (max-width:900px){
  .nav-toggle{display:block}
  .site-nav{
    position:absolute;top:100%;inset-inline:0;
    flex-direction:column;align-items:stretch;gap:1rem;
    background:var(--navy-800);border-bottom:1px solid rgba(201,162,75,.28);
    padding:1.2rem 1.25rem 1.5rem;
    display:none;
  }
  .site-header.nav-open .site-nav{display:flex}
  .nav-list{flex-direction:column;align-items:stretch;gap:.2rem}
  .nav-list a{display:block;padding:.7rem 0;border-bottom:1px solid rgba(255,255,255,.08)}
  .site-nav .btn{width:100%}
}
@media (max-width:640px){
  body{font-size:16px}
  .container{width:min(var(--maxw), 100% - 2rem)}
  .header-inner{min-height:68px}
  .brand-text small{display:none}
  .hero{padding-block:2.75rem 3rem}
  .hero-actions .btn{flex:1 1 100%}
  .hero-facts{gap:.5rem 1.1rem;font-size:.9rem}
  .strip-inner{font-size:.82rem;gap:.5rem 1.2rem;padding:.85rem 0}
  .svc,.facts-card,.why-item,.contact-card{padding:1.35rem 1.2rem}
  .footer-inner{flex-direction:column;align-items:flex-start;gap:1rem}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{transition:none !important;animation:none !important}
}

.nb{white-space:normal}
@media (max-width:380px){.nb{white-space:normal}}
.svc-grid{display:flex;flex-wrap:wrap;justify-content:center;gap:1.15rem;grid-template-columns:none}
.svc{flex:0 1 calc((100% - 3.45rem)/4);min-width:240px}
@media (max-width:1060px){.svc{flex-basis:calc((100% - 2.3rem)/3)}}
@media (max-width:860px){.svc{flex-basis:calc((100% - 1.15rem)/2)}}
@media (max-width:560px){.svc{flex-basis:100%;min-width:0}}

.brand-logo{width:52px;height:52px;border-radius:50%;flex:none;display:block;box-shadow:0 0 0 2px rgba(201,162,75,.55), 0 4px 14px rgba(0,0,0,.35);background:#fff}
.brand-logo-sm{width:44px;height:44px}
@media (max-width:640px){.brand-logo{width:46px;height:46px}}

/* ---------- social ---------- */
.social{margin-top:2.2rem;display:flex;flex-wrap:wrap;align-items:center;gap:.8rem 1.2rem}
.social-title{margin:0;font-weight:700;color:var(--ink)}
.social-list{display:flex;flex-wrap:wrap;gap:.7rem}
.social-list [hidden]{display:none}
.social-link{display:inline-flex;align-items:center;gap:.55rem;padding:.6rem 1.15rem;border:1px solid var(--line);background:var(--white);border-radius:999px;font-weight:700;color:var(--navy-800);transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease}
.social-link:hover{transform:translateY(-2px);box-shadow:var(--shadow-sm);border-color:var(--gold)}
.social-link svg{width:19px;height:19px;fill:none;stroke:var(--gold-deep);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* ---------- overflow safety: whatever text is typed in the CMS must wrap ---------- */
.nb{white-space:normal}
.hero-grid>*,.hero-copy{min-width:0}
h1,h2,h3,p,li,.lead{overflow-wrap:anywhere}
.hero-actions,.hero-copy .btn{max-width:100%}
