/* ==========================================================================
   NEXGEN - Premium Architecture & Construction Design System
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables & Color Tokens
   -------------------------------------------------------------------------- */
:root {
  --smb-bg: #121212;
  --smb-surface: #1a1a1a;
  --smb-elev: #222222;
  --smb-ink: #f4f4f1;
  --smb-mute: #a1a1aa;
  --smb-brand: #c04b36;
  --smb-brand-hover: #a63d2a;
  --smb-amber: #ff9f1c;
  --smb-border: #2e2e2e;
  --smb-border-light: #3f3f3f;
  --smb-whatsapp: #25d366;
}

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background-color: var(--smb-bg);
  color: var(--smb-ink);
  font-family: 'Manrope', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(192, 75, 54, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 85% 90%, rgba(255, 159, 28, 0.03) 0%, transparent 40%);
  background-attachment: fixed;
}

::selection {
  background-color: var(--smb-brand);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   Hero Responsive Image Card
   -------------------------------------------------------------------------- */
.hero-img-card {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  border: 1px solid var(--smb-border);
  padding: 8px;
  background-color: var(--smb-surface);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transition: transform 500ms ease, box-shadow 500ms ease;
}
.hero-img-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -12px rgba(192, 75, 54, 0.2);
}
.hero-img-fluid {
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 700ms ease;
}
.hero-img-card:hover .hero-img-fluid {
  transform: scale(1.02);
}
@media (max-width: 1023px) {
  .hero-img-card {
    max-width: 420px;
  }
}
@media (max-width: 640px) {
  .hero-img-card {
    max-width: 100%;
  }
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Utility Classes - Typography
   -------------------------------------------------------------------------- */
.font-display { font-family: 'Outfit', sans-serif; }
.font-serif-accent { font-family: 'Cormorant Garamond', serif; }
.font-mono-data { font-family: 'JetBrains Mono', monospace; }

.text-xs { font-size: 12px; }
.text-sm { font-size: 14px; }
.text-base { font-size: 16px; }
.text-lg { font-size: 18px; }
.text-xl { font-size: 20px; }
.text-2xl { font-size: 24px; }
.text-3xl { font-size: 30px; }
.text-4xl { font-size: 36px; }
.text-5xl { font-size: 48px; }
.text-6xl { font-size: 60px; }
.text-7xl { font-size: 72px; }

.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }
.font-medium { font-weight: 500; }
.italic { font-style: italic; }
.uppercase { text-transform: uppercase; }

.tracking-tight { letter-spacing: -0.02em; }
.tracking-widest { letter-spacing: 0.22em; }

