/* =====================================================================
   MOHAMED HAFEEZ — SEO CONSULTANT LANDING PAGE
   Stylesheet organized by section. Written mobile-first: base rules
   target small screens, @media (min-width: …) blocks layer on
   enhancements for tablet (768px) and desktop (1024px+).
   ===================================================================== */


/* ---------------------------------------------------------------------
   1. RESET
--------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg { display: block; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}


/* ---------------------------------------------------------------------
   2. DESIGN TOKENS
   Brand palette is fixed by the brief. A few neutral support tokens
   (border/shadow) are added on top for consistent card styling.
--------------------------------------------------------------------- */
:root {
  /* Brand colors */
  --navy: #0B1120;
  --navy-soft: #111827;
  --gold: #F5B301;
  --gold-light: #FBBF24;
  --green: #25D366;
  --bg: #F9FAFB;
  --text: #1F2937;
  --muted: #6B7280;
  --white: #FFFFFF;

  /* Support tokens derived from the brand palette (borders / shadows) */
  --border: rgba(11, 17, 32, 0.08);
  --shadow-sm: 0 2px 8px rgba(11, 17, 32, 0.06);
  --shadow-md: 0 12px 32px rgba(11, 17, 32, 0.10);
  --shadow-lift: 0 20px 40px rgba(11, 17, 32, 0.14);

  /* Type */
  --font-display: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  /* Layout */
  --container-w: 1200px;
  --radius: 16px;
  --radius-sm: 10px;
  --nav-height: 76px;
  --space-section-mobile: 64px;
  --space-section-desktop: 112px;
}

html { scroll-padding-top: var(--nav-height); }


/* ---------------------------------------------------------------------
   3. BASE TYPOGRAPHY
--------------------------------------------------------------------- */
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

.text-gold { color: var(--gold); }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.section-heading {
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.section-heading--center { text-align: center; }

.section-heading--onDark { color: var(--white); }

.section-intro {
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 40px;
  font-size: 1.02rem;
}

@media (min-width: 768px) {
  body { font-size: 17px; }
  .section-heading { font-size: 2.25rem; }
}

/* Visible keyboard focus everywhere */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}


/* ---------------------------------------------------------------------
   4. LAYOUT UTILITIES
--------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: 20px;
}

@media (min-width: 768px) {
  .container { padding-inline: 32px; }
}

/* Shared vertical rhythm for all major sections */
.hero, .clients, .services, .portfolio, .reporting, .blog-preview,
.blog-listing, .contact, .page-header {
  padding-block: var(--space-section-mobile);
}

@media (min-width: 1024px) {
  .hero, .clients, .services, .portfolio, .reporting, .blog-preview,
  .blog-listing, .contact, .page-header {
    padding-block: var(--space-section-desktop);
  }
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}


/* ---------------------------------------------------------------------
   5. BUTTONS
--------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.btn svg { width: 18px; height: 18px; fill: currentColor; }

.btn:hover { transform: translateY(-2px); }

/* Gold solid — navy text keeps contrast at ~10:1 against gold */
.btn--gold {
  background: var(--gold);
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}
.btn--gold:hover { background: var(--gold-light); }

.btn--sm { padding: 10px 20px; font-size: 0.88rem; }

/* Gold outline — for use on both light and dark section backgrounds */
.btn--gold-outline {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}
.btn--gold-outline:hover { background: var(--gold); color: var(--navy); }

/* Green (WhatsApp) — navy text/icon keeps contrast at ~9.5:1 against the brand green */
.btn--green {
  background: var(--green);
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}
.btn--green:hover { background: #1fbd5a; }


/* ---------------------------------------------------------------------
   6. NAVBAR
--------------------------------------------------------------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  /* Always solid and dark — never transparent — so the white logo, nav
     links, phone number, and hover/active states stay readable in every
     scroll state, over both the navy hero and the lighter sections below. */
  background: var(--navy);
  transition: box-shadow 0.3s ease;
}

.navbar.is-scrolled {
  /* Same dark family as --navy, just a touch lighter for depth + a shadow
     once content is scrolling underneath — background stays dark, never white. */
  background: var(--navy-soft);
  box-shadow: 0 4px 24px rgba(11, 17, 32, 0.18);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--white);
  flex-shrink: 0;
}

