/*
Theme Name: Ahmed Rizk Elabasiony
Theme URI: https://ahmedrizkelabasiony.com
Author: OpenAI
Description: قالب عربي احترافي لمكتب أحمد رزق البسيوني المحاسب القانوني في دمياط.
Version: 1.0.0
Text Domain: ahmed-rizk
*/

:root {
  --navy: #0b1f33;
  --navy-2: #122c46;
  --ink: #1a2a39;
  --muted: #647282;
  --gold: #c9a86a;
  --gold-soft: #ebd9b5;
  --cream: #f6f3ee;
  --white: #ffffff;
  --line: rgba(11, 31, 51, 0.10);
  --shadow: 0 22px 60px rgba(11, 31, 51, .12);
  --radius: 22px;
  --serif: Georgia, 'Times New Roman', serif;
  --display: 'Noto Kufi Arabic', 'Cairo', 'Tahoma', sans-serif;
  --sans: 'IBM Plex Sans Arabic', 'Cairo', 'Tahoma', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: var(--sans); line-height: 1.85; overflow-x:hidden; }
h1, h2, h3, .brand-copy strong { font-family: var(--display); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }

.topbar { background: var(--navy); color: rgba(255,255,255,.82); font-size: 13px; }
.topbar-inner { min-height: 39px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topbar a { color: #fff; font-weight: 700; }
.topbar-meta { display:flex; align-items:center; gap: 22px; }
.topbar-meta span { display:inline-flex; align-items:center; gap:8px; }

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); border-bottom: 1px solid rgba(11,31,51,.07); backdrop-filter: blur(14px); }
.header-inner { min-height: 84px; display:flex; align-items:center; justify-content:space-between; gap: 28px; }
.brand { display:flex; align-items:center; gap: 13px; }
.brand-mark { width: 43px; height:43px; border: 1px solid var(--gold); border-radius: 13px; display:grid; place-items:center; background: var(--navy); color: var(--gold); font-family: var(--serif); font-size: 21px; font-weight: 700; box-shadow: 0 5px 18px rgba(11,31,51,.16); }
.brand-mark svg { width:21px; height:21px; }
.brand-copy strong { display:block; color: var(--navy); font-size: 16px; line-height:1.25; }
.brand-copy small { display:block; color: var(--gold); font-size: 11px; letter-spacing: .05em; }
.main-nav ul { display:flex; align-items:center; gap: 29px; list-style:none; margin:0; padding:0; font-size: 14px; color: var(--muted); }
.main-nav.is-open { display:block; }
.main-nav a { transition: color .2s ease; }
.main-nav a:hover { color: var(--navy); }
.header-cta { border: 1px solid var(--navy); padding: 9px 17px; border-radius: 999px; color: var(--navy); font-weight: 800; font-size: 13px; transition: all .2s ease; }
.header-cta:hover { background: var(--navy); color: white; }
.nav-toggle { display:none; border: 0; background:transparent; color:var(--navy); font-size:26px; }

