/* ============================================
   Expert Services International — v4
   Premium Corporate Design System
   ============================================ */

:root {
  --charcoal: #111827;
  --charcoal-deep: #0a0f1a;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --accent: #b07c4b;
  --accent-light: #c99a6b;
  --accent-dark: #8f6338;
  --accent-subtle: rgba(176,124,75,0.07);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,0.15);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.3s var(--ease);
  --max-width: 1280px;
  --wide-width: 1440px;
  --header-height: 84px;
  --section-pad: clamp(4rem, 7vw, 6rem);
}

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-padding-top: var(--header-height); }
body { font-family: var(--font); color: var(--slate-700); background: var(--white); line-height: 1.7; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: var(--font); }

/* Typography — all Inter, weights create hierarchy */
h1, h2, h3, h4, h5, h6 { font-family: var(--font); color: var(--charcoal); line-height: 1.2; }
h1 { font-size: clamp(2.5rem, 5vw, 3.75rem); font-weight: 700; letter-spacing: -0.025em; margin-bottom: 1.25rem; }
h2 { font-size: clamp(2rem, 3.5vw, 2.75rem); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 1.1rem; }
h3 { font-size: clamp(1.25rem, 2vw, 1.625rem); font-weight: 600; margin-bottom: 0.85rem; }
h4 { font-size: 1.25rem; font-weight: 600; }
p { margin-bottom: 1.25em; color: var(--slate-600); line-height: 1.8; font-size: 1.05rem; }
p:last-child { margin-bottom: 0; }
.lead { font-size: 1.125rem; line-height: 1.85; color: var(--slate-500); }
.eyebrow { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.25rem; display: inline-block; }

