/* ==========================================================================
   GEO IoT Services — Design System
   Palette: engineering / control-panel light theme
   Type: Space Grotesk (display) + Inter (body) + IBM Plex Mono (data/labels)
   ========================================================================== */

:root {
  /* Core palette */
  --bg: #F7F8F6;
  --bg-panel: #FFFFFF;
  --bg-alt: #EFF3F0;
  --ink: #10201C;
  --ink-soft: #4B5B56;
  --ink-faint: #5C6D67;
  --line: #DCE3DF;
  --line-strong: #C3CEC8;

  --primary: #0B4F4A;
  --primary-dark: #073B37;
  --primary-tint: #E4EEEC;

  --accent-energy: #F2A93B;
  --accent-energy-dark: #C9860E;
  --accent-security: #C4432B;
  --accent-living: #3E8E7E;
  --accent-industrial: #55636B;
  --accent-support: #0B4F4A;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;

  --shadow-sm: 0 1px 2px rgba(16, 32, 28, 0.06);
  --shadow-md: 0 8px 24px rgba(16, 32, 28, 0.08);
  --shadow-lg: 0 20px 60px rgba(16, 32, 28, 0.12);

  --container: 1180px;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Menlo, monospace;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent-energy); outline-offset: 2px; border-radius: 2px;
}

.skip-link {
  position: fixed; top: -60px; left: 12px; z-index: 1000;
  background: var(--primary); color: #fff; padding: 12px 20px;
  border-radius: var(--radius-sm); font-weight: 600; font-size: 0.9rem;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--ink-soft); }

.mono { font-family: var(--font-mono); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark {
  background: var(--primary);
  color: #EAF3F1;
}
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: #C6DEDA; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 3px; height: 13px;
  background: var(--accent-energy);
}
.section-dark .eyebrow { color: var(--accent-energy); }

