:root {
  --color-navy: #0F172A;
  --color-navy-deep: #080D1A;
  --color-navy-soft: #16213D;
  --color-gold: #B8893B;
  --color-gold-bright: #D4A857;
  --color-offwhite: #F8FAFC;
  --color-text-muted: #64748B;
  --color-text-dark: #1E293B;

  /* Semantic tokens (light mode default) */
  --bg-page: var(--color-offwhite);
  --bg-surface: #FFFFFF;
  --bg-surface-alt: #FFFFFF;
  --border-subtle: #E2E8F0;
  --border-strong: #CBD5E1;
  --text-heading: var(--color-navy);
  --text-body: var(--color-text-dark);
  --text-muted: var(--color-text-muted);
  --shadow-card: rgba(15, 23, 42, 0.25);
  --hero-bg-gradient: linear-gradient(160deg, var(--bg-surface) 0%, var(--bg-page) 100%);
  --footer-bg: var(--bg-surface);
  --footer-border: var(--border-subtle);
  --hero-text: var(--text-heading);
  --hero-text-muted: var(--text-muted);
  --navbar-bg: rgba(248, 242, 228, 0.95);
  --grid-line: rgba(15, 23, 42, 0.05);
  --toc-bg: #FFFFFF;
  --filigree-color: var(--color-navy);
  --btn-gold-text: #FFFFFF;
}

[data-theme="dark"] {
  --bg-page: #0B1220;
  --bg-surface: #131C2E;
  --bg-surface-alt: #101827;
  --border-subtle: #253148;
  --border-strong: #34425E;
  --text-heading: #F1F5F9;
  --text-body: #CBD5E1;
  --text-muted: #93A3B8;
  --shadow-card: rgba(0, 0, 0, 0.45);
  --hero-bg-gradient: linear-gradient(160deg, var(--color-navy-deep) 0%, var(--color-navy) 55%, var(--color-navy-soft) 100%);
  --footer-bg: var(--color-navy-deep);
  --footer-border: rgba(184, 137, 59, 0.2);
  --hero-text: #FFFFFF;
  --hero-text-muted: rgba(255, 255, 255, 0.72);
  --navbar-bg: rgba(5, 8, 16, 0.92);
  --grid-line: rgba(255, 255, 255, 0.045);
  --toc-bg: #131C2E;
  --filigree-color: #FFFFFF;
  --btn-gold-text: #080D1A;

  /* Override Bootstrap defaults for dark mode */
  --bs-body-bg: var(--bg-page);
  --bs-body-color: var(--text-body);
  --bs-heading-color: var(--text-heading);
  --bs-border-color: var(--border-subtle);
  --bs-tertiary-bg: var(--bg-surface);
  --bs-secondary-bg: var(--bg-surface-alt);
  --bs-link-color: var(--color-gold);
  --bs-link-hover-color: var(--color-gold-bright);
}

/* ===== Utility Classes ===== */
.text-gold {
  color: var(--color-gold) !important;
}
.bg-gold {
  background-color: var(--color-gold) !important;
}
.text-muted {
  color: var(--text-muted) !important;
}
.text-heading {
  color: var(--text-heading) !important;
}
.text-body {
  color: var(--text-body) !important;
}
.bg-surface {
  background-color: var(--bg-surface) !important;
}
.bg-surface-alt {
  background-color: var(--bg-surface-alt) !important;
}
.form-label {
  color: var(--text-heading) !important;
}

/* ===== Form Controls ===== */
.form-control {
  background-color: var(--bg-page);
  border-color: var(--border-subtle);
  color: var(--text-body);
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.form-control:focus {
  background-color: var(--bg-page);
  border-color: var(--color-gold);
  color: var(--text-heading);
  box-shadow: 0 0 0 0.25rem rgba(184, 137, 59, 0.25);
}
.form-control::placeholder {
  color: var(--text-muted);
}

.transition-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.transition-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px var(--shadow-card) !important;
  border-color: var(--color-gold) !important;
}
.service-img-card {
  border-color: var(--border-strong) !important;
}
[data-theme="dark"] .service-img-card {
  border-color: rgba(255, 255, 255, 0.15) !important;
}

/* ===== Logo Switching ===== */
.brand-logo-dark {
  display: none !important;
}
.brand-logo-light {
  display: block !important;
}