/* Layout */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 2rem; }
.container--wide { max-width: var(--wide-width); margin: 0 auto; padding: 0 2rem; }
.container--narrow { max-width: 820px; margin: 0 auto; padding: 0 2rem; }
.section { padding: var(--section-pad) 0; }
.section--light { background: var(--slate-50); }
.section--dark { background: var(--slate-800); color: var(--white); }
.section--dark h2, .section--dark h3, .section--dark h4 { color: var(--white); }
.section--dark p { color: var(--slate-400); }
.section--dark .eyebrow { color: var(--accent-light); }
.section--deep { background: var(--charcoal-deep); color: var(--white); }
.section--deep h2, .section--deep h3 { color: var(--white); }
.section--deep p { color: var(--slate-400); }
.section--deep .eyebrow { color: var(--accent-light); }
.text-center { text-align: center; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 0.6rem; padding: 1rem 2.5rem; font-family: var(--font); font-size: 0.9rem; font-weight: 600; letter-spacing: 0.03em; border-radius: 9999px; border: none; cursor: pointer; transition: var(--transition); text-decoration: none; line-height: 1; }
.btn .arrow { display: inline-block; transition: transform 0.2s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--primary { background: var(--accent); color: var(--white); }
.btn--primary:hover { background: var(--accent-dark); box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.btn--dark { background: var(--charcoal); color: var(--white); }
.btn--dark:hover { background: var(--slate-800); box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.btn--outline { background: rgba(255,255,255,0.1); color: var(--white); border: 1.5px solid rgba(255,255,255,0.45); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.btn--outline:hover { border-color: var(--accent); color: var(--white); background: rgba(176,124,75,0.25); }
.btn--outline-dark { background: transparent; color: var(--charcoal); border: 1.5px solid var(--slate-300); }
.btn--outline-dark:hover { border-color: var(--accent); color: var(--accent); }
.btn--small { padding: 0.55rem 1.25rem; font-size: 0.78rem; white-space: nowrap; }
.btn--white { background: var(--white); color: var(--charcoal); }
.btn--white:hover { background: var(--slate-50); box-shadow: var(--shadow-lg); transform: translateY(-1px); }

/* ================================================
   HEADER
   ================================================ */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: var(--header-height); background: transparent; transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.header--scrolled { background: rgba(255,255,255,0.97); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--slate-200); }
.header.nav-active { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--charcoal-deep); box-shadow: none; }
.header--scrolled .nav__link { color: var(--slate-500); font-weight: 400; }
.header--scrolled .nav__link:hover, .header--scrolled .nav__link--active { color: var(--charcoal); }
.header--scrolled .logo__name { color: var(--charcoal); }
.header--scrolled .logo__sub { color: var(--slate-600); }
.header--scrolled .menu-toggle span { background: var(--charcoal); }
.header.nav-active .logo__name { color: var(--white); }
.header.nav-active .logo__sub { color: rgba(255,255,255,0.6); }
.header.nav-active .menu-toggle span { background: var(--white); }
.header--scrolled .nav__actions .btn--outline { border-color: var(--slate-300); color: var(--charcoal); background: rgba(0,0,0,0.03); backdrop-filter: none; -webkit-backdrop-filter: none; }
.header--scrolled .nav__actions .btn--outline:hover { border-color: var(--accent); color: var(--accent); background: rgba(176,124,75,0.08); }

.header__inner { max-width: var(--wide-width); margin: 0 auto; padding: 0 2rem; height: 100%; display: flex; align-items: center; gap: 3rem; }

.logo { display: flex; align-items: center; gap: 0.85rem; text-decoration: none; flex-shrink: 0; }
.logo__icon { width: 44px; height: 44px; flex-shrink: 0; }
.logo__icon img, .logo__icon svg { width: 100%; height: 100%; }
.logo__wordmark { display: flex; flex-direction: column; justify-content: center; }
.logo__name { font-size: 1.1rem; font-weight: 700; color: var(--white); line-height: 1.15; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; }
.logo__sub { font-size: 0.95rem; font-weight: 600; text-transform: uppercase; color: rgba(255,255,255,0.85); line-height: 1; margin-top: 3px; letter-spacing: 0.37em; white-space: nowrap; }

.nav { display: flex; align-items: center; gap: 0; flex: 1; }
.nav__item { position: relative; }
.nav__link { display: flex; align-items: center; padding: 0 1.15rem; height: var(--header-height); font-size: 0.9rem; font-weight: 400; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(255,255,255,0.8); transition: var(--transition); white-space: nowrap; }
.nav__link:hover, .nav__link--active { color: var(--white); }
.nav__dropdown { position: absolute; top: 100%; left: 0; min-width: 280px; background: rgba(15,23,42,0.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 12px 40px rgba(0,0,0,0.3); border-radius: 0 0 8px 8px; border-top: 2px solid var(--accent); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: all 0.25s var(--ease); z-index: 100; padding: 0.75rem 0; }
.nav__item:hover .nav__dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__dropdown-link { display: block; padding: 0.6rem 1.75rem; font-size: 0.85rem; color: rgba(255,255,255,0.65); transition: var(--transition); font-weight: 400; }
.nav__dropdown-link:hover { background: rgba(255,255,255,0.06); color: var(--accent-light); padding-left: 2rem; }
.nav__actions { margin-left: auto; display: flex; align-items: center; gap: 0.5rem; }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.75rem; margin-left: auto; z-index: 10; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--white); margin: 6px 0; transition: var(--transition); border-radius: 2px; }
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5.5px, 5.5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5.5px, -5.5px); }

@media (max-width: 1024px) {
  .menu-toggle { display: block; position: relative; z-index: 1010; }
  .nav { position: fixed; top: var(--header-height); left: 0; right: 0; bottom: 0; background: var(--charcoal-deep); flex-direction: column; align-items: stretch; padding: 1.5rem 0; overflow-y: auto; transform: translateX(100%); transition: transform 0.35s var(--ease); gap: 0; pointer-events: none; z-index: 1005; }
  .nav--open { transform: translateX(0); pointer-events: auto; }
  .nav__link { padding: 1rem 2rem; height: auto; font-size: 0.9rem; color: rgba(255,255,255,0.7); }
  .nav__dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: rgba(0,0,0,0.2); display: none; border-radius: 0; border-top: none; padding: 0; }
  .nav__item--open .nav__dropdown { display: block; }
  .nav__dropdown-link { color: rgba(255,255,255,0.5); padding: 0.7rem 3rem; }
  .nav__dropdown-link:hover { background: rgba(255,255,255,0.04); color: var(--accent-light); padding-left: 3.25rem; }
  .nav__actions { margin: 1.5rem 2rem 0; flex-direction: column; }
  .nav__actions .btn { width: 100%; justify-content: center; }
}

