/* ============================================
   TAAKORA SHARED STYLESHEET
   Edit colors via /admin/ panel → saved as localStorage override
   Default theme values are also saved in data/theme.json for PHP
   ============================================ */

:root {
  --cream: #F7F2E8;
  --cream-deep: #EEE6D3;
  --ivory: #FAF7F0;
  --ink: #1F1B15;
  --ink-soft: #3D3528;
  --ink-mute: #6B5F4C;
  --gold: #B8963A;
  --gold-bright: #D4B34F;
  --gold-deep: #8F7428;
  --river: #2D5A3D;
  --river-deep: #1F3F2A;
  --terracotta: #B85438;
  --line: rgba(31, 27, 21, 0.12);
  --line-soft: rgba(31, 27, 21, 0.06);
  --on-dark: rgba(247, 242, 232, 0.92);
  --on-dark-mute: rgba(247, 242, 232, 0.75);
  --on-dark-faint: rgba(247, 242, 232, 0.55);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Manrope', sans-serif;
  background: var(--ivory);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

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

/* === NAVIGATION === */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 16px 40px;
  background: rgba(250, 247, 240, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 1.3rem;
  letter-spacing: 0.12em;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 50%;
  transition: transform 0.4s;
}

.nav-logo:hover .nav-logo-img { transform: rotate(15deg); }

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color 0.2s;
  position: relative;
}

.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s;
}

.nav-links a:not(.nav-cta):hover { color: var(--gold-deep); }
.nav-links a:not(.nav-cta):hover::after { width: 100%; }

.nav-links a.active { color: var(--gold-deep); }
.nav-links a.active::after { width: 100%; }

.nav-cta {
  background: var(--ink);
  color: #FFFFFF !important;
  padding: 12px 24px !important;
  border: 1px solid var(--gold);
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em;
  transition: all 0.25s;
  text-transform: uppercase;
}
.nav-cta:hover {
  background: var(--gold-bright) !important;
  color: var(--ink) !important;
  border-color: var(--gold-bright);
}

.nav-cta::after { display: none !important; }

/* === PAGE HEADER (for internal pages) === */
.page-header {
  padding: 140px 40px 80px;
  max-width: 1400px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  gap: 12px;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  text-transform: uppercase;
  margin-bottom: 32px;
}

.breadcrumb a {
  color: var(--ink-mute);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover { color: var(--gold-deep); }
.breadcrumb .separator { color: var(--gold); }

.page-title {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 32px;
}

.page-title em { font-style: italic; color: var(--gold-deep); }

.page-subtitle {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  line-height: 1.4;
  color: var(--ink-soft);
  font-weight: 300;
  max-width: 720px;
}

/* === SECTIONS === */
section {
  padding: 100px 40px;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

.section-header {
  margin-bottom: 60px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: end;
}

.section-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  color: var(--gold-deep);
  text-transform: uppercase;
  margin-bottom: 16px;
  display: block;
}

.section-title {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

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

.section-intro {
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--ink-soft);
  font-weight: 300;
  max-width: 620px;
}

/* === PROSE === */
.prose {
  max-width: 760px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--ink-soft);
}

.prose p { margin-bottom: 24px; }
.prose p strong { color: var(--ink); font-weight: 600; }
.prose h3 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 1.8rem;
  color: var(--ink);
  margin: 48px 0 16px;
  letter-spacing: -0.01em;
}
.prose h4 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 1.3rem;
  color: var(--ink);
  margin: 32px 0 12px;
}
.prose ul { margin: 16px 0 24px 20px; }
.prose li { margin-bottom: 10px; }
.prose a { color: var(--gold-deep); text-decoration: none; border-bottom: 1px solid var(--gold); }
.prose a:hover { color: var(--ink); }

/* === ASSET GRID (listing websites inside a division page) === */
.division-hero {
  padding: 140px 40px 60px;
  max-width: 1400px;
  margin: 0 auto;
}

