:root {
  --cream: #fbf6f1;
  --sand: #f6eee6;
  --white: #fffaf6;
  --rose: #c4896a;
  --copper: #8e5340;
  --copper-deep: #6c3e30;
  --ink: #3c2a24;
  --muted: #6e564c;
  --line: rgba(142, 83, 64, 0.18);
  --shadow: 0 18px 50px rgba(92, 58, 42, 0.08);
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Tajawal", "Segoe UI", Tahoma, sans-serif;
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--ink);
  background: var(--cream);
}

img { max-width: 100%; }

h2 {
  font-weight: 800;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  line-height: 1.35;
  margin: 0 0 0.75rem;
}

h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 0 0.45rem;
}

p { margin-top: 0; }

a { color: var(--copper); }

::selection {
  background: #e7c3a8;
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--rose);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  right: 1rem;
  top: -4rem;
  z-index: 2000;
  background: #fff;
  color: var(--ink);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  text-decoration: none;
}

.skip:focus { top: 1rem; }

.muted { color: var(--muted); }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.55rem;
  color: var(--copper);
  font-weight: 700;
}

.kicker::before {
  content: "";
  width: 1.5rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--copper), var(--rose));
}

.section { padding: 5.4rem 0; }

.section-head {
  max-width: 40rem;
  margin-bottom: 2.2rem;
}

.bg-white-warm { background: var(--white); }

.bg-sand { background: var(--sand); }

section[id],
#ads { scroll-margin-top: 96px; }

.js .reveal {
  opacity: 0;
  transition: opacity 0.65s ease;
}

.js .reveal.in { opacity: 1; }

.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
.delay-4 { transition-delay: 0.32s; }

.site-nav {
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
  background: transparent;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-nav.scrolled {
  background: rgba(251, 246, 241, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px rgba(60, 42, 36, 0.06);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: "Amiri", "Times New Roman", serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}

.navbar-brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 28%;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--rose);
}

.navbar-brand:hover { color: var(--copper); }

.navbar .nav-link {
  color: var(--muted);
  font-weight: 500;
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--copper-deep);
  background: rgba(255, 255, 255, 0.75);
}

.navbar-toggler {
  border-color: var(--line);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(196, 137, 106, 0.28);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 7.6rem 0 4.5rem;
  background:
    radial-gradient(circle at 86% 16%, rgba(232, 196, 168, 0.9), transparent 36%),
    radial-gradient(circle at 10% 80%, rgba(196, 137, 106, 0.16), transparent 32%),
    var(--cream);
}

.hero .container { position: relative; z-index: 1; }

.hero-ribbon {
  position: absolute;
  left: 50%;
  bottom: -28px;
  width: min(1100px, 145%);
  transform: translateX(-50%);
  opacity: 0.45;
  pointer-events: none;
}

.display-name {
  margin: 0;
  font-family: "Amiri", "Times New Roman", serif;
  font-weight: 700;
  font-size: clamp(5rem, 12vw, 8rem);
  line-height: 1.15;
  color: var(--copper);
}

.name-line {
  display: block;
  width: 4.6rem;
  height: 4px;
  margin: 0.9rem 0 1rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--copper), #e7c3a8);
}

.hero-role {
  margin-bottom: 0.7rem;
  color: var(--copper-deep);
  font-weight: 700;
}

.hero-lead {
  max-width: 38rem;
  margin-bottom: 0;
  font-size: 1.12rem;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.3rem 0 0;
  padding: 0;
  list-style: none;
}

.hero-pills a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}

.hero-pills a:hover {
  background: #fff;
  border-color: var(--rose);
}

.hero-logo {
  width: min(100%, 560px);
  margin-inline: auto;
}

.hero-logo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 36px;
  background: transparent;
  box-shadow: 0 22px 60px rgba(108, 62, 48, 0.1);
}

