/* ==========================================================================
   Dr. Sajad Ali Mohammad — Design System, Layout & Motion
   ========================================================================== */

:root {
  color-scheme: light;
  --navy: #0b2250;
  --navy-deep: #071735;
  --navy-mid: #143a7a;
  --gold: #d9ae55;
  --gold-bright: #ebc878;
  --gold-ink: #8a6414;
  --bg: #f6f7fa;
  --surface: #ffffff;
  --surface-soft: #eef1f7;
  --fg: #14213d;
  --muted: #51607f;
  --line: #dfe3ec;
  --on-navy: #ffffff;
  --on-navy-soft: #c4cde2;
  --shadow-sm: 0 4px 16px rgba(7, 23, 53, 0.06);
  --shadow-md: 0 14px 36px rgba(7, 23, 53, 0.1);
  --shadow-lg: 0 22px 54px rgba(7, 23, 53, 0.14);
  --display: "Playfair Display", Georgia, "Times New Roman", serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --scroll-progress: 0;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0a1228;
    --surface: #111c3a;
    --surface-soft: #162347;
    --fg: #e9edf7;
    --muted: #a3b0cc;
    --line: #24325a;
    --gold-ink: #e3bb68;
    --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 14px 36px rgba(0, 0, 0, 0.36);
    --shadow-lg: 0 22px 54px rgba(0, 0, 0, 0.45);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a1228;
  --surface: #111c3a;
  --surface-soft: #162347;
  --fg: #e9edf7;
  --muted: #a3b0cc;
  --line: #24325a;
  --gold-ink: #e3bb68;
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 14px 36px rgba(0, 0, 0, 0.36);
  --shadow-lg: 0 22px 54px rgba(0, 0, 0, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(76px + env(safe-area-inset-top, 0px));
}

body {
  margin: 0;
  padding: 0;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  transition: background-color 0.35s var(--ease-out), color 0.35s var(--ease-out);
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--navy-deep);
}

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

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

[hidden]:not([hidden="until-found" i]) {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: fixed;
  top: -120px;
  left: 16px;
  z-index: 100;
  background: var(--gold);
  color: #1a1405;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transition: top 0.25s var(--ease-out);
}

.skip-link:focus {
  top: calc(12px + env(safe-area-inset-top, 0px));
}

.wrap {
  max-width: 1160px;
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* ==========================================================================
   Scroll Progress Bar & Header Navigation
   ========================================================================== */

.scroll-progress {
  position: fixed;
  top: env(safe-area-inset-top, 0px);
  left: 0;
  right: 0;
  height: 3px;
  z-index: 55;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  transform-origin: left center;
  transform: scaleX(var(--scroll-progress));
  pointer-events: none;
  transition: transform 0.08s linear;
}

.top {
  background: rgba(7, 23, 53, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--on-navy);
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 40;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: box-shadow 0.35s var(--ease-out), background-color 0.35s var(--ease-out);
}

.top.is-scrolled {
  background: rgba(7, 23, 53, 0.92);
  box-shadow: 0 10px 30px rgba(4, 12, 30, 0.35);
  border-bottom-color: rgba(217, 174, 85, 0.22);
}

.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 12px;
}

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  min-width: 0;
  transition: opacity 0.25s var(--ease-out);
}

.brand:hover {
  opacity: 0.92;
}

.brand b {
  font-family: var(--display);
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand span {
  font-size: 0.78rem;
  color: var(--on-navy-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.95rem;
}

.nav a {
  position: relative;
  text-decoration: none;
  color: var(--on-navy-soft);
  padding-block: 6px;
  font-weight: 500;
  transition: color 0.25s var(--ease-out);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s var(--ease-out);
}

.nav a:hover,
.nav a.is-active {
  color: var(--on-navy);
}

.nav a:hover::after,
.nav a.is-active::after {
  transform: scaleX(1);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: var(--on-navy);
  cursor: pointer;
  padding: 0;
  transition: background-color 0.25s var(--ease-out), border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(217, 174, 85, 0.65);
  transform: translateY(-1px);
}

.icon-btn:active {
  transform: translateY(0);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle .icon-sun {
  display: none;
}

.theme-toggle .icon-moon {
  display: block;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun {
    display: block;
  }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon {
    display: none;
  }
}

:root[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

:root[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

.menu-toggle {
  display: none;
}

.menu-toggle .icon-close {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

.mobile-nav {
  background: var(--navy-deep);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 20px 20px;
  display: grid;
  gap: 6px;
}

.mobile-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--on-navy-soft);
  font-weight: 500;
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}

.mobile-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--on-navy);
  transform: translateX(4px);
}

.mobile-nav .mobile-cta {
  margin-top: 8px;
  justify-content: center;
  background: var(--gold);
  color: #1a1405;
  font-weight: 600;
}

.mobile-nav .mobile-cta:hover {
  background: var(--gold-bright);
  color: #1a1405;
  transform: none;
}

/* ==========================================================================
   Buttons & Interactive Controls
   ========================================================================== */

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--gold);
  color: #1a1405;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 8px;
  border: 0;
  font-size: 1rem;
  font-family: var(--body);
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(217, 174, 85, 0.22);
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out), background-color 0.28s var(--ease-out);
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.42) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform 0.65s var(--ease-out);
  pointer-events: none;
}

