/* Readability and spacing refinements for the pre-launch review. */
:root {
  --review-content-width: 1180px;
  --review-section-space: clamp(48px, 5vw, 72px);
}

/* Minimal, direct social footer */
.cta {
  display: none !important;
}

.social-footer {
  background: #072440;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  padding: 24px 0;
}

.social-dock {
  align-items: center;
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  justify-content: center;
  max-width: 820px;
}

.social-link {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: #fff !important;
  display: flex;
  flex-direction: column;
  font-size: 15px;
  font-weight: 600;
  gap: 6px;
  justify-content: center;
  min-height: 74px;
  padding: 6px 10px;
  text-decoration: none !important;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.social-link:hover,
.social-link:focus-visible {
  background: transparent;
  color: #fff !important;
  transform: translateY(-3px);
}

.social-link:focus-visible {
  outline: 2px solid #d8aa52;
  outline-offset: 3px;
}

.social-icon {
  align-items: center;
  color: #fff;
  display: inline-flex;
  flex: 0 0 42px;
  font-size: 34px;
  font-weight: 800;
  height: 42px;
  justify-content: center;
}

.linkedin-icon {
  font-family: Arial, sans-serif;
  letter-spacing: -1px;
}

.whatsapp-mark {
  animation: whatsapp-watermark 2.8s ease-in-out infinite;
  color: #58cf83;
  opacity: 0.88;
}

.whatsapp-mark svg {
  fill: currentColor;
  height: 44px;
  width: 44px;
}

@keyframes whatsapp-watermark {
  0%, 100% { opacity: 0.58; transform: translateY(1px) scale(0.96); }
  50% { opacity: 0.92; transform: translateY(-2px) scale(1.04); }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-mark { animation: none; opacity: 0.82; }
  .social-link { transition: none; }
}

@media (max-width: 760px) {
  .social-footer { padding: 22px 0; }
  .social-dock { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .social-link { font-size: 14px; min-height: 70px; padding-inline: 10px; }
}

@media (max-width: 390px) {
  .social-dock { grid-template-columns: 1fr; }
}

body {
  font-size: 16px;
  line-height: 1.75;
}

.container {
  width: min(var(--review-content-width), calc(100% - 48px)) !important;
}

.page-hero {
  padding: clamp(48px, 5vw, 70px) 0 !important;
}

.page-hero h1 {
  font-size: clamp(32px, 3.5vw, 45px) !important;
  line-height: 1.25 !important;
}

.page-hero p,
.inner p,
.service-detail p,
.contact-card p,
.prose-card p {
  font-size: clamp(14px, 1.15vw, 16px) !important;
  line-height: 1.8 !important;
}

.inner {
  padding: var(--review-section-space) 0 !important;
}

.inner h2 {
  font-size: clamp(25px, 2.4vw, 34px) !important;
  line-height: 1.35 !important;
}

.prose-card {
  padding: clamp(24px, 3vw, 38px) !important;
  margin-top: clamp(24px, 3vw, 38px) !important;
}

.services-list,
.process-cards,
.contact-grid {
  gap: clamp(20px, 2.5vw, 32px) !important;
}

.service-detail {
  padding: clamp(20px, 2.5vw, 30px) !important;
}

.service-detail h3,
.process-card h3 {
  font-size: clamp(18px, 1.7vw, 23px) !important;
  line-height: 1.45 !important;
}

.btn,
button,
input,
textarea,
select {
  font-size: 16px !important;
}

/* Home page: release the compressed fixed heights and restore visual rhythm. */
.hero {
  height: auto !important;
  min-height: 400px;
}

.hero-grid {
  min-height: 400px;
}

.hero-copy {
  padding-block: clamp(48px, 6vw, 72px) !important;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif !important;
}

.hero h1 {
  font-size: clamp(34px, 3.8vw, 48px) !important;
  line-height: 1.2 !important;
}

.hero-copy p {
  font-size: clamp(15px, 1.25vw, 17px) !important;
  line-height: 1.8 !important;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif !important;
  font-weight: 400;
}

/* The former fourth section is intentionally removed from the homepage flow. */
.about-strip {
  display: none !important;
}

.about-strip + .method {
  margin-top: clamp(14px, 1.8vw, 24px) !important;
}

/* First section only: keep the portrait and brand mark distinct and balanced. */
.hero-visual {
  position: relative;
  background-image: url('/source-assets/hero-visual.png') !important;
  /* Keep the complete approved portrait/monogram composition visible. */
  background-size: 100% auto !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-color: #071f37;
}

.hero-visual::before {
  content: "عبدالرحمن بن حسين المدخلي" !important;
  position: absolute;
  inset-inline: 0;
  inset-block: auto 0;
  bottom: 0;
  z-index: 2;
  display: block;
  box-sizing: border-box;
  min-height: 72px;
  padding: 9px 22px 35px;
  border-top: 1px solid rgba(216, 170, 82, 0.42);
  background: linear-gradient(180deg, rgba(5, 28, 49, 0.88), #061f36);
  color: #fff;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  mask-image: none;
}

.hero-visual::after {
  content: "مستشار إداري واستراتيجي مرخص | مؤسس AM Advisory" !important;
  position: absolute;
  inset-inline: 0;
  bottom: 9px;
  z-index: 3;
  display: block;
  padding-inline: 22px;
  background: none;
  color: #d8aa52;
  direction: rtl;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  unicode-bidi: plaintext;
  pointer-events: none;
}

.hero h1,
.hero h1 em,
.hero .overline,
.hero .btn {
  font-family: "Segoe UI", Tahoma, Arial, sans-serif !important;
}

.hero h1 {
  font-weight: 750 !important;
  letter-spacing: 0 !important;
}

.hero h1 em {
  color: #d8aa52 !important;
  font-weight: 650 !important;
}

.hero .eyebrow {
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.5 !important;
}

.topbar .nav a {
  font-size: 15px !important;
  font-weight: 600;
}

.stats .stat span {
  font-size: 14px !important;
  line-height: 1.55 !important;
  margin-top: 5px !important;
}

.stats {
  min-height: 92px !important;
}

.stats-grid {
  column-gap: clamp(34px, 5vw, 78px) !important;
  padding-inline: clamp(18px, 4vw, 58px) !important;
}

.stats .stat {
  gap: 19px !important;
  padding-block: 18px !important;
}

.stats .stat svg {
  width: 31px !important;
  height: 31px !important;
}

.services-section,
.about-strip,
.method,
.cta {
  height: auto !important;
  padding-block: var(--review-section-space) !important;
}

.services-section + .package,
.package + .about-strip,
.about-strip + .method,
.method + .cta {
  margin-top: clamp(14px, 1.8vw, 24px);
}

.service-card {
  padding: clamp(22px, 2.5vw, 32px) !important;
}

.service-card h3,
.package h2,
.about-copy h2,
.method-title h2,
.cta-copy h2 {
  font-size: clamp(22px, 2.1vw, 30px) !important;
  line-height: 1.35 !important;
}

.service-card p,
.package p,
.about-copy p,
.method-title p,
.cta-copy p {
  font-size: clamp(14px, 1.1vw, 16px) !important;
  line-height: 1.75 !important;
}

/* Second section only: balanced consulting areas. */
.services-section {
  box-sizing: border-box !important;
  display: flow-root !important;
  height: auto !important;
  min-height: 500px;
  overflow: visible !important;
  padding-block: clamp(64px, 6vw, 86px) !important;
  position: relative;
  z-index: 2;
}

.services-section .section-head {
  align-items: flex-end !important;
  margin-bottom: clamp(34px, 3.2vw, 46px) !important;
}

.services-section .section-head .overline {
  color: #9b7437 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  margin-bottom: 5px !important;
}

.services-section .section-head h2 {
  font-size: clamp(34px, 3vw, 43px) !important;
  line-height: 1.3 !important;
  margin: 2px 0 7px !important;
}

.services-section .section-head p {
  font-size: clamp(16px, 1.25vw, 18px) !important;
  line-height: 1.7 !important;
}

.services-section .text-link {
  color: #87642f !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  padding-bottom: 5px;
}

.services-section .service-cards {
  gap: clamp(24px, 2.5vw, 34px) !important;
}

.services-section .service-card {
  height: auto !important;
  min-height: 245px;
  padding: 32px 34px 54px !important;
}

.services-section .service-card svg {
  height: 44px !important;
  margin-bottom: 16px !important;
  stroke: #d8aa52 !important;
  width: 44px !important;
}

.services-section .service-card h3 {
  font-size: clamp(25px, 2vw, 30px) !important;
  line-height: 1.4 !important;
  margin-bottom: 8px !important;
}

.services-section .service-card p {
  font-size: clamp(16px, 1.15vw, 18px) !important;
  line-height: 1.75 !important;
}

.services-section .service-card .go {
  bottom: 22px !important;
  color: #d8aa52 !important;
  font-size: 14px !important;
  right: 34px !important;
}

.package {
  height: auto !important;
  min-height: 330px;
}

.package-copy {
  padding: clamp(34px, 4.5vw, 56px) !important;
}

.package-features {
  margin: 17px 0 !important;
  gap: 10px;
}

.package-feature,
.credential-card p,
.credential-card a {
  font-size: 12px !important;
  line-height: 1.55 !important;
}

.credential-card h3 {
  font-size: 18px !important;
  line-height: 1.45 !important;
}

/* Third section only: scale the featured package to match the sections above. */
.services-section + .package {
  border-top: 1px solid rgba(216, 170, 82, .34);
  clear: both;
  grid-template-columns: 42% 58% !important;
  margin-top: 0 !important;
  min-height: 470px;
  position: relative;
  z-index: 0;
}

.package .package-image {
  min-height: 470px;
}

.package .package-copy {
  padding: clamp(48px, 5vw, 72px) clamp(38px, 5.5vw, 82px) !important;
}

.package .tag {
  font-size: 14px !important;
  padding: 7px 13px !important;
}

.package .package-copy h2 {
  font-size: clamp(32px, 3vw, 42px) !important;
  line-height: 1.32 !important;
  margin: 16px 0 10px !important;
}

.package .package-copy > p {
  font-size: clamp(16px, 1.25vw, 19px) !important;
  line-height: 1.8 !important;
  margin-bottom: 0 !important;
}

.package .package-features {
  gap: 14px !important;
  margin: 28px 0 32px !important;
}

.package .package-feature {
  align-items: center;
  display: flex;
  flex-direction: column;
  font-size: 15px !important;
  gap: 9px;
  line-height: 1.55 !important;
  padding-inline: 10px;
}

.package .package-feature svg {
  height: 32px !important;
  width: 32px !important;
}

.package .package-actions {
  gap: 16px !important;
}

.package .package-actions .btn {
  min-height: 46px;
  padding-inline: 20px !important;
}

/* Fourth section only: give the consultant profile the same scale and rhythm as section three. */
.package + .about-strip {
  box-sizing: border-box !important;
  margin-top: 0 !important;
  min-height: 470px;
  padding-block: clamp(58px, 5.5vw, 78px) !important;
  position: relative;
}

.about-strip .about-grid {
  align-items: center !important;
  gap: clamp(34px, 4vw, 62px) !important;
  grid-template-columns: minmax(0, 1.08fr) minmax(190px, .7fr) minmax(0, 1.36fr) !important;
  min-height: 330px;
}

.about-strip .credential-wrap {
  align-items: stretch;
  gap: 16px !important;
  grid-template-columns: minmax(0, 1.25fr) minmax(135px, .75fr) !important;
  height: auto !important;
  min-height: 250px;
}

.about-strip .credential-card {
  background: linear-gradient(145deg, #fffdf8, #f5efe3) !important;
  border: 1px solid rgba(177, 132, 58, .34);
  border-top: 4px solid #c99a49;
  box-shadow: 0 10px 24px rgba(8, 34, 55, .1) !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 26px 25px !important;
}

.about-strip .credential-card .small {
  font-size: 14px !important;
}

.about-strip .credential-card h3 {
  font-size: clamp(20px, 1.55vw, 24px) !important;
  line-height: 1.4 !important;
  margin: 8px 0 10px !important;
}

.about-strip .credential-card h3 br {
  display: none;
}

.about-strip .credential-card p,
.about-strip .credential-card a {
  font-size: 13px !important;
  line-height: 1.65 !important;
}

.about-strip .certificate,
.about-strip .certificate-link {
  height: 250px !important;
}

.about-strip .certificate {
  background: #fff;
  border: 1px solid rgba(10, 42, 69, .25) !important;
  box-shadow: 0 10px 24px rgba(8, 34, 55, .12) !important;
  object-fit: contain !important;
  padding: 12px;
}

.about-strip .facts {
  display: grid;
  gap: 23px;
  padding: 8px clamp(18px, 2vw, 30px) !important;
}

.about-strip .fact {
  gap: 13px !important;
  margin: 0 !important;
}

.about-strip .fact svg {
  height: 28px !important;
  width: 28px !important;
}

.about-strip .fact b {
  font-size: 17px !important;
  line-height: 1.5 !important;
}

.about-strip .fact span {
  font-size: 15px !important;
  line-height: 1.55 !important;
}

.about-strip .about-copy .overline {
  font-size: 14px !important;
  font-weight: 700 !important;
}

.about-strip .about-copy h2 {
  font-size: clamp(32px, 2.75vw, 39px) !important;
  line-height: 1.32 !important;
  margin: 14px 0 13px !important;
}

.about-strip .about-copy p {
  font-size: clamp(16px, 1.25vw, 19px) !important;
  line-height: 1.8 !important;
}

.about-strip .signature {
  display: none !important;
}

.about-strip .role {
  border-right: 3px solid #c99a49;
  color: #566b79 !important;
  font-size: 14px !important;
  font-weight: 600;
  line-height: 1.6 !important;
  margin-top: 18px;
  padding-right: 12px;
}

.about-grid,
.method-grid {
  height: auto !important;
  min-height: 220px;
}

.certificate-link {
  display: block;
  cursor: zoom-in;
}

.certificate-link img {
  display: block;
}

/* Method section: a contained, connected four-step process. */
.method {
  background: linear-gradient(120deg, #f5f1e8 0%, #fffaf0 52%, #eee5d5 100%) !important;
  box-sizing: border-box;
  color: #0b2b49;
  overflow: hidden;
  padding-block: clamp(64px, 6vw, 84px) !important;
}

.method .method-grid {
  align-items: center !important;
  gap: clamp(42px, 5vw, 72px) !important;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.65fr) !important;
  min-height: 250px;
}

.method .method-title .overline {
  color: #d8aa52 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  margin-bottom: 7px;
}

.method .method-title h2 {
  color: #0b2b49;
  font-size: clamp(34px, 3vw, 43px) !important;
  font-weight: 750;
  line-height: 1.3 !important;
  margin: 0 0 12px !important;
}

.method .method-title p {
  color: #566b79 !important;
  font-size: clamp(16px, 1.25vw, 18px) !important;
  line-height: 1.75 !important;
  margin: 0 !important;
  max-width: 440px;
}

.method .timeline {
  align-items: start;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  padding-top: 2px;
}

.method .timeline::before {
  background: linear-gradient(90deg, transparent, #c99a49 10%, #c99a49 90%, transparent) !important;
  height: 2px !important;
  left: 8% !important;
  right: 8% !important;
  top: 29px !important;
}

.method .step {
  color: #0b2b49;
  font-size: 14px !important;
  padding-inline: 4px;
}

.method .step-num {
  background: #d8aa52 !important;
  border: 3px solid #f0cf84 !important;
  box-shadow: 0 0 0 7px #f5f1e8;
  color: #082744;
  font-size: 13px !important;
  font-weight: 800;
  height: 56px !important;
  width: 56px !important;
}

.method .step svg {
  height: 28px !important;
  margin: 18px auto 8px !important;
  stroke: #d8aa52 !important;
  width: 28px !important;
}

.method .step b {
  color: #0b2b49;
  font-size: 17px !important;
  line-height: 1.5;
  margin-bottom: 5px;
}

.method .step span {
  color: #637582;
  display: block;
  font-size: 13px !important;
  line-height: 1.65 !important;
}

/* Final section: match the scale, spacing, and visual hierarchy of the page. */
.cta {
  background: linear-gradient(120deg, #e3e7e7 0%, #f5f2eb 100%) !important;
  border-top: 1px solid rgba(10, 42, 69, 0.12);
  padding-block: 0 !important;
}

.cta .cta-grid {
  align-items: stretch;
  display: grid !important;
  grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.35fr) !important;
  min-height: 360px;
}

.cta .riyadh {
  background-position: center !important;
  background-size: cover !important;
  min-height: 360px;
}

.cta .cta-copy {
  justify-content: center;
  padding: clamp(48px, 5vw, 76px) clamp(32px, 5vw, 70px) !important;
}

.cta .cta-copy .overline {
  color: #9b7437 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  margin-bottom: 8px;
}

.cta .cta-copy h2 {
  color: #0a2a47;
  font-size: clamp(32px, 2.8vw, 41px) !important;
  font-weight: 750;
  line-height: 1.35 !important;
  margin: 0 0 13px !important;
  max-width: 720px;
}

.cta .cta-copy p {
  color: #566b79 !important;
  font-size: clamp(16px, 1.25vw, 18px) !important;
  line-height: 1.75 !important;
  margin: 0 0 28px !important;
  max-width: 680px;
}

.cta .cta-actions {
  gap: 14px !important;
}

.cta .cta-actions .btn {
  box-sizing: border-box;
  font-size: 15px !important;
  font-weight: 700;
  height: 46px !important;
  min-width: 190px !important;
  padding-inline: 24px !important;
}

@media (max-width: 760px) {
  :root {
    --review-section-space: 44px;
  }

  body {
    font-size: 16px;
  }

  .container {
    width: min(100% - 32px, var(--review-content-width)) !important;
  }

  .hero,
  .hero-grid {
    min-height: 0;
  }

  .hero-copy {
    padding: 56px 22px 40px !important;
  }

  .hero-visual {
    background-size: 100% auto !important;
    background-position: center center !important;
  }

  .hero-visual::before {
    min-height: 68px;
    padding: 8px 14px 34px;
    font-size: 19px;
  }

  .hero-visual::after {
    bottom: 9px;
    padding-inline: 14px;
    font-size: 12px;
  }

  .package-copy {
    padding: 34px 22px !important;
  }

  .services-section + .package {
    grid-template-columns: 1fr !important;
    min-height: 0;
  }

  .package .package-image {
    min-height: 230px;
  }

  .package .package-copy {
    padding: 44px 24px 48px !important;
  }

  .package .package-features {
    gap: 18px 10px !important;
    margin: 26px 0 30px !important;
  }

  .package + .about-strip {
    min-height: 0;
    padding-block: 52px !important;
  }

  .about-strip .about-grid {
    gap: 34px !important;
    grid-template-columns: 1fr !important;
    min-height: 0;
  }

  .about-strip .credential-wrap {
    grid-template-columns: 1fr !important;
    min-height: 0;
  }

  .about-strip .certificate,
  .about-strip .certificate-link {
    height: auto !important;
    min-height: 240px;
  }

  .about-strip .facts {
    border: 0 !important;
    grid-template-columns: repeat(2, 1fr);
    padding: 0 !important;
  }

  .services-section {
    min-height: 0;
    padding-block: 54px !important;
  }

  .services-section .section-head {
    margin-bottom: 24px !important;
  }

  .services-section .service-card {
    min-height: 220px;
    padding: 28px 26px 50px !important;
  }

  .prose-card {
    padding: 24px !important;
  }

  .method {
    padding-block: 52px !important;
  }

  .method .method-grid {
    gap: 34px !important;
    grid-template-columns: 1fr !important;
    min-height: 0;
  }

  .method .timeline {
    gap: 18px 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .method .timeline::before {
    display: none !important;
  }

  .method .step {
    border: 1px solid rgba(216, 170, 82, 0.22);
    min-height: 190px;
    padding: 20px 12px 18px;
  }

  .method .step-num {
    box-shadow: none;
  }

  .cta .cta-grid {
    grid-template-columns: 1fr !important;
    min-height: 0;
  }

  .cta .riyadh {
    min-height: 230px;
  }

  .cta .cta-copy {
    padding: 42px 24px 48px !important;
  }

  .cta .cta-copy h2 {
    font-size: clamp(29px, 8vw, 36px) !important;
  }

  .cta .cta-actions {
    flex-direction: column;
  }

  .cta .cta-actions .btn {
    min-width: 0 !important;
    width: 100%;
  }
}
