/* ───── MKW Advisory — Brand tokens ─────
   Per Brand Architecture Edition 1.0:
   Navy Deep #1E3A5F + Gold Muted #B8956A + Cream #F5F1EA + Charcoal #2C2C2C
   Personality: Investigative, Rigorous, Candid, Principled
   Restrained gold (NOT shiny like Bariq); classic serif headlines */

:root {
  color-scheme: dark;
  --bg-base: #1E3A5F;
}

html, body {
  background: #1E3A5F;
  color: #F5F1EA;
}

body {
  background-image:
    radial-gradient(60% 50% at 50% 0%, rgba(42,79,124,0.55) 0%, transparent 70%),
    radial-gradient(50% 40% at 50% 100%, rgba(184,149,106,0.06) 0%, transparent 70%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 0.94 0 0 0 0 0.85 0 0 0 0.025 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: auto, auto, 180px 180px;
  background-attachment: fixed;
  font-family: 'Readex Pro', 'Inter', system-ui, sans-serif;
}

html[lang="en"] body {
  font-family: 'Inter', system-ui, sans-serif;
}

/* ───── Typography display tweaks ───── */
.font-display {
  letter-spacing: -0.015em;
}
html[lang="ar"] .font-display {
  /* On Arabic, fallback to Readex (Cormorant doesn't render Arabic glyphs cleanly) */
  font-family: 'Readex Pro', system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: 0;
}

.section-title {
  font-family: 'Cormorant Garamond', 'Readex Pro', serif;
  font-size: 2rem;
  font-weight: 600;
  color: #F5F1EA;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
@media (min-width: 640px) { .section-title { font-size: 2.75rem; } }
@media (min-width: 768px) { .section-title { font-size: 3.25rem; } }
html[lang="ar"] .section-title {
  font-family: 'Readex Pro', serif;
  font-weight: 600;
}

/* Eyebrow lines (small uppercase label above section titles) */
.eyebrow-line {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #C9A576;
}
.eyebrow-line::before,
.eyebrow-line::after {
  content: "";
  display: inline-block;
  width: 1.75rem;
  height: 1px;
  background: rgba(184,149,106,0.45);
}
html[lang="ar"] .eyebrow-line {
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.78rem;
}

/* Hero glow — restrained */
.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(55% 45% at 50% 35%, rgba(184,149,106,0.10) 0%, transparent 70%);
}

/* ───── Buttons ───── */
.btn-gold,
.btn-gold-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  padding: 0.7rem 1.4rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: all 0.3s ease;
  white-space: nowrap;
}
@media (min-width: 640px) {
  .btn-gold, .btn-gold-outline {
    padding: 0.85rem 1.85rem;
    font-size: 0.9rem;
  }
}
.btn-gold {
  background: linear-gradient(135deg, #9E7C53 0%, #B8956A 50%, #D4B383 100%);
  color: #152B47;
  box-shadow: 0 4px 24px rgba(184,149,106,0.18);
}
.btn-gold:hover {
  box-shadow: 0 8px 36px rgba(184,149,106,0.32);
  transform: translateY(-2px);
}
.btn-gold-outline {
  border: 1px solid rgba(184,149,106,0.55);
  color: #D4B383;
  background: rgba(15,33,56,0.4);
}
.btn-gold-outline:hover {
  border-color: #D4B383;
  color: #F5F1EA;
  background: rgba(184,149,106,0.08);
}

/* ───── Service cards ───── */
.service-card {
  position: relative;
  border-radius: 0.9rem;
  border: 1px solid rgba(184,149,106,0.18);
  background: rgba(15,33,56,0.55);
  padding: 1.75rem 1.5rem;
  transition: all 0.3s ease;
}
.service-card:hover {
  transform: translateY(-3px);
  border-color: rgba(184,149,106,0.4);
  box-shadow: 0 16px 40px rgba(15,33,56,0.5);
}
.service-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.75rem;
}
.service-mark {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(184,149,106,0.35);
  background: rgba(184,149,106,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #D4B383;
}
.service-mark svg { display: block; }
.service-title {
  color: #F5F1EA;
  font-weight: 600;
  font-size: 1.15rem;
  margin-bottom: 0;
  line-height: 1.2;
}
.service-body {
  color: rgba(245,241,234,0.7);
  font-size: 0.875rem;
  line-height: 1.75;
}

/* ───── Credentials (accordion) ───── */
.cred-card {
  border-radius: 0.9rem;
  border: 1px solid rgba(184,149,106,0.18);
  background: rgba(15,33,56,0.5);
  overflow: hidden;
  transition: all 0.3s ease;
}
.cred-card:hover {
  border-color: rgba(184,149,106,0.32);
}
.cred-summary {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.1rem 1.4rem;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: #D4B383;
  font-size: 0.95rem;
}
.cred-summary::-webkit-details-marker { display: none; }
.cred-summary-icon {
  font-size: 1.05rem;
  color: #B8956A;
}
.cred-summary-text {
  flex: 1;
}
.cred-chev {
  color: rgba(184,149,106,0.65);
  transition: transform 0.3s ease;
}
.cred-card[open] .cred-chev { transform: rotate(180deg); }

.cred-list {
  padding: 0 1.4rem 1.3rem;
  list-style: none;
}
.cred-list li {
  position: relative;
  padding: 0.65rem 0 0.65rem 1.2rem;
  font-size: 0.86rem;
  color: rgba(245,241,234,0.75);
  line-height: 1.7;
  border-top: 1px solid rgba(184,149,106,0.09);
}
.cred-list li:first-child { border-top: 0; padding-top: 0.4rem; }
.cred-list li::before {
  content: "—";
  position: absolute;
  inset-inline-start: 0;
  top: 0.7rem;
  color: rgba(184,149,106,0.55);
  font-weight: 700;
}
.cred-list li:first-child::before { top: 0.5rem; }

/* ───── Portfolio cards ───── */
.port-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(184,149,106,0.18);
  background: rgba(15,33,56,0.55);
  padding: 1.4rem;
  transition: all 0.3s ease;
}
.port-card-feature {
  background: linear-gradient(135deg, rgba(15,33,56,0.7), rgba(30,58,95,0.7));
  border-color: rgba(184,149,106,0.28);
}
.port-card:hover {
  border-color: rgba(184,149,106,0.42);
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(15,33,56,0.45);
}
.port-card-logo {
  flex-shrink: 0;
  width: 3.25rem;
  height: 3.25rem;
  object-fit: contain;
  border-radius: 0.55rem;
  padding: 0.35rem;
}
.port-card-mark {
  flex-shrink: 0;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(184,149,106,0.32);
  background: rgba(184,149,106,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: #D4B383;
}
.port-card-title {
  font-weight: 600;
  font-size: 1.05rem;
  color: #F5F1EA;
  margin-bottom: 0.35rem;
}
.port-card-desc {
  color: rgba(245,241,234,0.65);
  font-size: 0.86rem;
  line-height: 1.6;
}
.port-card-body {
  flex: 1;
  min-width: 0;
}

/* Visit-icon — sits in the same row as the logo, opposite end */
.port-visit-icon {
  flex-shrink: 0;
  align-self: flex-start;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(184,149,106,0.08);
  border: 1px solid rgba(184,149,106,0.28);
  color: #C9A576;
  transition: all 0.25s ease;
  margin-top: 0.15rem;
}
.port-card:hover .port-visit-icon {
  background: rgba(184,149,106,0.18);
  border-color: rgba(184,149,106,0.55);
  color: #F5F1EA;
  transform: translateY(-1px);
}

/* ───── Brand wordmark (header — small integrated logo + serif wordmark) ───── */
.brand-wordmark-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}
.brand-logo-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(245, 241, 234, 0.92);
  border: 1px solid rgba(184,149,106,0.32);
  border-radius: 0.55rem;
  padding: 0.18rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}