.navbar__logo-mark { width: 34px; height: 34px; }

/* Hamburger */
.navbar__toggle {
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  z-index: 1100;
}

.navbar__toggle span {
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.navbar__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.navbar__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu panel */
.navbar__menu {
  position: fixed;
  inset: var(--nav-height) 0 0 0;
  background: var(--navy-soft);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.navbar__menu.is-open { transform: translateX(0); }

.navbar__links {
  display: flex;
  flex-direction: column;
  gap: 22px;
  font-weight: 500;
  font-size: 1.1rem;
}

.navbar__links a { color: var(--white); transition: color 0.2s ease; }
.navbar__links a:hover,
.navbar__links a.is-active,
.navbar__links a.is-current { color: var(--gold); }

.navbar__actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.navbar__phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-weight: 500;
  font-size: 0.95rem;
}
.navbar__phone svg { width: 16px; height: 16px; fill: var(--gold); }
.navbar__phone:hover { color: var(--gold); }

@media (min-width: 1024px) {
  .navbar__toggle { display: none; }

  .navbar__menu {
    position: static;
    inset: auto;
    background: transparent;
    padding: 0;
    flex-direction: row;
    align-items: center;
    gap: 40px;
    transform: none;
    overflow: visible;
    flex: 1;
    justify-content: flex-end;
  }

  .navbar__links {
    flex-direction: row;
    gap: 32px;
    font-size: 0.95rem;
  }

  .navbar__actions { flex-direction: row; align-items: center; gap: 24px; }
}


/* ---------------------------------------------------------------------
   7. HERO
--------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
  padding-top: 48px;
}

.hero__bg-line {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.hero__content { max-width: 640px; }

.hero__title {
  font-size: 2.1rem;
  margin-bottom: 20px;
  color: var(--white);
}

.hero__text {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
  max-width: 520px;
  margin-bottom: 32px;
}

.hero__ctas {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero__media { display: flex; justify-content: center; }

.hero__portrait-wrap {
  position: relative;
  width: min(320px, 80vw);
}

.hero__portrait {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 28px;
  border: 3px solid rgba(245, 179, 1, 0.35);
  box-shadow: var(--shadow-lift);
}

.hero__badge {
  position: absolute;
  bottom: -22px;
  left: -18px;
  right: 18px;
  background: var(--white);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-md);
}

.hero__badge-icon { width: 26px; height: 26px; fill: var(--gold); flex-shrink: 0; }
.hero__badge strong { display: block; font-size: 0.92rem; }
.hero__badge span { color: var(--muted); font-size: 0.8rem; }

@media (min-width: 640px) {
  .hero__ctas { flex-direction: row; }
}

@media (min-width: 1024px) {
  .hero { padding-top: 0; }

  .hero__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    min-height: 560px;
  }

  .hero__title { font-size: 3.1rem; }
  .hero__text { font-size: 1.1rem; }

  .hero__media { flex: 0 0 auto; }
  .hero__portrait-wrap { width: 360px; }
  .hero__badge { left: -32px; right: 32px; padding: 18px 20px; }
}


/* ---------------------------------------------------------------------
   8. CLIENT LOGOS STRIP
--------------------------------------------------------------------- */
.clients__carousel {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.clients__track {
  display: flex;
  align-items: center;
  gap: 48px;
  width: max-content;
  animation: clients-scroll 28s linear infinite;
}

.clients__carousel:hover .clients__track {
  animation-play-state: paused;
}

.clients__track img {
  flex: 0 0 auto;
  width: 140px;
  height: 56px;
  object-fit: contain;
  filter: grayscale(0%);
  opacity: 1;
  transition: transform 0.25s ease;
}

.clients__track img:hover {
  transform: scale(1.06);
}

.clients__track img[src*="FlairsTech"] {
  width: 210px;
  height: 84px;
}

@keyframes clients-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 640px) {
  .clients__track { gap: 32px; }
  .clients__track img { width: 110px; height: 44px; }
}


/* ---------------------------------------------------------------------
   9. SERVICES
--------------------------------------------------------------------- */
.services { background: var(--white); }

.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.service-card { padding: 32px 28px; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.service-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(245, 179, 1, 0.12);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.service-card__icon svg { width: 26px; height: 26px; color: var(--navy); }

.service-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: 0.96rem; }

@media (min-width: 768px) {
  .services__grid { grid-template-columns: repeat(3, 1fr); }
}


/* ---------------------------------------------------------------------
   10. CASE STUDIES / PORTFOLIO
   Each category (B2B / E-commerce / Local / Global SEO) is a
   horizontally-scrolling carousel: swipeable natively on touch devices,
   plus explicit prev/next arrow buttons driven by main.js.
--------------------------------------------------------------------- */
.portfolio__group { margin-top: 48px; }
.portfolio__group:first-of-type { margin-top: 0; }

.portfolio__group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.portfolio__group-title { font-size: 1.2rem; }

.carousel { position: relative; }

.carousel__controls { display: flex; gap: 8px; flex-shrink: 0; }

.carousel__arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}
.carousel__arrow svg { width: 18px; height: 18px; }
.carousel__arrow:hover:not(:disabled) { background: var(--gold); border-color: var(--gold); }
.carousel__arrow:disabled { opacity: 0.35; }

