
/* ═══════════════════════════════════════════════════════════
   BSOCIETY BRASIL | PREMIUM UI/UX REDESIGN
   Focus: readability, visual hierarchy, micro-interactions
   ═══════════════════════════════════════════════════════════ */

/* Google Fonts loaded via <link> in HTML for non-blocking rendering */

:root {
  --bg: #080808;
  --bg-elevated: #0d0d0d;
  --bg-card: #111111;
  --bg-card-hover: #151515;
  --bg-surface: #0f0f0f;
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.12);
  --border-active: rgba(255,255,255,0.20);
  --white: #f0f0ec;
  --white-soft: #dcdcd6;
  --gray-1: #b0b0aa;
  --gray-2: #8a8a82;
  --gray-3: #454540;
  --gray-4: #2a2a26;
  --accent: #c9a84c;
  --accent-hover: #d4b65e;
  --accent-dark: #a88a3a;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --max-w: 1320px;
}

/* ═══ RESET & BASE ═══ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 18px; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--white-soft);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
}

::selection { background: rgba(255,255,255,0.15); color: #fff; }
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gray-3); border-radius: 10px; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 10001;
  padding: 8px 16px;
  background: var(--white);
  color: var(--bg);
  font-size: 14px;
  font-weight: 600;
  border-radius: 0 0 4px 4px;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}

/* Hamburger active state */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Article date styling */
.article-date {
  color: var(--gray-2);
}
.article-date time {
  font-family: var(--font-mono);
}

/* Subtle noise texture */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10000;
  opacity: 0.012;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ═══════════════════════════════════════════════
   SCROLL ANIMATIONS
   ═══════════════════════════════════════════════ */
.reveal {
  opacity: 1;
  transform: translateY(0);
}
.js-loaded .reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.js-loaded .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.40s; }
.reveal-delay-6 { transition-delay: 0.48s; }
.reveal-delay-7 { transition-delay: 0.56s; }
.reveal-delay-8 { transition-delay: 0.64s; }

/* ═══════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 4vw, 64px);
  background: rgba(8,8,8,0.6);
  backdrop-filter: blur(40px) saturate(1.2);
  -webkit-backdrop-filter: blur(40px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: all 0.5s var(--ease-out);
}

.nav.scrolled {
  height: 60px;
  background: rgba(8,8,8,0.92);
  border-bottom-color: var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  transition: opacity 0.3s;
}
.nav-logo:hover { opacity: 0.7; }

.logo-cube svg { width: 28px; height: 28px; opacity: 0.6; }

.logo-text {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--white);
}
.logo-text span { color: var(--white); }

.nav-center {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.5vw, 36px);
  list-style: none;
}

.nav-center > li { position: relative; }

.nav-center > li > a {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--gray-2);
  padding: 6px 0;
  transition: color 0.4s var(--ease-out);
  position: relative;
}

.nav-center > li > a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--white);
  transition: width 0.4s var(--ease-out);
}

.nav-center > li > a:hover,
.nav-center > li > a.active { color: var(--white); }
.nav-center > li > a:hover::after,
.nav-center > li > a.active::after { width: 100%; }

/* Dropdown */
.dropdown { position: relative; }
.dropdown > a {
  display: flex;
  align-items: center;
  gap: 6px;
}
.dropdown > a::before {
  content: '';
  order: 2;
  display: inline-block;
  width: 5px;
  height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-top: -2px;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out);
}
.dropdown:hover > a::before {
  transform: rotate(-135deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 20px);
  left: -24px;
  min-width: 280px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.35s var(--ease-out);
  list-style: none;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--gray-1);
  border-radius: 3px;
  transition: all 0.25s;
}

.dropdown-menu a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.04);
}

.nav-cta-btn {
  padding: 9px 24px;
  border: 1px solid var(--accent-dark);
  border-radius: 3px;
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  transition: all 0.4s var(--ease-out);
  font-family: var(--font-sans);
}

.nav-cta-btn:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  box-shadow: 0 2px 12px rgba(201, 168, 76, 0.2);
}