.leading-tight { line-height: 1.15; }
.leading-snug { line-height: 1.3; }
.leading-relaxed { line-height: 1.7; }
.leading-none { line-height: 0.95; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.whitespace-pre-line { white-space: pre-line; }

/* --------------------------------------------------------------------------
   Utility Classes - Colors & Backgrounds
   -------------------------------------------------------------------------- */
.text-brand { color: var(--smb-brand); }
.text-ink { color: var(--smb-ink); }
.text-mute { color: var(--smb-mute); }

.bg-brand { background-color: var(--smb-brand); }
.bg-surface { background-color: var(--smb-surface); }
.bg-elev { background-color: var(--smb-elev); }

.border-brand { border-color: var(--smb-brand); }
.border-hair { border: 1px solid var(--smb-border); }
.border-hair-light { border: 1px solid var(--smb-border-light); }

.border { border: 1px solid var(--smb-border); }
.border-t { border-top: 1px solid var(--smb-border); }
.border-b { border-bottom: 1px solid var(--smb-border); }
.border-l { border-left: 1px solid var(--smb-border); }
.border-r { border-right: 1px solid var(--smb-border); }

/* --------------------------------------------------------------------------
   Layout & Spacing
   -------------------------------------------------------------------------- */
.container {
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  width: 100%;
  box-sizing: border-box;
}
@media (min-width: 1024px) {
  .container {
    padding-left: 40px;
    padding-right: 40px;
  }
}
@media (min-width: 1536px) {
  .container {
    padding-left: 60px;
    padding-right: 60px;
  }
}

.pt-16 { padding-top: 64px; }
.hidden { display: none !important; }
.block { display: block; }
.inline-block { display: inline-block; }

.w-full { width: 100%; }
.max-w-md { max-width: 448px; }
.max-w-lg { max-width: 512px; }
.max-w-xl { max-width: 576px; }
.max-w-2xl { max-width: 672px; }
.max-w-3xl { max-width: 768px; }
.mx-auto { margin-inline: auto; }

.relative { position: relative; }
.absolute { position: absolute; }
.overflow-hidden { overflow: hidden; }
.object-cover { object-fit: cover; }
.pointer-events-none { pointer-events: none; }
.shrink-0 { flex-shrink: 0; }
.rounded-full { border-radius: 9999px; }
.cursor-pointer { cursor: pointer; }
.list-none { list-style: none; }

/* Flexbox */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-baseline { align-items: baseline; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }

/* Grid */
.grid { display: grid; }
.place-items-center { place-items: center; }

/* Grid Classes */
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
.grid-5 { grid-template-columns: 1fr; }
.grid-6 { grid-template-columns: repeat(2, 1fr); }
.grid-12 { grid-template-columns: repeat(12, 1fr); }

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .grid-6 { grid-template-columns: repeat(6, 1fr); }
  
  .col-span-4 { grid-column: span 4 / span 4; }
  .col-span-5 { grid-column: span 5 / span 5; }
  .col-span-5 { grid-column: span 5 / span 5; }
  .col-span-6 { grid-column: span 6 / span 6; }
  .col-span-7 { grid-column: span 7 / span 7; }
  .col-span-8 { grid-column: span 8 / span 8; }
  .col-span-12 { grid-column: span 12 / span 12; }
}

@media (min-width: 1280px) {
  .grid-5 { grid-template-columns: repeat(5, 1fr); }
}

.gap-6 { gap: 24px; }
.gap-10 { gap: 40px; }
.gap-12 { gap: 48px; }
.gap-px { gap: 1px; }

/* Padding Utilities */
.py-12 { padding-top: 48px; padding-bottom: 48px; }
.py-16 { padding-top: 64px; padding-bottom: 64px; }
.py-20 { padding-top: 80px; padding-bottom: 80px; }
.py-24 { padding-top: 96px; padding-bottom: 96px; }
.px-6 { padding-left: 24px; padding-right: 24px; }

.p-5 { padding: 20px; }
.p-6 { padding: 24px; }
.p-8 { padding: 32px; }
.p-10 { padding: 40px; }
.p-12 { padding: 48px; }

/* Margin Utilities */
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mt-10 { margin-top: 40px; }
.mt-12 { margin-top: 48px; }
.mt-14 { margin-top: 56px; }
.mt-16 { margin-top: 64px; }

.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }

/* Transitions */
.transition-colors { transition: color 200ms ease, background-color 200ms ease, border-color 200ms ease; }
.transition-transform { transition: transform 200ms ease; }

/* --------------------------------------------------------------------------
   Blueprint Textures
   -------------------------------------------------------------------------- */
.blueprint {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}

.blueprint-tight {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 16px 16px;
}

/* --------------------------------------------------------------------------
   Components - Buttons
   -------------------------------------------------------------------------- */
.hair-btn {
  display: inline-flex;
  gap: 8px;
  padding: 13px 22px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  background-color: var(--smb-brand);
  color: #ffffff;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background-color 200ms ease, transform 200ms ease;
  align-items: center;
  justify-content: center;
}
.hair-btn:hover {
  background-color: var(--smb-brand-hover);
  transform: translateY(-1px);
}
.hair-btn:active {
  transform: translateY(0);
}

