/* =========================================================
   المكتب القانوني لفضل محمد خير
   Editorial Luxury — Navy + Gold + Cream
   ========================================================= */

:root {
  /* Core palette */
  --navy:        #0A1628;   /* Deep navy — main background */
  --navy-2:      #11203A;   /* Layered surface */
  --navy-3:      #1A2D4D;   /* Hover surface */
  --gold:        #C9A961;   /* Gold — accents, CTAs, balance */
  --gold-soft:   #B89348;   /* Hover gold */
  --gold-glow:   rgba(201, 169, 97, 0.18);
  --cream:       #F4EFE6;   /* Warm cream — main text */
  --cream-2:     #E8E0CF;   /* Cream variant */

  --text:        var(--cream);
  --text-2:      #C7C0B0;
  --text-3:      #8C8676;
  --text-dark:   var(--navy);

  --success:     #4FA67D;
  --warning:     #D4A92A;
  --danger:      #C85846;
  --info:        #5A8FB5;

  /* Typography */
  --font: 'Cairo', -apple-system, system-ui, sans-serif;
  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-lg:   1.125rem;
  --fs-xl:   1.5rem;
  --fs-2xl:  2rem;
  --fs-3xl:  3rem;
  --fs-hero: 4rem;

  /* Spacing */
  --sp-1: 0.25rem; --sp-2: 0.5rem; --sp-3: 0.75rem;
  --sp-4: 1rem;    --sp-6: 1.5rem; --sp-8: 2rem;
  --sp-12: 3rem;   --sp-16: 4rem;  --sp-24: 6rem;

  /* Borders */
  --br-thin: 1px solid rgba(244, 239, 230, 0.08);
  --br-gold: 1px solid var(--gold);
  --r-sm: 4px; --r-md: 8px; --r-lg: 16px; --r-full: 999px;

  /* Shadow */
  --sh-sm: 0 1px 3px rgba(0,0,0,0.2);
  --sh-md: 0 4px 16px rgba(0,0,0,0.3);
  --sh-lg: 0 16px 48px rgba(0,0,0,0.4);
  --sh-gold: 0 0 32px var(--gold-glow);

  /* Motion */
  --ease:   cubic-bezier(0.16, 1, 0.3, 1);
  --d-fast: 200ms;
  --d-base: 400ms;
  --d-slow: 800ms;
}

/* =========================================================
   Reset
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--text);
  background: var(--navy);
  direction: rtl;
  overflow-x: hidden;
  font-weight: 400;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; transition: color var(--d-fast) var(--ease); }
a:hover { color: var(--cream); }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--gold); color: var(--navy); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* =========================================================
   Layout
   ========================================================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-6);
}
.section { padding: var(--sp-24) 0; }

.section-eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-size: var(--fs-xs); font-weight: 600;
  color: var(--gold); letter-spacing: 0.15em;
  text-transform: uppercase; margin-bottom: var(--sp-4);
}
.section-eyebrow::before {
  content: ''; width: 24px; height: 1px; background: var(--gold);
}
.section-title {
  font-size: var(--fs-2xl); font-weight: 700;
  color: var(--text); margin-bottom: var(--sp-4);
  line-height: 1.2;
}
.section-title em {
  color: var(--gold); font-style: normal;
}
.section-subtitle {
  font-size: var(--fs-base); color: var(--text-2);
  max-width: 720px; margin-bottom: var(--sp-12);
}
.section-header { text-align: start; margin-bottom: var(--sp-16); }
.section-header.center { text-align: center; }
.section-header.center .section-eyebrow { justify-content: center; }
.section-header.center .section-subtitle { margin-left: auto; margin-right: auto; }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-8);
  font-size: var(--fs-base); font-weight: 600;
  border: 1px solid var(--gold); background: transparent;
  color: var(--gold); border-radius: var(--r-sm);
  transition: all var(--d-base) var(--ease);
  letter-spacing: 0.02em;
  cursor: pointer;
}
.btn:hover { background: var(--gold); color: var(--navy); }
.btn-solid { background: var(--gold); color: var(--navy); }
.btn-solid:hover { background: var(--gold-soft); }
.btn-ghost { border-color: rgba(244,239,230,0.2); color: var(--text-2); }
.btn-ghost:hover { background: var(--navy-2); border-color: var(--text); color: var(--text); }
.btn-large { padding: var(--sp-4) var(--sp-12); font-size: var(--fs-lg); }
.btn-block { display: flex; width: 100%; justify-content: center; }

/* =========================================================
   Navbar
   ========================================================= */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background var(--d-base), backdrop-filter var(--d-base);
}
.navbar.is-scrolled {
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(201, 169, 97, 0.15);
}
.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex; align-items: center; gap: var(--sp-3);
  color: var(--text); font-weight: 700;
}
.brand-mark {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  color: var(--navy);
  border-radius: var(--r-sm);
  font-size: var(--fs-xl); font-weight: 700;
}
.brand-text {
  display: flex; flex-direction: column; line-height: 1.2;
}
.brand-text .ar { font-size: var(--fs-sm); font-weight: 700; }
.brand-text .sub {
  font-size: 10px; color: var(--text-3);
  letter-spacing: 0.15em; font-weight: 400;
  text-transform: uppercase;
}