/* Mobile */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1002;
  padding: 8px;
}
.hamburger span {
  width: 22px; height: 1px;
  background: var(--white);
  transition: 0.3s;
  display: block;
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 1001;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 32px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 16px;
  font-family: var(--font-sans);
  font-weight: 500;
  color: var(--gray-2);
  letter-spacing: 4px;
  text-transform: uppercase;
  transition: color 0.3s;
}
.mobile-menu a:hover { color: var(--white); }

@media(max-width:1024px) {
  .nav { padding: 0 24px; }
  .nav-center, .nav-cta-btn { display: none; }
  .hamburger { display: flex; }
}

/* ═══════════════════════════════════════════════
   HERO SECTIONS
   ═══════════════════════════════════════════════ */
.page-hero {
  min-height: 55vh;
  display: flex;
  align-items: flex-end;
  padding: 180px clamp(24px, 5vw, 80px) 80px;
  position: relative;
  background: linear-gradient(to bottom, rgba(8,8,8,0.78) 0%, rgba(8,8,8,0.92) 100%), url('/img/hero-bg.jpg') center/cover no-repeat;
}

.page-hero.hero-tall {
  min-height: 100vh;
  min-height: 100dvh;
  align-items: center;
  background: linear-gradient(to bottom, rgba(8,8,8,0.7) 0%, rgba(8,8,8,0.85) 100%), url('/img/hero-bg.jpg') center/cover no-repeat;
}

/* Per-page hero backgrounds */
.page-hero.hero-about { background-image: linear-gradient(to bottom, rgba(8,8,8,0.72) 0%, rgba(8,8,8,0.90) 100%), url('/img/hero-about.jpg'); background-size: cover; background-position: center; }
.page-hero.hero-methodology { background-image: linear-gradient(to bottom, rgba(8,8,8,0.70) 0%, rgba(8,8,8,0.88) 100%), url('/img/hero-methodology.jpg'); background-size: cover; background-position: center; }
.page-hero.hero-ethics { background-image: linear-gradient(to bottom, rgba(8,8,8,0.68) 0%, rgba(8,8,8,0.90) 100%), url('/img/hero-ethics.jpg'); background-size: cover; background-position: center; }
.page-hero.hero-services { background-image: linear-gradient(to bottom, rgba(8,8,8,0.72) 0%, rgba(8,8,8,0.90) 100%), url('/img/hero-services.jpg'); background-size: cover; background-position: center; }
.page-hero.hero-blog { background-image: linear-gradient(to bottom, rgba(8,8,8,0.74) 0%, rgba(8,8,8,0.92) 100%), url('/img/hero-blog.jpg'); background-size: cover; background-position: center; }
.page-hero.hero-contact { background-image: linear-gradient(to bottom, rgba(8,8,8,0.70) 0%, rgba(8,8,8,0.88) 100%), url('/img/hero-contact.jpg'); background-size: cover; background-position: center; }
.page-hero.hero-cases { background-image: linear-gradient(to bottom, rgba(8,8,8,0.72) 0%, rgba(8,8,8,0.90) 100%), url('/img/hero-cases.jpg'); background-size: cover; background-position: center; }
.page-hero.hero-careers { background-image: linear-gradient(to bottom, rgba(8,8,8,0.70) 0%, rgba(8,8,8,0.88) 100%), url('/img/hero-careers.jpg'); background-size: cover; background-position: center; }