.btn:hover {
  background: var(--gold-bright);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(217, 174, 85, 0.34);
}

.btn:hover::before {
  transform: translateX(120%);
}

.btn:active {
  transform: translateY(0);
}

.btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  transition: transform 0.28s var(--ease-out);
}

.btn:hover .btn-arrow {
  transform: translateX(3px);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--on-navy);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.42);
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1.5px var(--gold), 0 10px 24px rgba(7, 23, 53, 0.28);
}

.btn.ghost-dark {
  background: transparent;
  color: var(--fg);
  box-shadow: inset 0 0 0 1.5px var(--line);
}

.btn.ghost-dark:hover {
  background: var(--surface-soft);
  box-shadow: inset 0 0 0 1.5px var(--gold), var(--shadow-sm);
}

@media (max-width: 900px) {
  .nav {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .top .btn {
    padding: 9px 14px;
    font-size: 0.9rem;
  }
}

@media (max-width: 520px) {
  .top .btn {
    display: none;
  }
}

/* ==========================================================================
   Hero Section & Entrance Keyframes
   ========================================================================== */

@keyframes heroRise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes photoFloatIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes subtleGlow {
  0%, 100% {
    opacity: 0.45;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.04);
  }
}

.hero {
  position: relative;
  background: linear-gradient(110deg, var(--navy-deep) 0%, var(--navy) 55%, var(--navy-mid) 100%);
  color: var(--on-navy);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  top: -20%;
  right: -8%;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 174, 85, 0.16) 0%, rgba(217, 174, 85, 0) 70%);
  pointer-events: none;
  animation: subtleGlow 9s ease-in-out infinite;
}

.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: end;
  padding-top: 56px;
}

.hero-copy {
  padding-bottom: 56px;
  min-width: 0;
}

.hero-copy > * {
  animation: heroRise 0.75s var(--ease-out) both;
}

.hero-copy > *:nth-child(1) { animation-delay: 0.04s; }
.hero-copy > *:nth-child(2) { animation-delay: 0.1s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.22s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.28s; }
.hero-copy > *:nth-child(6) { animation-delay: 0.34s; }
.hero-copy > *:nth-child(7) { animation-delay: 0.4s; }
.hero-copy > *:nth-child(8) { animation-delay: 0.46s; }

.hero h1 {
  font-size: clamp(2.2rem, 5.4vw, 3.9rem);
  font-weight: 700;
}

.creds {
  font-family: var(--display);
  font-size: clamp(1.12rem, 2.3vw, 1.55rem);
  letter-spacing: 0.06em;
  margin-top: 14px;
}

.board {
  font-family: var(--display);
  color: var(--gold);
  font-size: clamp(1.18rem, 2.5vw, 1.7rem);
  margin-top: 8px;
}

.role {
  font-family: var(--display);
  font-size: clamp(1.04rem, 2vw, 1.35rem);
  margin-top: 6px;
  color: var(--on-navy-soft);
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid rgba(217, 174, 85, 0.48);
}

.fact {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.fact strong {
  font-family: var(--display);
  font-size: 2.6rem;
  color: var(--gold);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.fact span {
  font-family: var(--display);
  font-size: 1.1rem;
  line-height: 1.3;
}

.fact-link {
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  margin: -6px -10px;
  border-radius: 8px;
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.fact-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--gold-bright);
  transform: translateY(-1px);
}

.fact-link svg {
  width: 18px;
  height: 18px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  font-size: 0.95rem;
  color: var(--on-navy-soft);
}

.chip b {
  color: var(--on-navy);
  font-weight: 600;
}

.stars {
  display: inline-flex;
  gap: 3px;
}

.stars svg {
  width: 20px;
  height: 20px;
  fill: var(--gold);
  transition: transform 0.3s var(--ease-out);
}

.tag {
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--on-navy-soft);
  margin-top: 26px;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero-photo {
  position: relative;
  align-self: end;
  min-width: 0;
  animation: photoFloatIn 0.85s var(--ease-out) 0.15s both;
}

.hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 460px;
  margin-inline: auto;
  border-radius: 8px 8px 0 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent);
  mask-image: linear-gradient(to bottom, #000 80%, transparent);
  transition: transform 0.6s var(--ease-out);
}