.nav-links {
  display: flex; gap: var(--sp-6); align-items: center;
  list-style: none;
}
.nav-links a {
  color: var(--text-2); font-size: var(--fs-sm);
  font-weight: 500; transition: color var(--d-fast);
  position: relative;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a.active { color: var(--gold); }
.nav-links a.active::after {
  content: ''; position: absolute;
  bottom: -8px; left: 0; right: 0;
  height: 2px; background: var(--gold);
}
.nav-cta {
  padding: var(--sp-2) var(--sp-6);
  border: 1px solid var(--gold); color: var(--gold) !important;
  border-radius: var(--r-sm); transition: all var(--d-fast);
}
.nav-cta:hover { background: var(--gold); color: var(--navy) !important; }

.nav-toggle {
  display: none; background: none; border: none;
  padding: var(--sp-2);
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--text); margin: 5px 0;
}

@media (max-width: 1024px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 76px 0 0 0;
    flex-direction: column; gap: var(--sp-6);
    padding: var(--sp-12); background: var(--navy);
    transform: translateX(100%);
    transition: transform var(--d-base) var(--ease);
  }
  .nav-links.is-open { transform: translateX(0); }
}

/* =========================================================
   Hero — with Balance Scale + Orbital Stars
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
  padding-top: 100px;
}
#particles {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 1;
}
.hero-bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(244,239,230,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244,239,230,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}
.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--sp-16); align-items: center;
}
.hero-text {
  display: flex; flex-direction: column;
  gap: var(--sp-6);
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  border: var(--br-gold);
  border-radius: var(--r-full);
  font-size: var(--fs-xs); font-weight: 600;
  color: var(--gold); letter-spacing: 0.1em;
  text-transform: uppercase;
  align-self: start;
  background: rgba(201, 169, 97, 0.05);
}
.hero-title {
  font-size: var(--fs-hero);
  font-weight: 700; line-height: 1.1;
  color: var(--text);
}
.hero-title .accent { color: var(--gold); }
.hero-tagline {
  font-size: var(--fs-lg); color: var(--text-2);
  max-width: 540px;
}
.hero-cta-row {
  display: flex; gap: var(--sp-3); margin-top: var(--sp-4);
  flex-wrap: wrap;
}
.hero-meta {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-6); margin-top: var(--sp-8);
  padding-top: var(--sp-6);
  border-top: var(--br-thin);
}
.hero-meta-item .num {
  font-size: var(--fs-2xl); font-weight: 700;
  color: var(--gold); line-height: 1;
  font-variant-numeric: tabular-nums;
}
.hero-meta-item .lbl {
  font-size: var(--fs-xs); color: var(--text-3);
  margin-top: var(--sp-1);
}

/* =========================================================
   SEAL SYSTEM — Balance Scale + Orbital Stars
   ========================================================= */