.lede { font-size: 1.15rem; max-width: 640px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 14px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid var(--accent-energy); outline-offset: 2px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-accent { background: var(--accent-energy); color: #241705; }
.btn-accent:hover { background: var(--accent-energy-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost-light { background: transparent; border-color: rgba(255,255,255,0.35); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* Header / Nav */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247,248,246,0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--ink); }
.brand-mark {
  width: 64px; height: 64px; border-radius: 14px;
  background-image: url('/static/img/logo.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: block;
}
.brand small { display:block; font-family: var(--font-mono); font-weight:400; font-size:0.62rem; letter-spacing:.08em; color: var(--ink-faint); text-transform:uppercase; }
.brand-copy { display: flex; flex-direction: column; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a:not(.btn) { font-size: 0.94rem; font-weight: 500; color: var(--ink-soft); position: relative; padding: 6px 0; }
.nav-links a:not(.btn):hover, .nav-links a.active { color: var(--primary); }
.nav-links a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--accent-energy);
}
.nav-links .btn { flex-shrink: 0; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  /* top/left/right + explicit height (not "inset"/"bottom") because .site-header's
     backdrop-filter creates a new containing block for fixed descendants — a
     bottom:0 offset would resolve against the ~72px-tall header box instead of
     the viewport, collapsing this into a sliver. vh is always viewport-relative
     regardless of containing block, so it isn't affected by that. */
  .nav { padding: 26px 6px; }
  .brand { gap: 16px; font-size: 1.2rem; }
  .brand-copy { row-gap: 4px; }
  .brand-mark { width: 58px; height: 58px; border-radius: 14px; }
  .brand small { display: none; }
  .nav-cta { gap: 18px; }

  .nav-links {
    position: fixed;
    top: 122px;
    left: 18px;
    right: 18px;
    height: auto;
    max-height: calc(100vh - 142px);
    background: var(--bg-panel);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    align-items: stretch;
    padding: 22px;
    gap: 8px;
    transform: translateY(-10px) scale(0.98);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
    overflow-y: auto;
  }
  .nav-links a:not(.btn) {
    width: 100%;
    padding: 18px 16px;
    border-radius: 14px;
    font-size: 1rem;
    color: var(--ink);
  }
  .nav-links a:not(.btn):hover,
  .nav-links a.active {
    color: var(--primary);
    background: var(--primary-tint);
  }
  .nav-links a.active::after { display: none; }
  .nav-links .btn {
    width: 100%;
    margin-top: 12px;
    justify-content: center;
  }
  .nav-links .btn.btn-sm { padding: 14px 18px; font-size: 0.95rem; }
  .nav-links.open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle {
    display: flex;
    width: 58px;
    height: 58px;
    margin-left: 12px;
    position: relative;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 18px;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }
  .nav-toggle span {
    width: 19px;
    margin: 0;
    position: absolute;
    transform-origin: center;
  }
  .nav-toggle span:nth-child(1) { transform: translateY(-6px); }
  .nav-toggle span:nth-child(2) { transform: translateY(0); }
  .nav-toggle span:nth-child(3) { transform: translateY(6px); }
  .nav-toggle.open span:nth-child(1) { transform: rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: rotate(-45deg); }

  .nav-cta .btn-ghost { display:none; }
}

@media (max-width: 480px) {
  .brand { font-size: 1rem; }
  .brand-mark { width: 50px; height: 50px; }
  .nav-toggle { margin-left: 10px; }
  .nav-links { top: 112px; left: 14px; right: 14px; padding: 18px; }
}

/* System status panel (signature hero element) */
.status-panel {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.status-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint);
}
.status-panel-head .count { color: var(--ink-faint); }

/* Corner-bracket frame: survey/plot-mark motif (nods to "GEO" surveying) used
   in place of generic shadow cards for the hero's signature graphic. */
.bracket-frame { position: relative; }
.bracket-frame::before, .bracket-frame::after {
  content: ''; position: absolute; width: 22px; height: 22px;
  border: 2px solid var(--accent-energy); pointer-events: none;
}
.bracket-frame::before { top: -10px; left: -10px; border-right: none; border-bottom: none; }
.bracket-frame::after { bottom: -10px; right: -10px; border-left: none; border-top: none; }

.status-row {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
  transition: background .15s ease;
}
.status-row:last-child { border-bottom: none; }
.status-row:hover { background: var(--bg-alt); }
.status-code { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-faint); width: 56px; flex-shrink:0; }
.status-name { font-weight: 600; font-size: 0.95rem; flex: 1; }
.status-indicator { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* Accent color mapping */
.accent-energy { color: var(--accent-energy-dark); }
.accent-security { color: var(--accent-security); }
.accent-living { color: var(--accent-living); }
.accent-industrial { color: var(--accent-industrial); }
.accent-support { color: var(--primary); }
.bg-energy { background: var(--accent-energy); }
.bg-security { background: var(--accent-security); }
.bg-living { background: var(--accent-living); }
.bg-industrial { background: var(--accent-industrial); }
.bg-support { background: var(--primary); }

/* Hero */
.hero {
  padding: 72px 0 96px;
  background-image: radial-gradient(var(--line-strong) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: -14px -14px;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 44px; } }
.hero-cta-row { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-meta { display:flex; gap: 28px; margin-top: 40px; flex-wrap: wrap; }
.hero-meta-item { font-family: var(--font-mono); font-size:0.78rem; color: var(--ink-faint); }
.hero-meta-item b { display:block; font-family: var(--font-display); font-size:1.4rem; color: var(--ink); font-weight:700; }

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section { padding: 64px 0; }
  .section-tight { padding: 42px 0; }

  .hero { padding: 44px 0 64px; }
  .hero-cta-row { gap: 10px; margin-top: 24px; }
  .hero-cta-row .btn { width: 100%; }
  .hero-meta { gap: 16px; margin-top: 28px; }
  .hero-meta-item { font-size: 0.72rem; }
  .hero-meta-item b { font-size: 1.12rem; }

  .section-head { margin: 0 auto 30px; }
  .section-head.left { margin: 0 0 30px; }

  .card { padding: 20px; }
  .division-card { gap: 10px; }
  .division-card ul { margin-top: 4px; gap: 4px; }
  .division-card ul li { font-size: 0.82rem; gap: 6px; }

  .cta-banner { padding: 28px 22px; gap: 18px; }
  .cta-banner h2 { font-size: 1.5rem; }

  .float-whatsapp { width: 52px; height: 52px; right: 14px; bottom: 14px; }
}

/* Hero visual: real photo (site_settings.hero_image) or a network-diagram
   illustration fallback showing each division as a node off a central hub. */
.hero-visual {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  padding: 20px;
}
.hero-photo { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-md); }
.network-diagram { width: 100%; height: auto; display: block; }
.network-spoke { stroke: var(--line-strong); stroke-width: 1.5; }
.hub-label { font-family: var(--font-mono); font-weight: 700; font-size: 1.4rem; fill: var(--accent-energy); }
.network-node circle { fill: var(--bg-panel); stroke: var(--line); stroke-width: 1.5; }
.network-node svg { color: inherit; }
.node-label { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.04em; text-transform: uppercase; fill: var(--ink-faint); }

/* Grid + cards */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
@media (max-width: 768px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* Flexbox variant: centers a trailing partial row instead of leaving it
   left-aligned with empty column space (grid can't do this on its own
   when the item count doesn't divide evenly, e.g. 7 core values in 4 cols). */
.grid-flex { display: flex; flex-wrap: wrap; justify-content: center; }
.grid-flex.grid-3 > * { flex: 0 1 calc(33.333% - 16px); }
.grid-flex.grid-4 > * { flex: 0 1 calc(25% - 18px); }
@media (max-width: 900px) {
  .grid-flex.grid-3 > *, .grid-flex.grid-4 > * { flex-basis: calc(50% - 12px); }
}
@media (max-width: 768px) {
  .grid-flex.grid-3 > *, .grid-flex.grid-4 > * { flex-basis: 100%; }
}
@media (max-width: 600px) {
  .grid-flex > * { flex-basis: 100%; }
}

.card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }

.division-card { display:flex; flex-direction:column; gap:14px; border-top: 3px solid var(--primary); }
.division-card .icon-badge { width:44px; height:44px; border-radius:10px; display:flex; align-items:center; justify-content:center; }
.division-card .code { font-family: var(--font-mono); font-size:0.72rem; color: var(--ink-faint); letter-spacing:.05em; }
.division-card ul { list-style:none; padding:0; margin:6px 0 0; display:flex; flex-direction:column; gap:6px; }
.division-card ul li { font-size:0.88rem; color: var(--ink-soft); display:flex; align-items:center; gap:8px; }
.division-card ul li::before { content:''; width:5px; height:5px; border-radius:50%; background: var(--line-strong); flex-shrink:0; }
.division-card .card-link { margin-top:auto; font-weight:600; font-size:0.88rem; display:flex; align-items:center; gap:6px; color: var(--primary); }

.icon-badge svg { width: 22px; height: 22px; }

/* Value cards */
.value-card { display:flex; flex-direction:column; gap:10px; }
.value-index { font-family: var(--font-mono); color: var(--ink-faint); font-size:0.8rem; }

/* Segments */
.segment-card { border-left:3px solid var(--accent-energy); }
.segment-examples { display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.tag { font-family: var(--font-mono); font-size:0.72rem; padding:4px 10px; border-radius:999px; background: var(--bg-alt); color: var(--ink-soft); border:1px solid var(--line); }

/* Project cards / gallery */
.project-card { padding:0; overflow:hidden; }
.project-media { aspect-ratio: 4/3; overflow:hidden; background: var(--bg-alt); position:relative; }
.project-media img { width:100%; height:100%; object-fit:cover; transition: transform .35s ease; }
.project-card:hover .project-media img { transform: scale(1.05); }
.project-media .division-chip {
  position:absolute; top:14px; left:14px;
  font-family: var(--font-mono); font-size:0.68rem; text-transform:uppercase; letter-spacing:.05em;
  background: rgba(16,32,28,0.75); color:#fff; padding:5px 11px; border-radius:999px;
}
.project-body { padding: 20px 22px 24px; }
.project-body .loc { font-family: var(--font-mono); font-size:0.75rem; color: var(--ink-faint); margin-bottom:6px; }

.filter-row { display:flex; gap:10px; flex-wrap:wrap; margin-bottom: 40px; }
.filter-chip {
  font-family: var(--font-mono); font-size:0.8rem; padding:8px 16px; border-radius:999px;
  border:1px solid var(--line-strong); color: var(--ink-soft); transition: all .15s ease;
}
.filter-chip:hover, .filter-chip.active { background: var(--primary); border-color: var(--primary); color:#fff; }

/* Testimonials */
.testimonial-card { display:flex; flex-direction:column; gap:16px; }
.testimonial-stars { color: var(--accent-energy-dark); font-size:0.9rem; letter-spacing:2px; }
.testimonial-author { display:flex; align-items:center; gap:12px; margin-top:auto; }
.avatar-fallback {
  width:42px; height:42px; border-radius:50%; background: var(--primary-tint); color: var(--primary);
  display:flex; align-items:center; justify-content:center; font-family: var(--font-display); font-weight:700;
}
.avatar-fallback.img, .testimonial-author img { width:42px; height:42px; border-radius:50%; object-fit:cover; }
.author-name { font-weight:600; font-size:0.92rem; }
.author-role { font-size:0.8rem; color: var(--ink-faint); }

/* Stats strip */
.stats-strip { display:flex; flex-wrap:wrap; gap:0; border:1px solid var(--line); border-radius: var(--radius-md); overflow:hidden; background: var(--bg-panel); }
.stats-strip .stat { flex:1; min-width:160px; padding:26px 24px; border-right:1px solid var(--line); }
.stats-strip .stat:last-child { border-right:none; }
.stat-value { font-family: var(--font-display); font-size:2rem; font-weight:700; color: var(--primary); }
.stat-label { font-family: var(--font-mono); font-size:0.72rem; text-transform:uppercase; letter-spacing:.05em; color: var(--ink-faint); }

/* CTA banner */
.cta-banner {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-lg);
  padding: 56px;
  color: #fff;
  display:flex; align-items:center; justify-content:space-between; gap:30px; flex-wrap:wrap;
  position: relative; overflow:hidden;
}
.cta-banner::after {
  content:''; position:absolute; right:-60px; top:-60px; width:220px; height:220px; border-radius:50%;
  background: radial-gradient(circle, rgba(242,169,59,0.35), transparent 70%);
}
.cta-banner h2 { color:#fff; margin-bottom:8px; }
.cta-banner p { color:#C6DEDA; margin:0; }

/* Forms */
.form-group { margin-bottom: 20px; }
.form-group label { display:block; font-weight:600; font-size:0.88rem; margin-bottom:7px; }
.form-control {
  width:100%; padding:13px 15px; border-radius: var(--radius-sm); border:1px solid var(--line-strong);
  background:#fff; font-family: var(--font-body); font-size:0.95rem; color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-control:focus { outline:none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(11,79,74,0.12); }
.form-row { display:grid; grid-template-columns: 1fr 1fr; gap:16px; }
@media (max-width:600px){ .form-row { grid-template-columns: 1fr; } }
.errorlist { list-style:none; padding:0; margin: 6px 0 0; color: var(--accent-security); font-size:0.82rem; }

.alert { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:16px 20px; border-radius: var(--radius-sm); margin-bottom:24px; font-size:0.92rem; transition: opacity .3s ease, transform .3s ease, margin .3s ease, padding .3s ease; }
.alert-success { background:#E5F4EC; color:#1F6B44; border:1px solid #BFE3CD; }
.alert-close { background:none; border:none; cursor:pointer; font-size:1.3rem; line-height:1; color:inherit; opacity:0.6; padding:0 2px; flex-shrink:0; }
.alert-close:hover { opacity:1; }
.alert.is-dismissed { opacity:0; transform: translateY(-6px); margin:0; padding-top:0; padding-bottom:0; height:0; overflow:hidden; border-width:0; }

/* Footer */
.site-footer { background: var(--ink); color: #C7D6D2; padding: 64px 0 30px; }
.site-footer h4 { color:#fff; font-size:0.95rem; margin-bottom:16px; }
.footer-grid { display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap:40px; }
@media (max-width:800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid a { color:#9FB3AD; font-size:0.9rem; display:block; margin-bottom:10px; }
.footer-grid a:hover { color:#fff; }
.footer-bottom { border-top:1px solid rgba(255,255,255,0.1); margin-top:44px; padding-top:24px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; font-size:0.82rem; color:#8AA09A; }
.social-row { display:flex; gap:12px; margin-top:14px; }
.social-row a { width:34px; height:34px; border-radius:50%; border:1px solid rgba(255,255,255,0.18); display:flex; align-items:center; justify-content:center; }
.social-row a:hover { background: rgba(255,255,255,0.08); }

/* Breadcrumb */
.breadcrumb { font-family: var(--font-mono); font-size:0.78rem; color: var(--ink-faint); margin-bottom:18px; }
.breadcrumb a:hover { color: var(--primary); }

/* Reveal-on-scroll */
.reveal { opacity:0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity:1; transform: translateY(0); }

/* Detail page hero */
.detail-hero { padding: 48px 0 56px; }
.detail-hero-media { border-radius: var(--radius-lg); overflow:hidden; aspect-ratio: 21/9; background: var(--bg-alt); box-shadow: var(--shadow-md); }
.detail-hero-media img { width:100%; height:100%; object-fit:cover; }

/* Gallery grid */
.gallery-grid { display:grid; grid-template-columns: repeat(3,1fr); gap:14px; }
@media (max-width:800px){ .gallery-grid{ grid-template-columns: repeat(2,1fr);} }
.gallery-grid figure { margin:0; border-radius: var(--radius-sm); overflow:hidden; aspect-ratio:4/3; }
.gallery-grid img { width:100%; height:100%; object-fit:cover; }

/* Utility */
.text-center { text-align:center; }
.mt-0{margin-top:0;} .mb-0{margin-bottom:0;}
.flex { display:flex; }
.items-center { align-items:center; }
.gap-8 { gap:8px; } .gap-12{gap:12px;} .gap-16{gap:16px;}
.section-head { max-width: 680px; margin: 0 auto 48px; text-align:center; }
.section-head.left { margin: 0 0 48px; text-align:left; }
.badge-count { font-family: var(--font-mono); font-size:0.72rem; color: var(--ink-faint); }

/* Blog */
.post-card { display:flex; flex-direction:column; padding:0; overflow:hidden; }
.post-card .project-media { aspect-ratio: 16/9; }
.post-body { padding:22px; }
.post-meta { font-family: var(--font-mono); font-size:0.75rem; color: var(--ink-faint); margin-bottom:10px; }
.prose { max-width: 720px; margin: 0 auto; }
.prose p { color: var(--ink); font-size:1.05rem; }
.prose h2 { margin-top:1.4em; }

/* WhatsApp floating button */
.float-whatsapp {
  position: fixed; bottom: 24px; right: 24px; z-index: 200;
  width:56px; height:56px; border-radius:50%;
  background:#25D366; display:flex; align-items:center; justify-content:center;
  box-shadow: var(--shadow-lg);
  transition: transform .15s ease;
}
.float-whatsapp:hover { transform: scale(1.06); }