.hair-btn-outline {
  display: inline-flex;
  gap: 8px;
  padding: 13px 22px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  background-color: transparent;
  color: inherit;
  border: 1px solid var(--smb-border-light);
  border-radius: 0;
  cursor: pointer;
  transition: border-color 200ms ease, color 200ms ease, transform 200ms ease;
  align-items: center;
  justify-content: center;
}
.hair-btn-outline:hover {
  border-color: var(--smb-brand);
  color: var(--smb-brand);
  transform: translateY(-1px);
}
.hair-btn-outline:active {
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Components - Inputs & Labels
   -------------------------------------------------------------------------- */
.smb-input {
  background-color: transparent;
  color: var(--smb-ink);
  border: none;
  border-bottom: 1.5px solid var(--smb-border-light);
  padding: 11px 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  width: 100%;
  outline: none;
  transition: border-color 200ms ease;
}
.smb-input:focus {
  border-bottom-color: var(--smb-brand);
}
.smb-input::placeholder {
  color: #6c6c73;
}
select.smb-input {
  appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%23a1a1aa" viewBox="0 0 16 16"><path d="M4 6l4 4 4-4H4z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 32px;
}

.smb-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--smb-mute);
  display: block;
}

/* --------------------------------------------------------------------------
   Components - Dividers
   -------------------------------------------------------------------------- */
.divider-hair {
  height: 1px;
  background-color: var(--smb-border);
  border: 0;
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */
@keyframes pulseDot {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
  100% { transform: scale(1); opacity: 1; }
}
.pulse-dot {
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes revealUp {
  from { transform: translateY(18px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.reveal-up {
  animation: revealUp 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.fade-in {
  animation: fadeIn 500ms ease both;
}

/* --------------------------------------------------------------------------
   Site Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 40;
  transition: background-color 300ms ease;
}
.site-header.scrolled {
  background-color: rgba(18, 18, 18, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--smb-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-icon {
  width: 32px;
  height: 32px;
  border: 1px solid var(--smb-brand);
  display: grid;
  place-items: center;
}
.brand-initials {
  font-family: 'JetBrains Mono', monospace;
  color: var(--smb-brand);
  font-size: 11px;
  letter-spacing: 0.2em;
}
.brand-text {
  display: flex;
  flex-direction: column;
}
.brand-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
  line-height: 1;
}
.brand-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.28em;
  color: var(--smb-mute);
  margin-top: 4px;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-grow: 1;
  margin-left: 32px;
}
.desktop-nav a,
.desktop-nav .dropdown-trigger {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--smb-ink);
  transition: color 200ms ease;
  cursor: pointer;
}
.desktop-nav a:hover,
.desktop-nav a.active,
.desktop-nav .dropdown-trigger:hover {
  color: var(--smb-brand);
}
.desktop-nav .nav-tools-link {
  margin-left: auto;
  margin-right: 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--smb-brand);
  border: 1px solid var(--smb-brand);
  padding: 6px 14px;
  background-color: transparent;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
  display: inline-flex;
  align-items: center;
}
.desktop-nav .nav-tools-link:hover {
  background-color: var(--smb-brand);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(192, 75, 54, 0.35);
}

/* Nav Dropdown */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background-color: var(--smb-surface);
  border: 1px solid var(--smb-border);
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
  padding: 8px 0;
  z-index: 100;
}
.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
  animation: fadeIn 200ms ease both;
}
.nav-dropdown-menu a {
  display: flex;
  flex-direction: column;
  padding: 10px 18px;
  font-size: 13px;
  color: var(--smb-ink);
  border-bottom: 1px solid rgba(255,255,255,0.03);
  transition: background-color 200ms ease, color 200ms ease;
}
.nav-dropdown-menu a:last-child {
  border-bottom: none;
}
.nav-dropdown-menu a:hover {
  background-color: var(--smb-elev);
  color: var(--smb-brand);
}
.nav-dropdown-menu a .sub-desc {
  font-size: 11px;
  color: var(--smb-mute);
  font-family: 'JetBrains Mono', monospace;
  margin-top: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}
.header-phone {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--smb-mute);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 200ms ease;
}
.header-phone:hover {
  color: var(--smb-ink);
}

.mobile-toggle {
  background: transparent;
  border: none;
  color: var(--smb-ink);
  font-size: 24px;
  cursor: pointer;
  display: none;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--smb-border);
  background-color: var(--smb-bg);
  padding: 16px 24px;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
}
.mobile-nav.open {
  display: flex;
}
.mobile-nav a {
  padding: 12px 0;
  border-bottom: 1px solid var(--smb-border);
  font-size: 15px;
}

@media (min-width: 1024px) {
  .mobile-nav {
    display: none;
  }
}

@media (max-width: 1023px) {
  .desktop-nav { display: none; }
  .mobile-toggle { display: block; }
}
@media (max-width: 767px) {
  .header-actions { display: none; }
}

/* --------------------------------------------------------------------------
   Site Footer
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: 0;
  border-top: 1px solid var(--smb-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-top: 64px;
  padding-bottom: 64px;
  align-items: flex-start;
}
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-desc {
  color: var(--smb-mute);
  font-size: 14px;
  line-height: 1.7;
  max-width: 320px;
}

.footer-heading {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--smb-mute);
  margin-bottom: 16px;
  display: block;
}

.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 8px;
}
.footer-links a {
  color: var(--smb-mute);
  font-size: 14px;
  transition: color 200ms ease;
}
.footer-links a:hover {
  color: var(--smb-brand);
}

.footer-btn {
  display: block;
  width: 100%;
  text-align: center;
}

.footer-bottom {
  border-top: 1px solid var(--smb-border);
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--smb-mute);
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Floating WhatsApp
   -------------------------------------------------------------------------- */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 40;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--smb-whatsapp);
  display: grid;
  place-items: center;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  font-size: 24px;
  text-decoration: none;
  transition: transform 200ms ease;
  color: #fff;
}
.floating-whatsapp:hover {
  transform: scale(1.1);
}
.pulse-dot-float {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--smb-whatsapp);
  animation: pulseDot 2s ease-in-out infinite;
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.35);
}