.division-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--cream);
  border: 1px solid var(--gold);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--gold-deep);
  text-transform: uppercase;
  margin-bottom: 28px;
}

.division-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.division-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 60px 0;
  padding: 40px;
  background: var(--cream);
  border: 1px solid var(--line);
}

.division-stat-num {
  font-family: 'Fraunces', serif;
  font-size: 2.4rem;
  font-weight: 400;
  color: var(--gold-deep);
  display: block;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.division-stat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  text-transform: uppercase;
}

/* Blocks inside division pages - pulled from data */
.blocks-container {
  margin-top: 40px;
}

.block {
  margin-bottom: 80px;
}

.block-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 20px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
  gap: 20px;
}

.block-title {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 2rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.block-title em { color: var(--gold-deep); font-style: italic; }

.block-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--gold-deep);
  text-transform: uppercase;
  padding: 6px 14px;
  border: 1px solid var(--gold);
  background: var(--ivory);
}

.block-description {
  color: var(--ink-soft);
  max-width: 780px;
  line-height: 1.7;
  margin-bottom: 32px;
  font-size: 1rem;
}

.websites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.website-card {
  padding: 24px;
  background: var(--ivory);
  border: 1px solid var(--line);
  transition: all 0.25s;
  position: relative;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.website-card:hover {
  border-color: var(--gold);
  background: var(--cream);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(184, 150, 58, 0.1);
}

.website-card-domain {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.website-card-name {
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  color: var(--ink);
  font-weight: 500;
  margin-top: 2px;
}

.website-card-desc {
  font-size: 0.85rem;
  color: var(--ink-mute);
  line-height: 1.5;
}

.website-card-status {
  margin-top: auto;
  padding-top: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--gold-deep);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}

.website-card-status::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

.website-card-status.development::before { background: var(--ink-mute); }
.website-card-status.development { color: var(--ink-mute); }

.website-card-status.planned::before { background: var(--line); }
.website-card-status.planned { color: var(--ink-mute); }

/* === DOMAIN TICKER === */
.ticker {
  background: var(--ink);
  padding: 20px 0;
  overflow: hidden;
  border-top: 1px solid rgba(184, 150, 58, 0.3);
  border-bottom: 1px solid rgba(184, 150, 58, 0.3);
  position: relative;
}

.ticker::before,
.ticker::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.ticker::before {
  left: 0;
  background: linear-gradient(to right, var(--ink), transparent);
}

.ticker::after {
  right: 0;
  background: linear-gradient(to left, var(--ink), transparent);
}

.ticker-track {
  display: flex;
  animation: tickerSlide 120s linear infinite;
  gap: 60px;
  white-space: nowrap;
  width: max-content;
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-item {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  color: var(--on-dark);
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 60px;
}

.ticker-item::after {
  content: '◆';
  color: var(--gold);
  font-size: 0.7rem;
  opacity: 0.7;
}

.ticker-item:last-child::after { display: none; }

@keyframes tickerSlide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* === FOOTER === */
footer {
  background: var(--ink);
  color: var(--cream);
  padding: 80px 40px 40px;
}

.footer-inner { max-width: 1400px; margin: 0 auto; }

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(184, 150, 58, 0.25);
}

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

.footer-logo-img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
}

.footer-brand-name {
  font-family: 'Fraunces', serif;
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: #FFFFFF;
}

.footer-brand-tagline {
  font-family: 'Fraunces', serif;
  font-style: italic;
  color: var(--on-dark);
  line-height: 1.6;
  max-width: 360px;
  font-size: 0.98rem;
}

.footer-col h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--gold-bright);
  text-transform: uppercase;
  margin-bottom: 20px;
  font-weight: 500;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }

.footer-col a {
  color: var(--on-dark);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s;
}

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