/* Hexagonal cube shape */
.page-hero.hero-tall::before {
  content: '';
  position: absolute;
  top: 50%; right: 10%;
  transform: translate(0, -50%);
  width: min(600px, 45vw);
  height: min(600px, 45vw);
  background: linear-gradient(145deg, #131313 0%, #0a0a0a 45%, #121212 55%, #080808 100%);
  clip-path: polygon(50% 3%, 97% 28%, 97% 72%, 50% 97%, 3% 72%, 3% 28%);
  opacity: 0.5;
  pointer-events: none;
  animation: cubeFloat 12s ease-in-out infinite;
}

.page-hero.hero-tall::after {
  content: '';
  position: absolute;
  top: 50%; right: calc(10% + 30px);
  transform: translate(0, -50%);
  width: min(480px, 36vw);
  height: min(480px, 36vw);
  background: linear-gradient(165deg, #161616 0%, #0b0b0b 50%, #141414 100%);
  clip-path: polygon(50% 6%, 94% 30%, 94% 70%, 50% 94%, 6% 70%, 6% 30%);
  opacity: 0.3;
  pointer-events: none;
  animation: cubeFloat 12s ease-in-out infinite reverse;
}

@keyframes cubeFloat {
  0%, 100% { transform: translate(0, -50%) scale(1); }
  50% { transform: translate(0, -52%) scale(1.015); }
}

.page-hero .hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(40px, 6vw, 84px);
  font-weight: 400;
  line-height: 1.05;
  max-width: 720px;
  color: var(--white);
  letter-spacing: -0.02em;
  animation: heroIn 1s var(--ease-out) backwards;
}

.page-hero h1 em {
  font-style: italic;
  color: var(--white);
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-hero .hero-sub {
  font-size: clamp(17px, 1.3vw, 20px);
  color: var(--gray-1);
  max-width: 520px;
  margin-top: 28px;
  line-height: 1.85;
  font-weight: 400;
  animation: heroIn 1s var(--ease-out) 0.15s backwards;
}

.page-hero .hero-cta {
  margin-top: 44px;
  display: flex;
  gap: 16px;
  animation: heroIn 1s var(--ease-out) 0.3s backwards;
}

/* ═══════════════════════════════════════════════
   LAYOUT & SECTIONS
   ═══════════════════════════════════════════════ */
.content-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 80px);
}

.section {
  padding: clamp(56px, 6.5vw, 96px) 0;
}

.section-dark {
  background: var(--bg-surface);
}

.divider {
  height: 1px;
  background: var(--border);
  max-width: var(--max-w);
  margin: 0 auto;
}

/* ═══ TYPOGRAPHY SYSTEM ═══ */
.label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gray-2);
  letter-spacing: 3px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  font-weight: 500;
}

.label::before {
  content: '';
  width: 32px; height: 1px;
  background: var(--gray-3);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.5vw, 52px);
  font-weight: 500;
  line-height: 1.12;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  color: var(--white);
}

.section-title em {
  font-style: italic;
  color: var(--gray-1);
}

.section-desc {
  font-size: clamp(17px, 1.2vw, 20px);
  color: var(--gray-1);
  max-width: 580px;
  line-height: 1.85;
}

/* ═══ BUTTONS ═══ */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 36px;
  background: var(--accent);
  color: #0a0a0a;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  border: 1px solid var(--accent);
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
  z-index: 0;
  min-height: 50px;
}

.btn-gold::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-hover);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
  z-index: -1;
}

.btn-gold:hover {
  color: #0a0a0a;
  border-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.25);
}

.btn-gold:hover::before {
  transform: scaleX(1);
}

.btn-gold:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(201, 168, 76, 0.2);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 36px;
  border: 1px solid var(--border-hover);
  border-radius: 3px;
  color: var(--gray-1);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  transition: all 0.4s var(--ease-out);
  min-height: 50px;
  cursor: pointer;
}

.btn-outline:hover {
  border-color: var(--white);
  color: var(--white);
  background: rgba(255,255,255,0.04);
  transform: translateY(-1px);
}

/* ═══ CTA SECTION ═══ */
.cta-section {
  padding: clamp(64px, 7vw, 112px) clamp(24px, 5vw, 80px);
  text-align: center;
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.cta-section h2 {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3vw, 46px);
  font-weight: 400;
  margin-bottom: 0;
  color: var(--white);
  letter-spacing: -0.02em;
}

.cta-section h2 em { font-style: italic; color: var(--gray-1); }

.cta-section p {
  color: var(--gray-2);
  font-size: 17px;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.8;
}

.cta-section .btn-gold {
  margin-top: 8px;
}

/* ═══ TWO COLUMN ═══ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 6vw, 100px);
  align-items: start;
}

/* ═══ STATS ═══ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 48px;
  padding: 64px 0;
}

.stat-icon {
  width: 28px;
  height: 28px;
  margin-bottom: 16px;
  opacity: 0.4;
}

.stat .num {
  font-family: var(--font-serif);
  font-size: clamp(40px, 4vw, 60px);
  color: var(--white);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat .lbl {
  font-size: 12px;
  color: var(--gray-2);
  margin-top: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 500;
  line-height: 1.5;
}

/* ═══ FEATURE CARDS (3-col) ═══ */
.features-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 64px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.feature-card {
  padding: clamp(32px, 3vw, 48px) clamp(24px, 2.5vw, 36px);
  background: var(--bg);
  transition: background 0.5s var(--ease-out);
  position: relative;
}

