/* ============================================================
   ANAS CPA — Official Website Stylesheet
   شركة أنس يحي الزهراني — محاسبون ومراجعون قانونيون
   © 2025 — All Rights Reserved
   ============================================================ */

/* ---------- Brand Tokens ---------- */
:root{
  --green-900:#0e3d2a;
  --green-800:#13492f;
  --green-700:#185438;
  --green-600:#1f5f3c;
  --green-500:#2a7048;
  --gold-700:#a17a2c;
  --gold-600:#b8862f;
  --gold-500:#c9a356;
  --gold-400:#d9b975;
  --gold-100:#f3e6c4;
  --cream-100:#faf7f0;
  --cream-200:#f3eddf;
  --cream-300:#e8e0c9;
  --gray-50:#fafafa;
  --gray-100:#f4f4f4;
  --gray-200:#e6e6e6;
  --gray-300:#d4d4d4;
  --gray-500:#737373;
  --gray-700:#404040;
  --gray-900:#171717;
  --white:#ffffff;
  --shadow-sm:0 1px 2px rgba(14,61,42,.06);
  --shadow-md:0 4px 14px rgba(14,61,42,.10);
  --shadow-lg:0 12px 32px rgba(14,61,42,.14);
  --radius-sm:8px;
  --radius-md:14px;
  --radius-lg:20px;
  --radius-xl:28px;
  --transition:all .25s cubic-bezier(.4,0,.2,1);
  --container:1280px;
}

/* ---------- Reset & Base ---------- */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  font-family:'Cairo','Tajawal','Segoe UI',Tahoma,Arial,sans-serif;
  font-size:16px;
  line-height:1.7;
  color:var(--gray-900);
  background:var(--white);
  direction:rtl;
  text-align:right;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none;transition:var(--transition)}
button{font-family:inherit;cursor:pointer;border:none;background:none}
input,select,textarea{font-family:inherit;font-size:inherit}
ul{list-style:none}

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

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:13px 28px;
  border-radius:999px;
  font-weight:700;
  font-size:15px;
  letter-spacing:-.2px;
  transition:var(--transition);
  border:2px solid transparent;
  white-space:nowrap;
  cursor:pointer;
}
.btn-primary{
  background:var(--gold-600);
  color:var(--green-900);
  border-color:var(--gold-600);
}
.btn-primary:hover{
  background:var(--gold-700);
  border-color:var(--gold-700);
  transform:translateY(-1px);
  box-shadow:var(--shadow-md);
}
.btn-outline-light{
  background:transparent;
  color:var(--white);
  border-color:rgba(255,255,255,.55);
}
.btn-outline-light:hover{
  background:var(--white);
  color:var(--green-900);
  border-color:var(--white);
}
.btn-outline-gold{
  background:transparent;
  color:var(--gold-600);
  border-color:var(--gold-600);
}
.btn-outline-gold:hover{
  background:var(--gold-600);
  color:var(--green-900);
}
.btn-dark{
  background:var(--green-800);
  color:var(--white);
  border-color:var(--green-800);
}
.btn-dark:hover{
  background:var(--green-900);
  border-color:var(--green-900);
}
.btn-sm{padding:9px 18px;font-size:14px}
.btn-lg{padding:16px 36px;font-size:17px}

/* ---------- Header / Navigation ---------- */
.site-header{
  background:var(--white);
  color:var(--green-900);
  padding:18px 0;
  position:sticky;
  top:0;
  border-bottom:1px solid var(--gray-200);
  z-index:1000;
  box-shadow:0 2px 0 rgba(184,134,47,.15);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}
.logo-link{display:flex;align-items:center;gap:10px}
.logo-link img{height:48px;width:auto}
.brand-text{display:flex;flex-direction:column;line-height:1.1}
.brand-text strong{font-size:18px;color:var(--white);font-weight:800}
.brand-text small{font-size:11px;color:var(--gold-400);letter-spacing:1px}

.main-nav{display:flex;align-items:center;gap:6px;flex:1;justify-content:center}
.main-nav a{
  color:var(--green-900);
  font-weight:600;
  font-size:15px;
  padding:10px 14px;
  border-radius:8px;
  position:relative;
  transition:var(--transition);
}
.main-nav a:hover{color:var(--gold-700)}
.main-nav a.active{color:var(--gold-700)}
.main-nav a.active::after{
  content:'';
  position:absolute;
  bottom:0;
  right:14px;
  left:14px;
  height:3px;
  background:var(--gold-500);
  border-radius:3px;
}
.nav-divider{color:rgba(255,255,255,.18);user-select:none}

