/* ==========================================================================
   Saddiq Books – site stylesheet
   Loaded after Bootstrap 5. Class names match the legacy markup so existing
   page bodies keep working. Accent colour darkened for WCAG AA contrast
   (white on #15803d = 5.0:1).
   ========================================================================== */

:root {
  --primary: #0f172a;
  --secondary: #1e293b;
  --accent: #15803d;
  --accent-hover: #166534;
  --accent-soft: #dcfce7;
  --light: #f8fafc;
  --muted: #475569;
  --border: #e2e8f0;
  --radius: 16px;
  --shadow-sm: 0 5px 20px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 35px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 15px 40px rgba(15, 23, 42, 0.12);
}

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color: #1e293b;
  line-height: 1.65;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
h1, h2, h3, h4, h5, h6 { color: var(--primary); line-height: 1.25; font-weight: 700; }
main ul:not([class]), main ol:not([class]) { padding-left: 1.4rem; }
main ul:not([class]) li, main ol:not([class]) li { margin-bottom: .4rem; }

/* Accessibility helpers ---------------------------------------------------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 3000;
  background: var(--primary); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }
:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
.visually-hidden-focusable:not(:focus):not(:focus-within) { position: absolute !important; }

/* Top bar & navigation ----------------------------------------------------- */
.topbar { background: var(--primary); color: #fff; padding: 9px 0; font-size: 14px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: #86efac; }

.navbar { background: #fff; box-shadow: 0 2px 15px rgba(15, 23, 42, 0.06); padding: 14px 0; }
.navbar-brand { font-size: 26px; font-weight: 800; color: var(--primary) !important; letter-spacing: -.02em; }
.navbar-brand .brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; margin-right: 8px; border-radius: 9px;
  background: var(--accent); color: #fff; font-size: 16px; vertical-align: 2px;
}
.nav-link { color: var(--secondary) !important; font-weight: 600; }
.nav-link:hover, .nav-link.active { color: var(--accent) !important; }
.dropdown-menu { border: 0; box-shadow: var(--shadow-md); border-radius: 12px; padding: 10px; }
.dropdown-item { border-radius: 8px; font-weight: 500; padding: 8px 14px; }
.dropdown-item:hover, .dropdown-item.active { background: var(--accent-soft); color: var(--accent-hover); }
.dropdown-header { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
@media (min-width: 992px) { .navbar .nav-link { margin-left: 8px; } }

.breadcrumb-nav { background: var(--light); border-bottom: 1px solid var(--border); font-size: 14px; }
.breadcrumb-nav ol { list-style: none; margin: 0; padding: 10px 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb-nav li + li::before { content: "/"; color: #94a3b8; margin-right: 6px; }
.breadcrumb-nav a { text-decoration: none; }
.breadcrumb-nav [aria-current] { color: var(--muted); }

/* Buttons ------------------------------------------------------------------ */
.btn-success, .btn-success:focus { background: var(--accent); border-color: var(--accent); font-weight: 600; }
.btn-success:hover, .btn-success:active { background: var(--accent-hover) !important; border-color: var(--accent-hover) !important; }
.btn-outline-success { color: var(--accent); border-color: var(--accent); font-weight: 600; }
.btn-outline-success:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.btn-primary-custom {
  background: var(--accent); color: #fff; padding: 14px 32px; border-radius: 10px;
  text-decoration: none; font-weight: 700; display: inline-block; margin-right: 12px; margin-bottom: 8px;
  transition: background .2s, transform .2s; border: 0; cursor: pointer; font-size: 1rem; line-height: 1.4;
}
.btn-primary-custom:hover { background: var(--accent-hover); color: #fff; transform: translateY(-1px); }
.btn-secondary-custom {
  border: 2px solid #fff; color: #fff; padding: 12px 30px; border-radius: 10px; text-decoration: none;
  font-weight: 700; display: inline-block; background: transparent; margin-bottom: 8px;
}
.btn-secondary-custom:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* Hero & page headers ------------------------------------------------------ */
.hero {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(21, 128, 61, .35), transparent 60%),
    linear-gradient(135deg, #0b1220 0%, #0f172a 55%, #14301f 100%);
  color: #fff; padding: 120px 0 110px;
}
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.5rem); font-weight: 800; color: #fff; letter-spacing: -.02em; }
.hero p { color: #e2e8f0; font-size: 1.1rem; max-width: 640px; }
.hero-list { list-style: none; padding: 0; margin: 0 0 32px; }
.hero-list li { margin-bottom: 10px; font-size: 1.05rem; }
.hero-list i { color: var(--accent); margin-right: 10px; }
.hero .hero-list i { color: #4ade80; }
.hero-trust { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px 22px; color: #cbd5e1; font-size: .95rem; }
.hero-trust i { color: #4ade80; margin-right: 6px; }

.page-header {
  background: linear-gradient(135deg, #0b1220 0%, #0f172a 60%, #14301f 100%);
  color: #fff; padding: 80px 0; text-align: center;
}
.page-header h1 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; color: #fff; }
.page-header p { color: #e2e8f0; }
.page-header .lead { max-width: 760px; margin-left: auto; margin-right: auto; }

/* Sections & cards --------------------------------------------------------- */
section { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 800; }
.section-title p { color: var(--muted); max-width: 700px; margin: 12px auto 0; }
.about-section { background: var(--light); }

.service-card {
  background: #fff; padding: 32px; border-radius: var(--radius); box-shadow: var(--shadow-sm);
  height: 100%; transition: transform .25s, box-shadow .25s; border: 1px solid rgba(226, 232, 240, .7);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card > i { font-size: 40px; color: var(--accent); margin-bottom: 16px; display: block; }
.service-card h4, .service-card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.service-card.text-center > i { margin-left: auto; margin-right: auto; }
.service-card h5 { font-weight: 700; }
.service-card .fa-star { display: inline-block; font-size: 16px; margin: 0 1px 0 0; }

.why-box { background: #fff; padding: 30px; border-radius: 12px; box-shadow: var(--shadow-sm); margin-bottom: 25px; text-align: center; height: calc(100% - 25px); }
.why-box i { font-size: 36px; color: var(--accent); margin-bottom: 14px; }

.process-step { text-align: center; padding: 20px; }
.step-number {
  width: 64px; height: 64px; background: var(--accent); color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; font-size: 26px; font-weight: 700;
}

.contact-box { background: #fff; padding: 36px; border-radius: var(--radius); box-shadow: var(--shadow-md); height: 100%; border: 1px solid rgba(226, 232, 240, .7); }
.price-card { position: relative; display: flex; flex-direction: column; }
.price-card .price { font-size: 2.4rem; font-weight: 800; color: var(--primary); line-height: 1.1; }
.price-card .price small { font-size: 1rem; font-weight: 600; color: var(--muted); }
.price-card ul { list-style: none; padding: 0; margin: 18px 0 24px; text-align: left; flex-grow: 1; }
.price-card li { padding: 6px 0 6px 28px; position: relative; }
.price-card li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: var(--accent); position: absolute; left: 0; top: 6px; }
.price-card.featured { border: 2px solid var(--accent); }
.price-card .ribbon {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 4px 14px; border-radius: 99px;
}

.team-img { width: 160px; height: 160px; object-fit: cover; object-position: center 18%; border-radius: 50%; margin-bottom: 18px; border: 4px solid var(--accent); }

.visual-panel {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center;
  min-height: 300px; border-radius: 24px; padding: 30px; color: #fff;
  background: linear-gradient(135deg, #14532d 0%, #15803d 55%, #0f172a 130%);
  box-shadow: var(--shadow-md);
}
.visual-panel i { font-size: 76px; opacity: .95; }
.visual-panel span { font-weight: 600; font-size: 1.05rem; letter-spacing: .01em; max-width: 280px; }

.cta-section { background: var(--primary); color: #fff; text-align: center; padding: 64px 0; }
.cta-section h2, .cta-section h3, .cta-section h4 { color: #fff; }
.cta-section p { color: #e2e8f0; }

.note-box { background: #fffbeb; border: 1px solid #fde68a; border-radius: 12px; padding: 14px 18px; font-size: .92rem; color: #78350f; }
.fine-print { font-size: .85rem; color: var(--muted); }

/* Forms -------------------------------------------------------------------- */
.form-label { font-weight: 600; margin-bottom: 6px; }
.form-control, .form-select { padding: 12px 14px; border-radius: 10px; border: 1px solid #cbd5e1; }
.form-control:focus, .form-select:focus { border-color: var(--accent); box-shadow: 0 0 0 .25rem rgba(21, 128, 61, .2); }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-alert { border-radius: 12px; }

/* Footer ------------------------------------------------------------------- */
.site-footer { background: #020617; color: #cbd5e1; padding: 56px 0 28px; }
.site-footer h2 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; }
.site-footer a { color: #cbd5e1; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer .brand { font-size: 1.5rem; font-weight: 800; color: #fff; }
.site-footer .legal { border-top: 1px solid #1e293b; margin-top: 36px; padding-top: 22px; font-size: .9rem; }
.site-footer .disclaimer { font-size: .8rem; color: #94a3b8; max-width: 900px; }

.whatsapp-float {
  position: fixed; bottom: 20px; right: 20px; background: #128c7e; color: #fff; border-radius: 50%;
  width: 58px; height: 58px; display: flex; align-items: center; justify-content: center; font-size: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .3); z-index: 1000; transition: transform .2s, background .2s; text-decoration: none;
}
.whatsapp-float:hover { background: #0e6e63; transform: scale(1.06); color: #fff; }

/* Blog --------------------------------------------------------------------- */
.post-content { font-size: 1.1rem; line-height: 1.85; }
.post-content h2, .post-content h3 { margin-top: 2rem; margin-bottom: 1rem; }
.post-content img { border-radius: 12px; margin: 1rem 0; }
.post-content table { width: 100%; margin: 1rem 0; border-collapse: collapse; }
.post-content th, .post-content td { border: 1px solid var(--border); padding: 8px 12px; }
.post-content blockquote { border-left: 4px solid var(--accent); padding: .5rem 1.2rem; color: var(--muted); background: var(--light); border-radius: 0 8px 8px 0; }
.post-meta { color: var(--accent); font-size: .9rem; font-weight: 600; }
.post-card img { width: 100%; height: 200px; object-fit: cover; border-radius: 12px; margin-bottom: 14px; }
.pagination .page-link { color: var(--accent); }
.pagination .active .page-link { background: var(--accent); border-color: var(--accent); color: #fff; }

/* FAQ ---------------------------------------------------------------------- */
.accordion-button:not(.collapsed) { background: var(--accent-soft); color: var(--accent-hover); }
.accordion-button:focus { box-shadow: 0 0 0 .25rem rgba(21, 128, 61, .2); }

/* Error page --------------------------------------------------------------- */
.error-code { font-size: clamp(5rem, 14vw, 8rem); font-weight: 800; color: var(--accent); line-height: 1; margin-bottom: 14px; }

@media (max-width: 768px) {
  section { padding: 56px 0; }
  .hero { padding: 80px 0 70px; }
  .page-header { padding: 56px 0; }
  .contact-box { padding: 24px; }
  .topbar .container > div:last-child { display: none; }
}

@media print {
  .topbar, .navbar, .whatsapp-float, .site-footer, .cta-section { display: none !important; }
}