/* Native horizontal scroll = touch/swipe support for free; arrows call
   scrollBy() in main.js for click-through on desktop. */
.carousel__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }

.carousel__slide {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: min(78vw, 300px);
}

.result-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.result-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.result-card img { width: 100%; height: 320px; object-fit: contain; background: var(--white); display: block; }

.result-card__keyword {
  font-weight: 600;
  font-size: 0.95rem;
  padding: 18px 20px 0;
}

.result-card__caption {
  color: var(--muted);
  font-size: 0.9rem;
  padding: 8px 20px 20px;
}

/* Why choose me — now a standalone panel below all four carousels */
.why-choose { margin-top: 48px; padding: 32px 28px; background: var(--navy-soft); border: none; }
.why-choose h4 { color: var(--gold); font-size: 1.05rem; margin-bottom: 20px; }
.why-choose ul {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.why-choose li {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.92rem;
  padding-left: 26px;
  position: relative;
}
.why-choose li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 16px;
  height: 16px;
  background: var(--gold);
  clip-path: polygon(41% 68%, 20% 47%, 12% 55%, 41% 84%, 88% 37%, 80% 29%);
}

@media (min-width: 640px) {
  .carousel__slide { width: 320px; }
}

@media (min-width: 768px) {
  .why-choose ul { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .carousel__slide { width: 340px; }
  .why-choose ul { grid-template-columns: repeat(4, 1fr); }
}


/* ---------------------------------------------------------------------
   11. BLOG PREVIEW (index.html) + BLOG LISTING (blog.html)
--------------------------------------------------------------------- */
.blog-preview { background: var(--white); }

.blog-preview__grid,
.blog-listing .blog-preview__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.blog-card { padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.blog-card__meta { display: flex; align-items: center; gap: 12px; }

.tag {
  background: rgba(245, 179, 1, 0.14);
  color: #6b4a08;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

.read-time { color: var(--muted); font-size: 0.8rem; }

.blog-card h3 { font-size: 1.08rem; line-height: 1.35; }
.blog-card h3 a:hover { color: var(--gold-light); }
.blog-card p { color: var(--muted); font-size: 0.92rem; flex-grow: 1; }

.blog-card__author { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; font-weight: 500; }
.blog-card__author .avatar { border-radius: 50%; width: 32px; height: 32px; }

.blog-preview__more { text-align: center; margin-top: 40px; }

.link-arrow {
  font-weight: 600;
  color: var(--navy);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 3px;
  transition: color 0.2s ease;
}
.link-arrow:hover { color: #92660a; }

@media (min-width: 768px) {
  .blog-preview__grid,
  .blog-listing .blog-preview__grid { grid-template-columns: repeat(3, 1fr); }
}


/* ---------------------------------------------------------------------
   12. BLOG PAGE HEADER (blog.html only)
--------------------------------------------------------------------- */
.page-header {
  background: var(--navy);
  color: var(--white);
  text-align: center;
}
.page-header__title { font-size: 2.2rem; margin-bottom: 14px; }
.page-header__text { color: rgba(255, 255, 255, 0.75); max-width: 560px; margin: 0 auto; }

@media (min-width: 768px) {
  .page-header__title { font-size: 2.8rem; }
}


/* ---------------------------------------------------------------------
   13. CONTACT CTA
--------------------------------------------------------------------- */
.contact { background: var(--navy); color: var(--white); }
.contact__inner { text-align: center; max-width: 600px; }

.contact__text {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

.contact__ctas {
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
  margin-bottom: 24px;
}

.contact__note { color: rgba(255, 255, 255, 0.55); font-size: 0.88rem; }

@media (min-width: 640px) {
  .contact__ctas { flex-direction: row; }
}


/* ---------------------------------------------------------------------
   14. FOOTER
--------------------------------------------------------------------- */
.footer { background: var(--navy-soft); color: rgba(255, 255, 255, 0.7); padding-block: 36px; }

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--white);
}

.footer__copy { font-size: 0.85rem; }

.footer__socials { display: flex; gap: 18px; }
.footer__socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.footer__socials svg { width: 16px; height: 16px; fill: var(--white); }
.footer__socials a:hover { background: var(--gold); border-color: var(--gold); }
.footer__socials a:hover svg { fill: var(--navy); }

@media (min-width: 768px) {
  .footer__inner { flex-direction: row; justify-content: space-between; text-align: left; }
}


/* ---------------------------------------------------------------------
   15. FLOATING ACTION BUTTON
--------------------------------------------------------------------- */
.fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lift);
  z-index: 900;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.2s ease;
}

.fab.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.fab:hover { background: #1fbd5a; }
.fab svg { width: 28px; height: 28px; fill: var(--navy); }

@media (min-width: 768px) {
  .fab { right: 32px; bottom: 32px; }
}


/* ---------------------------------------------------------------------
   15. HOMEPAGE 2026 SECTIONS
   Proof / metrics, pathway cards, flagship case cards, process timeline,
   AI Search (GEO), Local SEO, About, and the final CTA paths.
   Reuses the existing tokens: --navy, --gold, --radius, --shadow-*.
--------------------------------------------------------------------- */

/* Shared vertical rhythm for the new sections */
.metrics, .process, .localseo, .about-me {
  padding-block: var(--space-section-mobile);
}
@media (min-width: 1024px) {
  .metrics, .process, .localseo, .about-me {
    padding-block: var(--space-section-desktop);
  }
}

/* --- 15.1 Hero tweaks ---------------------------------------------- */
.hero__badge-icon { color: var(--gold); fill: none; }

.hero__contact-line {
  margin-top: 22px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}
.hero__contact-line a {
  color: var(--gold-light);
  font-weight: 600;
  border-bottom: 1px solid rgba(245, 179, 1, 0.4);
}
.hero__contact-line a:hover { color: var(--white); }
.hero__contact-line span { margin: 0 6px; }

/* --- 15.2 Proof / metrics ------------------------------------------ */
.metrics { background: var(--white); }
.metrics + .services { border-top: 1px solid var(--border); }

.metrics__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px 20px;
  text-align: center;
}

.metric__rule {
  display: block;
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--gold);
  margin: 0 auto 16px;
}