.header-cta{display:flex;align-items:center;gap:10px}

.menu-toggle{
  display:none;
  width:42px;
  height:42px;
  border-radius:8px;
  background:rgba(255,255,255,.08);
  color:var(--white);
  font-size:22px;
  align-items:center;
  justify-content:center;
}

/* ---------- Hero ---------- */
.hero{
  background:linear-gradient(135deg,var(--green-900) 0%,var(--green-800) 60%,var(--green-700) 100%);
  color:var(--white);
  padding:100px 0 110px;
  position:relative;
  overflow:hidden;
}
.hero::before{
  content:'';
  position:absolute;
  inset:0;
  background-image:
    repeating-linear-gradient(45deg,transparent 0,transparent 38px,rgba(184,134,47,.04) 38px,rgba(184,134,47,.04) 40px),
    repeating-linear-gradient(-45deg,transparent 0,transparent 38px,rgba(184,134,47,.04) 38px,rgba(184,134,47,.04) 40px);
  pointer-events:none;
}
.hero::after{
  content:'';
  position:absolute;
  top:-100px;
  left:-100px;
  width:400px;
  height:400px;
  background:radial-gradient(circle,rgba(201,163,86,.10) 0%,transparent 70%);
  pointer-events:none;
}
.hero-inner{position:relative;z-index:2;max-width:760px;margin-right:auto}
.hero-eyebrow{
  display:inline-block;
  background:rgba(201,163,86,.18);
  color:var(--gold-400);
  font-weight:700;
  font-size:13px;
  padding:7px 18px;
  border-radius:999px;
  border:1px solid rgba(201,163,86,.35);
  margin-bottom:22px;
}
.hero-title{
  font-size:clamp(32px,5vw,52px);
  font-weight:800;
  line-height:1.25;
  margin-bottom:20px;
  letter-spacing:-.5px;
}
.hero-title .accent{color:var(--gold-500)}
.hero-subtitle{
  font-size:clamp(15px,1.6vw,18px);
  color:rgba(255,255,255,.82);
  margin-bottom:36px;
  line-height:1.8;
  max-width:620px;
}
.hero-actions{display:flex;flex-wrap:wrap;gap:14px}

/* ---------- Sections base ---------- */
.section{padding:80px 0}
.section-cream{background:var(--cream-100)}
.section-dark{background:var(--green-900);color:var(--white)}
.section-head{text-align:center;margin-bottom:50px}
.section-eyebrow{
  display:inline-block;
  background:var(--gold-100);
  color:var(--gold-700);
  font-weight:700;
  font-size:13px;
  padding:6px 16px;
  border-radius:999px;
  margin-bottom:14px;
}
.section-dark .section-eyebrow{
  background:rgba(201,163,86,.18);
  color:var(--gold-400);
  border:1px solid rgba(201,163,86,.3);
}
.section-title{
  font-size:clamp(26px,3.5vw,38px);
  font-weight:800;
  color:var(--green-900);
  letter-spacing:-.5px;
  margin-bottom:14px;
}
.section-dark .section-title{color:var(--white)}
.section-subtitle{
  font-size:16px;
  color:var(--gray-500);
  max-width:680px;
  margin:0 auto;
  line-height:1.8;
}
.section-dark .section-subtitle{color:rgba(255,255,255,.75)}

/* ---------- Service Cards ---------- */
.services-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px;
}
.service-card{
  background:var(--white);
  border:1px solid var(--gray-200);
  border-radius:var(--radius-md);
  padding:32px 26px;
  transition:var(--transition);
  position:relative;
}
.service-card:hover{
  border-color:var(--gold-400);
  box-shadow:var(--shadow-lg);
  transform:translateY(-4px);
}
.service-icon{
  width:56px;
  height:56px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:var(--cream-200);
  color:var(--gold-700);
  border-radius:14px;
  font-size:26px;
  margin-bottom:18px;
}
.service-title{
  font-size:18px;
  font-weight:800;
  color:var(--green-900);
  margin-bottom:10px;
}
.service-desc{
  font-size:14px;
  color:var(--gray-500);
  line-height:1.8;
}
.services-cta{text-align:center;margin-top:36px}