.hero-photo:hover img {
  transform: scale(1.015);
}

.motto {
  position: absolute;
  top: 8%;
  right: 0;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.35;
  text-align: right;
  color: var(--on-navy);
  text-shadow: 0 2px 12px rgba(7, 23, 53, 0.85);
}

@media (max-width: 860px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    padding-top: 36px;
  }
  .hero-copy {
    padding-bottom: 12px;
  }
  .hero-photo img {
    max-width: 340px;
  }
  .motto {
    display: none;
  }
}

/* ==========================================================================
   Sections & Scroll Reveal Transitions
   ========================================================================== */

section {
  padding-block: clamp(48px, 6vw, 72px);
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-ink);
  font-weight: 600;
  margin-bottom: 10px;
}

.eyebrow-light {
  color: var(--gold);
}

h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
}

.rule {
  width: 56px;
  height: 3px;
  background: var(--gold);
  margin: 14px 0 22px;
  border: 0;
  border-radius: 2px;
  transition: width 0.55s var(--ease-out);
}

.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

.js-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.js-ready [data-reveal].is-visible .rule {
  width: 72px;
}

/* ==========================================================================
   About Section
   ========================================================================== */

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.about p {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 62ch;
}

.about p + p {
  margin-top: 14px;
}

.why {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.why:hover {
  border-color: rgba(217, 174, 85, 0.55);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.why h3 {
  font-size: 1.4rem;
  margin-bottom: 18px;
}

.why ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.why li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: start;
  padding: 6px 8px;
  margin: -6px -8px;
  border-radius: 8px;
  transition: background-color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.why li:hover {
  background: var(--surface-soft);
  transform: translateX(4px);
}

.why-icon {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(217, 174, 85, 0.18);
  color: var(--gold-ink);
  transition: background-color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.why li:hover .why-icon {
  background: var(--gold);
  color: #1a1405;
  transform: scale(1.08);
}

.why-icon svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 860px) {
  .about {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ==========================================================================
   Services Section & Spotlight Hover Cards
   ========================================================================== */

.services {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 34px;
}

.card {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px;
  min-width: 0;
  transition: transform 0.35s var(--ease-out), border-color 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(217, 174, 85, 0.13), transparent 65%);
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
  pointer-events: none;
}

.card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s var(--ease-out);
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(217, 174, 85, 0.6);
  box-shadow: var(--shadow-md);
}

.card:hover::before {
  opacity: 1;
}

.card:hover::after {
  transform: scaleX(1);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(217, 174, 85, 0.12);
  border: 1px solid rgba(217, 174, 85, 0.25);
  transition: background-color 0.35s var(--ease-out), border-color 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}

.card:hover .card-icon {
  background: rgba(217, 174, 85, 0.22);
  border-color: rgba(217, 174, 85, 0.65);
  transform: scale(1.06);
}

.card svg {
  width: 36px;
  height: 36px;
  stroke: var(--gold-ink);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.35s var(--ease-out), stroke 0.35s var(--ease-out);
}

.card:hover svg {
  transform: scale(1.05);
}

.card h3 {
  font-size: 1.25rem;
  margin: 16px 0 8px;
}

.card p {
  color: var(--muted);
  font-size: 0.98rem;
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ==========================================================================
   Reviews Section
   ========================================================================== */

.reviews .box {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px 48px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px;
  margin-top: 30px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.reviews .box:hover {
  border-color: rgba(217, 174, 85, 0.5);
  box-shadow: var(--shadow-md);
}

.score {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.score strong {
  font-family: var(--display);
  font-size: 4.2rem;
  line-height: 1;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.score strong small {
  font-size: 1.4rem;
  color: var(--muted);
  font-weight: 500;
}

.score .stars svg {
  width: 24px;
  height: 24px;
}

.rev-meta {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.rev-meta p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 56ch;
}

.rev-meta .tagrow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.92rem;
  background: var(--bg);
  transition: border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.pill:hover {
  border-color: var(--gold);
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .reviews .box {
    grid-template-columns: 1fr;
    padding: 24px;
  }
}

.rgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.rcard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  box-shadow: var(--shadow-sm);
  transition: transform 0.32s var(--ease-out), border-color 0.32s var(--ease-out), box-shadow 0.32s var(--ease-out);
}

.rcard:hover {
  transform: translateY(-5px);
  border-color: rgba(217, 174, 85, 0.58);
  box-shadow: var(--shadow-md);
}

.rcard:hover .stars svg {
  transform: scale(1.12);
}

.rcard .stars svg:nth-child(2) { transition-delay: 25ms; }
.rcard .stars svg:nth-child(3) { transition-delay: 50ms; }
.rcard .stars svg:nth-child(4) { transition-delay: 75ms; }
.rcard .stars svg:nth-child(5) { transition-delay: 100ms; }

.rcard .stars svg {
  width: 16px;
  height: 16px;
}

.rcard blockquote {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.6;
  flex: 1;
}

.rcard blockquote[dir="rtl"] {
  font-size: 1.12rem;
  line-height: 1.9;
}

.rcard footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 12px;
  font-size: 0.84rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.rcard footer b {
  color: var(--fg);
  font-weight: 600;
}

.rnote {
  margin-top: 18px;
  font-size: 0.88rem;
  color: var(--muted);
}

@media (max-width: 960px) {
  .rgrid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .rgrid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Contact Section & Interactive Links
   ========================================================================== */

.contact {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--navy-deep), var(--navy));
  color: var(--on-navy);
}

.contact .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: center;
}

.contact h2 {
  color: var(--on-navy);
}

.contact p {
  color: var(--on-navy-soft);
  max-width: 48ch;
}

.rows {
  display: grid;
  gap: 14px;
}

.row {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
  color: inherit;
  transition: transform 0.28s var(--ease-out), border-color 0.28s var(--ease-out), background-color 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out);
}

.row:hover {
  transform: translateY(-3px);
  border-color: rgba(217, 174, 85, 0.72);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 12px 26px rgba(4, 12, 30, 0.3);
}

.row-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(217, 174, 85, 0.15);
  color: var(--gold);
  transition: background-color 0.28s var(--ease-out), color 0.28s var(--ease-out), transform 0.28s var(--ease-out);
}

.row:hover .row-icon {
  background: var(--gold);
  color: #1a1405;
  transform: scale(1.06);
}

.row-icon svg,
.row-arrow {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.row-body {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.row small {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.row b {
  font-weight: 600;
  font-size: 1.12rem;
  overflow-wrap: anywhere;
}

.row-arrow {
  color: var(--on-navy-soft);
  transition: transform 0.28s var(--ease-out), color 0.28s var(--ease-out);
}

.row:hover .row-arrow {
  color: var(--gold);
  transform: translateX(4px);
}

.num {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

@media (max-width: 860px) {
  .contact .wrap {
    grid-template-columns: 1fr;
  }
}

.foot {
  background: var(--navy-deep);
  color: var(--on-navy-soft);
  font-size: 0.88rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.foot .wrap {
  padding-block: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}

.foot a {
  text-decoration: none;
  transition: color 0.25s var(--ease-out);
}

.foot a:hover {
  color: var(--gold);
}

/* ==========================================================================
   Custom HTTP Error Pages (400, 401, 403, 404, 500, 502, 503, 504)
   ========================================================================== */

.error-body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.error-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(32px, 6vw, 64px) 0;
  background:
    radial-gradient(640px circle at 85% 15%, rgba(217, 174, 85, 0.12), transparent 60%),
    radial-gradient(560px circle at 10% 90%, rgba(20, 58, 122, 0.14), transparent 60%),
    var(--bg);
}

.error-card {
  width: min(100%, 660px);
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(28px, 5vw, 48px);
  box-shadow: var(--shadow-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: heroRise 0.65s var(--ease-out) both;
}

.error-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--navy), var(--gold), var(--navy));
}

.error-icon-wrap {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--navy-deep), var(--navy));
  color: var(--gold);
  border: 1px solid rgba(217, 174, 85, 0.45);
  box-shadow: 0 12px 28px rgba(7, 23, 53, 0.22);
  transition: transform 0.35s var(--ease-out);
}

.error-card:hover .error-icon-wrap {
  transform: translateY(-3px) scale(1.03);
}

.error-icon-wrap svg {
  width: 42px;
  height: 42px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.error-code {
  font-family: var(--display);
  font-size: clamp(3rem, 9vw, 4.75rem);
  font-weight: 700;
  line-height: 1;
  color: var(--gold-ink);
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.error-card h1 {
  font-size: clamp(1.55rem, 3.8vw, 2.15rem);
  margin-bottom: 12px;
}

.error-card p {
  color: var(--muted);
  font-size: 1.04rem;
  max-width: 48ch;
  margin-inline: auto;
}

.error-rule {
  margin: 22px auto;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.error-meta {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 20px;
  font-size: 0.88rem;
  color: var(--muted);
}

.error-meta a {
  text-decoration: none;
  font-weight: 500;
  transition: color 0.25s var(--ease-out);
}

.error-meta a:hover {
  color: var(--gold-ink);
}

/* ==========================================================================
   Reduced Motion Accessibility
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js-ready [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