.feature-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease-out);
}

.feature-card:hover { background: var(--bg-card); }
.feature-card:hover::after { transform: scaleX(1); }

.feature-card h3 {
  font-family: var(--font-serif);
  font-size: clamp(19px, 1.4vw, 23px);
  font-weight: 400;
  margin-bottom: 16px;
  color: var(--white);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.feature-card p {
  font-size: 16px;
  color: var(--gray-2);
  line-height: 1.8;
}

/* ═══ SERVICE BLOCKS ═══ */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
  padding: clamp(56px, 6vw, 96px) 0;
  border-bottom: 1px solid var(--border);
}

.service-block:first-child { border-top: 1px solid var(--border); }
.service-block.reverse { direction: rtl; }
.service-block.reverse > * { direction: ltr; }

.service-text h2 {
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.2vw, 34px);
  font-weight: 400;
  margin-bottom: 24px;
  color: var(--white);
  letter-spacing: -0.01em;
}

.service-text p {
  font-size: 17px;
  color: var(--gray-1);
  line-height: 1.85;
  margin-bottom: 12px;
}

.service-text .links {
  display: flex;
  gap: 24px;
  margin-top: 32px;
}

.service-text .links a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray-2);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
  transition: all 0.3s var(--ease-out);
}

.service-text .links a:hover {
  color: var(--white);
  border-bottom-color: var(--white);
}

.service-img {
  aspect-ratio: 4/3;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: border-color 0.4s, transform 0.6s var(--ease-out);
}

.service-img:hover { border-color: var(--border-hover); }
.service-block:hover .service-img { transform: scale(1.02); }

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7) saturate(0.8);
  transition: filter 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.service-img:hover img {
  filter: brightness(0.85) saturate(0.9);
  transform: scale(1.05);
}

.service-img .placeholder {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--gray-3);
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* ═══ CASE STUDY CARDS ═══ */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  margin-top: 48px;
  border-radius: 4px;
  overflow: hidden;
}

.case-card {
  background: var(--bg-card);
  padding: clamp(32px, 3.5vw, 56px);
  transition: background 0.4s var(--ease-out);
}

.case-card:hover { background: var(--bg-card-hover); }

.case-tag {
  display: inline-block;
  padding: 3px 12px;
  border: 1px solid var(--border-hover);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--gray-2);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
  font-weight: 500;
}

.case-card h3 {
  font-family: var(--font-serif);
  font-size: clamp(20px, 1.6vw, 25px);
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 16px;
  color: var(--white);
  letter-spacing: -0.01em;
}

.case-card p {
  font-size: 16px;
  color: var(--gray-2);
  line-height: 1.8;
}

/* ═══ ETHICS GRID ═══ */
.ethics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  margin-top: 48px;
  border-radius: 4px;
  overflow: hidden;
}

.ethic-card {
  background: var(--bg);
  padding: clamp(28px, 2.5vw, 44px) clamp(20px, 2vw, 32px);
  transition: background 0.4s;
}

.ethic-card:hover { background: var(--bg-card); }

.ethic-card h4 {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 400;
  margin-bottom: 12px;
  color: var(--white);
  line-height: 1.3;
}

.ethic-card p {
  font-size: 16px;
  color: var(--gray-2);
  line-height: 1.8;
}

/* ═══ BOARD GRID ═══ */
.board-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  margin-top: 48px;
  border-radius: 4px;
  overflow: hidden;
}

.board-card {
  background: var(--bg-card);
  padding: clamp(32px, 3vw, 48px) clamp(24px, 2.5vw, 36px);
  transition: background 0.4s;
}

.board-card:hover { background: var(--bg-card-hover); }

.board-card .role {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--gray-3);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-weight: 500;
}

.board-card h4 {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 400;
  margin-bottom: 16px;
  color: var(--white);
}

