/* ============================================================
   ZAFCA — Zahid Ali Faisal Asjad & Co. | Main Stylesheet
   Multi-page static website | v1.0
   ============================================================ */

/* ---------- CSS Variables / Design Tokens ---------- */
:root {
  --red: #c00000;
  --red-dark: #9a0000;
  --gold: #fec42d;
  --gold-light: #ffe08a;
  --dark: #111;
  --dark-blue: #14212a;
  --muted: #666;
  --muted-light: #93a4ad;
  --pale: #f5f5f5;
  --line: #e3e3e3;
  --white: #fff;
  --font: 'Inter', Arial, sans-serif;
  --radius: 5px;
  --radius-lg: 7px;
  --shadow: 0 16px 48px #0002;
  --transition: 0.2s ease;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 100px; }

body {
  font-family: var(--font);
  color: var(--dark);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; height: auto; }
a { text-decoration: none; color: var(--red); transition: color var(--transition); }
a:hover { color: var(--red-dark); }

h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 16px; font-weight: 800; }
h1 { font-size: clamp(42px, 6vw, 74px); letter-spacing: -2px; }
h2 { font-size: clamp(31px, 4vw, 48px); letter-spacing: -1px; }
h3 { font-size: 21px; }
p { margin: 0 0 18px; }
ul, ol { padding-left: 20px; margin-bottom: 18px; }
li { margin-bottom: 8px; }