.seal-system {
  position: relative;
  width: 480px; height: 480px;
  margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
}
.seal-system::before {
  content: ''; position: absolute; inset: -80px;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 60%);
  pointer-events: none;
  animation: glow-breathe 4s ease-in-out infinite;
}
@keyframes glow-breathe {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.05); }
}

/* Orbital rings carrying stars */
.orbit {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.orbit-1 { width: 320px; height: 320px; animation: rotate-cw 28s linear infinite; }
.orbit-2 { width: 410px; height: 410px; animation: rotate-ccw 42s linear infinite; }
.orbit-3 { width: 250px; height: 250px; animation: rotate-cw 18s linear infinite; }

@keyframes rotate-cw  { from { transform: rotate(0deg); }   to { transform: rotate(360deg); } }
@keyframes rotate-ccw { from { transform: rotate(0deg); }   to { transform: rotate(-360deg); } }

/* Stars - 9 total across 3 orbits */
.star {
  position: absolute;
  width: 16px; height: 16px;
  top: 50%; left: 50%;
  margin: -8px 0 0 -8px;
  background: var(--gold);
  clip-path: polygon(
    50% 0%,
    61% 35%, 98% 35%, 68% 57%,
    79% 91%, 50% 70%,
    21% 91%, 32% 57%,
    2% 35%, 39% 35%
  );
  filter: drop-shadow(0 0 8px var(--gold-glow));
}
/* Orbit 1 — 3 stars */
.star-1 { transform: translate(160px); }
.star-2 { transform: rotate(120deg) translate(160px); }
.star-3 { transform: rotate(240deg) translate(160px); }
/* Orbit 2 — 2 stars */
.star-4 { transform: translate(205px); width: 12px; height: 12px; opacity: 0.7; }
.star-5 { transform: rotate(180deg) translate(205px); width: 12px; height: 12px; opacity: 0.7; }
/* Orbit 3 — 4 small stars */
.star-6 { transform: translate(125px); width: 10px; height: 10px; opacity: 0.8; }
.star-7 { transform: rotate(90deg)  translate(125px); width: 10px; height: 10px; opacity: 0.8; }
.star-8 { transform: rotate(180deg) translate(125px); width: 10px; height: 10px; opacity: 0.8; }
.star-9 { transform: rotate(270deg) translate(125px); width: 10px; height: 10px; opacity: 0.8; }

/* Animated rings around the scale */
.seal-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--gold);
  pointer-events: none;
}
.ring-1 {
  width: 380px; height: 380px;
  border-style: dashed;
  opacity: 0.2;
  animation: rotate-cw 50s linear infinite;
}
.ring-2 {
  width: 240px; height: 240px;
  opacity: 0.4;
}
.ring-3 {
  width: 180px; height: 180px;
  opacity: 0.15;
  border-color: var(--cream);
}

/* The balance scale itself */
.seal-core {
  position: relative; z-index: 5;
  width: 160px; height: 160px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
}
.seal-core::before {
  content: ''; position: absolute; inset: -12px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  animation: pulse-ring 3s ease-out infinite;
}
@keyframes pulse-ring {
  0%   { transform: scale(1);    opacity: 0.7; }
  100% { transform: scale(1.5);  opacity: 0; }
}
.seal-core svg {
  width: 130px; height: 130px;
}
/* Subtle balance sway */
.scale-balance {
  transform-origin: 50px 22px;
  animation: balance-sway 6s ease-in-out infinite;
}
@keyframes balance-sway {
  0%, 100% { transform: rotate(0deg); }
  25%      { transform: rotate(2deg); }
  75%      { transform: rotate(-2deg); }
}

/* =========================================================
   Statement Block (quote section after Hero)
   ========================================================= */
.statement {
  background: var(--navy-2);
  padding: var(--sp-24) var(--sp-6);
  text-align: center;
  border-top: var(--br-thin);
  border-bottom: var(--br-thin);
}
.quote-mark {
  font-size: 5rem; line-height: 1;
  color: var(--gold); opacity: 0.5;
  margin-bottom: var(--sp-4);
}
.statement blockquote {
  font-size: var(--fs-2xl); font-weight: 300;
  color: var(--text); max-width: 880px;
  margin: 0 auto; line-height: 1.5;
}
.statement blockquote em {
  color: var(--gold); font-style: normal; font-weight: 600;
}
.statement cite {
  display: block; margin-top: var(--sp-6);
  font-size: var(--fs-sm); color: var(--text-3);
  font-style: normal; letter-spacing: 0.1em;
}