/* ---------- Stats Strip ---------- */
.stats-strip{
  background:var(--cream-200);
  padding:50px 0;
}
.stats-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:24px;
  text-align:center;
}
.stat-num{
  font-size:clamp(36px,4vw,56px);
  font-weight:800;
  color:var(--gold-600);
  line-height:1;
  margin-bottom:6px;
}
.stat-label{
  font-size:15px;
  color:var(--green-900);
  font-weight:600;
}

/* ---------- Two-column Why / Checklist ---------- */
.why-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:60px;
  align-items:start;
}
.why-block h3{
  font-size:24px;
  font-weight:800;
  color:var(--green-900);
  margin-bottom:8px;
}
.why-block .eyebrow{
  font-size:12px;
  font-weight:700;
  color:var(--gold-700);
  letter-spacing:2px;
  margin-bottom:6px;
  display:block;
}
.why-list{margin-top:18px}
.why-list li{
  background:var(--cream-200);
  padding:13px 18px 13px 18px;
  border-radius:10px;
  margin-bottom:10px;
  display:flex;
  align-items:center;
  gap:12px;
  font-size:14px;
  color:var(--green-900);
  font-weight:600;
}
.why-list li::before{
  content:'✓';
  width:24px;
  height:24px;
  background:var(--gold-500);
  color:var(--green-900);
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:13px;
  font-weight:800;
  flex-shrink:0;
}

/* ---------- Final CTA Strip ---------- */
.final-cta{
  background:var(--green-800);
  color:var(--white);
  padding:55px 0;
  text-align:center;
}
.final-cta h2{
  font-size:clamp(22px,3vw,32px);
  font-weight:800;
  margin-bottom:22px;
}
.final-cta-actions{
  display:flex;
  gap:14px;
  justify-content:center;
  flex-wrap:wrap;
}

/* ---------- Page Hero (inner pages) ---------- */
.page-hero{
  background:linear-gradient(135deg,var(--green-900),var(--green-800));
  color:var(--white);
  padding:70px 0 60px;
  text-align:center;
  position:relative;
  overflow:hidden;
}
.page-hero::before{
  content:'';
  position:absolute;inset:0;
  background-image:
    repeating-linear-gradient(45deg,transparent 0,transparent 36px,rgba(201,163,86,.04) 36px,rgba(201,163,86,.04) 38px);
  pointer-events:none;
}
.page-hero .container{position:relative;z-index:2}
.page-hero h1{
  font-size:clamp(28px,4vw,42px);
  font-weight:800;
  margin-bottom:14px;
}
.page-hero p{
  color:rgba(255,255,255,.78);
  max-width:620px;
  margin:0 auto;
  line-height:1.8;
}
.breadcrumb{
  margin-top:18px;
  font-size:13px;
  color:rgba(255,255,255,.7);
}
.breadcrumb a{color:var(--gold-400)}
.breadcrumb a:hover{color:var(--white)}

/* ---------- Forms ---------- */
.form-group{margin-bottom:18px}
.form-label{
  display:block;
  font-size:14px;
  font-weight:600;
  color:var(--green-900);
  margin-bottom:7px;
}
.form-control{
  width:100%;
  padding:13px 16px;
  border:1.5px solid var(--gray-200);
  border-radius:10px;
  background:var(--white);
  font-size:15px;
  color:var(--gray-900);
  transition:var(--transition);
}
.form-control:focus{
  outline:none;
  border-color:var(--gold-500);
  box-shadow:0 0 0 4px rgba(201,163,86,.15);
}
textarea.form-control{min-height:130px;resize:vertical;line-height:1.7}

.form-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}

/* ---------- FAQ Accordion ---------- */
.faq-item{
  background:var(--white);
  border:1.5px solid var(--gray-200);
  border-radius:12px;
  margin-bottom:12px;
  overflow:hidden;
  transition:var(--transition);
}
.faq-item.open{border-color:var(--gold-500)}
.faq-q{
  width:100%;
  padding:18px 22px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  text-align:right;
  background:transparent;
  font-size:15px;
  font-weight:700;
  color:var(--green-900);
}
.faq-q .toggle{
  width:28px;height:28px;
  border-radius:8px;
  background:var(--cream-200);
  color:var(--green-900);
  display:flex;align-items:center;justify-content:center;
  font-size:18px;font-weight:800;
  transition:var(--transition);
  flex-shrink:0;
}
.faq-item.open .toggle{background:var(--gold-500);transform:rotate(45deg)}
.faq-a{
  padding:0 22px;
  max-height:0;
  overflow:hidden;
  transition:max-height .35s ease,padding .35s ease;
  color:var(--gray-700);
  font-size:14.5px;
  line-height:1.85;
}
.faq-item.open .faq-a{padding:0 22px 20px;max-height:600px}