.footer-bottom {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  color: var(--on-dark-faint);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom a {
  color: var(--on-dark-faint);
  text-decoration: none;
  margin: 0 12px;
  transition: color 0.2s;
}

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

/* === ANIMATIONS === */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: slideUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

/* === FORM FEEDBACK === */
.form-feedback {
  margin-top: 20px;
  padding: 16px 20px;
  font-size: 0.92rem;
  line-height: 1.5;
  border-left: 3px solid var(--line);
  background: var(--cream);
  color: var(--ink-soft);
}

.form-feedback.success {
  border-left-color: var(--river);
  background: rgba(45, 90, 61, 0.06);
  color: var(--river-deep);
}

.form-feedback.error {
  border-left-color: #B85438;
  background: rgba(184, 84, 56, 0.06);
  color: #7A3520;
}

.form-feedback a {
  color: inherit;
  text-decoration: underline;
  font-weight: 600;
}

/* === LANGUAGE SWITCHER === */
.lang-switch {
  position: relative;
  display: inline-block;
}
.lang-current {
  background: transparent;
  border: 1px solid var(--line);
  padding: 8px 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
}
.lang-current:hover {
  border-color: var(--gold);
  color: var(--ink);
}
.lang-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: var(--ivory);
  border: 1px solid var(--line);
  min-width: 130px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  z-index: 60;
  box-shadow: 0 8px 24px rgba(31, 27, 21, 0.08);
}
.lang-switch:hover .lang-menu,
.lang-switch:focus-within .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-menu a {
  display: block;
  padding: 10px 14px;
  font-family: 'Manrope', sans-serif;
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-decoration: none;
  transition: all 0.15s;
  border-bottom: 1px solid var(--line-soft);
}
.lang-menu a:last-child { border-bottom: none; }
.lang-menu a:hover {
  background: var(--cream);
  color: var(--ink);
}
.lang-menu a.active {
  color: var(--gold-deep);
  font-weight: 600;
}
.lang-menu a.active::before {
  content: '✓ ';
  color: var(--gold);
}

/* === HAMBURGER BUTTON === */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
  padding: 0;
  transition: border-color 0.2s, background 0.2s;
  margin-left: 12px;
}

.nav-hamburger:hover { border-color: var(--gold); }

.nav-hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}

body.menu-open .nav-hamburger span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
body.menu-open .nav-hamburger span:nth-child(2) {
  opacity: 0;
}
body.menu-open .nav-hamburger span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* === MOBILE MENU OVERLAY === */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--ink);
  z-index: 49;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
  overflow-y: auto;
  padding: 100px 32px 60px;
}

body.menu-open .mobile-menu {
  opacity: 1;
  visibility: visible;
}

body.menu-open { overflow: hidden; }

.mobile-menu-inner {
  max-width: 480px;
  margin: 0 auto;
}

.mobile-menu-section {
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(184, 150, 58, 0.2);
}

.mobile-menu-section:last-of-type { border-bottom: none; }

.mobile-menu-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: var(--gold-bright);
  text-transform: uppercase;
  margin-bottom: 16px;
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 14px 0;
  color: var(--cream);
  text-decoration: none;
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.01em;
  transition: color 0.2s, padding 0.2s;
  opacity: 0;
  transform: translateY(10px);
}

body.menu-open .mobile-menu a {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease 0.1s, transform 0.5s ease 0.1s, color 0.2s;
}

body.menu-open .mobile-menu a:nth-child(2) { transition-delay: 0.15s; }
body.menu-open .mobile-menu a:nth-child(3) { transition-delay: 0.2s; }
body.menu-open .mobile-menu a:nth-child(4) { transition-delay: 0.25s; }
body.menu-open .mobile-menu a:nth-child(5) { transition-delay: 0.3s; }
body.menu-open .mobile-menu a:nth-child(6) { transition-delay: 0.35s; }

.mobile-menu a:hover, .mobile-menu a.active {
  color: var(--gold-bright);
  padding-left: 10px;
}

.mobile-menu a.sub-link {
  font-size: 1rem;
  padding: 10px 0;
  color: rgba(247, 242, 232, 0.75);
  font-family: 'Manrope', sans-serif;
  font-weight: 400;
}

