/*
Theme Name: Shah Faysal LLC
Theme URI: https://shahfaysal.com/
Author: Shah Faysal LLC
Author URI: https://shahfaysal.com/
Description: Premium one-page business theme for Shah Faysal LLC - Digital Marketing, AI Automation, Software Development, Mobile Apps and SaaS Business Systems. Navy, white and red brand system with a full-width scrolling landing page, Customizer controls and translation-ready templates.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: shah-faysal
Tags: one-column, custom-logo, custom-menu, custom-colors, featured-images, translation-ready, block-styles, wide-blocks, business, portfolio
*/

/* -------------------------------------------------------------------------
   1. Design tokens
   ---------------------------------------------------------------------- */
:root {
  --sf-navy: #002060;
  --sf-navy-deep: #001640;
  --sf-navy-soft: #0b2f7a;
  --sf-red: #ff0000;
  --sf-white: #ffffff;
  --sf-ink: #0d1526;
  --sf-muted: #5b6478;
  --sf-line: #e3e7ef;
  --sf-surface: #f5f7fb;
  --sf-radius: 14px;
  --sf-shadow: 0 18px 50px rgba(0, 32, 96, 0.12);
  --sf-shadow-sm: 0 6px 20px rgba(0, 32, 96, 0.08);
  --sf-container: 1200px;
  --sf-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* -------------------------------------------------------------------------
   2. Reset / base
   ---------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--sf-font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--sf-ink);
  background: var(--sf-white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--sf-navy); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--sf-red); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--sf-font);
  color: var(--sf-navy);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 .6em;
  font-weight: 800;
}

h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }

p { margin: 0 0 1.1rem; }

ul, ol { padding-left: 1.15rem; }

blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.4rem;
  border-left: 4px solid var(--sf-red);
  background: var(--sf-surface);
  color: var(--sf-navy);
  font-style: normal;
}