/* ================================================
   HERO
   ================================================ */
.hero { position: relative; min-height: 78vh; display: flex; align-items: center; overflow: hidden; }
.hero--showcase { min-height: 65vh; }
.hero__overlay--light { background: linear-gradient(160deg, rgba(10,15,26,0.25) 0%, rgba(15,23,42,0.1) 50%, rgba(10,15,26,0.2) 100%); }
.hero--sub { min-height: 55vh; }
.hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(160deg, rgba(10,15,26,0.6) 0%, rgba(15,23,42,0.35) 45%, rgba(10,15,26,0.25) 100%); }
.hero--sub .hero__overlay { background: linear-gradient(160deg, rgba(10,15,26,0.93) 0%, rgba(15,23,42,0.82) 100%); }
.hero__content { position: relative; z-index: 2; max-width: 760px; padding: 3rem 0 2.5rem; }
.hero--sub .hero__content { padding: 3rem 0 2rem; }

/* Cinematic hero slideshow */
.hero__slideshow { position: absolute; inset: 0; }
.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: heroSlide 24s infinite;
  transform: scale(1);
}
.hero__slide:nth-child(1) { animation-delay: 0s; }
.hero__slide:nth-child(2) { animation-delay: 8s; }
.hero__slide:nth-child(3) { animation-delay: 16s; }
@keyframes heroSlide {
  0% { opacity: 0; transform: scale(1); }
  4% { opacity: 1; }
  33% { opacity: 1; transform: scale(1.08); }
  37% { opacity: 0; transform: scale(1.08); }
  100% { opacity: 0; transform: scale(1); }
}

/* Animated keyword hero */
.hero__keywords { margin-bottom: 1.5rem; }
.hero__keyword { display: block; font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; color: var(--white); letter-spacing: 0.08em; line-height: 1.1; opacity: 0; transform: translateY(20px); animation: heroWord 2s var(--ease) forwards; }
.hero__keyword:nth-child(1) { animation-delay: 0.8s; }
.hero__keyword:nth-child(2) { animation-delay: 2s; color: var(--accent-light); }
.hero__keyword:nth-child(3) { animation-delay: 3.2s; }
@keyframes heroWord { to { opacity: 1; transform: translateY(0); } }

.hero__eyebrow { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent-light); margin-bottom: 0.75rem; opacity: 0; animation: heroFade 0.8s var(--ease) 0.1s forwards; }
.hero__subtitle { font-size: 0.92rem; line-height: 1.7; color: rgba(255,255,255,0.55); margin-bottom: 1.25rem; max-width: 640px; opacity: 0; animation: heroFade 0.8s var(--ease) 0.2s forwards; font-style: normal; }
.hero__title { color: var(--white); font-weight: 700; margin-bottom: 1.5rem; opacity: 0; animation: heroFade 0.8s var(--ease) 0.35s forwards; line-height: 1.15; letter-spacing: -0.02em; }
.hero__text { font-size: 0.95rem; line-height: 1.75; color: rgba(255,255,255,0.65); margin-bottom: 1.5rem; max-width: 640px; opacity: 0; animation: heroFade 1.4s var(--ease) 5.6s forwards; }
.hero__buttons { display: flex; gap: 1rem; flex-wrap: wrap; opacity: 0; animation: heroFade 1.4s var(--ease) 5.6s forwards; }
.hero--sub .hero__title { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
.hero--sub .hero__eyebrow { animation-delay: 0.1s; }
.hero--sub .hero__title { animation-delay: 0.2s; }
.hero--sub .hero__text { animation-delay: 0.35s; }
.hero--sub .hero__buttons { animation-delay: 0.5s; }
@keyframes heroFade { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

/* Scroll reveal */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ================================================
   PILLAR ROW
   ================================================ */
/* Independent floating pillar cards */
.pillar-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; position: relative; z-index: 5; margin-top: -4rem; }
.pillar { padding: 2.5rem 2rem; background: var(--white); border-radius: 10px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); transition: all 0.4s var(--ease); text-decoration: none; display: block; border: 1px solid rgba(0,0,0,0.04); cursor: pointer; }
.pillar:hover { box-shadow: 0 12px 35px rgba(0,0,0,0.14); transform: translateY(-6px); border-color: rgba(176,124,75,0.15); }
.pillar__number { font-size: 1.75rem; font-weight: 800; color: var(--accent-light); margin-bottom: 1rem; line-height: 1; opacity: 0.6; }
.pillar__title { font-size: 1.2rem; font-weight: 700; color: var(--charcoal); margin-bottom: 0.75rem; }
.pillar__text { font-size: 0.92rem; color: var(--slate-500); margin-bottom: 1.25rem; line-height: 1.7; }
.pillar__link { font-size: 0.82rem; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: 0.4rem; transition: var(--transition); }
.pillar:hover .pillar__link { gap: 0.65rem; }
@media (max-width: 768px) { .pillar-row { grid-template-columns: 1fr; margin-top: -2.5rem; gap: 1.25rem; } }