.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.brand-wordmark-text {
  font-family: 'Cormorant Garamond', 'Readex Pro', serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: #F5F1EA;
  line-height: 1;
}
@media (min-width: 640px) {
  .brand-logo-tile { width: 2.75rem; height: 2.75rem; }
  .brand-wordmark-text { font-size: 1.5rem; }
}
html[lang="ar"] .brand-wordmark-text {
  font-family: 'Readex Pro', serif;
  font-weight: 600;
}

/* ───── Contact icons row (icons-only, click to action; no visible data) ───── */
.contact-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 9999px;
  background: rgba(184,149,106,0.08);
  border: 1px solid rgba(184,149,106,0.32);
  color: #D4B383;
  cursor: pointer;
  transition: all 0.25s ease;
}
.contact-icon-btn:hover {
  background: rgba(184,149,106,0.18);
  border-color: rgba(184,149,106,0.6);
  color: #F5F1EA;
  transform: translateY(-2px);
}

/* City toast (bottom of viewport) */
.city-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(0.6rem);
  padding: 0.6rem 1.2rem;
  border-radius: 9999px;
  background: rgba(15,33,56,0.96);
  border: 1px solid rgba(184,149,106,0.4);
  color: #F5F1EA;
  font-size: 0.85rem;
  font-weight: 500;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: 0 8px 28px rgba(0,0,0,0.35);
}
.city-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ───── Inline MKW logo (footer endorsement word-replacement) ───── */
.inline-mkw-logo {
  display: inline-block;
  height: 1.7em;
  width: auto;
  margin: 0 0.35em;
  vertical-align: middle;
  position: relative;
  top: -0.08em;
  object-fit: contain;
  opacity: 0.9;
}

/* ───── Reduced motion ───── */
@media (prefers-reduced-motion: reduce) {
  .btn-gold:hover, .btn-gold-outline:hover,
  .service-card:hover, .cred-card:hover, .port-card:hover {
    transform: none;
  }
}
