/* ===================================================================
   FLO WYE LINE — Design tokens
   Navy #1B3358 / Blue #3D98C7 / Paper #FAF8F4 / Ink #14202B
   Amber #E8973D / Steel #8993A1
   Display: Space Grotesk · Body: Inter · Utility: IBM Plex Mono
=================================================================== */

:root{
  --navy: #1B3358;
  --navy-deep: #10203B;
  --blue: #3D98C7;
  --blue-bright: #5AB4E0;
  --paper: #FAF8F4;
  --paper-dim: #F1EEE6;
  --ink: #14202B;
  --ink-soft: #4A5563;
  --amber: #E8973D;
  --steel: #8993A1;
  --steel-light: #C7CDD4;
  --blue-deep: #2C7BA3;
  --line: #DEDAD0;

  --radius: 10px;
  --radius-lg: 18px;
  --shadow-card: 0 4px 10px rgba(20,32,43,.07), 0 16px 34px -14px rgba(20,32,43,.20);
  --shadow-hover: 0 8px 18px rgba(20,32,43,.10), 0 24px 46px -14px rgba(20,32,43,.26);

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --container: 1180px;
}

*, *::before, *::after{ box-sizing: border-box; }

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

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

:focus-visible{
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.mono{ font-family: var(--font-mono); letter-spacing: 0.02em; }

/* ===== Layout helpers ===== */
.section{ padding: 96px 24px; }
.section-inner{ max-width: var(--container); margin: 0 auto; }
.section-alt{ background: var(--paper-dim); }
@media (max-width: 600px){
  .section{ padding: 62px 24px; }
}

.eyebrow{
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 18px;
}
.eyebrow-hero{ color: rgba(250,248,244,.75); }
.eyebrow .tag{
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 2px;
  background: var(--navy);
  color: var(--paper);
  font-size: 11px;
  font-weight: 600;
}
.eyebrow-hero .tag{ background: var(--blue); color: var(--navy-deep); }

.section-title{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.15;
  margin: 0 0 18px;
  max-width: 780px;
  color: var(--navy-deep);
}
.section-sub{
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 0 48px;
}

/* ===== Buttons ===== */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1.5px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn .icon{ width: 18px; height: 18px; flex: none; }
.btn-lg{ padding: 15px 28px; font-size: 16px; }
.btn-primary{ background: #25D366; color: var(--navy-deep); }
.btn-primary:hover{ background: #1FBE59; transform: translateY(-1px); box-shadow: 0 10px 22px -8px rgba(37,211,102,.5); }
.btn:active{ transform: scale(.97); }
.btn-ghost{ background: transparent; color: var(--navy-deep); border-color: var(--line); }
.btn-ghost:hover{ border-color: var(--navy); }
.btn-outline{ background: transparent; color: var(--paper); border-color: rgba(250,248,244,.4); }
.btn-outline:hover{ border-color: var(--paper); background: rgba(250,248,244,.08); }
.btn-outline-light{ background: transparent; color: var(--paper); border-color: rgba(250,248,244,.5); }
.btn-outline-light:hover{ background: rgba(250,248,244,.12); }

/* ===== Top announcement bar ===== */
.topbar{
  background: var(--navy-deep);
  color: rgba(250,248,244,.85);
  font-family: var(--font-mono);
  font-size: 15px;
}
.topbar-inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 9px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.topbar-divider{ color: var(--blue); opacity: .6; }
.topbar-phone{ color: var(--blue-bright); font-weight: 600; display: inline-flex; align-items: center; min-height: 40px; }
.topbar-phone:hover{ text-decoration: underline; }

/* ===== Nav ===== */
.nav{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,248,244,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand-mark{ height: 67px; width: auto; display: block; }
.nav-links{
  display: flex;
  gap: 26px;
  margin-right: auto;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
}
.nav-links a{ position: relative; transition: color .15s ease; }
.nav-links a::after{
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.nav-links a:hover{ color: var(--navy-deep); }
.nav-links a:hover::after{ transform: scaleX(1); }
.nav-cta{ display: flex; gap: 10px; }
.nav-toggle{
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  padding: 6px;
  margin-left: auto;
}
.nav-toggle span{ width: 22px; height: 2px; background: var(--navy-deep); border-radius: 2px; }
.nav-mobile{
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 20px;
  border-top: 1px solid var(--line);
}
.nav-mobile a{
  padding: 10px 0;
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.nav-mobile .btn{ margin-top: 10px; }

@media (max-width: 880px){
  .nav-links, .nav-cta{ display: none; }
  .nav-toggle{ display: flex; }
  .nav-mobile.open{ display: flex; }
  .topbar-inner{ font-size: 13.2px; gap: 6px; }
}


/* ===== Social links ===== */
.social-icon{
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}
.social-icon svg{ width: 21px; height: 21px; fill: currentColor; }
.social-icon-nav{
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy-deep);
}
.social-icon-nav:hover{
  transform: translateY(-2px);
  border-color: var(--navy);
  background: var(--paper);
}
.nav-mobile-social{
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 0;
  font-size: 15px;
  font-weight: 600;
}
.nav-mobile-social svg{ width: 20px; height: 20px; fill: currentColor; }
.footer-socials{ display: flex; gap: 10px; margin-top: 18px; }
.social-icon-footer{
  width: 40px;
  height: 40px;
  border: 1px solid rgba(250,248,244,.22);
  background: rgba(255,255,255,.06);
  color: #fff;
}
.social-icon-footer:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.12);
  border-color: rgba(250,248,244,.5);
}

/* ===== Hero ===== */
.hero{
  position: relative;
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 62%, #234676 100%);
  color: var(--paper);
  overflow: hidden;
  padding: 100px 24px 90px;
}
.hero-canvas{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .55;
}
.hero-inner{
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
}
.hero-title{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(44px, 8vw, 84px);
  line-height: 0.98;
  margin: 0 0 22px;
  letter-spacing: -0.01em;
}
.hero-title-accent{ color: var(--blue-bright); }
.hero-line{ display: inline-block; }
.hero-sub{
  font-size: 19px;
  max-width: 560px;
  color: rgba(250,248,244,.82);
  margin: 0 0 36px;
}
.hero-actions{ display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 56px; }
.hero-meta{
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid rgba(250,248,244,.18);
}
.hero-meta-item{ display: flex; flex-direction: column; gap: 4px; }
.hero-meta-item .mono{ font-size: 15px; color: var(--blue-bright); font-weight: 600; }
.hero-meta-label{ font-size: 13.5px; color: rgba(250,248,244,.6); }

@media (max-width: 600px){
  .hero{ padding: 70px 20px 60px; }
  .hero-actions .btn{ width: 100%; }
}

/* ===== Trust strip ===== */
.trust{ background: var(--navy-deep); border-top: 1px solid rgba(250,248,244,.1); }
.trust-inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 30px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.trust-item{ display: flex; flex-direction: column; gap: 4px; text-align: center; }
.trust-num{ font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--blue-bright); }
.trust-label{ font-size: 12.5px; color: rgba(250,248,244,.6); }
@media (max-width: 700px){
  .trust-inner{ grid-template-columns: repeat(2, 1fr); }
}

/* ===== Services ===== */
.services-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.service-card{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  transition: transform .18s ease, box-shadow .18s ease;
}
.service-card:hover{ transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.service-card h3{
  font-family: var(--font-display);
  font-size: 19px;
  margin: 18px 0 10px;
  color: var(--navy-deep);
}
.service-card p{ font-size: 14.5px; color: var(--ink-soft); margin: 0; }

.service-icon{
  width: 42px; height: 42px;
  border-radius: 8px;
  background: var(--navy);
  position: relative;
}
.service-icon::before{
  content: '';
  position: absolute;
  inset: 0;
  background: var(--blue);
  -webkit-mask-size: 20px;
  mask-size: 20px;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}
.service-icon[data-icon="meter"]{ background: linear-gradient(135deg, var(--navy), var(--blue)); }
.service-icon[data-icon="meter"]::after{ content: '⏻'; position:absolute; inset:0; display:flex; align-items:center; justify-content:center; color:#fff; font-size:18px; }
.service-icon[data-icon="panel"]{ background: linear-gradient(135deg, var(--navy), var(--blue)); }
.service-icon[data-icon="panel"]::after{ content: '▤'; position:absolute; inset:0; display:flex; align-items:center; justify-content:center; color:#fff; font-size:18px; }
.service-icon[data-icon="transformer"]{ background: linear-gradient(135deg, var(--navy), var(--blue)); }
.service-icon[data-icon="transformer"]::after{ content: '⚡'; position:absolute; inset:0; display:flex; align-items:center; justify-content:center; color:#fff; font-size:18px; }
.service-icon[data-icon="disconnect"]{ background: linear-gradient(135deg, var(--navy), var(--blue)); }
.service-icon[data-icon="disconnect"]::after{ content: '⏛'; position:absolute; inset:0; display:flex; align-items:center; justify-content:center; color:#fff; font-size:18px; }
.service-icon[data-icon="conduit"]{ background: linear-gradient(135deg, var(--navy), var(--blue)); }
.service-icon[data-icon="conduit"]::after{ content: '⏚'; position:absolute; inset:0; display:flex; align-items:center; justify-content:center; color:#fff; font-size:18px; }
.service-icon[data-icon="custom"]{ background: linear-gradient(135deg, var(--navy), var(--blue)); }
.service-icon[data-icon="custom"]::after{ content: '✦'; position:absolute; inset:0; display:flex; align-items:center; justify-content:center; color:#fff; font-size:18px; }

@media (max-width: 900px){ .services-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px){ .services-grid{ grid-template-columns: 1fr; } }

/* ===== Before / After slider ===== */
.ba-slider{
  position: relative;
  max-width: 640px;
  aspect-ratio: 3/4;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  cursor: ew-resize;
  user-select: none;
  touch-action: pan-y;
}
.ba-image{ position: absolute; inset: 0; overflow: hidden; }
.ba-image img{ width: 100%; height: 100%; object-fit: cover; }
.ba-after{ clip-path: inset(0 0 0 55%); }
.ba-handle{
  position: absolute;
  top: 0; bottom: 0;
  left: 55%;
  width: 3px;
  background: #fff;
  transform: translateX(-50%);
  box-shadow: 0 0 0 1px rgba(0,0,0,.1);
}
.ba-handle-grip{
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 42px; height: 42px;
  background: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--navy);
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
}
.ba-label{
  position: absolute;
  top: 16px;
  padding: 5px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 3px;
  color: #fff;
}
.ba-label-before{ left: 16px; background: rgba(20,32,43,.65); }
.ba-label-after{ right: 16px; background: var(--blue); }

/* ===== Gallery ===== */
.filter-bar{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.filter-btn{
  background: #fff;
  border: 1px solid var(--line);
  padding: 9px 16px;
  border-radius: 20px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: all .15s ease;
}
.filter-btn:hover{ border-color: var(--blue); color: var(--navy-deep); }
.filter-btn.active{ background: var(--navy-deep); border-color: var(--navy-deep); color: #fff; }

.gallery{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.gallery-item{
  margin: 0;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  background: var(--navy-deep);
  aspect-ratio: 3/4;
  box-shadow: var(--shadow-card);
  transition: box-shadow .2s ease;
}
.gallery-item:hover{ box-shadow: var(--shadow-hover); }
.gallery-item img{
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease, opacity .2s ease;
}
.gallery-item:hover img{ transform: scale(1.06); }
.gallery-item figcaption{
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 12px 12px;
  font-size: 12.5px;
  color: #fff;
  background: linear-gradient(0deg, rgba(16,32,59,.92) 0%, rgba(16,32,59,0) 100%);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease;
}
.gallery-item:hover figcaption{ opacity: 1; transform: translateY(0); }
.gallery-item.hidden{ display: none; }

@media (max-width: 980px){ .gallery{ grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px){
  .gallery{ grid-template-columns: repeat(2, 1fr); }
  .gallery-item figcaption{ opacity: 1; transform: translateY(0); font-size: 13.5px; line-height: 1.35; padding: 10px 8px 8px;}
  .filter-bar{ display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .filter-btn{ width: 100%; }
  .filter-btn:last-child{ grid-column: 1 / -1; }
}

/* ===== Process ===== */
.process-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.process-step{
  position: relative;
  padding-top: 20px;
  border-top: 2px solid var(--navy);
}
.process-num{
  display: block;
  font-size: 13px;
  color: var(--navy-deep);
  font-weight: 600;
  margin-bottom: 14px;
}
.process-step h3{
  font-family: var(--font-display);
  font-size: 18px;
  margin: 0 0 8px;
  color: var(--navy-deep);
}
.process-step p{ font-size: 14.5px; color: var(--ink-soft); margin: 0; }
@media (max-width: 900px){ .process-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .process-grid{ grid-template-columns: 1fr; } }

/* ===== About ===== */
.about-inner{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.about-copy p{ font-size: 16px; color: var(--ink-soft); margin: 0 0 16px; }
.about-badges{ display: flex; gap: 16px; margin-top: 28px; flex-wrap: wrap; }
.about-badge{
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-card);
}
.about-badge .mono{ font-size: 13px; font-weight: 600; color: var(--navy-deep); }
.about-badge span:last-child{ font-size: 12.5px; color: var(--ink-soft); }
.about-visual{ border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-hover); }
.about-visual img{ width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px){
  .about-inner{ grid-template-columns: 1fr; gap: 32px; }
  .about-visual{ order: -1; max-height: 320px; }
}

/* ===== CTA band ===== */
.cta-band{
  background: linear-gradient(120deg, var(--navy-deep), var(--navy));
  color: var(--paper);
  padding: 80px 24px;
  text-align: center;
}
.cta-band-inner{ max-width: 640px; margin: 0 auto; }
.cta-band h2{
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 38px);
  margin: 0 0 14px;
}
.cta-band p{ color: rgba(250,248,244,.75); font-size: 16.5px; margin: 0 0 32px; }
.cta-band-actions{ display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== Contact ===== */
.contact-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.contact-card{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  box-shadow: var(--shadow-card);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.contact-card:hover{ transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--blue); }
.contact-card h3{ font-family: var(--font-display); font-size: 18px; margin: 16px 0 8px; color: var(--navy-deep); }
.contact-value{ font-size: 16px; font-weight: 600; color: var(--ink); margin: 0 0 14px; word-break: break-word; }
.contact-value-email{ font-size: 14px; }
.contact-cta{ font-size: 13.5px; font-weight: 600; color: var(--blue-deep); }
.contact-card-icon{
  width: 44px; height: 44px;
  border-radius: 8px;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px;
}
.contact-card-icon[data-icon="phone"]::before{ content: '📞'; }
.contact-card-icon[data-icon="whatsapp"]::before{ content: '💬'; }
.contact-card-icon[data-icon="whatsapp"]{ background: #25D366; }
.contact-card-icon[data-icon="mail"]::before{ content: '✉️'; }

.contact-footer-note{
  padding-top: 28px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.contact-footer-note p{ font-size: 13.5px; color: var(--ink-soft); margin: 0; font-family: var(--font-mono); }

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

/* ===== Footer ===== */
.footer{ background: var(--navy-deep); color: rgba(250,248,244,.75); padding: 64px 24px 24px; }
.footer-inner{
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(250,248,244,.12);
}
.footer-mark{ height: 34px; margin-bottom: 14px; background: var(--paper); padding: 6px 10px; border-radius: 4px; }
.footer-brand p{ font-size: 13.5px; max-width: 260px; color: rgba(250,248,244,.55); }
.footer-col{ display: flex; flex-direction: column; gap: 10px; }
.footer-col h4{ font-family: var(--font-display); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--blue-bright); margin: 0 0 4px; }
.footer-col a, .footer-col span{ font-size: 14px; color: rgba(250,248,244,.7); }
.footer-col a:hover{ color: #fff; }
.footer-bottom{
  max-width: var(--container);
  margin: 0 auto;
  padding-top: 20px;
  font-size: 12.5px;
  color: rgba(250,248,244,.6);
}
@media (max-width: 800px){
  .footer-inner{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px){
  .footer-inner{ grid-template-columns: 1fr; }
}

/* ===== Floating WhatsApp button ===== */
.wa-float{
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px; height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(37,211,102,.45);
  z-index: 200;
  transition: transform .18s ease, box-shadow .18s ease;
  animation: wa-pulse 2.6s ease-in-out infinite;
}
.wa-float:hover{ transform: scale(1.08); box-shadow: 0 8px 26px rgba(37,211,102,.55); }
@keyframes wa-pulse{
  0%, 100%{ box-shadow: 0 6px 20px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,.35); }
  50%{ box-shadow: 0 6px 20px rgba(37,211,102,.45), 0 0 0 10px rgba(37,211,102,0); }
}

/* ===== Lightbox ===== */
.lightbox{
  position: fixed;
  inset: 0;
  background: rgba(16,32,59,.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 60px 20px;
}
.lightbox.open{ display: flex; }
.lightbox img{
  max-width: 90vw;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.lightbox-caption{
  position: absolute;
  bottom: 28px;
  left: 0; right: 0;
  text-align: center;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 13.5px;
}
.lightbox-close{
  position: absolute;
  top: 20px; right: 24px;
  background: rgba(255,255,255,.1);
  border: none;
  color: #fff;
  width: 40px; height: 40px;
  border-radius: 50%;
  font-size: 18px;
}
.lightbox-close:hover{ background: rgba(255,255,255,.2); }
.lightbox-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.1);
  border: none;
  color: #fff;
  width: 48px; height: 48px;
  border-radius: 50%;
  font-size: 26px;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-nav:hover{ background: rgba(255,255,255,.2); }
.lightbox-prev{ left: 20px; }
.lightbox-next{ right: 20px; }
@media (max-width: 600px){
  .lightbox-nav{ width: 40px; height: 40px; font-size: 20px; }
  .lightbox-prev{ left: 8px; }
  .lightbox-next{ right: 8px; }
}

/* ===== Language switcher ===== */
.language-toggle{
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(250,248,244,.92);
  font: inherit;
  font-weight: 600;
  padding: 2px 4px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  border-radius: 999px;
  transition: opacity .2s ease, background .2s ease;
}
.language-toggle:hover{
  opacity: .92;
  background: rgba(255,255,255,.08);
}
.language-toggle:focus-visible{
  outline: 2px solid var(--blue-bright);
  outline-offset: 3px;
}
.language-flag{
  width: 29px;
  height: 29px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
  line-height: 1;
  border-radius: 50%;
  overflow: hidden;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.25));
}
.language-label{ white-space: nowrap; }

@media (max-width: 560px){
  .topbar-inner{ padding-left: 12px; padding-right: 12px; }
  .topbar-divider{ display: none; }
  .language-toggle{ width: 100%; justify-content: center; margin-top: 1px; }
}