/* ================================================
   SERVICE CARDS — clean, no tiny images
   ================================================ */
.service-card { background: var(--white); border-radius: 10px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.06); border: 1px solid var(--slate-100); transition: all 0.4s var(--ease); display: flex; flex-direction: column; text-decoration: none; cursor: pointer; }
.service-card:hover { box-shadow: 0 16px 40px rgba(0,0,0,0.15); transform: translateY(-8px); border-color: transparent; }
.service-card__image { height: 200px; overflow: hidden; position: relative; }
.service-card__image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.08) 100%); transition: opacity 0.4s var(--ease); }
.service-card:hover .service-card__image::after { opacity: 0; }
.service-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.service-card:hover .service-card__image img { transform: scale(1.08); }
.service-card__body { padding: 2rem; flex: 1; display: flex; flex-direction: column; }
.service-card__title { font-size: 1.1rem; font-weight: 700; color: var(--charcoal); margin-bottom: 0.75rem; transition: color 0.3s var(--ease); }
.service-card:hover .service-card__title { color: var(--accent-dark); }
.service-card__text { font-size: 0.9rem; line-height: 1.7; color: var(--slate-500); margin-bottom: 1.25rem; flex: 1; }
.service-card__link { font-size: 0.8rem; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: 0.4rem; transition: all 0.3s var(--ease); margin-top: auto; }
.service-card:hover .service-card__link { gap: 0.7rem; color: var(--accent-dark); }

/* Simple list card (no image, for subpages) */
.service-card--simple { border-left: 3px solid transparent; }
.service-card--simple:hover { border-left-color: var(--accent); }
.service-card--simple .service-card__body { padding: 2rem 2rem 2rem 1.75rem; }

/* ================================================
   FULL-WIDTH IMAGE BAND — replaces small side images
   ================================================ */