/* --------------------------------------------------------------------------
   Bento Grid / Service Cards
   -------------------------------------------------------------------------- */
.bento-grid {
  display: grid;
  gap: 24px;
}
.bento-card {
  border: 1px solid var(--smb-border);
  padding: 32px;
  background-color: var(--smb-bg);
  transition: border-color 250ms ease, background-color 250ms ease, transform 250ms ease, box-shadow 250ms ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  color: inherit;
}
.bento-card:hover {
  background-color: var(--smb-surface);
  border-color: var(--smb-brand);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}
.bento-card:hover .bento-arrow {
  color: var(--smb-brand);
  transform: translateX(4px);
}
.bento-arrow {
  transition: transform 200ms ease, color 200ms ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* --------------------------------------------------------------------------
   Project Cards & Responsive Catalogue Photos
   -------------------------------------------------------------------------- */
.project-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--smb-border);
  overflow: hidden;
  background-color: var(--smb-surface);
  position: relative;
  transition: border-color 250ms ease, transform 250ms ease, box-shadow 250ms ease;
  height: 100%;
}
.project-card:hover {
  border-color: var(--smb-brand);
  transform: none;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}
.project-card img {
  transition: transform 500ms ease;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  display: block;
}
.project-card:hover img {
  transform: scale(1.03);
}
.project-card .overlay {
  padding: 24px;
  background-color: var(--smb-surface);
  border-top: 1px solid var(--smb-border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

/* --------------------------------------------------------------------------
   Selected Projects Homepage Asymmetric Gallery (Stationary Text Layout)
   -------------------------------------------------------------------------- */
.gallery-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--smb-border);
  background-color: var(--smb-surface);
  overflow: hidden;
  position: relative;
  transition: border-color 250ms ease, box-shadow 250ms ease;
  height: 100%;
  transform: none;
}
.gallery-card:hover {
  border-color: var(--smb-brand);
  transform: none;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}