.btn-rose,
.btn-ghost {
  border-radius: 999px;
  padding: 0.7rem 1.35rem;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-rose {
  color: #fff;
  border: none;
  background-image: linear-gradient(135deg, #b87458, var(--copper));
}

.btn-rose:hover,
.btn-rose:focus {
  color: #fff;
  background-image: linear-gradient(135deg, #a8664c, var(--copper-deep));
  transform: translateY(-2px);
}

.btn-ghost {
  color: var(--copper);
  background: transparent;
  border: 1.5px solid var(--rose);
}

.btn-ghost:hover,
.btn-ghost:focus {
  color: var(--copper-deep);
  background: #fff;
  border-color: var(--copper);
  transform: translateY(-2px);
}

.btn-rose.btn-sm,
.btn-ghost.btn-sm { padding: 0.4rem 0.9rem; }

.quote-card,
.service-card,
.soft-panel,
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.quote-card { padding: 1.2rem; }

.quote-card img {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 1rem;
  border-radius: 22px;
  background: #fff;
}

.quote-card blockquote {
  margin: 0 0 1rem;
  font-family: "Amiri", "Times New Roman", serif;
  font-size: 1.55rem;
  line-height: 1.75;
}

.legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.legend li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.7rem;
  border-radius: 14px;
  background: var(--cream);
  font-weight: 500;
}

.legend i { color: var(--copper); }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 0.28rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-weight: 500;
}

.service-card,
.soft-panel,
.warm-panel {
  height: 100%;
  padding: 1.45rem;
}

.service-card { padding: 0; overflow: hidden; }

.service-card-body { padding: 1.15rem 1.25rem 1.3rem; }

.card-photo,
.panel-photo,
.section-photo img,
.media-panel > img {
  display: block;
  width: 100%;
  object-fit: cover;
}

.card-photo {
  height: 168px;
  object-position: center 42%;
}

.section-photo {
  margin: 0 0 1.5rem;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.section-photo img {
  height: auto;
  object-position: center;
}

.papers { padding: 0; overflow: hidden; }

.papers .panel-body { padding: 1.25rem 1.35rem 1.4rem; }

.panel-photo {
  height: auto;
  object-position: center;
}

.media-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
}

.media-panel > img {
  height: 250px;
  object-position: center 40%;
}

.media-panel .soft-panel,
.media-panel .warm-panel {
  height: auto;
  flex: 1;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.service-card { transition: transform 0.25s ease, border-color 0.25s ease; }

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(196, 137, 106, 0.55);
}

.service-card p,
.soft-panel p,
.mini-card p { color: var(--muted); }

.icon-bubble {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 1rem;
  border-radius: 18px;
  background: linear-gradient(160deg, #f8e7d8, #e7c3a8);
  color: var(--copper);
  font-size: 1.4rem;
}

.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 1.15rem;
}

.card-more {
  color: var(--copper);
  font-weight: 700;
  text-decoration: none;
}

.card-more:hover { color: var(--copper-deep); }

.rhythm {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  margin-top: 1.5rem;
}

.rhythm span {
  padding: 0.32rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.rhythm span:first-child {
  border-color: var(--copper);
  background: var(--copper);
  color: #fff;
  font-weight: 700;
}

.steps {
  display: grid;
  gap: 0.9rem;
  margin: 1.3rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  padding: 1.2rem 1.15rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  counter-increment: step;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 0.35rem;
  font-family: "Amiri", "Times New Roman", serif;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--copper);
}

.steps p {
  margin: 0;
  color: var(--muted);
}

#universities .steps { grid-template-columns: 1fr 1fr; }

#path .steps { grid-template-columns: repeat(4, 1fr); }

.papers .note,
.note {
  margin: 1rem 0 0;
  color: var(--muted);
}

.check-list {
  margin: 0.4rem 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 0.45rem;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.check-list i {
  margin-top: 0.25rem;
  color: var(--copper);
}

.mini-card {
  height: 100%;
  padding: 0.9rem;
  border-radius: 18px;
  background: var(--cream);
}

.mini-card i {
  color: var(--copper);
  font-size: 1.25rem;
}

.mini-card h3 { font-size: 1rem; }

.mini-card p {
  margin: 0;
  font-size: 0.95rem;
}

.warm-panel {
  border-radius: 28px;
  color: #fff;
  background: linear-gradient(165deg, #5c3428, #8e5340 70%);
}

.warm-panel .kicker,
.warm-panel h2,
.warm-panel p,
.warm-panel .check-list { color: #fff; }

.warm-panel .kicker::before { background: #f8e7d8; }

.warm-panel .check-list i { color: #f8e7d8; }

.warm-panel .btn-light {
  border: none;
  border-radius: 999px;
  color: var(--copper-deep);
  font-weight: 700;
}

.warm-panel .btn-light:hover {
  color: var(--copper-deep);
  background: #fff;
}

.plain-steps {
  margin: 0;
  padding: 0 1.2rem 0 0;
  color: var(--ink);
}

.plain-steps li { margin-bottom: 0.45rem; }

.form-card { padding: 1.4rem; }

.form-label { font-weight: 700; }

.form-control,
.form-select {
  padding: 0.75rem 1rem;
  border: 1px solid rgba(142, 83, 64, 0.28);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
}

.form-control::placeholder { color: #8a736a; opacity: 1; }

.form-control:focus,
.form-select:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 0.2rem rgba(196, 137, 106, 0.22);
}

.success-box {
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid #e7c3a8;
  border-radius: 18px;
  background: #f8efe6;
}

.success-box h3 { font-size: 1.15rem; }

.success-box pre {
  white-space: pre-wrap;
  margin: 0.7rem 0;
  padding: 0.85rem;
  border-radius: 14px;
  background: #fff;
  font-family: "Tajawal", "Segoe UI", Tahoma, sans-serif;
  color: var(--ink);
}

.copy-state {
  min-height: 1.4rem;
  margin: 0.55rem 0 0;
  color: var(--copper);
  font-weight: 700;
}

.faq .accordion-item {
  margin-bottom: 0.7rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px !important;
  background: #fff;
}

.faq .accordion-button {
  font-weight: 700;
  color: var(--ink);
  background: #fff;
  box-shadow: none;
}

.faq .accordion-button:not(.collapsed) {
  color: var(--copper-deep);
  background: var(--cream);
  box-shadow: none;
}

.faq .accordion-button:focus { box-shadow: none; }

.faq .accordion-body { color: var(--muted); }

.site-footer {
  padding: 3.8rem 0 1.4rem;
  border-top: 4px solid var(--rose);
  background: #3c2a24;
  color: #f6ebe3;
}

.footer-logo {
  width: 72px;
  height: 72px;
  margin-bottom: 0.8rem;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 28%;
  box-shadow: 0 0 0 2px var(--rose);
}

.footer-name {
  margin-bottom: 0.3rem;
  font-family: "Amiri", "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1;
}

.footer-text { color: #f0d7c0; }

.footer-label {
  margin-bottom: 0.6rem;
  font-weight: 800;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a,
.social-list a {
  color: #f0d7c0;
  text-decoration: none;
}

.footer-links a:hover,
.social-list a:hover { color: #fff; }

.footer-links li { margin-bottom: 0.3rem; }

.social-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.social-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.75rem;
  border: 1px solid rgba(240, 215, 192, 0.4);
  border-radius: 999px;
}

.copyright {
  margin: 2rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(240, 215, 192, 0.2);
  color: #e7c3a8;
}

.to-top {
  position: fixed;
  bottom: 1.1rem;
  left: 1.1rem;
  z-index: 1040;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: var(--copper);
  color: #fff;
  font-size: 1.2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.to-top.show {
  opacity: 1;
  pointer-events: auto;
}

.to-top:hover { transform: translateY(-2px); }

.modal-content {
  border: none;
  border-radius: 24px;
  background: #fffaf6;
}

.modal-header,
.modal-footer { border-color: var(--line); }

@media (max-width: 991.98px) {
  .navbar-collapse {
    margin-top: 0.6rem;
    padding: 0.7rem;
    border-radius: 18px;
    background: rgba(251, 246, 241, 0.98);
    box-shadow: var(--shadow);
  }

  #path .steps,
  #universities .steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 575.98px) {
  .section { padding: 4rem 0; }

  .hero {
    min-height: auto;
    padding-top: 6.5rem;
  }

  .quote-card,
  .service-card-body,
  .soft-panel,
  .warm-panel,
  .form-card,
  .papers .panel-body { padding: 1.1rem; }

  .papers { padding: 0; }

  .legend,
  #path .steps,
  #universities .steps { grid-template-columns: 1fr; }

  .display-name { font-size: 4.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .js .reveal {
    opacity: 1;
    transition: none;
  }

  .service-card,
  .btn-rose,
  .btn-ghost,
  .to-top {
    animation: none;
    transition: none;
  }

  .service-card:hover,
  .btn-rose:hover,
  .btn-ghost:hover,
  .btn-rose:focus,
  .btn-ghost:focus,
  .to-top:hover { transform: none; }
}

@media print {
  .site-nav,
  .to-top,
  .hero-ribbon { display: none !important; }

  .hero { min-height: auto; padding-top: 1rem; }
}