.image-band { position: relative; min-height: 400px; background-size: cover; background-position: center; background-attachment: fixed; }
.image-band__overlay { position: absolute; inset: 0; background: linear-gradient(160deg, rgba(10,15,26,0.93) 0%, rgba(15,23,42,0.78) 100%); }
.image-band__content { position: relative; z-index: 2; padding: var(--section-pad) 0; }
.image-band h2 { color: var(--white); margin-bottom: 1.25rem; }
.image-band p { color: rgba(255,255,255,0.65); max-width: 700px; }
.image-band .eyebrow { color: var(--accent-light); }
.eyebrow--band { font-size: 0.85rem; letter-spacing: 0.18em; }
.tribunal-band { background: #1a2744; }
.tribunal-band h2, .tribunal-band h3 { color: var(--white); }
.tribunal-band p:not(.eyebrow) { color: rgba(255,255,255,0.65); max-width: 700px; }
.tribunal-band .eyebrow { color: var(--accent-light); }
.image-band .btn { margin-top: 1rem; }

/* ================================================
   STATS
   ================================================ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.stat { text-align: center; padding: 2.5rem 1rem; }
.stat__number { font-size: clamp(2.5rem, 4vw, 3.25rem); font-weight: 800; color: var(--accent-light); line-height: 1; margin-bottom: 0.6rem; letter-spacing: -0.02em; }
.stat__label { font-size: 0.78rem; font-weight: 600; color: var(--slate-400); text-transform: uppercase; letter-spacing: 0.1em; }

/* ================================================
   DETAIL BLOCKS — for page content sections
   ================================================ */
.detail-block { padding: 2.5rem 0; border-bottom: 1px solid var(--slate-100); }
.detail-block:last-child { border-bottom: none; }
.detail-block__title { font-size: 1.2rem; font-weight: 700; color: var(--charcoal); margin-bottom: 1rem; }
.detail-block__text { font-size: 0.95rem; color: var(--slate-600); line-height: 1.8; }
.detail-block__text p { margin-bottom: 0.75em; }

/* Numbered blocks for more visual interest */
.numbered-block { display: flex; gap: 2rem; padding: 2.5rem 0; border-bottom: 1px solid var(--slate-100); }
.numbered-block:last-child { border-bottom: none; }
.numbered-block__num { font-size: 2.5rem; font-weight: 800; color: var(--slate-200); flex-shrink: 0; line-height: 1; min-width: 50px; }
.numbered-block__content { flex: 1; }
.numbered-block__title { font-size: 1.15rem; font-weight: 700; color: var(--charcoal); margin-bottom: 0.85rem; }
.numbered-block__text { font-size: 0.95rem; color: var(--slate-600); line-height: 1.8; }

/* ================================================
   PROTOCOL GRID
   ================================================ */
.protocol-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 3rem; }
.protocol-item { display: flex; align-items: center; gap: 0.85rem; padding: 0.7rem 0; font-size: 0.9rem; color: var(--slate-600); border-bottom: 1px solid var(--slate-100); text-decoration: none; }
.protocol-item::before { content: ''; width: 8px; height: 8px; background: var(--accent); border-radius: 2px; flex-shrink: 0; transform: rotate(45deg); transition: transform 0.2s var(--ease); }
a.protocol-item--link { transition: color 0.2s var(--ease); }
a.protocol-item--link:hover { color: var(--accent); }
a.protocol-item--link:hover::before { transform: rotate(45deg) scale(1.25); }
a.protocol-item--link::after { content: '\2197'; margin-left: auto; font-size: 0.78rem; color: var(--slate-300); transition: color 0.2s var(--ease); flex-shrink: 0; }
a.protocol-item--link:hover::after { color: var(--accent); }
@media (max-width: 640px) { .protocol-grid { grid-template-columns: 1fr; } }

/* ================================================
   TAGS
   ================================================ */
.tag-grid { display: flex; flex-wrap: wrap; gap: 0.65rem; }
.tag { padding: 0.5rem 1.25rem; background: var(--white); border: 1px solid var(--slate-200); border-radius: 100px; font-size: 0.82rem; font-weight: 500; color: var(--slate-500); transition: var(--transition); }
.tag:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-subtle); }
/* Dark variant */
.section--dark .tag { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.1); color: var(--slate-400); }
.section--dark .tag:hover { border-color: var(--accent); color: var(--accent-light); }

/* ================================================
   TRIBUNAL ADVISORY BAR (legacy — subpages)
   ================================================ */
.tribunal-bar { background: var(--slate-50); border-top: 1px solid var(--slate-200); border-bottom: 1px solid var(--slate-200); padding: 3.5rem 0; text-align: center; }
.tribunal-bar__title { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 700; color: var(--charcoal); margin-bottom: 0.75rem; letter-spacing: 0.02em; }
.tribunal-bar__text { font-size: 0.95rem; color: var(--slate-500); max-width: 780px; margin: 0 auto; line-height: 1.8; }

/* ================================================
   TRIBUNAL OVERLAY — Semi-transparent, gradient L→R
   ================================================ */
.tribunal-overlay {
  position: relative;
  margin-top: -6rem;
  z-index: 5;
  padding: 2.5rem 0;
  background: linear-gradient(90deg, rgba(10,15,26,0.82) 0%, rgba(15,23,42,0.55) 55%, rgba(10,15,26,0.15) 100%);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.tribunal-overlay__title {
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.6rem;
  letter-spacing: 0.03em;
}
.tribunal-overlay__text {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.6);
  max-width: 700px;
  line-height: 1.75;
}