[data-theme="dark"] .brand-logo-light {
  display: none !important;
}
[data-theme="dark"] .brand-logo-dark {
  display: block !important;
}

/* ===== Contact Map ===== */
.map-container {
  border-color: var(--border-subtle) !important;
}

* {
  scroll-behavior: smooth;
}

html {
  font-size: 16px;
}

body {
  font-family: "Inter", "Segoe UI", sans-serif;
  color: var(--text-body);
  background-color: var(--bg-page);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ===== Scroll progress bar ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold-bright), var(--color-gold));
  background-size: 200% 100%;
  z-index: 2000;
  box-shadow: 0 0 8px rgba(184, 137, 59, 0.6);
  transition: width 0.1s ease-out;
}

/* ===== Cursor glow (decorative) ===== */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 137, 59, 0.2), transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  will-change: transform;
}

.cursor-glow.is-active {
  opacity: 1;
}

@media (max-width: 767px), (hover: none) {
  .cursor-glow { display: none; }
}

.site-main {
  flex: 1 0 auto;
}

h1, h2, h3, h4, .brand-font {
  font-family: "Playfair Display", "Georgia", serif;
  color: var(--text-heading);
  letter-spacing: 0.01em;
}

a {
  color: var(--text-heading);
  text-decoration: none;
}

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

.btn {
  border-radius: 2px;
  letter-spacing: 0.03em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem var(--color-navy-deep), 0 0 0 0.25rem var(--color-gold);
}

/* ===== Theme toggle ===== */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.3rem;
  height: 2.3rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--text-heading);
  cursor: pointer;
  margin-left: 0.75rem;
  transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.25s ease, color 0.25s ease;
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: var(--color-gold);
  background: rgba(184, 137, 59, 0.12);
  transform: translateY(-1px) scale(1.06);
  box-shadow: 0 0 16px rgba(184, 137, 59, 0.35);
}

.theme-toggle svg {
  width: 1.1rem;
  height: 1.1rem;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

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

.theme-toggle.is-spinning svg {
  transform: rotate(180deg) scale(0.7);
}

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

/* ===== Navbar ===== */
.site-navbar {
  background-color: var(--navbar-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--grid-line);
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.site-navbar .navbar-brand,
.site-navbar .nav-link {
  color: var(--text-heading) !important;
  font-weight: 500;
}

.site-navbar .navbar-toggler {
  color: var(--text-heading) !important;
  border-color: var(--border-subtle);
}

.site-navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='currentColor' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.site-navbar.scrolled {
  padding: 0.6rem 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  background-color: color-mix(in srgb, var(--navbar-bg) 85%, transparent);
}
.site-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-navbar .navbar-brand {
  font-family: "Playfair Display", serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-heading);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.site-navbar .navbar-brand .brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid var(--color-gold);
  color: var(--color-gold-bright);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 1px;
  transform: rotate(45deg);
  flex-shrink: 0;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}

.site-navbar .navbar-brand:hover .brand-mark {
  transform: rotate(135deg);
  box-shadow: 0 0 14px rgba(184, 137, 59, 0.5);
}

.site-navbar .navbar-brand:hover .brand-mark span {
  transform: rotate(-135deg);
}

.site-navbar .navbar-brand .brand-mark span {
  transform: rotate(-45deg);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.site-navbar .nav-link {
  color: var(--text-body);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  margin-left: 0.5rem;
  padding: 0.4rem 0.9rem !important;
  position: relative;
  transition: color 0.2s ease;
}

.site-navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.15rem;
  height: 1px;
  background-color: var(--color-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
  color: var(--color-gold) !important;
}

.site-navbar .nav-link:hover::after,
.site-navbar .nav-link.active::after {
  transform: scaleX(1);
}

/* ===== Article Content Styles ===== */
.article-body {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-body);
}

.article-body h1, .article-body h2, .article-body h3, .article-body h4 {
  color: var(--text-heading);
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.article-body h1 { font-size: 2.2rem; }
.article-body h2 { font-size: 1.8rem; border-bottom: 1px solid var(--border-subtle); padding-bottom: 0.5rem; }
.article-body h3 { font-size: 1.5rem; }

.article-body p {
  margin-bottom: 1.5rem;
}

.article-body blockquote {
  border-left: 4px solid var(--color-gold);
  padding: 1.5rem;
  margin: 2rem 0;
  background-color: rgba(184, 137, 59, 0.05);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--text-muted);
}
.article-body blockquote p:last-child {
  margin-bottom: 0;
}
.article-body ul, .article-body ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.article-body li {
  margin-bottom: 0.5rem;
}

.article-body table {
  width: 100%;
  margin-bottom: 2rem;
  border-collapse: collapse;
}

.article-body table th, .article-body table td {
  padding: 1rem;
  border: 1px solid var(--border-strong);
}

.article-body table th {
  background-color: var(--bg-surface-alt);
  color: var(--text-heading);
  font-weight: 600;
  text-align: left;
}
.article-body a {
  color: var(--color-gold);
  text-decoration: none;
  border-bottom: 1px dashed var(--color-gold);
  transition: all 0.3s ease;
}
.article-body a:hover {
  color: var(--color-gold-bright);
  border-bottom: 1px solid var(--color-gold-bright);
}
.article-body hr {
  border-color: var(--border-subtle);
  margin: 3rem 0;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse 60% 80% at 15% 0%, rgba(184, 137, 59, 0.16), transparent 60%),
    radial-gradient(ellipse 50% 60% at 100% 100%, rgba(184, 137, 59, 0.08), transparent 60%),
    var(--hero-bg-gradient);
  color: var(--hero-text);
  padding: 7rem 0 6rem;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.5;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, black 20%, transparent 75%);
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  z-index: -1;
  opacity: 0.55;
  animation: blob-float 14s ease-in-out infinite;
}