:focus-visible {
  outline: 3px solid var(--sf-red);
  outline-offset: 3px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.skip-link:focus {
  position: fixed; top: 12px; left: 12px;
  z-index: 999;
  width: auto; height: auto; clip: auto;
  padding: .7rem 1.1rem;
  background: var(--sf-navy); color: #fff;
  border-radius: 8px;
}

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

.sf-section { padding: clamp(64px, 8vw, 116px) 0; position: relative; }
.sf-section--surface { background: var(--sf-surface); }
.sf-section--navy { background: var(--sf-navy); color: rgba(255,255,255,.82); }
.sf-section--navy h2,
.sf-section--navy h3 { color: #fff; }

.sf-section-head { max-width: 760px; margin-bottom: clamp(34px, 4vw, 56px); }
.sf-section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

.sf-eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .74rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--sf-red);
  margin-bottom: 1rem;
}
.sf-eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--sf-red);
}
.sf-section--navy .sf-eyebrow { color: #ff5a5a; }

.sf-lead { font-size: 1.06rem; color: var(--sf-muted); margin: 0; }
.sf-section--navy .sf-lead { color: rgba(255,255,255,.75); }

.sf-grid { display: grid; gap: 24px; }
.sf-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sf-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sf-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* -------------------------------------------------------------------------
   4. Buttons
   ---------------------------------------------------------------------- */
.sf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem 1.6rem;
  font-size: .95rem; font-weight: 700;
  border: 2px solid transparent; border-radius: 10px;
  cursor: pointer; transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.sf-btn:hover { transform: translateY(-2px); }
.sf-btn--primary { background: var(--sf-red); color: #fff; }
.sf-btn--primary:hover { background: #d90000; color: #fff; }
.sf-btn--navy { background: var(--sf-navy); color: #fff; }
.sf-btn--navy:hover { background: var(--sf-navy-deep); color: #fff; }
.sf-btn--ghost { border-color: rgba(255,255,255,.4); color: #fff; }
.sf-btn--ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }
.sf-btn--outline { border-color: var(--sf-navy); color: var(--sf-navy); }
.sf-btn--outline:hover { background: var(--sf-navy); color: #fff; }

/* -------------------------------------------------------------------------
   5. Header
   ---------------------------------------------------------------------- */
.sf-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--sf-line);
  transition: box-shadow .25s ease;
}
.sf-header.is-stuck { box-shadow: var(--sf-shadow-sm); }
.sf-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 76px;
}
.sf-brand { display: flex; align-items: center; gap: .75rem; }
.sf-brand img { max-height: 48px; width: auto; }
.sf-brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.sf-brand__name { font-weight: 800; font-size: 1.05rem; color: var(--sf-navy); letter-spacing: -.01em; }
.sf-brand__tag { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--sf-muted); }

.sf-nav ul { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.sf-nav a { font-size: .93rem; font-weight: 600; color: var(--sf-navy); position: relative; }
.sf-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; background: var(--sf-red); transition: width .25s ease;
}
.sf-nav a:hover::after, .sf-nav .current-menu-item > a::after, .sf-nav a.is-active::after { width: 100%; }

.sf-header__actions { display: flex; align-items: center; gap: .8rem; }

.sf-toggle {
  display: none; width: 44px; height: 44px;
  border: 1px solid var(--sf-line); border-radius: 10px;
  background: #fff; cursor: pointer;
  align-items: center; justify-content: center;
}
.sf-toggle span, .sf-toggle span::before, .sf-toggle span::after {
  display: block; width: 20px; height: 2px; background: var(--sf-navy); position: relative;
}
.sf-toggle span::before, .sf-toggle span::after { content: ""; position: absolute; left: 0; }
.sf-toggle span::before { top: -6px; }
.sf-toggle span::after { top: 6px; }

.sf-mobile-nav { display: none; border-top: 1px solid var(--sf-line); background: #fff; }
.sf-mobile-nav.is-open { display: block; }
.sf-mobile-nav ul { list-style: none; margin: 0; padding: 12px 0 20px; }
.sf-mobile-nav li { border-bottom: 1px solid var(--sf-line); }
.sf-mobile-nav a { display: block; padding: .9rem 0; font-weight: 600; }
.sf-mobile-nav .sf-btn { margin-top: 16px; width: 100%; }

/* -------------------------------------------------------------------------
   6. Hero
   ---------------------------------------------------------------------- */
.sf-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--sf-navy-deep) 0%, var(--sf-navy) 55%, var(--sf-navy-soft) 100%);
  color: #fff;
  padding: clamp(72px, 10vw, 140px) 0;
}
.sf-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 72%);
  pointer-events: none;
}
.sf-hero__inner { position: relative; display: grid; gap: clamp(32px, 5vw, 64px); grid-template-columns: 1.05fr .95fr; align-items: center; }
.sf-hero h1 { color: #fff; }
.sf-hero h1 .sf-accent { color: #ff4d4d; }
.sf-hero p { color: rgba(255,255,255,.8); font-size: 1.1rem; max-width: 52ch; }
.sf-hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.8rem; }
.sf-hero__stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; margin-top: 3rem; }
.sf-hero__stat strong { display: block; font-size: 1.7rem; color: #fff; font-weight: 800; }
.sf-hero__stat span { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.62); }