.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 500ms ease;
  transform-origin: center center;
}
.gallery-card:hover img {
  transform: scale(1.03);
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 11, 15, 0.92) 0%, rgba(11, 11, 15, 0.3) 50%, transparent 100%);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  transition: opacity 300ms ease;
  pointer-events: none;
  transform: none;
}
.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

/* Aspect Ratios */
.aspect-4-5 { aspect-ratio: 4 / 5; }
.aspect-4-3 { aspect-ratio: 4 / 3; }
.aspect-16-10 { aspect-ratio: 16 / 10; }
.aspect-16-9 { aspect-ratio: 16 / 9; }
.aspect-21-9 { aspect-ratio: 21 / 9; }

/* --------------------------------------------------------------------------
   Modal / Dialog
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  place-items: center;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 24px 16px;
  overflow-y: auto;
}
.modal-overlay.active {
  display: flex;
}
.modal-content {
  max-width: 600px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  background-color: var(--smb-surface);
  border: 1px solid var(--smb-border);
  padding: 28px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
  margin: auto;
  position: relative;
}
@media (max-width: 640px) {
  .modal-content {
    padding: 20px;
    max-height: 90vh;
  }
}

/* --------------------------------------------------------------------------
   Table & Knowledge Hub Responsive Utilities
   -------------------------------------------------------------------------- */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.smb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.smb-table th, .smb-table td {
  padding: 12px 16px;
  vertical-align: top;
}
.smb-table tr {
  border-bottom: 1px solid var(--smb-border);
}
.smb-table tr:hover {
  background-color: var(--smb-surface);
}

/* --------------------------------------------------------------------------
   Admin Table
   -------------------------------------------------------------------------- */
.admin-table {
  width: 100%;
  text-align: left;
  font-size: 14px;
  border-collapse: collapse;
}
.admin-table th {
  padding: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--smb-mute);
  border-bottom: 1px solid var(--smb-border);
}
.admin-table td {
  padding: 16px;
  vertical-align: middle;
}
.admin-table tr {
  border-bottom: 1px solid var(--smb-border);
}
.admin-table tr:hover {
  background-color: var(--smb-elev);
}

/* --------------------------------------------------------------------------
   KPI Cards
   -------------------------------------------------------------------------- */
.kpi-card {
  padding: 24px;
  background-color: var(--smb-bg);
  border: 1px solid var(--smb-border);
}
.kpi-card.active {
  border-left: 2px solid var(--smb-brand);
}
.kpi-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 36px;
  font-weight: 700;
}
.kpi-value.active {
  color: var(--smb-brand);
}

/* --------------------------------------------------------------------------
   Filter Chips
   -------------------------------------------------------------------------- */
.filter-chip {
  padding: 8px 16px;
  border: 1px solid var(--smb-border);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  background-color: transparent;
  color: var(--smb-mute);
  transition: color 200ms ease, border-color 200ms ease, background-color 200ms ease;
  border-radius: 9999px;
}
.filter-chip:hover {
  color: var(--smb-ink);
  border-color: var(--smb-border-light);
}
.filter-chip.active {
  border-color: var(--smb-brand);
  color: var(--smb-brand);
  background-color: rgba(192, 75, 54, 0.08);
}

/* --------------------------------------------------------------------------
   Moving Trust Marquee Bar (Broadened Padding & Typography)
   -------------------------------------------------------------------------- */
.marquee-bar {
  padding-top: 28px;
  padding-bottom: 28px;
  background-color: var(--smb-surface);
  border-bottom: 1px solid var(--smb-border);
  overflow: hidden;
}
.marquee-container {
  display: flex;
  white-space: nowrap;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--smb-mute);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 64px;
  animation: marqueeScroll 35s linear infinite;
}
.marquee-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   Tabs
   -------------------------------------------------------------------------- */