.hero-blob--one {
  width: 320px;
  height: 320px;
  top: -80px;
  left: 8%;
  background: radial-gradient(circle, rgba(184, 137, 59, 0.35), transparent 70%);
  animation-duration: 16s;
}

.hero-blob--two {
  width: 260px;
  height: 260px;
  bottom: -60px;
  right: 10%;
  background: radial-gradient(circle, rgba(212, 168, 87, 0.25), transparent 70%);
  animation-duration: 20s;
  animation-delay: -6s;
}

.hero-blob--three {
  width: 200px;
  height: 200px;
  top: 30%;
  right: 30%;
  background: radial-gradient(circle, rgba(184, 137, 59, 0.18), transparent 70%);
  animation-duration: 18s;
  animation-delay: -3s;
}

@keyframes blob-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.08); }
  66% { transform: translate(-20px, 25px) scale(0.95); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-blob { animation: none; }
}

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-gold-bright);
  margin-bottom: 1.75rem;
  animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero h1 {
  animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.hero .hero-subtitle {
  animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.hero .hero-divider {
  animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.hero p.lead {
  animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

.hero .btn {
  animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero .eyebrow,
  .hero h1,
  .hero .hero-subtitle,
  .hero .hero-divider,
  .hero p.lead,
  .hero .btn {
    animation: none;
  }
}

.hero .eyebrow::before,
.hero .eyebrow::after {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--color-gold);
  opacity: 0.7;
}

.hero h1 {
  color: var(--hero-text);
  font-size: 3.1rem;
  font-weight: 700;
  margin-bottom: 1.1rem;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35);
}

.hero .hero-subtitle {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-gold-bright);
  margin-bottom: 1.5rem;
}

.hero p.lead {
  max-width: 44rem;
  margin: 0 auto 2.5rem;
  color: var(--hero-text-muted);
  font-size: 1.05rem;
}

.hero .hero-divider {
  width: 70px;
  height: 2px;
  margin: 0 auto 2rem;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

.btn-gold {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn-gold::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.4) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}

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

.btn-gold {
  background-color: var(--color-gold);
  border: 1px solid var(--color-gold);
  color: var(--btn-gold-text);
  font-weight: 600;
  padding: 0.7rem 1.9rem;
}

.btn-gold:hover {
  background-color: var(--color-gold-bright);
  border-color: var(--color-gold-bright);
  color: var(--btn-gold-text);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -8px rgba(184, 137, 59, 0.55);
  animation: pulse-gold 1.5s infinite;
}

@keyframes pulse-gold {
  0% { box-shadow: 0 0 0 0 rgba(184, 137, 59, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(184, 137, 59, 0); }
  100% { box-shadow: 0 0 0 0 rgba(184, 137, 59, 0); }
}

.btn-outline-light-navy {
  background-color: transparent;
  border: 1px solid var(--text-heading);
  color: var(--text-heading);
  font-weight: 500;
  padding: 0.7rem 1.9rem;
}

.btn-outline-light-navy:hover {
  background-color: var(--color-navy);
  border-color: var(--color-navy);
  color: #ffffff;
  transform: translateY(-2px);
}

/* ===== Sections ===== */
.section {
  padding: 5.5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title .eyebrow-line {
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-gold);
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.section-title h2 {
  font-size: 2.1rem;
}

.section-title .divider {
  width: 60px;
  height: 2px;
  background-color: var(--color-gold);
  margin: 1rem auto 0;
}

.text-muted-custom {
  color: var(--text-muted);
}

.lead-paragraph {
  font-size: 1.08rem;
  line-height: 1.85;
  color: var(--text-body);
}

.lead-paragraph + .lead-paragraph {
  color: var(--text-muted);
}

/* ===== Intro quote block (home) ===== */
.intro-quote {
  position: relative;
  text-align: center;
  padding: 0 1rem;
  margin-bottom: 2.5rem;
}

.intro-quote .quote-mark {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: 5rem;
  line-height: 1;
  color: var(--color-gold);
  opacity: 0.35;
  margin-bottom: -1.5rem;
}

.intro-quote .intro-lead {
  font-family: "Playfair Display", serif;
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.55;
  color: var(--text-heading);
  max-width: 42rem;
  margin: 0 auto;
}

.intro-quote .intro-lead strong {
  color: var(--color-gold);
  font-weight: 700;
}

.intro-quote .intro-lead em {
  font-style: italic;
  color: var(--text-muted);
}

.intro-note {
  display: flex;
  gap: 1.25rem;
  max-width: 42rem;
  margin: 0 auto 3rem;
  padding: 1.5rem 1.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  box-shadow: 0 20px 45px -30px var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.intro-note:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 50px -25px var(--shadow-card);
}

.intro-note-bar {
  flex-shrink: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--color-gold), transparent);
  border-radius: 2px;
}

.intro-note p {
  margin-bottom: 0;
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 0.98rem;
}

.principle-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.principle-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1.25rem;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  background: var(--bg-surface);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.principle-item:hover {
  border-color: var(--color-gold);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 20px rgba(184, 137, 59, 0.15);
}

.principle-num {
  font-family: "Playfair Display", serif;
  font-size: 0.8rem;
  color: var(--color-gold);
  font-weight: 700;
}

.principle-label {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-heading);
  letter-spacing: 0.02em;
}