/* ---------- Utility ---------- */
.wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.wrap--narrow { width: min(900px, calc(100% - 40px)); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.tag {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 18px; font-size: 12px; font-weight: 900;
  letter-spacing: 1.8px; text-transform: uppercase;
  color: var(--red);
}
.tag::before { content: ''; width: 28px; height: 2px; background: var(--gold); }
.tag--light { color: var(--gold); }
.tag--light::before { background: var(--gold); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 22px; border-radius: var(--radius);
  background: var(--red); color: var(--white) !important;
  font-weight: 800; font-size: 15px;
  transition: background var(--transition), transform var(--transition);
  border: none; cursor: pointer; line-height: 1.2;
}
.btn:hover, .btn:focus-visible { background: var(--red-dark); transform: translateY(-1px); color: var(--white) !important; }
.btn--outline { background: transparent; border: 1px solid var(--white); }
.btn--outline:hover { background: rgba(255,255,255,0.1); }
.btn--dark { background: var(--dark); }
.btn--dark:hover { background: #333; }
.btn--gold { background: var(--gold); color: var(--dark) !important; }
.btn--gold:hover { background: #e0ad1c; }

/* ---------- Header / Nav ---------- */
.top {
  position: sticky; top: 0; z-index: 100;
  background: var(--white); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.nav { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.logo { width: 230px; max-height: 62px; object-fit: contain; object-position: left center; }
.nav__links { display: flex; align-items: center; gap: 23px; }
.nav__links a { color: #222; font-size: 14px; font-weight: 750; }
.nav__links a:hover { color: var(--red); }
.nav__links a.active { color: var(--red); }
.nav__cta { display: inline-flex !important; align-items: center; justify-content: center;
  padding: 12px 20px !important; border-radius: var(--radius);
  background: var(--red) !important; color: var(--white) !important; font-weight: 800 !important; }

.nav__toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--dark); transition: var(--transition); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 104px 0 96px; color: var(--white);
  background: linear-gradient(115deg, #111 0%, #5f0000 58%, #c00000 100%);
}
.hero::after {
  content: ''; position: absolute;
  width: 590px; height: 590px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  right: -130px; top: -210px;
  box-shadow: 0 0 0 85px rgba(255,255,255,0.03), 0 0 0 170px rgba(255,255,255,0.02);
}
.hero__inner { position: relative; z-index: 1; max-width: 870px; }
.hero h1 { color: var(--white); }
.hero p { max-width: 720px; font-size: 20px; color: #f7eaea; }
.hero .tag { color: var(--gold); }
.hero .tag::before { background: var(--gold); }
.hero__btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

/* Page hero (shorter, for inner pages) */
.hero--page {
  padding: 72px 0;
  background: linear-gradient(115deg, #111 0%, #3a0000 58%, #7a0000 100%);
}
.hero--page::after { width: 400px; height: 400px; right: -100px; top: -150px; }
.hero--page h1 { max-width: 700px; font-size: clamp(36px, 5vw, 56px); }

/* ---------- Sections ---------- */
section { padding: 90px 0; }
.section--pale { background: var(--pale); }
.section--dark { background: #151515; color: #e8e8e8; }
.section--dark h2, .section--dark h3 { color: var(--white); }

.section__head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 40px;
  margin-bottom: 38px;
}
.section__head p { max-width: 560px; color: var(--muted); margin: 0; }

/* ---------- Trust Stats ---------- */
.trust { padding: 0; }
.trust__grid {
  position: relative; margin-top: -32px; z-index: 2;
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--white); border-radius: 8px;
  box-shadow: var(--shadow); overflow: hidden;
}
.trust__item { padding: 27px 30px; border-right: 1px solid var(--line); }
.trust__item:last-child { border: 0; }
.trust__item b { display: block; color: var(--red); font-size: 18px; margin-bottom: 4px; }

/* ---------- Card Grids ---------- */
.grid--services {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px;
}
.grid--industries {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.grid--team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.grid--offices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.grid--values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid--highlight { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.grid--accreditation {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}

/* Service Cards */
.card-service {
  padding: 29px; background: var(--white);
  border: 1px solid var(--line); border-top: 4px solid var(--red);
  border-radius: 6px; min-height: 255px;
}
.card-service__num { display: block; margin-bottom: 30px; color: var(--red); font-weight: 800; }
.card-service h3 { font-size: 19px; }
.card-service p { color: #555; font-size: 14px; line-height: 1.55; }
.card-service ul { margin-top: 18px; font-size: 13px; color: #555; }

/* Industry Cards */
.card-industry {
  padding: 23px; background: var(--white);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-weight: 800;
}
.card-industry__num { display: block; margin-bottom: 7px; color: var(--red); font-size: 12px; font-weight: 900; }
.card-industry small { display: block; margin-top: 7px; color: var(--muted); font-size: 14px; font-weight: 500; line-height: 1.5; }

/* Team Cards */
.card-person {
  overflow: hidden; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.card-person img { width: 100%; height: 310px; object-fit: cover; object-position: top; }
.card-person__body { padding: 23px; }
.card-person h3 { font-size: 19px; }
.card-person__role { color: var(--red); font-weight: 800; margin-bottom: 8px; }
.card-person__details { font-size: 14px; color: var(--muted); }
.card-person__details summary { cursor: pointer; color: #222; font-weight: 800; margin-bottom: 10px; }
.card-person__email { display: inline-block; margin-top: 10px; color: var(--red); font-weight: 700; }

/* Accreditation Cards */
.card-accreditation {
  position: relative; min-height: 125px;
  padding: 25px 25px 23px 58px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-weight: 800; line-height: 1.38;
}
.card-accreditation::before {
  content: '✓'; position: absolute; left: 24px; top: 23px;
  display: grid; place-items: center;
  width: 23px; height: 23px; border-radius: 50%;
  background: var(--red); color: var(--white); font-size: 13px;
}
.card-accreditation small { display: block; margin-top: 7px; color: var(--muted); font-size: 13px; font-weight: 500; }

/* Value Cards */
.card-value {
  display: flex; align-items: center; min-height: 115px;
  padding: 24px; border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px; background: rgba(255,255,255,0.035);
  color: var(--white); font-size: 18px; font-weight: 750; line-height: 1.4;
}
.card-value--gold { border-top: 3px solid var(--gold); }
.card-value--red { border-top: 3px solid var(--red); }

/* Highlight Cards */
.card-highlight {
  min-height: 125px; padding: 20px 21px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 6px;
}
.card-highlight--red { border-top: 3px solid var(--red); }
.card-highlight--gold { border-top: 3px solid var(--gold); }
.card-highlight h3 { margin-bottom: 7px; color: var(--red); font-size: 17px; }
.card-highlight p { margin: 0; color: #4f4f4f; font-size: 14px; line-height: 1.45; }
.card-highlight--quote { display: flex; align-items: center; }
.card-highlight--quote p { color: #111; font-size: 15px; font-weight: 750; }

/* Office Cards */
.card-office {
  padding: 24px; border: 1px solid var(--line); border-radius: 6px;
}
.card-office p { color: var(--muted); margin-bottom: 10px; }
.card-office a { color: var(--red); font-weight: 750; }

/* About points */
.about-points {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
}
.about-point {
  padding: 18px; border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px; background: rgba(255,255,255,0.03);
}
.about-point strong { display: block; margin-bottom: 6px; color: var(--gold); font-size: 14px; }
.about-point p { margin: 0; font-size: 14px; color: #dedede; }

/* Methodology / Principle Cards */
.card-principle {
  position: relative; min-height: 225px; padding: 30px;
  border-radius: var(--radius-lg); color: var(--white);
}
.card-principle--dark { background: #181818; border-top: 4px solid var(--gold); }
.card-principle--red { background: var(--red); border-top: 4px solid var(--gold); }
.card-principle h3 { color: var(--white); font-size: 24px; }
.card-principle ul { margin: 18px 0 0; }
.card-principle li { margin-bottom: 9px; }

/* ---------- Contact Form ---------- */
.contact-layout { display: grid; grid-template-columns: 0.65fr 1.35fr; gap: 48px; align-items: start; }
.form-wrap { padding: 25px; background: var(--pale); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.enquiry-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.enquiry-form label { display: block; color: #222; font-size: 13px; font-weight: 800; }
.enquiry-form .full { grid-column: 1 / -1; }
.enquiry-form input,
.enquiry-form select,
.enquiry-form textarea {
  width: 100%; margin-top: 6px; padding: 12px 13px;
  border: 1px solid #d5d5d5; border-radius: var(--radius);
  background: var(--white); font: inherit; font-size: 14px;
}
.enquiry-form textarea { min-height: 125px; resize: vertical; }
.enquiry-form button { grid-column: 1 / -1; justify-self: start; }

.form-status { display: none; margin-top: 14px; padding: 10px 14px; border-radius: var(--radius); font-size: 14px; font-weight: 700; }
.form-status--success { background: #e8f5e9; color: #2e7d32; }
.form-status--error { background: #ffebee; color: #c62828; }

/* ---------- CTA Banner ---------- */
.cta { padding: 65px 0; background: var(--red); color: var(--white); }
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 35px; }
.cta h2 { color: var(--white); max-width: 760px; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { padding: 70px 0 0; background: var(--dark-blue); color: #dbe3e7; }
.footer__grid { display: grid; grid-template-columns: 1.25fr 1.7fr 0.8fr 1fr; gap: 55px; }
.footer__logo { width: 260px; max-height: 76px; padding: 10px 13px; background: var(--white); object-fit: contain; object-position: left center; }
.footer__brand p { margin-top: 21px; color: #c5d0d5; font-size: 14px; line-height: 1.75; }
.footer__title { margin: 14px 0 27px; color: var(--white); font-size: 13px; font-weight: 900; letter-spacing: 1.3px; text-transform: uppercase; }
.footer__services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px 28px; }
.site-footer a { color: #dbe3e7; font-size: 14px; }
.site-footer a:hover { color: var(--gold); }
.footer__links { display: grid; gap: 15px; }
.footer__contact p { margin: 0 0 12px; color: #c5d0d5; font-size: 14px; }
.footer__bottom { display: flex; justify-content: space-between; gap: 25px; margin-top: 55px; padding: 22px 0; border-top: 1px solid rgba(255,255,255,0.12); color: var(--muted-light); font-size: 12px; }
.footer__legal { display: flex; gap: 16px; }
.footer__legal a { color: var(--muted-light); font-size: 12px; }

/* ---------- Cookie Consent ---------- */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: var(--dark-blue); color: #dbe3e7;
  padding: 18px 0; transform: translateY(100%);
  transition: transform 0.35s ease;
}
.cookie-banner--visible { transform: translateY(0); }
.cookie-banner__inner { display: flex; align-items: center; gap: 24px; }
.cookie-banner p { margin: 0; font-size: 14px; line-height: 1.55; max-width: 700px; }
.cookie-banner p a { color: var(--gold); text-decoration: underline; }
.cookie-banner__btns { display: flex; gap: 10px; flex-shrink: 0; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { padding: 16px 0; font-size: 13px; color: var(--muted); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--red); }
.breadcrumbs span { color: var(--dark); font-weight: 700; }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card-blog {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: box-shadow var(--transition);
}
.card-blog:hover { box-shadow: var(--shadow); }
.card-blog img { width: 100%; height: 200px; object-fit: cover; }
.card-blog__body { padding: 22px; }
.card-blog__date { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.card-blog h3 { font-size: 18px; margin-bottom: 8px; }
.card-blog h3 a { color: var(--dark); }
.card-blog h3 a:hover { color: var(--red); }
.card-blog p { font-size: 14px; color: var(--muted); margin: 0; }
.card-blog__tags { margin-top: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.card-blog__tag { font-size: 11px; padding: 3px 8px; background: var(--pale); border-radius: 3px; color: var(--muted); }

.blog-list { display: flex; flex-direction: column; gap: 28px; }

/* Blog post page */
.post-header { text-align: center; padding: 60px 0 40px; }
.post-header .tag { justify-content: center; }
.post-meta { color: var(--muted); font-size: 14px; margin: 12px 0 0; }
.post-meta span { margin: 0 8px; }
.post-content { max-width: 780px; margin: 0 auto; padding: 0 20px 60px; }
.post-content h2 { margin-top: 40px; }
.post-content h3 { margin-top: 30px; }
.post-content p { font-size: 16px; line-height: 1.8; color: #333; }
.post-content ul { margin: 18px 0 30px; }
.post-content li { margin-bottom: 10px; }
.post-content blockquote {
  margin: 28px 0; padding: 20px 28px;
  border-left: 4px solid var(--red); background: var(--pale);
  font-style: italic; color: var(--muted);
}

/* ---------- service detail page ---------- */
.service-detail { max-width: 880px; margin: 0 auto; }
.service-detail h2 { margin-top: 32px; }
.service-detail h3 { margin-top: 24px; color: var(--red); }
.service-detail__intro { font-size: 18px; color: var(--muted); line-height: 1.7; margin-bottom: 32px; }
.service-detail ul { margin: 16px 0 24px; }
.service-detail li { margin-bottom: 10px; }
.service-detail__cta { margin-top: 40px; padding: 36px; background: var(--pale); border-radius: var(--radius-lg); text-align: center; }

/* ---------- Privacy / Terms ---------- */
.legal-content { max-width: 780px; margin: 0 auto; }
.legal-content h2 { margin-top: 36px; font-size: 26px; }
.legal-content h3 { margin-top: 24px; }
.legal-content p { line-height: 1.8; }
.legal-content ul { margin: 14px 0 24px; }

/* ---------- 404 ---------- */
.error-page { text-align: center; padding: 120px 0; }
.error-page h1 { font-size: clamp(72px, 12vw, 160px); color: var(--red); margin-bottom: 8px; }
.error-page h2 { margin-bottom: 16px; }
.error-page p { color: var(--muted); max-width: 500px; margin: 0 auto 28px; }

/* ---------- Skip Link ---------- */
.skip-link { position: absolute; top: -100%; left: 16px; z-index: 999; padding: 12px 18px; background: var(--red); color: var(--white); font-weight: 800; border-radius: 0 0 var(--radius) var(--radius); }
.skip-link:focus { top: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav__links a:not(.nav__cta) { display: none; }
  .grid--services { grid-template-columns: repeat(2, 1fr); }
  .grid--team { grid-template-columns: repeat(2, 1fr); }
  .card-person img { height: 360px; }
  .contact-layout { grid-template-columns: 1fr; }
  .section__head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .cta__inner { flex-direction: column; text-align: center; }
}

@media (max-width: 650px) {
  .logo { width: 175px; }
  .hero { padding: 72px 0 76px; }
  .hero__btns { flex-direction: column; }
  .hero__btns .btn { width: 100%; text-align: center; }
  .trust__grid, .grid--services, .grid--industries,
  .grid--values, .grid--team, .grid--offices,
  .grid--highlight, .grid--accreditation { grid-template-columns: 1fr; }
  .trust__item { border-right: 0; border-bottom: 1px solid var(--line); }
  section { padding: 65px 0; }
  .about-points { grid-template-columns: 1fr; }
  .contact-layout { gap: 28px; }
  .enquiry-form { grid-template-columns: 1fr; }
  .enquiry-form .full, .enquiry-form button { grid-column: auto; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__services { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; }
  .footer__legal { flex-direction: column; gap: 8px; }
  .site-footer { padding-top: 50px; }
  .cookie-banner__inner { flex-direction: column; gap: 12px; }
  .cookie-banner__inner p { max-width: 100%; }
  .blog-grid { grid-template-columns: 1fr; }
}