/* ---------- Footer ---------- */
.site-footer{
  background:var(--green-900);
  color:rgba(255,255,255,.72);
  padding:60px 0 0;
}
.footer-grid{
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr 1.2fr;
  gap:40px;
  padding-bottom:40px;
}
.footer-brand img{height:54px;margin-bottom:16px}
.footer-brand p{font-size:14px;line-height:1.9;color:rgba(255,255,255,.65)}
.footer-col h4{
  color:var(--white);
  font-size:15px;
  font-weight:700;
  margin-bottom:18px;
  position:relative;
  padding-bottom:10px;
}
.footer-col h4::after{
  content:'';
  position:absolute;
  bottom:0;right:0;
  width:36px;height:3px;
  background:var(--gold-500);
  border-radius:3px;
}
.footer-col ul li{margin-bottom:10px;font-size:14px}
.footer-col ul a{color:rgba(255,255,255,.65)}
.footer-col ul a:hover{color:var(--gold-400)}
.contact-row{display:flex;align-items:center;gap:10px;font-size:14px;margin-bottom:10px}
.contact-row .icon{
  width:32px;height:32px;
  background:rgba(201,163,86,.15);
  color:var(--gold-400);
  border-radius:8px;
  display:flex;align-items:center;justify-content:center;
  flex-shrink:0;
}
.social-row{display:flex;gap:10px;margin-top:14px}
.social-row a{
  width:38px;height:38px;
  background:rgba(255,255,255,.07);
  color:var(--white);
  border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  transition:var(--transition);
}
.social-row a:hover{background:var(--gold-500);color:var(--green-900)}

.footer-bottom{
  border-top:1px solid rgba(255,255,255,.08);
  padding:22px 0;
  text-align:center;
  font-size:13px;
  color:rgba(255,255,255,.55);
}
.footer-bottom .gold{color:var(--gold-400)}

/* ---------- Floating WhatsApp ---------- */
.whatsapp-float{
  position:fixed;
  bottom:24px;
  left:24px;
  width:58px;height:58px;
  background:#25d366;
  color:var(--white);
  border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  font-size:28px;
  box-shadow:0 8px 24px rgba(37,211,102,.4);
  z-index:999;
  transition:var(--transition);
}
.whatsapp-float:hover{transform:scale(1.05);box-shadow:0 10px 28px rgba(37,211,102,.55)}

/* ---------- Tabs (services, FAQ) ---------- */
.tabs-bar{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  justify-content:center;
  margin-bottom:36px;
}
.tab-btn{
  padding:10px 22px;
  background:var(--white);
  border:1.5px solid var(--gray-200);
  border-radius:999px;
  font-weight:600;
  font-size:14px;
  color:var(--gray-700);
  transition:var(--transition);
}
.tab-btn:hover{border-color:var(--gold-400);color:var(--green-900)}
.tab-btn.active{
  background:var(--green-900);
  color:var(--white);
  border-color:var(--green-900);
}