/* ===== About page: narrative sections ===== */
.about-section-alt {
  background: var(--bg-surface-alt);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-title.text-start {
  text-align: left;
  margin-bottom: 2rem;
}

.section-title.text-start .divider {
  margin-left: 0;
}

.about-paragraph {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.9;
  margin-bottom: 1.5rem;
}

.about-paragraph:last-child {
  margin-bottom: 0;
}

.principle-block {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.principle-block:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.principle-block:first-child {
  padding-top: 0;
}

.principle-block-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.principle-block-head .index-mark {
  margin-bottom: 0;
  font-size: 1rem;
}

.principle-block-head h3 {
  font-size: 1.3rem;
  margin-bottom: 0;
}

.principle-block p {
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== New Core Principle Cards ===== */
.core-principle-card {
  position: relative;
  background-color: var(--bg-surface-alt);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  height: 100%;
  overflow: hidden;
  transition: all 0.4s ease;
  z-index: 1;
}

.core-principle-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(184, 137, 59, 0.08), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.core-principle-card:hover {
  transform: translateY(-10px);
  border-color: var(--color-gold);
  box-shadow: 0 15px 35px var(--shadow-card);
}

.core-principle-card:hover::before {
  opacity: 1;
}

.core-principle-card .watermark-num {
  position: absolute;
  top: -20px;
  right: -10px;
  font-size: 8rem;
  font-weight: 800;
  font-family: 'Playfair Display', serif;
  color: var(--color-gold);
  opacity: 0.04;
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: -1;
  pointer-events: none;
}

.core-principle-card:hover .watermark-num {
  opacity: 0.12;
  transform: scale(1.1) rotate(-5deg);
}

.core-principle-card i {
  font-size: 2.5rem;
  color: var(--color-gold);
  margin-bottom: 1.5rem;
  display: inline-block;
  transition: transform 0.3s ease;
}

.core-principle-card:hover i {
  animation: pulse-gold-icon 1s infinite;
}

@keyframes pulse-gold-icon {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); filter: drop-shadow(0 0 8px rgba(184,137,59,0.5)); }
  100% { transform: scale(1); }
}

.core-principle-card h3 {
  font-size: 1.4rem;
  color: var(--text-heading);
  margin-bottom: 1rem;
  font-family: 'Playfair Display', serif;
}

.core-principle-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0;
}