.mobile-menu a.mobile-cta {
  margin-top: 24px;
  padding: 18px 24px;
  background: var(--gold);
  color: var(--ink);
  font-family: 'Manrope', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: center;
  border: 1px solid var(--gold);
}

.mobile-menu a.mobile-cta:hover {
  background: var(--gold-bright);
  color: var(--ink);
  padding-left: 24px;
}

.mobile-menu-contact {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(184, 150, 58, 0.2);
  color: rgba(247, 242, 232, 0.6);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  line-height: 1.8;
  text-align: center;
}

.mobile-menu-contact a {
  display: inline-block;
  padding: 4px 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--gold-bright);
  font-weight: 500;
}

/* === WHATSAPP FLOATING BUTTON === */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  background: #25D366;
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35), 0 2px 6px rgba(0, 0, 0, 0.15);
  z-index: 48;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: waPulse 2.5s ease-in-out infinite;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.5), 0 4px 12px rgba(0, 0, 0, 0.2);
  animation-play-state: paused;
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
}

.whatsapp-tooltip {
  position: absolute;
  right: 72px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--ink);
  color: #FFFFFF;
  padding: 8px 14px;
  font-family: 'Manrope', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  border-radius: 2px;
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -5px;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: var(--ink);
  border-right: none;
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
}

@keyframes waPulse {
  0%, 100% { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35), 0 2px 6px rgba(0, 0, 0, 0.15), 0 0 0 0 rgba(37, 211, 102, 0.5); }
  50% { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35), 0 2px 6px rgba(0, 0, 0, 0.15), 0 0 0 14px rgba(37, 211, 102, 0); }
}

/* === RESPONSIVE === */
@media (max-width: 968px) {
  nav { padding: 12px 20px; }
  .nav-logo { font-size: 1.1rem; gap: 10px; }
  .nav-logo-img { width: 38px; height: 38px; }
  .nav-links { display: none; }
  .lang-switch { display: none; }
  .nav-hamburger { display: flex; }
  .page-header { padding: 110px 24px 50px; }
  .division-hero { padding: 110px 24px 40px; }
  section { padding: 60px 24px; }
  .section-header { grid-template-columns: 1fr; gap: 24px; }
  .division-stats { grid-template-columns: repeat(2, 1fr); padding: 24px; }
  .block-header { flex-direction: column; align-items: flex-start; }
  .websites-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .whatsapp-float { bottom: 16px; right: 16px; width: 52px; height: 52px; }
  .whatsapp-float svg { width: 26px; height: 26px; }
  .whatsapp-tooltip { display: none; }
}

@media (max-width: 520px) {
  .division-stats { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-brand { flex-direction: column; align-items: flex-start; }
}

/* ── Holding Companies Section ─────────────────────────────────── */
.company-card {
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  background: var(--ivory);
  border: 1px solid var(--line);
  text-decoration: none !important;
  color: var(--ink) !important;
  transition: all 0.2s;
  border-top: 3px solid var(--gold);
}
.company-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(184,150,58,0.12);
  text-decoration: none !important;
}
.company-card * {
  text-decoration: none !important;
}
.company-card-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep) !important;
  margin-bottom: 10px;
}
.company-card-name {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--ink) !important;
  margin-bottom: 10px;
  line-height: 1.2;
}
.company-card-desc {
  font-size: 0.88rem;
  color: var(--ink-soft) !important;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
}
.company-card-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--ink-mute) !important;
  word-break: break-all;
  margin-top: auto;
}
.company-card:hover .company-card-link { color: var(--gold-deep) !important; }

/* Metrosolus node in structure diagram — operating company, not a DB division */
.structure-node--metrosolus {
  border-color: var(--gold);
  background: var(--cream);
}
.structure-node--metrosolus .structure-node-name { color: var(--gold-deep); }
.structure-node--metrosolus .structure-node-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
  background: transparent;
  border: none;
  padding: 0;
  margin-top: 8px;
  display: block;
}