/* ---------- Tools Grid (Free Tools showcase on home) ---------- */
.tools-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
}
.tool-card{
  background:var(--white);
  border:1.5px solid var(--gray-200);
  border-radius:var(--radius-md);
  padding:28px;
  text-align:right;
  transition:var(--transition);
  display:flex;
  flex-direction:column;
}
.tool-card:hover{
  border-color:var(--gold-500);
  box-shadow:var(--shadow-lg);
  transform:translateY(-3px);
}
.tool-badge{
  display:inline-block;
  font-size:11px;
  font-weight:800;
  background:var(--gold-100);
  color:var(--gold-700);
  padding:4px 10px;
  border-radius:6px;
  margin-bottom:14px;
  letter-spacing:.5px;
  width:fit-content;
}
.tool-title{
  font-size:18px;
  font-weight:800;
  color:var(--green-900);
  margin-bottom:8px;
}
.tool-desc{
  font-size:14px;
  color:var(--gray-500);
  line-height:1.8;
  margin-bottom:18px;
  flex:1;
}
.tool-link{
  color:var(--gold-700);
  font-weight:700;
  font-size:14px;
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.tool-link:hover{color:var(--green-900)}

/* ---------- Testimonials ---------- */
.testimonials-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px;
}
.testimonial{
  background:var(--white);
  border-radius:var(--radius-md);
  padding:28px;
  border:1px solid var(--gray-200);
  position:relative;
}
.testimonial::before{
  content:'"';
  position:absolute;
  top:10px;
  right:20px;
  font-size:60px;
  color:var(--gold-400);
  line-height:1;
  font-family:Georgia,serif;
  opacity:.4;
}
.testimonial-text{
  font-size:14.5px;
  line-height:1.9;
  color:var(--gray-700);
  margin-bottom:18px;
  position:relative;
  z-index:1;
}
.testimonial-author{
  display:flex;
  align-items:center;
  gap:12px;
  border-top:1px solid var(--gray-200);
  padding-top:14px;
}
.author-avatar{
  width:46px;height:46px;
  background:var(--green-700);
  color:var(--gold-400);
  border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  font-size:18px;font-weight:800;
}
.author-name{font-size:14px;font-weight:700;color:var(--green-900);line-height:1.3}
.author-role{font-size:12px;color:var(--gray-500)}

/* ---------- Sectors strip ---------- */
.sectors-row{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:18px;
  text-align:center;
}
.sector-item{
  background:var(--white);
  border:1px solid var(--gray-200);
  border-radius:var(--radius-md);
  padding:22px 12px;
  transition:var(--transition);
}
.sector-item:hover{border-color:var(--gold-500);transform:translateY(-3px)}
.sector-icon{
  font-size:30px;
  color:var(--gold-700);
  margin-bottom:10px;
}
.sector-name{
  font-size:13px;
  font-weight:700;
  color:var(--green-900);
}

/* ---------- Process / How we work ---------- */
.process-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:20px;
}
.process-card{
  background:var(--white);
  border:1px solid var(--gray-200);
  border-radius:var(--radius-md);
  padding:28px 22px;
  text-align:center;
  position:relative;
}
.process-num{
  width:48px;height:48px;
  background:var(--green-900);
  color:var(--gold-500);
  border-radius:50%;
  font-size:20px;font-weight:800;
  display:flex;align-items:center;justify-content:center;
  margin:0 auto 14px;
}
.process-title{
  font-size:16px;
  font-weight:800;
  color:var(--green-900);
  margin-bottom:8px;
}
.process-desc{
  font-size:13.5px;
  color:var(--gray-500);
  line-height:1.7;
}

/* ---------- Responsive ---------- */
@media(max-width:992px){
  .services-grid,.tools-grid,.testimonials-grid{grid-template-columns:repeat(2,1fr)}
  .process-grid{grid-template-columns:repeat(2,1fr)}
  .sectors-row{grid-template-columns:repeat(3,1fr)}
  .footer-grid{grid-template-columns:1fr 1fr;gap:30px}
  .why-grid{grid-template-columns:1fr;gap:36px}
  .stats-grid{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:768px){
  .menu-toggle{display:inline-flex}
  .main-nav{
    position:absolute;
    top:100%;
    right:0;left:0;
    background:var(--green-800);
    flex-direction:column;
    align-items:stretch;
    padding:14px;
    gap:0;
    display:none;
    border-top:1px solid rgba(255,255,255,.08);
  }
  .main-nav.open{display:flex}
  .main-nav a{padding:14px;border-radius:8px}
  .main-nav a.active::after{display:none}
  .main-nav a.active{background:rgba(201,163,86,.12)}
  .nav-divider{display:none}
  .header-cta .btn:not(.menu-toggle){display:none}
  .hero{padding:60px 0 70px}
  .section{padding:55px 0}
  .form-row{grid-template-columns:1fr}
  .services-grid,.tools-grid,.testimonials-grid{grid-template-columns:1fr}
  .stats-grid{grid-template-columns:1fr;gap:20px}
  .footer-grid{grid-template-columns:1fr;gap:30px}
  .sectors-row{grid-template-columns:repeat(2,1fr)}
}

/* ---------- Utility ---------- */
.text-center{text-align:center}
.mt-2{margin-top:14px}
.mt-3{margin-top:24px}
.mt-4{