.tabs-list {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--smb-border);
  gap: 0;
}
.tab-trigger {
  background-color: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 12px 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--smb-mute);
  cursor: pointer;
  transition: color 200ms ease, border-bottom-color 200ms ease;
}
.tab-trigger.active {
  border-bottom-color: var(--smb-brand);
  color: var(--smb-brand);
}
.tab-trigger:hover:not(.active) {
  color: var(--smb-ink);
}
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}

/* --------------------------------------------------------------------------
   Accordion
   -------------------------------------------------------------------------- */
.accordion-item {
  border-bottom: 1px solid var(--smb-border);
}
.accordion-trigger {
  width: 100%;
  background-color: transparent;
  border: none;
  text-align: left;
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  padding: 24px 0;
  cursor: pointer;
  color: var(--smb-ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.accordion-trigger::after {
  content: '+';
  font-size: 24px;
  transition: transform 200ms ease;
  font-weight: 300;
}
.accordion-trigger.open::after {
  transform: rotate(45deg);
}
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms ease;
}
.accordion-content.open {
  max-height: 500px;
}
.accordion-content-inner {
  padding-bottom: 24px;
  color: var(--smb-mute);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Stat Box & Statistics Strip
   -------------------------------------------------------------------------- */
.stat-strip {
  border: 1px solid var(--smb-border);
  background-color: var(--smb-surface);
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .stat-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .stat-strip {
    grid-template-columns: repeat(4, 1fr);
  }
}
.stat-box {
  padding: 36px 24px;
  border-bottom: 1px solid var(--smb-border);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
}
@media (min-width: 1024px) {
  .stat-box {
    border-bottom: none;
    border-right: 1px solid var(--smb-border);
  }
  .stat-box:last-child {
    border-right: none;
  }
}
.stat-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 44px;
  font-weight: 700;
  color: var(--smb-brand);
  line-height: 1;
}
.stat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--smb-mute);
  margin-top: 12px;
  display: block;
}
@media (max-width: 767px) {
  .stat-box { padding: 28px 16px; }
  .stat-value { font-size: 32px; }
}

/* --------------------------------------------------------------------------
   Success State
   -------------------------------------------------------------------------- */
.form-success {
  display: none;
}
.form-success.show {
  display: block;
}

/* --------------------------------------------------------------------------
   Marquee
   -------------------------------------------------------------------------- */