.sf-hero__panel {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 18px;
  padding: 26px;
  backdrop-filter: blur(8px);
}
.sf-hero__panel-title { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: 18px; }
.sf-capability {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; margin-bottom: 10px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  font-size: .92rem; font-weight: 600; color: #fff;
}
.sf-capability em { font-style: normal; color: #ff6b6b; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.sf-hero__media img { border-radius: 18px; box-shadow: 0 30px 70px rgba(0,0,0,.35); }

/* -------------------------------------------------------------------------
   7. Cards
   ---------------------------------------------------------------------- */
.sf-card {
  background: #fff;
  border: 1px solid var(--sf-line);
  border-radius: var(--sf-radius);
  padding: 30px 28px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  height: 100%;
}
.sf-card:hover { transform: translateY(-6px); box-shadow: var(--sf-shadow); border-color: rgba(0,32,96,.2); }
.sf-card__icon {
  width: 50px; height: 50px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,32,96,.07); color: var(--sf-navy);
  margin-bottom: 18px;
}
.sf-card__icon svg { width: 24px; height: 24px; }
.sf-card:hover .sf-card__icon { background: var(--sf-red); color: #fff; }
.sf-card h3 { margin-bottom: .5rem; }
.sf-card p { color: var(--sf-muted); font-size: .96rem; margin: 0; }
.sf-card ul { margin: 1rem 0 0; padding-left: 1.1rem; color: var(--sf-muted); font-size: .92rem; }
.sf-card ul li { margin-bottom: .35rem; }
.sf-card__link { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1.1rem; font-weight: 700; font-size: .9rem; color: var(--sf-red); }

/* Portfolio */
.sf-work {
  border: 1px solid var(--sf-line); border-radius: var(--sf-radius);
  overflow: hidden; background: #fff; height: 100%;
  transition: transform .25s ease, box-shadow .25s ease;
}
.sf-work:hover { transform: translateY(-6px); box-shadow: var(--sf-shadow); }
.sf-work__thumb { aspect-ratio: 16 / 10; background: var(--sf-navy); overflow: hidden; }
.sf-work__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.sf-work:hover .sf-work__thumb img { transform: scale(1.05); }
.sf-work__body { padding: 24px 26px 28px; }
.sf-tag {
  display: inline-block; padding: .25rem .6rem; margin: 0 .35rem .35rem 0;
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--sf-navy); background: rgba(0,32,96,.07); border-radius: 999px;
}

/* Solutions / process */
.sf-solution {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center;
  padding: 22px 26px; border: 1px solid var(--sf-line); border-radius: var(--sf-radius);
  background: #fff; margin-bottom: 14px;
}
.sf-solution__arrow { color: var(--sf-red); font-weight: 800; }
.sf-solution strong { display: block; color: var(--sf-navy); }
.sf-solution span { color: var(--sf-muted); font-size: .94rem; }