.board-card p {
  font-size: 15px;
  color: var(--gray-2);
  line-height: 1.8;
}

/* ═══ CONTACT FORM ═══ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 6vw, 100px);
  margin-top: 56px;
}

.contact-form { display: flex; flex-direction: column; gap: 20px; border: none; background: none; padding: 0; margin: 0; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-field { display: flex; flex-direction: column; gap: 8px; }

.form-field label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray-3);
}

.form-field input,
.form-field textarea,
.form-field select {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--white);
  padding: 14px 16px;
  font-family: var(--font-sans);
  font-size: 15px;
  transition: border-color 0.3s, background 0.3s;
  outline: none;
  -webkit-appearance: none;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--border-active);
  background: var(--bg-elevated);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--gray-3);
}

.form-field textarea { resize: vertical; min-height: 130px; }

/* ═══ OFFICES ═══ */
.offices-list { display: flex; flex-direction: column; gap: 16px; }

.office-card {
  padding: clamp(20px, 2vw, 28px);
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: all 0.4s var(--ease-out);
}

.office-card:hover {
  border-color: var(--border-hover);
  background: rgba(255,255,255,0.01);
}

.office-card.highlight {
  border-color: var(--border-active);
  background: rgba(255,255,255,0.02);
}

.office-card h4 {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--white);
}

.office-card p { font-size: 15px; color: var(--gray-2); line-height: 1.6; }

.office-card .phone {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--gray-1);
  transition: color 0.3s;
}

.office-card .phone:hover { color: var(--white); }



/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */
.site-footer {
  padding: 80px clamp(24px, 5vw, 80px) 40px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 40px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer-office h4 {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gray-1);
}

.footer-office p {
  font-size: 13px;
  color: var(--gray-3);
  line-height: 1.6;
  margin-bottom: 8px;
}

.footer-office a.phone {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gray-2);
  transition: color 0.3s;
}

.footer-office a.phone:hover { color: var(--white); }