/* =========================================================
   Services Grid
   ========================================================= */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}
.service-card {
  background: var(--navy-2);
  border: var(--br-thin);
  padding: var(--sp-8);
  border-radius: var(--r-md);
  transition: all var(--d-base) var(--ease);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.service-card::before {
  content: ''; position: absolute;
  top: 0; right: 0;
  width: 4px; height: 0;
  background: var(--gold);
  transition: height var(--d-base) var(--ease);
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 169, 97, 0.3);
  box-shadow: var(--sh-md);
  color: inherit;
}
.service-card:hover::before { height: 100%; }
.service-num {
  font-size: var(--fs-xs); color: var(--gold);
  letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 600; margin-bottom: var(--sp-4);
}
.service-icon {
  width: 56px; height: 56px;
  color: var(--gold);
  margin-bottom: var(--sp-6);
}
.service-title {
  font-size: var(--fs-xl); font-weight: 700;
  margin-bottom: var(--sp-3); color: var(--text);
}
.service-body {
  font-size: var(--fs-sm); color: var(--text-2);
  line-height: 1.7;
  flex: 1; margin-bottom: var(--sp-4);
}
.service-link {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  color: var(--gold); font-size: var(--fs-sm); font-weight: 600;
  margin-top: auto;
}
.service-link::after { content: '←'; transition: transform var(--d-fast); }
.service-card:hover .service-link::after { transform: translateX(-4px); }

/* =========================================================
   Pillars (3-column values)
   ========================================================= */
.pillars-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-8);
}
.pillar {
  text-align: center;
  padding: var(--sp-8) var(--sp-4);
}
.pillar-roman {
  font-size: var(--fs-sm); color: var(--gold);
  letter-spacing: 0.2em; font-weight: 600;
  margin-bottom: var(--sp-4); text-transform: uppercase;
}
.pillar h3 {
  font-size: var(--fs-xl); font-weight: 700;
  margin-bottom: var(--sp-4); color: var(--text);
}
.pillar p {
  font-size: var(--fs-sm); color: var(--text-2);
  line-height: 1.8;
}

/* =========================================================
   Process / Steps
   ========================================================= */
.steps-list {
  display: flex; flex-direction: column;
  gap: var(--sp-4);
}
.step-item {
  display: grid; grid-template-columns: 80px 1fr;
  gap: var(--sp-6); align-items: start;
  padding: var(--sp-6);
  background: var(--navy-2);
  border-inline-start: 3px solid var(--gold);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  transition: transform var(--d-base) var(--ease);
}
.step-item:hover { transform: translateX(-4px); }
.step-num {
  font-size: var(--fs-3xl); font-weight: 700;
  color: var(--gold); line-height: 1;
  font-variant-numeric: tabular-nums;
}
.step-content h3 {
  font-size: var(--fs-lg); font-weight: 700;
  margin-bottom: var(--sp-2);
}
.step-content p {
  font-size: var(--fs-sm); color: var(--text-2);
}

/* =========================================================
   Practice Areas Grid (compact)
   ========================================================= */
.areas-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
}
.area-item {
  padding: var(--sp-6);
  background: var(--navy-2);
  border: var(--br-thin);
  border-radius: var(--r-md);
  text-align: center;
  transition: all var(--d-base);
}
.area-item:hover {
  border-color: var(--gold);
  background: var(--navy-3);
}
.area-name {
  font-size: var(--fs-base); font-weight: 700;
  color: var(--text); margin-bottom: var(--sp-2);
}
.area-tag {
  font-size: var(--fs-xs); color: var(--text-3);
}

/* =========================================================
   FAQ Accordion
   ========================================================= */