/* ================================================
   INVESTIGATE BANNER — Coloured section
   ================================================ */
.investigate-banner {
  padding: clamp(3rem, 5vw, 4.5rem) 0;
  background: var(--charcoal-deep);
  position: relative;
}
.investigate-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100px;
  height: 3px;
  background: var(--accent);
  margin-left: 2rem;
}
.hero__keywords--static { margin-bottom: 1.25rem; }
.hero__keyword--static {
  opacity: 1;
  transform: none;
  animation: none;
  display: inline-block;
  margin-right: 1.5rem;
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
}
.hero__keyword--static:nth-child(2) { color: var(--accent-light); }

/* Pillar row flat variant (not overlapping hero) */
.pillar-row--flat { margin-top: 0; }

/* ================================================
   CTA BANNER
   ================================================ */
.cta-banner { background: var(--slate-800); padding: clamp(4rem, 6vw, 5.5rem) 0; text-align: center; position: relative; overflow: hidden; }
.cta-banner::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 120px; height: 3px; background: var(--accent); }
.cta-banner h2 { color: var(--white); margin-bottom: 1rem; }
.cta-banner p { color: var(--slate-400); max-width: 520px; margin: 0 auto 2.5rem; font-size: 1.05rem; }

/* ================================================
   FORM
   ================================================ */