/* ===== Practice area cards ===== */
.practice-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--color-gold);
  border-radius: 8px;
  padding: 2rem 1.85rem;
  height: 100%;
  position: relative;
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  overflow: hidden;
  z-index: 1;
}

.practice-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(184, 137, 59, 0.05), transparent 50%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.practice-card .index-mark {
  font-family: "Playfair Display", serif;
  font-size: 0.85rem;
  color: var(--color-gold);
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.practice-card .index-mark i {
  font-size: 1.25rem;
}

.practice-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}

.practice-card p {
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.7;
}

.practice-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 45px -15px var(--shadow-card);
  border-left-color: var(--color-gold-bright);
  border-right: 1px solid rgba(184, 137, 59, 0.2);
  border-bottom: 1px solid rgba(184, 137, 59, 0.2);
  border-top: 1px solid rgba(184, 137, 59, 0.2);
}

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

.practice-card:hover h3 {
  color: var(--color-gold);
}

.practice-card:hover .index-mark i {
  animation: icon-bounce 0.5s ease;
}

@keyframes icon-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* ===== Practice area detail sections ===== */
.page-header-lead {
  max-width: 38rem;
  margin: 1.25rem auto 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
}

.practice-detail-section {
  padding-top: 3rem;
  position: relative;
}

/* Sticky table of contents */
.practice-toc-wrap {
  margin-bottom: 3rem;
}

.practice-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 1.25rem 1.5rem;
  background: var(--toc-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  position: sticky;
  top: 5.5rem;
  z-index: 5;
}

.practice-toc a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  transition: all 0.25s ease;
}

.practice-toc a span {
  font-family: "Playfair Display", serif;
  color: var(--color-gold);
  font-size: 0.78rem;
}

.practice-toc a:hover {
  color: var(--text-heading);
  border-color: var(--color-gold);
  background: rgba(184, 137, 59, 0.08);
  transform: translateY(-2px);
}

.practice-detail {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
  scroll-margin-top: 9rem;

  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.practice-detail.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.practice-detail:first-child {
  padding-top: 0;
}

.practice-detail:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.practice-detail::after {
  content: attr(data-num);
  position: absolute;
  right: 1rem;
  top: 0.5rem;
  font-family: "Playfair Display", serif;
  font-size: 8rem;
  font-weight: 700;
  line-height: 1;
  color: var(--color-gold);
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

[data-theme="dark"] .practice-detail::after {
  color: #FFFFFF;
  opacity: 0.15;
}

.practice-detail:hover::after {
  opacity: 0.45;
  transform: translateY(-4px);
}

[data-theme="dark"] .practice-detail:hover::after {
  opacity: 0.25;
}

/* ===== Çift Sayılı Bölümler: Sayı Solda, İçerik Sağda ===== */
/* Not: İlk div .practice-toc-wrap olduğu için 01=2. div, 02=3. div oluyor. Bu yüzden nth-child(odd) kullanıyoruz. */
.practice-detail:nth-child(odd)::after {
  right: auto;
  left: 1rem;
}

.practice-detail:nth-child(odd) > *:not(style) {
  text-align: right;
  margin-left: auto;
  margin-right: 0;
}

.practice-detail:nth-child(odd) .practice-detail-head {
  flex-direction: row-reverse;
}

.practice-detail:nth-child(odd) .practice-detail-head h2::after {
  left: auto;
  right: 0;
  background: linear-gradient(270deg, var(--color-gold), transparent);
}

.practice-detail:nth-child(odd) > p {
  text-align: right;
  margin-left: auto;
  margin-right: 0;
}

.practice-detail:nth-child(odd) .practice-sublist-label {
  text-align: right;
}

.practice-detail:nth-child(odd) .practice-sublist {
  margin-left: auto;
  margin-right: 0;
}

.practice-detail:nth-child(odd) .practice-sublist li {
  text-align: right;
  padding-left: 0;
  padding-right: 1.1rem;
}

.practice-detail:nth-child(odd) .practice-sublist li::before {
  left: auto;
  right: 0;
}

.practice-detail:nth-child(odd) .practice-sublist li:hover {
  padding-left: 0;
  padding-right: 1.4rem;
}

.practice-detail:nth-child(odd) .practice-subheading {
  text-align: right;
  border-left: none;
  border-right: 3px solid var(--color-gold);
  padding-left: 0;
  padding-right: 0.9rem;
}

.practice-detail:nth-child(odd) .row {
  justify-content: flex-end;
}

.practice-detail-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.9rem;
  position: relative;
  z-index: 1;
}

.practice-detail-head .index-mark {
  margin-bottom: 0;
  font-size: 1rem;
  transition: color 0.3s ease, transform 0.3s ease;
  display: inline-block;
}

.practice-detail:hover .index-mark {
  color: var(--color-gold-bright);
  transform: scale(1.15);
}

.practice-detail-head h2 {
  font-size: 1.5rem;
  margin-bottom: 0;
  position: relative;
  display: inline-block;
}

.practice-detail-head h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--color-gold), transparent);
  transition: width 0.5s ease;
}