.faq-list { display: flex; flex-direction: column; gap: var(--sp-3); }
.faq-item {
  background: var(--navy-2);
  border: var(--br-thin);
  border-radius: var(--r-md);
  overflow: hidden;
}
.faq-question {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
  padding: var(--sp-6);
  background: transparent; border: none;
  color: var(--text); text-align: start;
  font-size: var(--fs-base); font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.faq-question::after {
  content: '+'; font-size: var(--fs-xl);
  color: var(--gold); transition: transform var(--d-fast);
}
.faq-item.is-open .faq-question::after {
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height var(--d-base) var(--ease);
}
.faq-answer-inner {
  padding: 0 var(--sp-6) var(--sp-6);
  color: var(--text-2); font-size: var(--fs-sm);
  line-height: 1.8;
}
.faq-item.is-open .faq-answer { max-height: 400px; }

/* =========================================================
   Article Cards (Blog)
   ========================================================= */
.articles-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}
.article-card {
  background: var(--navy-2);
  border: var(--br-thin);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: all var(--d-base) var(--ease);
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
}
.article-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 169, 97, 0.3);
  box-shadow: var(--sh-md);
  color: inherit;
}
.article-cover {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--navy-3), var(--navy));
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 3rem;
  position: relative;
}
.article-cover img {
  width: 100%; height: 100%; object-fit: cover;
}
.article-body {
  padding: var(--sp-6);
  flex: 1; display: flex; flex-direction: column;
}
.article-meta {
  display: flex; align-items: center; gap: var(--sp-3);
  font-size: var(--fs-xs); color: var(--text-3);
  margin-bottom: var(--sp-3);
}
.article-category {
  color: var(--gold); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
}
.article-title {
  font-size: var(--fs-lg); font-weight: 700;
  margin-bottom: var(--sp-3); color: var(--text);
  line-height: 1.4;
}
.article-excerpt {
  font-size: var(--fs-sm); color: var(--text-2);
  line-height: 1.7; flex: 1;
}
.article-read-more {
  margin-top: var(--sp-4);
  font-size: var(--fs-sm); color: var(--gold);
  font-weight: 600;
}

/* Article single page */
.article-hero {
  padding: 140px 0 var(--sp-12);
  background: var(--navy-2);
  border-bottom: var(--br-thin);
}
.article-hero .article-meta { margin-bottom: var(--sp-4); }
.article-hero h1 {
  font-size: var(--fs-3xl); font-weight: 700;
  line-height: 1.2; max-width: 880px;
}
.article-hero .article-excerpt {
  font-size: var(--fs-lg); color: var(--text-2);
  margin-top: var(--sp-4); max-width: 760px;
}
.article-content {
  max-width: 760px; margin: 0 auto;
  font-size: var(--fs-base); line-height: 1.9;
  color: var(--text);
}
.article-content h2 {
  font-size: var(--fs-xl); margin: var(--sp-12) 0 var(--sp-4);
  color: var(--gold);
}
.article-content h3 {
  font-size: var(--fs-lg); margin: var(--sp-8) 0 var(--sp-3);
  color: var(--text);
}
.article-content p { margin-bottom: var(--sp-4); }
.article-content ul, .article-content ol {
  margin-bottom: var(--sp-4); padding-inline-start: var(--sp-6);
}
.article-content li { margin-bottom: var(--sp-2); }
.article-content blockquote {
  border-inline-start: 3px solid var(--gold);
  padding: var(--sp-4) var(--sp-6);
  margin: var(--sp-6) 0;
  background: var(--navy-2);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  color: var(--text-2); font-style: italic;
}

/* =========================================================
   Service single page
   ========================================================= */
.service-hero {
  padding: 140px 0 var(--sp-16);
  background: linear-gradient(135deg, var(--navy-2), var(--navy));
  border-bottom: var(--br-thin);
}
.service-hero h1 {
  font-size: var(--fs-3xl); font-weight: 700;
  line-height: 1.2; margin-bottom: var(--sp-4);
}
.service-hero h1 em { color: var(--gold); font-style: normal; }
.service-hero p {
  font-size: var(--fs-lg); color: var(--text-2);
  max-width: 720px;
}