.form-group { margin-bottom: 1.75rem; }
.form-label { display: block; margin-bottom: 0.5rem; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate-700); }
.form-input, .form-textarea { width: 100%; padding: 0.9rem 1.15rem; font-family: var(--font); font-size: 0.92rem; border: 1px solid var(--slate-200); border-radius: 6px; background: var(--white); color: var(--charcoal); transition: var(--transition); }
.form-input:focus, .form-textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(176,124,75,0.1); }
.form-textarea { min-height: 150px; resize: vertical; }
select.form-input { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23999' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; cursor: pointer; }
.form-section-title { font-size: 1.05rem; font-weight: 600; color: var(--accent); border-bottom: 1px solid var(--slate-200); padding-bottom: 0.75rem; margin: 2.5rem 0 1.5rem; }
.form-section-title:first-of-type { margin-top: 0; }
.form-notice { background: var(--slate-50, #f8f9fa); border-left: 3px solid var(--accent); padding: 1.25rem 1.5rem; font-size: 0.85rem; color: var(--slate-600); line-height: 1.7; margin: 2rem 0; border-radius: 0 4px 4px 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.success-content { text-align: center; max-width: 600px; margin: 0 auto; padding: 4rem 0; }
.success-content h2 { margin-bottom: 1.5rem; }
.success-content p { color: var(--slate-600); font-size: 1.05rem; line-height: 1.75; margin-bottom: 2rem; }

/* ================================================
   FOOTER
   ================================================ */
.footer { background: var(--charcoal-deep); color: rgba(255,255,255,0.5); padding: 5rem 0 0; font-size: 0.9rem; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.25fr; gap: 3rem; }
.footer__heading { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--white); margin-bottom: 1.5rem; }
.footer__brand-text { color: rgba(255,255,255,0.4); font-size: 0.88rem; line-height: 1.7; margin-bottom: 1.5rem; }
.footer__link { display: block; padding: 0.35rem 0; color: rgba(255,255,255,0.45); transition: var(--transition); font-size: 0.88rem; }
.footer__link:hover { color: var(--accent-light); }
.footer__contact-item { display: flex; align-items: flex-start; gap: 0.85rem; margin-bottom: 1.25rem; font-size: 0.88rem; }
.footer__contact-label { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.25); margin-bottom: 0.15rem; }
.footer__contact-item a { color: rgba(255,255,255,0.55); transition: var(--transition); }
.footer__contact-item a:hover { color: var(--accent-light); }
.footer__contact-icon { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; color: var(--accent); }
.footer__contact-icon svg { width: 100%; height: 100%; stroke: var(--accent); fill: none; }
.location-tags { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
.location-tag { font-size: 0.68rem; padding: 0.25rem 0.8rem; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: 100px; color: rgba(255,255,255,0.35); font-weight: 500; letter-spacing: 0.04em; }
.footer__bottom { margin-top: 3.5rem; padding: 1.5rem 0; border-top: 1px solid rgba(255,255,255,0.06); display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; color: rgba(255,255,255,0.3); }
.footer__social { display: flex; gap: 0.75rem; }
.footer__social a { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.footer__social a svg { width: 16px; height: 16px; fill: rgba(255,255,255,0.4); transition: var(--transition); }
.footer__social a:hover { border-color: var(--accent); background: rgba(176,124,75,0.08); }
.footer__social a:hover svg { fill: var(--accent-light); }

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 968px) { .grid-2 { grid-template-columns: 1fr; gap: 2.5rem; } .grid-3 { grid-template-columns: 1fr 1fr; } .grid-4 { grid-template-columns: 1fr 1fr; } .stats { grid-template-columns: 1fr 1fr; } .footer__grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; } .numbered-block { flex-direction: column; gap: 0.75rem; } }
@media (max-width: 640px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .container { padding: 0 1.25rem; }
  .hero__content { padding: 2rem 0 1.5rem; }
  .hero { min-height: auto; padding-top: calc(var(--header-height) + 2rem); padding-bottom: 2rem; }
  .hero__keyword { font-size: clamp(1.75rem, 8vw, 2.5rem); line-height: 1.15; }
  .hero__keywords { margin-bottom: 1rem; }
  .hero__text { font-size: 0.85rem; line-height: 1.65; margin-bottom: 1.25rem; }
  .hero__buttons { flex-direction: column; gap: 0.75rem; }
  .hero__buttons .btn { width: 100%; justify-content: center; }
  .logo__name { font-size: 0.9rem; letter-spacing: 0.08em; }
  .logo__sub { font-size: 0.72rem; letter-spacing: 0.25em; }
  .logo__icon { width: 36px; height: 36px; }
  .header__inner { padding: 0 1.25rem; gap: 1rem; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

@media print { .header, .footer, .cta-banner, .hero__overlay { display: none; } body { color: #000; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: rgba(176,124,75,0.2); }

/* ================================================
   FINESSE — premium micro-details
   ================================================ */

/* Subtle underline hover for nav links */
.nav__link::after {
  content: '';
  position: absolute;
  bottom: 22px;
  left: 1.15rem;
  right: 1.15rem;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
  transform-origin: center;
}
.nav__link:hover::after, .nav__link--active::after { transform: scaleX(1); }

/* Smooth image loading */
img { opacity: 1; transition: opacity 0.3s var(--ease); }
img[loading="lazy"] { opacity: 0; }
img[loading="lazy"].loaded, img:not([loading]) { opacity: 1; }

/* Refined card focus states */
.service-card:focus-within { box-shadow: 0 16px 40px rgba(0,0,0,0.15); transform: translateY(-8px); }

/* Divider utility */
.divider { width: 60px; height: 3px; background: var(--accent); margin: 1.5rem 0; }
.divider--center { margin-left: auto; margin-right: auto; }

/* Parallax hint on image bands */
@media (min-width: 769px) {
  .image-band { background-attachment: fixed; }
}
@media (max-width: 768px) {
  .image-band { background-attachment: scroll; min-height: 350px; }
}

/* Subtle line decoration on sections */
.section--decorated { position: relative; }
.section--decorated::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--accent);
}

/* Smooth page load */
body { animation: pageLoad 0.5s var(--ease); }
@keyframes pageLoad { from { opacity: 0; } to { opacity: 1; } }

/* Enhanced hover for pillar cards */
.pillar { position: relative; overflow: hidden; }
.pillar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
  transform-origin: left;
}
.pillar:hover::after { transform: scaleX(1); }

/* Scroll progress indicator */
.scroll-progress {
  position: fixed;
  top: var(--header-height);
  left: 0;
  height: 2px;
  background: var(--accent);
  z-index: 999;
  transition: width 0.1s linear;
}

/* Better tribunal bar */
.tribunal-bar { position: relative; }
.tribunal-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--accent);
}
.tribunal-bar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--accent);
}