.practice-detail:hover .practice-detail-head h2::after {
  width: 100%;
}

.practice-detail > p {
  color: var(--text-muted);
  line-height: 1.85;
  max-width: 52rem;
  margin-bottom: 0.9rem;
  position: relative;
  z-index: 1;
}

.practice-sublist-label {
  color: var(--text-body);
  font-weight: 500;
  font-size: 0.92rem;
  margin: 1.25rem 0 0.5rem;
  position: relative;
  z-index: 1;
}

.practice-subheading {
  font-size: 1.05rem;
  color: var(--text-heading);
  margin: 1.75rem 0 0.75rem;
  padding-left: 0.9rem;
  border-left: 3px solid var(--color-gold);
  position: relative;
  z-index: 1;
}

.practice-detail > .practice-subheading:first-of-type {
  margin-top: 1.5rem;
}

.practice-sublist {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  max-width: 52rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.5rem 1.5rem;
  position: relative;
  z-index: 1;
}

.practice-sublist li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.1rem;
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.6;
  transition: padding-left 0.25s ease, color 0.25s ease;
}

.practice-sublist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95em;
  width: 6px;
  height: 6px;
  background: var(--color-gold);
  border-radius: 1px;
  transform: rotate(45deg);
  transition: transform 0.25s ease, background 0.25s ease;
}

.practice-sublist li:hover {
  padding-left: 1.4rem;
  color: var(--text-heading);
}

.practice-sublist li:hover::before {
  transform: rotate(225deg) scale(1.3);
  background: var(--color-gold-bright);
}

.btn-outline-navy {
  color: var(--text-heading);
  background-color: transparent;
  border: 1px solid var(--color-navy);
  font-weight: 500;
  padding: 0.7rem 1.6rem;
}

.btn-outline-navy:hover {
  background-color: var(--color-navy);
  border-color: var(--color-navy);
  color: #fff;
  transform: translateY(-2px);
}

/* ===== Contact ===== */
.contact-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  padding: 2.75rem 2.25rem;
  position: relative;
  box-shadow: 0 25px 60px -35px var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 65px -30px var(--shadow-card);
}

.contact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: var(--color-gold);
}

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.contact-info-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-top: 3px solid var(--color-gold);
  border-radius: 2px;
  padding: 1.25rem 1.5rem;
  text-align: left;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-info-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px -18px var(--shadow-card);
}

.contact-info-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.contact-info-value {
  display: block;
  color: var(--text-heading);
  font-weight: 500;
  line-height: 1.5;
}

/* ===== Footer ===== */
.site-footer {
  flex-shrink: 0;
  background-color: var(--footer-bg);
  color: var(--hero-text-muted);
  padding: 4.5rem 0 2rem;
  border-top: 1px solid var(--footer-border);
}

.site-footer a {
  color: var(--hero-text-muted);
  transition: color 0.3s ease;
}

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

.footer-brand {
  font-size: 1.8rem;
  letter-spacing: 0.5px;
}

.footer-heading {
  font-size: 1.2rem;
  font-weight: 600;
  position: relative;
  display: inline-block;
}

.footer-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 40px;
  height: 2px;
  background-color: var(--color-gold);
}