.footer-bottom {
  max-width: var(--max-w);
  margin: 56px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p { font-size: 13px; color: var(--gray-3); }

.footer-email {
  font-size: 13px;
  color: var(--gray-2);
  transition: color 0.3s;
}
.footer-email:hover { color: var(--white); }

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */
@media(max-width:1024px) {
  .page-hero { padding: 140px 32px 64px; }
  .page-hero.hero-tall::before, .page-hero.hero-tall::after { right: 5%; }
  .two-col { grid-template-columns: 1fr; gap: 48px; }
  .features-3 { grid-template-columns: 1fr; }
  .service-block { grid-template-columns: 1fr; gap: 32px; }
  .service-block.reverse { direction: ltr; }
  .cases-grid { grid-template-columns: 1fr; }
  .ethics-grid { grid-template-columns: repeat(2, 1fr); }
  .board-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .cta-section { padding: 64px 32px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

@media(max-width:600px) {
  .page-hero { padding: 120px 20px 48px; min-height: 50vh; }
  .page-hero.hero-tall { min-height: 90vh; }
  .page-hero.hero-tall::before, .page-hero.hero-tall::after { display: none; }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .ethics-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .site-footer { padding: 48px 20px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn-gold,
  .hero-cta .btn-outline { width: 100%; text-align: center; }
}

/* ═══ FORM SUBMIT BUTTONS ═══ */
.contact-form .btn-gold {
  align-self: flex-start;
  padding: 16px 40px;
}
@media(max-width:600px) {
  .contact-form .btn-gold { align-self: stretch; width: 100%; }
}


/* ═══ SVG ICONS — ENHANCED VISIBILITY ═══ */
.card-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 24px;
  opacity: 0.55;
  transition: opacity 0.5s var(--ease-out), filter 0.5s var(--ease-out), transform 0.5s var(--ease-out);
  filter: drop-shadow(0 0 0 transparent);
}
.feature-card:hover .card-icon {
  opacity: 0.85;
  filter: drop-shadow(0 0 8px rgba(201,168,76,0.3));
  transform: scale(1.08);
}
.ethic-card:hover .card-icon {
  opacity: 0.85;
  filter: drop-shadow(0 0 8px rgba(201,168,76,0.3));
  transform: scale(1.08);
}

/* Stat icons (about page) */
.stat-icon {
  width: 28px;
  height: 28px;
  margin-bottom: 16px;
  opacity: 0.5;
  transition: opacity 0.5s var(--ease-out), filter 0.5s var(--ease-out);
}
.stat:hover .stat-icon {
  opacity: 0.8;
  filter: drop-shadow(0 0 6px rgba(201,168,76,0.35));
}

/* Decorative inline SVGs in two-col sections */
.two-col svg[viewBox="0 0 40 40"],
.two-col svg[viewBox="0 0 32 32"] {
  opacity: 0.3 !important;
  transition: opacity 0.5s var(--ease-out), filter 0.5s var(--ease-out);
}
.two-col:hover svg[viewBox="0 0 40 40"],
.two-col:hover svg[viewBox="0 0 32 32"] {
  opacity: 0.5 !important;
  filter: drop-shadow(0 0 10px rgba(201,168,76,0.2));
}

/* Large SVG illustrations in service-img (methodology page) */
.service-img svg {
  transition: filter 0.6s var(--ease-out);
}
.service-img:hover svg {
  filter: drop-shadow(0 0 20px rgba(201,168,76,0.08)) brightness(1.3);
}

.section-accent {
  display: flex;
  justify-content: center;
  margin-top: 32px;
  opacity: 0.25;
  transition: opacity 0.5s var(--ease-out);
}
.section-accent:hover { opacity: 0.4; }

/* CTA section decorative SVG */
.cta-accent,
.cta-section > svg {
  opacity: 0.2;
  transition: opacity 0.5s var(--ease-out);
}
.cta-section:hover .cta-accent,
.cta-section:hover > svg {
  opacity: 0.35;
}

.col-visual {
  display: flex;
  align-items: flex-start;
  padding-top: 8px;
}
.col-visual svg {
  width: 100%;
  max-width: 280px;
  opacity: 0.25;
  transition: opacity 0.5s var(--ease-out);
}
.col-visual:hover svg { opacity: 0.4; }



/* ═══ SVG ACCENT COLORIZATION ON HOVER ═══ */
/* Card icons get gold tint on hover */
.feature-card:hover .card-icon line,
.feature-card:hover .card-icon circle,
.feature-card:hover .card-icon rect,
.feature-card:hover .card-icon path,
.feature-card:hover .card-icon polygon,
.ethic-card:hover .card-icon line,
.ethic-card:hover .card-icon circle,
.ethic-card:hover .card-icon rect,
.ethic-card:hover .card-icon path,
.ethic-card:hover .card-icon polygon {
  stroke: var(--accent);
  transition: stroke 0.4s var(--ease-out);
}
.feature-card:hover .card-icon circle[fill="#fff"],
.feature-card:hover .card-icon rect[fill="#fff"],
.ethic-card:hover .card-icon circle[fill="#fff"],
.ethic-card:hover .card-icon rect[fill="#fff"] {
  fill: var(--accent);
  transition: fill 0.4s var(--ease-out);
}

/* Stat icons get gold tint on hover */
.stat:hover .stat-icon line,
.stat:hover .stat-icon circle,
.stat:hover .stat-icon rect {
  stroke: var(--accent);
  transition: stroke 0.4s var(--ease-out);
}

/* Decorative two-col SVGs get subtle gold on hover */
.two-col:hover svg[viewBox="0 0 40 40"] line,
.two-col:hover svg[viewBox="0 0 40 40"] circle,
.two-col:hover svg[viewBox="0 0 40 40"] rect,
.two-col:hover svg[viewBox="0 0 40 40"] path,
.two-col:hover svg[viewBox="0 0 32 32"] line,
.two-col:hover svg[viewBox="0 0 32 32"] circle,
.two-col:hover svg[viewBox="0 0 32 32"] path,
.two-col:hover svg[viewBox="0 0 32 32"] polygon {
  stroke: var(--accent);
  transition: stroke 0.5s var(--ease-out);
}
.two-col:hover svg circle[fill="#fff"],
.two-col:hover svg path[fill="#fff"] {
  fill: var(--accent);
  transition: fill 0.5s var(--ease-out);
}

/* Featured card top border stays gold */
.feature-card.featured .card-icon {
  opacity: 0.65;
}

/* ═══ BLOG STYLES ═══ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  margin-top: 48px;
  border-radius: 4px;
  overflow: hidden;
}

.blog-card {
  background: var(--bg-card);
  padding: clamp(32px, 3.5vw, 56px);
  transition: background 0.4s var(--ease-out);
  display: flex;
  flex-direction: column;
}

.blog-card:hover { background: var(--bg-card-hover); }

.blog-card .blog-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--gray-2);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 500;
}

.blog-card h3 {
  font-family: var(--font-serif);
  font-size: clamp(20px, 1.6vw, 25px);
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 14px;
  color: var(--white);
}

.blog-card h3 a { transition: color 0.3s; }
.blog-card h3 a:hover { color: var(--gray-1); }

.blog-card .blog-excerpt {
  font-size: 16px;
  color: var(--gray-2);
  line-height: 1.8;
  flex-grow: 1;
}

.blog-card .blog-read {
  margin-top: 24px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray-2);
  transition: color 0.3s;
}
.blog-card:hover .blog-read { color: var(--white); }

/* Article page */
.article-wrap {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 40px);
}

.article-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gray-2);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 32px;
  display: flex;
  gap: 20px;
}