/* ====== CASE LAW REPOSITORY ====== */
.case-law-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.case-law-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--slate-200);
}
.case-law-item:first-child {
  padding-top: 0;
}
.case-law-item__title {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--charcoal);
  text-decoration: none;
  line-height: 1.5;
  margin-bottom: 0.6rem;
  transition: color 0.2s ease;
}
a.case-law-item__title:hover {
  color: var(--accent);
}
a.case-law-item__title::after {
  content: ' \2197';
  font-size: 0.78rem;
  color: var(--slate-300);
  transition: color 0.2s ease;
}
a.case-law-item__title:hover::after {
  color: var(--accent);
}
.case-law-item__summary {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--slate-600);
  margin: 0;
}

/* ====== DETAIL BLOCK LINKS ====== */
.detail-block--link {
  display: block;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}
.detail-block--link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.detail-block--link .detail-block__title {
  color: var(--charcoal);
  transition: color 0.2s ease;
}
.detail-block--link:hover .detail-block__title {
  color: var(--accent);
}
.detail-block__arrow {
  display: inline-block;
  font-size: 1.1rem;
  color: var(--accent);
  margin-top: 0.75rem;
  transition: transform 0.2s ease;
}
.detail-block--link:hover .detail-block__arrow {
  transform: translateX(4px);
}

/* ====== SUBSTACK FEED ====== */
.substack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}
.substack-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  border: 1px solid var(--slate-200);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.substack-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}
.substack-card__image {
  height: 180px;
  background-size: cover;
  background-position: center;
  background-color: var(--slate-100);
}
.substack-card__body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.substack-card__date {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--slate-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}
.substack-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.4;
  margin-bottom: 0.75rem;
}
.substack-card:hover .substack-card__title {
  color: var(--accent);
}
.substack-card__excerpt {
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--slate-500);
  margin: 0 0 1rem;
  flex: 1;
}
.substack-card__read {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: auto;
}
.substack-card__read .arrow {
  transition: transform 0.2s ease;
  display: inline-block;
}
.substack-card:hover .substack-card__read .arrow {
  transform: translateX(3px);
}
.substack-fallback {
  text-align: center;
  padding: 3rem 0;
}
@media (max-width: 640px) {
  .substack-grid {
    grid-template-columns: 1fr;
  }
}

/* ====== PROFILE PAGE ====== */
.profile-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3.5rem;
  align-items: start;
  max-width: 960px;
  margin: 0 auto;
}
.profile-photo {
  position: relative;
}
.profile-photo__img {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  display: block;
}
.profile-monogram {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  overflow: hidden;
}
.profile-monogram svg {
  display: block;
  width: 100%;
  height: auto;
}
.profile-intro {
  padding-top: 0.25rem;
}
.profile-contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--slate-200);
}
.profile-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--slate-500);
  text-decoration: none;
  transition: color 0.2s ease;
}
.profile-contact-link:hover {
  color: var(--accent);
}
@media (max-width: 768px) {
  .profile-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  .profile-photo {
    max-width: 220px;
    margin: 0 auto;
  }
  .profile-contact-row {
    justify-content: center;
  }
}

/* ====== CREDENTIALS ====== */
.credentials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}
.credential-group__title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--accent);
}
.credential-item {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--slate-600);
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--slate-100);
}
@media (max-width: 640px) {
  .credentials-grid {
    grid-template-columns: 1fr;
  }
}

/* ====== SECTOR TAGS ====== */
.sector-tag {
  padding: 1rem 1.25rem;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--charcoal);
  border: 1px solid var(--slate-200);
  border-radius: 6px;
  background: var(--white);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.sector-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ====== JURISDICTION GRID ====== */
.jurisdiction-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.jurisdiction-item {
  padding: 1.5rem;
  border: 1px solid var(--slate-100);
  border-radius: 8px;
  background: var(--slate-50);
}
.jurisdiction-item__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}
.jurisdiction-item__text {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--slate-500);
  margin: 0;
}
@media (max-width: 640px) {
  .jurisdiction-grid {
    grid-template-columns: 1fr;
  }
}