.marquee-container {
  overflow: hidden;
  position: relative;
  width: 100%;
}
.marquee-track {
  display: flex;
  animation: marqueeScroll 30s linear infinite;
  width: max-content;
}
.marquee-track:hover {
  animation-play-state: paused;
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-right: 56px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Responsive Fallbacks
   -------------------------------------------------------------------------- */
@media (max-width: 1023px) {
  .grid-12 > * { grid-column: 1 / -1 !important; }
  .text-7xl { font-size: 48px; }
  .text-6xl { font-size: 40px; }
  .text-5xl { font-size: 32px; }
}

/* ==========================================================================
   EXTENDED UTILITIES — Tailwind-style helpers used across HTML pages
   ========================================================================== */

/* --- Positioning --- */
.fixed { position: fixed; }
.sticky { position: sticky; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.top-4 { top: 16px; }
.top-10 { top: 40px; }
.left-0 { left: 0; }
.right-4 { right: 16px; }
.-bottom-6 { bottom: -24px; }
.-left-12 { left: -48px; }
.-mt-32 { margin-top: -128px; }
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }

/* --- Width & Height --- */
.w-10 { width: 40px; }
.w-16 { width: 64px; }
.w-20 { width: 80px; }
.h-3 { height: 12px; }
.h-4 { height: 16px; }
.h-10 { height: 40px; }
.h-16 { height: 64px; }
.h-20 { height: 80px; }
.h-32 { height: 128px; }
.h-full { height: 100%; }
.h-\[440px\] { height: 440px; }
.h-\[60vh\] { height: 60vh; }
.min-h-screen { min-height: 100vh; }
.aspect-square { aspect-ratio: 1/1; }
.max-w-sm { max-width: 384px; }
.max-w-4xl { max-width: 896px; }
.max-w-\[1400px\] { max-width: 1400px; }
.max-h-\[90vh\] { max-height: 90vh; }

/* --- Spacing (padding) --- */
.p-0 { padding: 0; }
.p-2 { padding: 8px; }
.p-4 { padding: 16px; }
.pt-0 { padding-top: 0; }
.pt-8 { padding-top: 32px; }
.pt-24 { padding-top: 96px; }
.pb-1 { padding-bottom: 4px; }
.pb-2 { padding-bottom: 8px; }
.pb-6 { padding-bottom: 24px; }
.pb-12 { padding-bottom: 48px; }
.px-2 { padding-left: 8px; padding-right: 8px; }
.px-3 { padding-left: 12px; padding-right: 12px; }
.px-4 { padding-left: 16px; padding-right: 16px; }
.py-0\.5 { padding-top: 2px; padding-bottom: 2px; }
.py-4 { padding-top: 16px; padding-bottom: 16px; }
.py-6 { padding-top: 24px; padding-bottom: 24px; }
.py-8 { padding-top: 32px; padding-bottom: 32px; }
.py-32 { padding-top: 128px; padding-bottom: 128px; }
.pl-8 { padding-left: 32px; }

/* --- Spacing (margin) --- */
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-6 { margin-bottom: 24px; }
.mb-10 { margin-bottom: 40px; }
.mb-12 { margin-bottom: 48px; }
.mb-16 { margin-bottom: 64px; }
.mb-24 { margin-bottom: 96px; }
.ml-1 { margin-left: 4px; }
.ml-2 { margin-left: 8px; }
.mt-auto { margin-top: auto; }

/* --- Gap --- */
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-5 { gap: 20px; }
.gap-8 { gap: 32px; }
.gap-16 { gap: 64px; }
.gap-x-8 { column-gap: 32px; }
.gap-y-6 { row-gap: 24px; }

/* --- Flex extras --- */
.flex-1 { flex: 1 1 0%; }
.flex-grow { flex-grow: 1; }

/* --- Grid extras --- */
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.col-span-full { grid-column: 1 / -1; }

/* --- Opacity --- */
.opacity-10 { opacity: 0.1; }
.opacity-20 { opacity: 0.2; }
.opacity-40 { opacity: 0.4; }
.opacity-50 { opacity: 0.5; }

/* --- Border extras --- */
.border-y { border-top: 1px solid var(--smb-border); border-bottom: 1px solid var(--smb-border); }
.border-dashed { border-style: dashed; }
.border-l-4 { border-left-width: 4px; }
.border-l-brand { border-left-color: var(--smb-brand); }
.border-white\/20 { border-color: rgba(255,255,255,0.2); }
.border-brand\/30 { border-color: rgba(192,75,54,0.3); }
.border-border { border-color: var(--smb-border); }

/* --- Background extras --- */
.bg-transparent { background-color: transparent; }
.bg-black\/50 { background-color: rgba(0,0,0,0.5); }
.bg-black\/80 { background-color: rgba(0,0,0,0.8); }
.bg-brand\/5 { background-color: rgba(192,75,54,0.05); }
.bg-brand\/10 { background-color: rgba(192,75,54,0.1); }
.bg-border { background-color: var(--smb-border); }
.bg-\[#0a0a0a\] { background-color: #0a0a0a; }
.bg-background { background-color: var(--smb-bg); }

/* --- Gradient (CSS approach) --- */
.bg-gradient-to-t { background-image: linear-gradient(to top, var(--grad-from, rgba(0,0,0,0.85)), var(--grad-via, rgba(0,0,0,0.2)), var(--grad-to, transparent)); }
.from-background { --grad-from: var(--smb-bg); }
.from-black\/80 { --grad-from: rgba(0,0,0,0.8); }
.via-background\/20 { --grad-via: rgba(18,18,18,0.2); }
.via-black\/20 { --grad-via: rgba(0,0,0,0.2); }
.to-transparent { --grad-to: transparent; }

/* --- Text extras --- */
.text-white { color: #ffffff; }
.text-white\/80 { color: rgba(255,255,255,0.8); }
.capitalize { text-transform: capitalize; }
.text-\[10px\] { font-size: 10px; }
.whitespace-nowrap { white-space: nowrap; }
.line-clamp-3 { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }

/* --- Transform & Filter --- */
.grayscale { filter: grayscale(100%); }
.grayscale-50 { filter: grayscale(50%); }
.rotate-2 { transform: rotate(2deg); }

/* --- Transitions --- */
.transition { transition: all 200ms ease; }
.duration-500 { transition-duration: 500ms; }
.duration-700 { transition-duration: 700ms; }

/* --- Backdrop --- */
.backdrop-blur { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.backdrop-blur-sm { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }

/* --- Overflow --- */
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }
.resize-none { resize: none; }

/* --- Shadows --- */
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); }

/* --- Group hover (parent + child) --- */
.group { position: relative; }
.group:hover .group-hover\:text-brand { color: var(--smb-brand); }
.group:hover .group-hover\:grayscale-0 { filter: grayscale(0%); }
.group:hover .group-hover\:scale-105 { transform: scale(1.05); }
.group:hover .group-hover\:border-brand { border-color: var(--smb-brand); }
.group:hover .group-hover\:translate-x-1 { transform: translateX(4px); }

/* --- Hover interactive states --- */
.hover\:bg-elev:hover { background-color: var(--smb-elev); }
.hover\:bg-surface:hover { background-color: var(--smb-surface); }
.hover\:text-brand:hover { color: var(--smb-brand); }
.hover\:text-ink:hover { color: var(--smb-ink); }
.hover\:grayscale-0:hover { filter: grayscale(0%); }

/* --- Admin specifics --- */
.status-select {
  background: var(--smb-elev);
  color: var(--smb-ink);
  border: 1px solid var(--smb-border);
  padding: 6px 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2'%3e%3cpath d='M6 9l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 14px;
  padding-right: 28px;
}

.view-btn {
  background: transparent;
  border: 1px solid var(--smb-border-light);
  color: var(--smb-mute);
  padding: 6px 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 200ms ease;
}
.view-btn:hover {
  border-color: var(--smb-brand);
  color: var(--smb-brand);
}

/* --- Icon helper --- */
.icon { display: inline-flex; align-items: center; flex-shrink: 0; }

/* --- Responsive variants --- */
@media (min-width: 640px) {
  .sm\:h-\[420px\] { height: 420px; }
  .sm\:inline-block { display: inline-block; }
  .sm\:p-10 { padding: 40px; }
  .sm\:px-10 { padding-left: 40px; padding-right: 40px; }
  .sm\:text-5xl { font-size: 48px; }
}

@media (min-width: 768px) {
  .md\:flex-row { flex-direction: row; }
  .md\:grid-2 { grid-template-columns: repeat(2, 1fr); }
  .md\:grid-3 { grid-template-columns: repeat(3, 1fr); }
  .md\:grid-cols-5 { grid-template-columns: repeat(5, 1fr); }
  .md\:border-r { border-right: 1px solid var(--smb-border); }
  .md\:border-b-0 { border-bottom: 0; }
  .md\:w-1\/3 { width: 33.333%; }
  .md\:w-2\/3 { width: 66.666%; }
  .md\:h-\[80vh\] { height: 80vh; }
  .md\:p-12 { padding: 48px; }
  .md\:text-6xl { font-size: 60px; }
}

@media (min-width: 1024px) {
  .lg\:block { display: block; }
  .lg\:col-span-5 { grid-column: span 5; }
  .lg\:col-span-7 { grid-column: span 7; }
  .lg\:grid-3 { grid-template-columns: repeat(3, 1fr); }
  .lg\:grid-6 { grid-template-columns: repeat(6, 1fr); }
}

@media (min-width: 1280px) {
  .xl\:grid-5 { grid-template-columns: repeat(5, 1fr); }
}