.article-body h2 {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 400;
  color: var(--white);
  margin: 48px 0 20px;
  line-height: 1.25;
}

.article-body h3 {
  font-family: var(--font-sans);
  font-size: 19px;
  font-weight: 600;
  color: var(--white);
  margin: 36px 0 14px;
}

.article-body p {
  font-size: 18px;
  color: var(--gray-1);
  line-height: 1.9;
  margin-bottom: 20px;
}

.article-body strong {
  color: var(--white);
  font-weight: 600;
}

.article-body ul, .article-body ol {
  margin: 16px 0 24px 24px;
  color: var(--gray-1);
  font-size: 16px;
  line-height: 1.85;
}

.article-body li { margin-bottom: 8px; }

.article-body blockquote {
  border-left: 2px solid var(--gray-3);
  padding: 16px 24px;
  margin: 28px 0;
  color: var(--gray-2);
  font-style: italic;
  font-size: 16px;
  line-height: 1.8;
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray-2);
  margin-bottom: 48px;
  transition: color 0.3s;
}
.article-back:hover { color: var(--white); }

.article-cta {
  margin-top: 64px;
  padding: 48px 40px;
  border: 1px solid var(--border-hover);
  border-radius: 4px;
  text-align: center;
  background: var(--bg-card);
  transition: border-color 0.4s;
}

.article-cta:hover {
  border-color: var(--accent-dark);
}

.article-cta p {
  font-size: 16px;
  color: var(--gray-2);
  margin-bottom: 24px;
  line-height: 1.7;
}

.related-articles {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.related-articles h3 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gray-2);
  margin-bottom: 24px;
}

.related-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.related-list a {
  font-family: var(--font-serif);
  font-size: 19px;
  color: var(--gray-1);
  transition: color 0.3s;
  line-height: 1.35;
}
.related-list a:hover { color: var(--white); }

@media(max-width:768px) {
  .blog-grid { grid-template-columns: 1fr; }
}


/* ═══ ACCENT COLOR HIGHLIGHTS ═══ */
.section-title em {
  color: var(--accent);
}
.page-hero h1 em {
  color: var(--accent);
}
.cta-section h2 em {
  color: var(--accent);
}

/* ═══ HERO STATS BAR ═══ */
.hero-stats {
  display: flex;
  gap: clamp(32px, 4vw, 64px);
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  animation: heroIn 1s var(--ease-out) 0.45s backwards;
}
.hero-stat {
  display: flex;
  flex-direction: column;
}
.hero-stat .stat-num {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3vw, 42px);
  color: var(--white);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
}
.hero-stat .stat-label {
  font-size: 11px;
  color: var(--gray-2);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 500;
  margin-top: 6px;
}
@media(max-width:600px) {
  .hero-stats { flex-direction: column; gap: 20px; }
}