.metric__value {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.3rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.metric__label {
  display: block;
  margin-top: 10px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (min-width: 768px) {
  .metrics__grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .metric { padding-inline: 12px; }
  .metric + .metric { border-left: 1px solid var(--border); }
  .metric__value { font-size: 3rem; }
}

/* --- 15.3 Pathway cards (How can I help?) -------------------------- */
.service-card { display: flex; flex-direction: column; }

.service-card__for {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(245, 179, 1, 0.16);
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.service-card p { margin-bottom: 22px; }
.service-card .link-arrow,
.case-card .link-arrow { align-self: flex-start; margin-top: auto; }

/* --- 15.4 Flagship case study cards ------------------------------- */
.cases__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 640px) { .cases__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cases__grid { grid-template-columns: repeat(3, 1fr); } }

.case-card { display: flex; flex-direction: column; overflow: hidden; }
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.case-card__media {
  display: block;
  background: #EDF0F5;
  border-bottom: 1px solid var(--border);
}
.case-card__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: left top;
}

.case-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 26px 24px 28px;
}

.case-card__category {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.case-card__body h3 { font-size: 1.3rem; margin-bottom: 18px; }

.case-card__result {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--navy);
}
.case-card__result::before {
  content: "";
  display: block;
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--gold);
  margin-bottom: 14px;
}
.case-card__result span {
  display: block;
  margin-top: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}