.sf-step { padding: 26px 24px; border-radius: var(--sf-radius); border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); }
.sf-step__num { font-size: .8rem; font-weight: 800; letter-spacing: .16em; color: #ff6b6b; margin-bottom: .7rem; }
.sf-step p { color: rgba(255,255,255,.72); font-size: .94rem; margin: 0; }

/* -------------------------------------------------------------------------
   8. Contact
   ---------------------------------------------------------------------- */
.sf-contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.sf-contact__item { display: flex; gap: 14px; margin-bottom: 22px; }
.sf-contact__item svg { width: 22px; height: 22px; color: var(--sf-red); flex: none; margin-top: 3px; }
.sf-contact__item strong { display: block; color: var(--sf-navy); font-size: .95rem; }
.sf-contact__item a, .sf-contact__item span { color: var(--sf-muted); font-size: .95rem; }

.sf-form { background: #fff; border: 1px solid var(--sf-line); border-radius: var(--sf-radius); padding: clamp(24px, 3vw, 38px); box-shadow: var(--sf-shadow-sm); }
.sf-field { margin-bottom: 18px; }
.sf-field label { display: block; font-size: .85rem; font-weight: 700; color: var(--sf-navy); margin-bottom: .45rem; }
.sf-field input, .sf-field select, .sf-field textarea {
  width: 100%; padding: .85rem 1rem;
  font: inherit; font-size: .95rem; color: var(--sf-ink);
  background: #fff; border: 1px solid var(--sf-line); border-radius: 10px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.sf-field input:focus, .sf-field select:focus, .sf-field textarea:focus {
  outline: none; border-color: var(--sf-navy); box-shadow: 0 0 0 3px rgba(0,32,96,.12);
}
.sf-field textarea { min-height: 140px; resize: vertical; }
.sf-field--row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.sf-form__note { font-size: .82rem; color: var(--sf-muted); margin: 1rem 0 0; }
.sf-honeypot { position: absolute; left: -9999px; }
.sf-alert { padding: .9rem 1.1rem; border-radius: 10px; margin-bottom: 20px; font-size: .92rem; }
.sf-alert--ok { background: rgba(0,32,96,.06); color: var(--sf-navy); border: 1px solid rgba(0,32,96,.2); }
.sf-alert--error { background: rgba(255,0,0,.06); color: #b00000; border: 1px solid rgba(255,0,0,.25); }

/* -------------------------------------------------------------------------
   9. Footer
   ---------------------------------------------------------------------- */
.sf-footer { background: var(--sf-navy-deep); color: rgba(255,255,255,.7); padding: clamp(52px, 6vw, 80px) 0 0; }
.sf-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1.1rem; }
.sf-footer a { color: rgba(255,255,255,.72); font-size: .94rem; }
.sf-footer a:hover { color: #fff; }
.sf-footer ul { list-style: none; margin: 0; padding: 0; }
.sf-footer li { margin-bottom: .55rem; }
.sf-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.sf-footer__bottom {
  margin-top: 46px; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: .86rem;
}
.sf-social { display: flex; gap: 10px; margin-top: 1rem; }
.sf-social a {
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08);
}
.sf-social a:hover { background: var(--sf-red); }
.sf-social svg { width: 18px; height: 18px; }

/* WhatsApp float */
.sf-whatsapp {
  position: fixed; right: 20px; bottom: 20px; z-index: 300;
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #25d366; color: #fff; box-shadow: 0 12px 30px rgba(0,0,0,.22);
}
.sf-whatsapp:hover { color: #fff; transform: translateY(-3px); }
.sf-whatsapp svg { width: 28px; height: 28px; }

/* -------------------------------------------------------------------------
   10. Blog / fallback content styles
   ---------------------------------------------------------------------- */
.sf-post { border: 1px solid var(--sf-line); border-radius: var(--sf-radius); padding: 28px; background: #fff; height: 100%; }
.sf-post__meta { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--sf-red); margin-bottom: .8rem; }
.sf-entry-content > * { max-width: 820px; margin-left: auto; margin-right: auto; }
.sf-entry-content .alignwide, .sf-entry-content .alignfull { max-width: none; }
.wp-block-image img { border-radius: var(--sf-radius); }
.sf-pagination { display: flex; gap: 10px; justify-content: center; margin-top: 40px; }
.sf-pagination .page-numbers {
  padding: .55rem .95rem; border: 1px solid var(--sf-line); border-radius: 8px; font-weight: 600;
}
.sf-pagination .current { background: var(--sf-navy); color: #fff; border-color: var(--sf-navy); }

/* -------------------------------------------------------------------------
   11. Reveal animation
   ---------------------------------------------------------------------- */
.sf-reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.sf-reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sf-reveal { opacity: 1; transform: none; transition: none; }
  .sf-btn:hover, .sf-card:hover, .sf-work:hover { transform: none; }
}

/* -------------------------------------------------------------------------
   12. Responsive
   ---------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .sf-grid--4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .sf-grid--3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .sf-hero__inner { grid-template-columns: 1fr; }
  .sf-contact { grid-template-columns: 1fr; }
  .sf-footer__grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 860px) {
  .sf-nav, .sf-header__actions .sf-btn { display: none; }
  .sf-toggle { display: flex; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .sf-grid--2, .sf-grid--3, .sf-grid--4 { grid-template-columns: 1fr; }
  .sf-field--row { grid-template-columns: 1fr; }
  .sf-footer__grid { grid-template-columns: 1fr; }
  .sf-solution { grid-template-columns: 1fr; }
  .sf-solution__arrow { display: none; }
  .sf-hero__stats { grid-template-columns: 1fr; gap: 12px; }
}