/* ═══ SERVICE STICKY NAV ═══ */
.service-nav {
  position: sticky;
  top: 60px;
  z-index: 100;
  background: rgba(8,8,8,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 clamp(24px, 5vw, 80px);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.service-nav::-webkit-scrollbar { display: none; }
.service-nav-inner {
  display: flex;
  gap: 0;
  max-width: var(--max-w);
  margin: 0 auto;
}
.service-nav a {
  padding: 14px 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray-2);
  white-space: nowrap;
  transition: color 0.3s, box-shadow 0.3s;
  border-bottom: 2px solid transparent;
}
.service-nav a:hover,
.service-nav a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ═══ BLOG FILTER TAGS ═══ */
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.blog-filter-btn {
  padding: 8px 18px;
  border: 1px solid var(--border-hover);
  border-radius: 20px;
  background: transparent;
  color: var(--gray-2);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
}
.blog-filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(201, 168, 76, 0.06);
}
.blog-filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #0a0a0a;
  font-weight: 500;
}

/* ═══ BLOG CARD THUMBNAIL ═══ */
.blog-card-thumb {
  width: 100%;
  height: 160px;
  background: var(--bg-surface);
  border-radius: 3px;
  margin-bottom: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.blog-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.65) saturate(0.7);
  transition: filter 0.5s, transform 0.5s var(--ease-out);
}
.blog-card:hover .blog-card-thumb img {
  filter: brightness(0.8) saturate(0.85);
  transform: scale(1.05);
}

/* ═══ FORM FEEDBACK ═══ */
.form-status {
  padding: 14px 20px;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 500;
  display: none;
}
.form-status.success {
  display: block;
  background: rgba(76, 175, 80, 0.12);
  border: 1px solid rgba(76, 175, 80, 0.3);
  color: #81c784;
}
.form-status.error {
  display: block;
  background: rgba(244, 67, 54, 0.12);
  border: 1px solid rgba(244, 67, 54, 0.3);
  color: #ef5350;
}
.form-status.loading {
  display: block;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--gray-1);
}
.btn-gold.loading {
  opacity: 0.7;
  pointer-events: none;
}
.btn-gold.loading::after {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: btnSpin 0.6s linear infinite;
  margin-left: 8px;
}
@keyframes btnSpin {
  to { transform: rotate(360deg); }
}

/* ═══ COUNTER ANIMATION ═══ */
.counter-animate {
  font-variant-numeric: tabular-nums;
}

/* ═══ FEATURED SERVICE CARD ═══ */
.feature-card.featured {
  background: var(--bg-card);
  border-left: 2px solid var(--accent);
}
.feature-card.featured::after {
  background: var(--accent);
}

/* ═══ NEW FOOTER ═══ */
.footer-redesign {
  padding: 64px clamp(24px, 5vw, 80px) 32px;
  border-top: 1px solid var(--border);
}
.footer-redesign-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(32px, 4vw, 64px);
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer-brand .footer-logo {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-brand p {
  font-size: 14px;
  color: var(--gray-2);
  line-height: 1.7;
  max-width: 280px;
}
.footer-col h5 {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gray-1);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--gray-2);
  padding: 4px 0;
  transition: color 0.3s;
}
.footer-col a:hover { color: var(--accent); }
.footer-col .phone-link {
  font-family: var(--font-mono);
  font-size: 13px;
  margin-top: 8px;
}
.footer-redesign .footer-bottom {
  max-width: var(--max-w);
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-redesign .footer-bottom p { font-size: 13px; color: var(--gray-3); }
.footer-redesign .footer-email {
  font-size: 13px;
  color: var(--gray-2);
  transition: color 0.3s;
}
.footer-redesign .footer-email:hover { color: var(--accent); }

@media(max-width:768px) {
  .footer-redesign-grid { grid-template-columns: 1fr 1fr; }
  .footer-redesign .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
@media(max-width:480px) {
  .footer-redesign-grid { grid-template-columns: 1fr; }
  .service-nav a { padding: 12px 14px; font-size: 10px; }
}

/* ═══ BUTTON FOCUS STATES (Accessibility) ═══ */
.btn-gold:focus-visible,
.btn-outline:focus-visible,
.nav-cta-btn:focus-visible,
.blog-filter-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ═══ SELECTION COLOR ═══ */
::selection { background: rgba(201,168,76,0.25); color: #fff; }