.case-card__metric { color: var(--muted); font-size: 0.92rem; margin-top: 8px; }

.case-card__tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 22px;
  padding: 0;
}
.case-card__tags li {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--navy);
  background: rgba(11, 17, 32, 0.05);
  border-radius: 999px;
  padding: 5px 11px;
}

.cases__more { margin-top: 36px; text-align: center; }

/* --- 15.5 Evidence archive (collapsed) ---------------------------- */
.case-archive {
  margin-top: 44px;
  border-top: 1px solid var(--border);
}
.case-archive > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 2px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
}
.case-archive > summary::-webkit-details-marker { display: none; }
.case-archive > summary::after {
  content: "+";
  margin-left: auto;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--gold);
}
.case-archive[open] > summary::after { content: "\2013"; }
.case-archive__inner { padding-top: 12px; padding-bottom: 8px; }

/* --- 15.6 Process timeline ---------------------------------------- */
.process { background: var(--white); }

.process__list { list-style: none; margin: 0; padding: 0; }

.process__step { position: relative; padding: 0 0 34px 62px; }
.process__step:last-child { padding-bottom: 0; }

.process__step::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 46px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(var(--gold), rgba(245, 179, 1, 0.15));
}
.process__step:last-child::before { display: none; }

.process__num {
  position: absolute;
  left: 0;
  top: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: var(--gold);
  border: 2px solid rgba(245, 179, 1, 0.35);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
}

.process__step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.process__step p { color: var(--muted); font-size: 0.95rem; }

@media (min-width: 1024px) {
  .process__list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
  }
  .process__step { padding: 66px 10px 0; text-align: center; }
  .process__step::before {
    left: 50%;
    top: 20px;
    bottom: auto;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), rgba(245, 179, 1, 0.2));
  }
  .process__num { left: 50%; transform: translateX(-50%); }
}

/* --- 15.7 AI Search / GEO ----------------------------------------- */
.geo {
  background: var(--navy-soft);
  color: var(--white);
  padding-block: 56px;
}
@media (min-width: 1024px) { .geo { padding-block: 84px; } }

.geo__inner { display: grid; gap: 32px; align-items: center; }
@media (min-width: 1024px) {
  .geo__inner { grid-template-columns: 1fr 1fr; gap: 56px; }
}

.geo h2 { color: var(--white); font-size: 1.6rem; margin-bottom: 14px; }
@media (min-width: 768px) { .geo h2 { font-size: 2rem; } }
.geo__content > p { color: rgba(255, 255, 255, 0.78); font-size: 1.02rem; }

.geo__flow {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 24px 0 28px;
  padding: 0;
}
.geo__flow li { display: flex; align-items: center; gap: 10px; }
.geo__flow li + li::before { content: "\2192"; color: var(--gold); font-size: 1rem; }
.geo__flow span {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(245, 179, 1, 0.35);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.8rem;
  font-weight: 600;
}

.geo__proof { display: grid; gap: 16px; }
@media (min-width: 640px) { .geo__proof { grid-template-columns: 1fr 1fr; } }
.geo__proof figure {
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--white);
}
.geo__proof img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: left top;
}
.geo__proof figcaption {
  padding: 10px 12px;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.04);
}

/* --- 15.8 Local SEO ------------------------------------- */
.localseo { background: var(--white); }

.localseo__inner { display: grid; gap: 36px; align-items: center; }
@media (min-width: 1024px) {
  .localseo__inner { grid-template-columns: 1.05fr 0.95fr; gap: 56px; }
}

.localseo__brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(11, 17, 32, 0.05);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.localseo__brand i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

.localseo__text { color: var(--muted); font-size: 1.02rem; }

.localseo__list { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 11px; }
.localseo__list li { position: relative; padding-left: 28px; font-size: 0.97rem; }
.localseo__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 3px solid var(--gold);
}