.service-detail-grid {
  display: grid; grid-template-columns: 2fr 1fr;
  gap: var(--sp-12);
}
.service-includes {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
}
.includes-item {
  padding: var(--sp-3) var(--sp-4);
  background: var(--navy-2);
  border-inline-start: 3px solid var(--gold);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: var(--fs-sm);
}
.service-cta-card {
  background: linear-gradient(135deg, var(--navy-2), var(--navy-3));
  border: 1px solid var(--gold);
  padding: var(--sp-8);
  border-radius: var(--r-md);
  position: sticky; top: 100px;
}
.service-cta-card h3 {
  font-size: var(--fs-xl); margin-bottom: var(--sp-3);
}
.service-cta-card p {
  font-size: var(--fs-sm); color: var(--text-2);
  margin-bottom: var(--sp-6);
}

/* =========================================================
   Contact section
   ========================================================= */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: var(--sp-16);
}
.contact-info-list {
  display: flex; flex-direction: column;
  gap: var(--sp-4);
}
.contact-info-item {
  display: flex; gap: var(--sp-4); align-items: start;
  padding: var(--sp-4) 0;
  border-bottom: var(--br-thin);
}
.contact-info-item:last-child { border-bottom: none; }
.contact-info-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(201, 169, 97, 0.1);
  color: var(--gold);
  border-radius: var(--r-sm);
  flex-shrink: 0;
}
.contact-info-icon svg { width: 20px; height: 20px; }
.contact-info-label {
  font-size: var(--fs-xs); color: var(--text-3);
  text-transform: uppercase; letter-spacing: 0.1em;
}
.contact-info-value {
  font-size: var(--fs-base); color: var(--text);
  margin-top: var(--sp-1);
}

/* =========================================================
   Forms
   ========================================================= */
.form-stack {
  display: flex; flex-direction: column; gap: var(--sp-4);
}
.form-row label {
  display: block; font-size: var(--fs-sm);
  color: var(--text-2); margin-bottom: var(--sp-2);
  font-weight: 500;
}
.input, textarea, select {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  background: var(--navy);
  border: 1px solid rgba(244, 239, 230, 0.1);
  color: var(--text);
  font-family: inherit; font-size: var(--fs-base);
  border-radius: var(--r-sm);
  transition: border-color var(--d-fast);
}
.input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--gold);
}
textarea { resize: vertical; min-height: 120px; }
.form-row-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}