.hero { position:relative; isolation:isolate; min-height: 635px; display:flex; align-items:center; background: var(--navy); overflow:hidden; color: var(--white); }
.hero::before { content:''; position:absolute; inset:0; z-index:-2; background: linear-gradient(90deg, rgba(11,31,51,.99) 0%, rgba(11,31,51,.86) 39%, rgba(11,31,51,.25) 75%, rgba(11,31,51,.12) 100%), url('../assets/hero-office.png') center/cover no-repeat; }
.hero::after { content:''; position:absolute; width: 470px; height:470px; left:-180px; bottom:-270px; border:1px solid rgba(201,168,106,.32); border-radius:50%; z-index:-1; box-shadow: 0 0 0 45px rgba(201,168,106,.06), 0 0 0 90px rgba(201,168,106,.04); }
.hero-content { max-width: 650px; padding: 96px 0 110px; }
.eyebrow { display:inline-flex; align-items:center; gap:10px; color: var(--gold-soft); font-size: 13px; font-weight:800; letter-spacing:.03em; }
.eyebrow::before { content:''; display:block; width: 31px; height:1px; background:var(--gold); }
.hero h1 { margin: 19px 0 18px; color:#fff; font-size: clamp(42px, 5.5vw, 76px); line-height: 1.15; letter-spacing: -.04em; font-weight: 700; }
.hero h1 em { color:var(--gold); font-style:normal; }
.hero-lead { margin:0; max-width: 560px; color: rgba(255,255,255,.77); font-size: 18px; line-height: 1.95; }
.hero-actions { display:flex; flex-wrap:wrap; gap: 13px; margin-top: 30px; }
.btn { display:inline-flex; align-items:center; justify-content:center; gap: 10px; min-height: 49px; padding: 0 21px; border-radius: 999px; font-size: 14px; font-weight: 800; border:1px solid transparent; transition: transform .2s ease, background .2s ease, color .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background:var(--gold); color:var(--navy); }
.btn-primary:hover { background:#dbbd82; }
.btn-outline { border-color: rgba(255,255,255,.32); color:#fff; }
.btn-outline:hover { background:#fff; color:var(--navy); }
.hero-note { margin-top: 31px; display:flex; gap:11px; align-items:center; color:rgba(255,255,255,.62); font-size:12px; }
.hero-note i { width: 7px; height:7px; background:var(--gold); border-radius:50%; display:block; }

.trust-strip { background:var(--cream); border-bottom:1px solid var(--line); }
.trust-grid { display:grid; grid-template-columns:repeat(4, 1fr); gap: 25px; padding: 22px 0; }
.trust-item { display:flex; align-items:center; gap:12px; color:var(--navy); font-size:13px; font-weight:800; }
.trust-item span:first-child { display:grid; place-items:center; width:31px; height:31px; color:var(--gold); background:var(--navy); border-radius:50%; font-size:14px; }

.section { padding: 112px 0; }
.section-light { background: var(--cream); }
.section-head { max-width: 650px; margin-bottom: 46px; }
.section-kicker { color:var(--gold); font-size:12px; font-weight:900; letter-spacing:.12em; text-transform:uppercase; }
.section h2 { margin: 10px 0 13px; color:var(--navy); font-size: clamp(32px,4vw,53px); line-height:1.23; letter-spacing:-.04em; }
.section-head p { margin:0; color:var(--muted); font-size:16px; }

.services-grid { display:grid; grid-template-columns:repeat(3, 1fr); gap: 17px; }
.service-card { position:relative; min-height:255px; padding: 28px 23px; border:1px solid var(--line); border-radius:var(--radius); background:#fff; overflow:hidden; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.service-card:hover { transform:translateY(-6px); box-shadow:var(--shadow); border-color:rgba(201,168,106,.5); }
.service-number { color:var(--gold); font-family:var(--serif); font-size:16px; }
.service-icon { width:50px; height:50px; margin:22px 0 17px; display:grid; place-items:center; background:var(--navy); color:var(--gold); border-radius:15px; font-size:22px; }
.service-card h3 { margin:0 0 8px; color:var(--navy); font-size:17px; line-height:1.5; }
.service-card p { margin:0; color:var(--muted); font-size:13px; line-height:1.8; }
.service-link { display:inline-flex; align-items:center; gap:8px; margin-top:18px; color:var(--navy); font-size:12px; font-weight:900; border-bottom:1px solid var(--gold); padding-bottom:2px; }
.service-link span { color:var(--gold); font-size:15px; }
.service-card::after { content:''; position:absolute; width:115px; height:115px; border:1px solid rgba(201,168,106,.25); border-radius:50%; left:-61px; bottom:-60px; }
.section-action { display:flex; align-items:center; justify-content:center; gap:15px; margin-top:32px; padding-top:24px; border-top:1px solid var(--line); color:var(--navy); font-size:14px; font-weight:800; }
.section-action .btn { min-height:42px; padding-inline:17px; font-size:12px; }
.section-action .btn-whatsapp { background:#1db954; color:#fff; }
.section-action .btn-whatsapp:hover { background:#169c46; }

.split { display:grid; grid-template-columns: .8fr 1.2fr; gap: 94px; align-items:center; }
.split-copy h2 { margin-top:10px; }
.feature-list { list-style:none; margin: 29px 0 0; padding:0; display:grid; gap:16px; }
.feature-list li { display:flex; align-items:flex-start; gap:13px; color:var(--muted); font-size:14px; }
.feature-list b { display:block; color:var(--navy); font-size:14px; margin-bottom:2px; }
.check { flex:0 0 27px; width:27px; height:27px; display:grid; place-items:center; border-radius:50%; background:rgba(201,168,106,.17); color:var(--navy); font-weight:900; }
.values-panel { position:relative; min-height:450px; border-radius:var(--radius); background:var(--navy); color:#fff; padding:36px; overflow:hidden; }
.values-panel::before { content:'R'; position:absolute; right:-14px; bottom:-90px; color:rgba(201,168,106,.13); font: 320px/1 var(--serif); }
.values-panel .mini-label { position:relative; color:var(--gold); font-size:12px; font-weight:900; letter-spacing:.1em; }
.values-panel h3 { position:relative; max-width:390px; margin:21px 0 30px; font-size:28px; line-height:1.45; }
.values-panel .quote { position:relative; display:flex; align-items:flex-start; gap:15px; padding-top:30px; border-top:1px solid rgba(255,255,255,.16); color:rgba(255,255,255,.7); font-size:14px; }
.values-panel .quote-mark { color:var(--gold); font: 46px/1 var(--serif); }

.process-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:0; border-top:1px solid var(--line); }
.process-step { padding:31px 27px 0 0; border-left:1px solid var(--line); margin-left:-1px; }
.process-step:first-child { border-left:0; }
.process-step .step-number { color:var(--gold); font: 28px/1 var(--serif); }
.process-step h3 { margin:22px 0 8px; color:var(--navy); font-size:17px; }
.process-step p { color:var(--muted); font-size:13px; margin:0; line-height:1.8; padding-left:18px; }

.cta-band { padding: 62px 0; background:var(--navy); color:#fff; }
.cta-inner { display:flex; justify-content:space-between; align-items:center; gap:30px; }
.cta-band h2 { margin:0 0 7px; color:#fff; font-size:clamp(27px,3.5vw,44px); letter-spacing:-.04em; }
.cta-band p { margin:0; color:rgba(255,255,255,.65); font-size:14px; }
.cta-actions { display:flex; flex-wrap:wrap; gap:12px; }

.contact-grid { display:grid; grid-template-columns: .75fr 1.25fr; gap:55px; align-items:stretch; }
.contact-card { padding:32px; border:1px solid var(--line); border-radius:var(--radius); background:#fff; box-shadow: 0 10px 35px rgba(11,31,51,.04); }
.contact-card h3 { margin:0 0 23px; color:var(--navy); font-size:23px; }
.contact-row { display:flex; gap:14px; padding:17px 0; border-bottom:1px solid var(--line); }
.contact-row:last-child { border-bottom:0; }
.contact-row .contact-icon { flex:0 0 33px; width:33px; height:33px; display:grid; place-items:center; border-radius:10px; background:rgba(201,168,106,.18); color:var(--navy); }
.contact-row strong { display:block; color:var(--navy); font-size:13px; }
.contact-row span, .contact-row a { display:block; color:var(--muted); font-size:13px; line-height:1.6; }
.map-wrap { min-height:390px; overflow:hidden; border-radius:var(--radius); border:1px solid var(--line); background:#e9edf0; }
.map-wrap iframe { width:100%; height:100%; min-height:390px; border:0; filter:saturate(.7) contrast(.98); }
.map-link { display:inline-flex; margin-top:19px; color:var(--navy); font-size:13px; font-weight:900; border-bottom:1px solid var(--gold); }

.site-footer { padding: 50px 0 24px; background:#071725; color:rgba(255,255,255,.61); }
.footer-grid { display:grid; grid-template-columns: 1.3fr .7fr .8fr; gap:45px; padding-bottom:40px; border-bottom:1px solid rgba(255,255,255,.13); }
.site-footer .brand-copy strong { color:#fff; }
.footer-intro { max-width:340px; margin:17px 0 0; font-size:13px; line-height:1.9; }
.footer-title { margin:0 0 16px; color:var(--gold-soft); font-size:13px; }
.footer-links { list-style:none; padding:0; margin:0; display:grid; gap:9px; font-size:13px; }
.footer-links a:hover { color:#fff; }
.footer-bottom { display:flex; justify-content:space-between; gap:18px; padding-top:22px; font-size:11px; }

.floating-wa { position:fixed; left:21px; bottom:21px; z-index:30; width:54px; height:54px; display:grid; place-items:center; border-radius:50%; background:#1db954; color:#fff; font-size:24px; box-shadow:0 10px 25px rgba(29,185,84,.34); transition:transform .2s ease; }
.floating-wa:hover { transform:scale(1.08); }

@media (max-width: 980px) {
  .main-nav { display:none; }
  .main-nav.is-open { display:block; position:absolute; top:calc(100% + 10px); left:16px; right:16px; padding:16px; background:#fff; border:1px solid rgba(11,31,51,.1); border-radius:18px; box-shadow:0 16px 40px rgba(11,31,51,.12); }
  .main-nav.is-open ul { display:grid; gap:13px; }
  .nav-toggle { display:block; }
  .header-cta { margin-left:auto; }
  .trust-grid { grid-template-columns:repeat(2, 1fr); }
  .services-grid { grid-template-columns:repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns:1fr; gap:42px; }
  .values-panel { min-height:330px; }
  .process-grid { grid-template-columns:repeat(2,1fr); gap:30px 0; }
  .process-step:nth-child(3) { border-left:0; }
  .process-step:nth-child(odd) { padding-right:25px; }
  .process-step:nth-child(even) { padding-left:25px; }
  .footer-grid { grid-template-columns:1fr 1fr; }
}

@media (max-width: 620px) {
  .container { width:min(100% - 32px, 1180px); }
  .topbar-inner { justify-content:center; min-height:34px; }
  .topbar-meta span:first-child { display:none; }
  .header-inner { min-height:72px; }
  .header-cta { padding:8px 12px; font-size:12px; }
  .brand-copy strong { font-size:13px; }
  .brand-copy small { font-size:9px; }
  .hero { min-height:600px; }
  .hero::before { background: linear-gradient(90deg, rgba(11,31,51,.98), rgba(11,31,51,.75)), url('../assets/hero-office.png') 65% center/cover no-repeat; }
  .hero-content { padding:72px 0 88px; }
  .hero h1 { font-size:43px; line-height:1.24; }
  .hero-lead { font-size:16px; max-width:100%; }
  .hero-actions { width:100%; }
  .hero-actions .btn { flex:1 1 190px; }
  .hero-note { align-items:flex-start; }
  .section { padding:78px 0; }
  .trust-grid, .services-grid, .process-grid { grid-template-columns:1fr; }
  .section-action { flex-direction:column; gap:10px; }
  .trust-grid { gap:12px; }
  .service-card { min-height:auto; }
  .process-step, .process-step:nth-child(odd), .process-step:nth-child(even) { border-left:0; border-bottom:1px solid var(--line); padding:22px 0; margin:0; }
  .process-step:last-child { border-bottom:0; }
  .cta-inner { align-items:flex-start; flex-direction:column; }
  .cta-actions { width:100%; }
  .cta-actions .btn { flex:1 1 150px; }
  .footer-grid { grid-template-columns:1fr; gap:30px; }
  .footer-bottom { flex-direction:column; gap:5px; }
  .map-wrap, .map-wrap iframe { min-height:320px; }
  .contact-card { padding:24px 20px; }
  .section-head { margin-bottom:32px; }
  .section h2 { font-size:clamp(28px, 8vw, 40px); }
  .section-action { width:100%; text-align:center; }
  .section-action .btn { width:100%; }
}