.localseo__media { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.localseo__media figure {
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  background: var(--white);
}
.localseo__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: top center;
}
.localseo__media figure:last-child img { object-position: top left; }
.localseo__media figcaption {
  padding: 10px 12px;
  font-size: 0.74rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

/* --- 15.9 About Mohamed ------------------------------------------- */
.about-me { background: var(--bg); }

.about-me__inner { display: grid; gap: 36px; align-items: start; }
@media (min-width: 1024px) {
  .about-me__inner { grid-template-columns: 320px 1fr; gap: 56px; }
}

.about-me__portrait {
  width: 100%;
  height: auto;
  max-width: 320px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 24px;
  border: 3px solid rgba(245, 179, 1, 0.35);
  box-shadow: var(--shadow-md);
}

.about-me__bio { font-size: 1.02rem; margin-bottom: 26px; }

.about-me__timeline { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 18px; }
.about-me__timeline li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
  font-size: 0.95rem;
}
.about-me__timeline li strong {
  display: block;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 0.98rem;
  margin-bottom: 3px;
}
.about-me__timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--gold);
}
.about-me__timeline li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: calc(0.45em + 15px);
  bottom: -18px;
  width: 1px;
  background: var(--border);
}
.about-me__timeline li:last-child::after { display: none; }

.about-me__ctas { display: flex; flex-wrap: wrap; gap: 14px; }

/* --- 15.10 Final CTA pathways ------------------------------------- */
.contact__wide { text-align: center; }
.contact__intro { max-width: 620px; margin-inline: auto; }

.contact__paths {
  display: grid;
  gap: 18px;
  margin: 36px 0 32px;
  text-align: left;
}
@media (min-width: 768px) { .contact__paths { grid-template-columns: repeat(3, 1fr); } }

.path-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 26px 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}
.path-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.1);
}
.path-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(245, 179, 1, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.path-card__icon svg { width: 22px; height: 22px; color: var(--gold); }
.path-card strong { font-family: var(--font-display); font-size: 1.05rem; }
.path-card > span:not(.path-card__icon) { color: rgba(255, 255, 255, 0.72); font-size: 0.9rem; }
.path-card em { font-style: normal; margin-top: 6px; color: var(--gold); font-size: 0.84rem; font-weight: 600; }

/* --- 15.11 Footer nav -------------------------------------------- */
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; }
.footer__links a { color: rgba(255, 255, 255, 0.7); font-size: 0.88rem; }
.footer__links a:hover { color: var(--gold); }

/* --- 15.12 Responsive safeguards --------------------------------- */
html, body { overflow-x: hidden; }
img, svg { max-width: 100%; }

@media (max-width: 420px) {
  .hero__title { font-size: 1.85rem; }
  .metric__value { font-size: 2rem; }
  .case-card__result { font-size: 1.7rem; }
  .btn { width: 100%; }
  .about-me__ctas .btn, .hero__ctas .btn { width: 100%; }
}


/* ---------------------------------------------------------------------
   16. SEO TOOLKIT & WHAT I BRING
   Tool-stack tiles + capability cards. Built from the existing
   spacing, radius, border, shadow and type tokens.
--------------------------------------------------------------------- */

.toolkit, .brings {
  padding-block: var(--space-section-mobile);
  background: var(--white);
}
@media (min-width: 1024px) {
  .toolkit, .brings {
    padding-block: var(--space-section-desktop);
  }
}
.brings, .brings + .services { border-top: 1px solid var(--border); }

/* --- 16.1 Tool tiles ------------------------------------------------ */
.toolkit__sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.toolkit__groups {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 600px) {
  .toolkit__groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
  }
}
@media (min-width: 1024px) {
  .toolkit__groups {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
  }
}

.toolkit__group-title {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.toolkit__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.tool {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.tool:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(245, 179, 1, 0.5);
}

.tool__mark {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(11, 17, 32, 0.05);
  color: var(--navy);
}
.tool__mark svg {
  display: block;
  width: 19px;
  height: 19px;
  fill: currentColor;
}
.tool__mark--initials {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
}
.tool__name {
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}

/* --- 16.2 What I Bring cards ---------------------------------------- */
.brings__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 600px) {
  .brings__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .brings__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
  }
}

.bring-card { padding: 30px 26px; }
.bring-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.bring-card__rule {
  display: block;
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--gold);
  margin-bottom: 16px;
}
.bring-card h3 {
  font-size: 1.05rem;
  margin: 0 0 10px;
}
.bring-card p {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}