/* Alerts */
.alert {
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-sm);
  border-inline-start: 3px solid;
  font-size: var(--fs-sm);
  margin-bottom: var(--sp-4);
}
.alert-success { border-color: var(--success);
                 background: rgba(79, 166, 125, 0.1); color: #6FC09A; }
.alert-danger  { border-color: var(--danger);
                 background: rgba(200, 88, 70, 0.1); color: #E07868; }
.alert-info    { border-color: var(--info);
                 background: rgba(90, 143, 181, 0.1); color: #88B5DA; }

/* =========================================================
   CTA Banner (between sections)
   ========================================================= */
.cta-banner {
  padding: var(--sp-12) var(--sp-8);
  background: linear-gradient(135deg, var(--navy-2), var(--navy-3));
  border-radius: var(--r-md);
  text-align: center;
  border: 1px solid rgba(201, 169, 97, 0.2);
}
.cta-banner h2 {
  font-size: var(--fs-2xl); font-weight: 700;
  margin-bottom: var(--sp-3);
}
.cta-banner p {
  color: var(--text-2); margin-bottom: var(--sp-6);
  max-width: 540px; margin-inline: auto;
}

/* =========================================================
   Footer
   ========================================================= */
.footer {
  background: #050D1A;
  border-top: 1px solid rgba(201, 169, 97, 0.15);
  padding: var(--sp-16) 0 0;
  margin-top: var(--sp-24);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-12);
  padding-bottom: var(--sp-12);
}
.footer-col h4 {
  font-size: var(--fs-base); font-weight: 700;
  color: var(--text); margin-bottom: var(--sp-4);
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: var(--sp-2); }
.footer-col a {
  color: var(--text-3); font-size: var(--fs-sm);
}
.footer-col a:hover { color: var(--gold); }
.footer-tag {
  font-size: var(--fs-sm); color: var(--text-3);
  margin-top: var(--sp-4); max-width: 320px;
  line-height: 1.7;
}
.footer-bar {
  border-top: var(--br-thin);
  padding: var(--sp-4) 0;
  font-size: var(--fs-xs); color: var(--text-3);
  text-align: center;
}

/* =========================================================
   Reveal animations
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 800ms var(--ease), transform 800ms var(--ease);
}
.reveal.is-visible {
  opacity: 1; transform: translateY(0);
}

/* =========================================================
   Page header (interior pages)
   ========================================================= */
.page-header {
  padding: 140px 0 var(--sp-12);
  background: var(--navy-2);
  border-bottom: var(--br-thin);
  text-align: center;
}
.page-header h1 {
  font-size: var(--fs-3xl); font-weight: 700;
  line-height: 1.2; margin-bottom: var(--sp-3);
}
.page-header h1 em { color: var(--gold); font-style: normal; }
.page-header p {
  font-size: var(--fs-base); color: var(--text-2);
  max-width: 640px; margin: 0 auto;
}
.breadcrumb {
  display: flex; justify-content: center; gap: var(--sp-2);
  font-size: var(--fs-xs); color: var(--text-3);
  margin-bottom: var(--sp-4);
}
.breadcrumb a { color: var(--text-3); }
.breadcrumb a:hover { color: var(--gold); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--sp-12); }
  .hero-meta { grid-template-columns: repeat(2, 1fr); }
  .seal-system { width: 380px; height: 380px; }
  .orbit-1 { width: 240px; height: 240px; }
  .orbit-2 { width: 320px; height: 320px; }
  .orbit-3 { width: 180px; height: 180px; }
  .star-1 { transform: translate(120px); }
  .star-2 { transform: rotate(120deg) translate(120px); }
  .star-3 { transform: rotate(240deg) translate(120px); }
  .star-4 { transform: translate(160px); }
  .star-5 { transform: rotate(180deg) translate(160px); }
  .star-6 { transform: translate(90px); }
  .star-7 { transform: rotate(90deg)  translate(90px); }
  .star-8 { transform: rotate(180deg) translate(90px); }
  .star-9 { transform: rotate(270deg) translate(90px); }
  .ring-1 { width: 280px; height: 280px; }
  .ring-2 { width: 200px; height: 200px; }
  .ring-3 { width: 150px; height: 150px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .pillars-grid { grid-template-columns: 1fr; gap: var(--sp-4); }
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: var(--sp-8); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .service-detail-grid { grid-template-columns: 1fr; }
  .service-cta-card { position: static; }
}

@media (max-width: 600px) {
  :root { --fs-hero: 2.5rem; --fs-3xl: 2rem; --fs-2xl: 1.5rem; }
  .container { padding: 0 var(--sp-4); }
  .section { padding: var(--sp-16) 0; }
  .seal-system { width: 280px; height: 280px; }
  .orbit-1 { width: 180px; height: 180px; }
  .orbit-2 { width: 230px; height: 230px; }
  .orbit-3 { width: 140px; height: 140px; }
  .star-1 { transform: translate(90px); }
  .star-2 { transform: rotate(120deg) translate(90px); }
  .star-3 { transform: rotate(240deg) translate(90px); }
  .star-4 { transform: translate(115px); }
  .star-5 { transform: rotate(180deg) translate(115px); }
  .star-6 { transform: translate(70px); }
  .star-7 { transform: rotate(90deg)  translate(70px); }
  .star-8 { transform: rotate(180deg) translate(70px); }
  .star-9 { transform: rotate(270deg) translate(70px); }
  .ring-1 { width: 210px; height: 210px; }
  .ring-2 { width: 160px; height: 160px; }
  .ring-3 { width: 120px; height: 120px; }
  .seal-core { width: 110px; height: 110px; }
  .seal-core svg { width: 90px; height: 90px; }
  .services-grid, .articles-grid { grid-template-columns: 1fr; }
  .areas-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row-grid { grid-template-columns: 1fr; }
  .hero-meta { grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
  .step-item { grid-template-columns: 1fr; gap: var(--sp-3); }
}

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