.footer-text {
  line-height: 1.7;
  font-size: 0.95rem;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.footer-links a::before {
  content: "→";
  color: var(--color-gold);
  margin-right: 0.5rem;
  font-family: monospace;
  transition: margin-right 0.3s ease;
}

.footer-links a:hover::before {
  margin-right: 0.8rem;
}

.footer-contact li span, 
.footer-contact li a {
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-socials .social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255,255,255,0.05);
  border-radius: 50%;
  color: var(--color-gold);
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.footer-socials .social-link:hover {
  background-color: var(--color-gold);
  color: var(--color-navy-deep);
  transform: translateY(-3px);
}

.footer-bottom {
  border-color: rgba(255,255,255,0.1) !important;
  font-size: 0.85rem;
}

.footer-note {
  font-style: italic;
}

/* ===== Page header (inner pages) ===== */
.page-header {
  position: relative;
  background-color: var(--color-navy-deep);
  background:
    radial-gradient(ellipse 60% 100% at 85% 0%, rgba(184, 137, 59, 0.14), transparent 60%),
    linear-gradient(160deg, var(--color-navy-deep) 0%, var(--color-navy) 100%);
  color: #fff;
  padding: 4rem 0 3.5rem;
  text-align: center;
  overflow: hidden;
}

.cta-section {
  background-color: var(--color-navy-deep);
  background: linear-gradient(135deg, var(--color-navy-deep), var(--color-navy-soft));
}

.page-header .eyebrow-line {
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-gold-bright);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.page-header h1 {
  color: #fff;
  margin-bottom: 0;
}

.page-header .divider {
  width: 60px;
  height: 2px;
  background-color: var(--color-gold);
  margin: 1.1rem auto 0;
  position: relative;
  overflow: hidden;
}

.page-header .divider::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
  animation: divider-shine 2.6s ease-in-out infinite;
}

@keyframes divider-shine {
  0% { transform: translateX(-100%); }
  60%, 100% { transform: translateX(100%); }
}

@media (prefers-reduced-motion: reduce) {
  .practice-detail {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .page-header .divider::after {
    animation: none;
  }
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 991.98px) {
  .practice-detail::after {
    font-size: 5rem;
    right: 0.5rem;
    top: 0.25rem;
  }
  .practice-detail:nth-child(odd)::after {
    left: 0.5rem;
  }
}

@media (max-width: 767.98px) {
  .practice-detail::after {
    font-size: 3.5rem;
    opacity: 0.2;
  }
  
  /* Reset alternating alignment for small screens */
  .practice-detail:nth-child(odd) > *:not(style) {
    text-align: left;
    margin-left: 0;
  }
  
  .practice-detail:nth-child(odd) .practice-detail-head {
    flex-direction: row;
  }
  
  .practice-detail:nth-child(odd) .practice-detail-head h2::after {
    left: 0;
    right: auto;
    background: linear-gradient(90deg, var(--color-gold), transparent);
  }
  
  .practice-detail:nth-child(odd) > p,
  .practice-detail:nth-child(odd) .practice-sublist-label {
    text-align: left;
  }
  
  .practice-detail:nth-child(odd) .practice-sublist {
    margin-left: 0;
  }
  
  .practice-detail:nth-child(odd) .practice-sublist li {
    text-align: left;
    padding-left: 1.1rem;
    padding-right: 0;
  }
  
  .practice-detail:nth-child(odd) .practice-sublist li::before {
    left: 0;
    right: auto;
  }
  
  .practice-detail:nth-child(odd) .practice-subheading {
    text-align: left;
    border-right: none;
    border-left: 3px solid var(--color-gold);
    padding-left: 0.9rem;
    padding-right: 0;
  }
  
  .practice-detail:nth-child(odd) .row {
    justify-content: flex-start;
  }
  
  .practice-detail:nth-child(odd) .practice-sublist li:hover {
    padding-right: 0;
    padding-left: 1.4rem;
  }
}
/* Responsive Images and Tables inside Markdown Articles */
.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.article-body table {
  width: 100%;
  max-width: 100%;
  margin-bottom: 1rem;
  background-color: transparent;
  display: block;
  overflow-x: auto;
  white-space: nowrap;
}

.article-body table th,
.article-body table td {
  padding: 0.75rem;
  vertical-align: top;
  border-top: 1px solid var(--border-color);
}
