/* =========================================================
   PT Cahaya Sumber Lancar — Company Profile
   Mobile-first, breakpoints: 640 (sm), 1024 (lg), 1280 (xl)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Manrope:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Brand */
  --navy:        #0B2336;
  --navy-700:    #143047;
  --navy-500:    #2A4961;
  --red:         #C8362F;
  --red-dark:    #9F2924;
  --teal:        #2E8B7F;
  --teal-dark:   #226B62;

  /* Neutrals (subtly warm) */
  --paper:       #F5F3EF;
  --paper-2:     #ECE8E0;
  --line:        #DCD6CC;
  --ink:         #161616;
  --ink-2:       #3B3B3B;
  --muted:       #6E6A63;

  /* Type */
  --display: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --sans:    "Manrope", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Layout */
  --container: 1240px;
  --gutter: 20px;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(11,35,54,.06), 0 8px 24px -8px rgba(11,35,54,.12);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  text-wrap: pretty;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; letter-spacing: -0.01em; line-height: 1.1; margin: 0; color: var(--navy); }
h1 { font-size: clamp(2.2rem, 6vw, 4.4rem); letter-spacing: -0.025em; font-weight: 500; }
h2 { font-size: clamp(1.7rem, 4vw, 2.8rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.55rem); font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
p  { margin: 0 0 1em; color: var(--ink-2); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.55; color: var(--ink-2); }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: currentColor;
  display: inline-block;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.section { padding: 72px 0; }
@media (min-width: 1024px) { .section { padding: 120px 0; } }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245,243,239,0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  color: var(--navy);
}
.brand img { width: 38px; height: 38px; object-fit: contain; }
.brand-text {
  display: flex; flex-direction: column; line-height: 1;
}
.brand-text .name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: var(--navy);
}
.brand-text .tag {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}
.brand-text .brand-tagline {
  font-family: var(--display);
  font-style: italic;
  font-weight: 600;
  font-size: 0.66rem;
  letter-spacing: 0.01em;
  color: var(--red);
  margin-top: 4px;
}
.nav-links { display: none; gap: 4px; align-items: center; }
.nav-links a {
  font-size: 0.92rem;
  padding: 10px 14px;
  color: var(--ink);
  border-radius: var(--radius);
  font-weight: 500;
  position: relative;
  transition: color .2s;
}
.nav-links a:hover { color: var(--red); }
.nav-links a.is-active { color: var(--navy); }
.nav-links a.is-active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 2px; background: var(--red);
}
.nav .nav-cta { display: none; }

.nav .menu-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: transparent; border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--navy);
}
.menu-btn span {
  position: relative; width: 18px; height: 2px; background: currentColor; display: block;
}
.menu-btn span::before, .menu-btn span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor;
}
.menu-btn span::before { top: -6px; }
.menu-btn span::after  { top: 6px; }

/* Mobile drawer */
.mobile-menu {
  position: fixed; inset: 68px 0 0 0; z-index: 49;
  background: var(--paper);
  padding: 24px var(--gutter) 40px;
  display: none;
  border-top: 1px solid var(--line);
}
.mobile-menu.is-open { display: block; }
.mobile-menu a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 4px; border-bottom: 1px solid var(--line);
  font-family: var(--display); font-size: 1.4rem; color: var(--navy);
}
.mobile-menu a::after {
  content: "→"; font-family: var(--mono); color: var(--muted); font-size: 1rem;
}
.mobile-menu a.is-active { color: var(--red); }
.mobile-menu .m-cta { margin-top: 24px; }

@media (min-width: 1024px) {
  .nav-inner { height: 84px; }
  .nav-links { display: inline-flex; }
  .nav .nav-cta { display: inline-flex; }
  .nav .menu-btn { display: none; }
  .brand img { width: 44px; height: 44px; }
  .brand-text .name { font-size: 1rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  font-family: var(--sans); font-weight: 600; font-size: 0.92rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: all .2s ease;
  white-space: nowrap;
}
.btn .arrow { font-family: var(--mono); transition: transform .2s; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--red); color: #fff; border-color: var(--red); }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn-dark { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-dark:hover { background: var(--navy-700); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost-light:hover { background: #fff; color: var(--navy); border-color: #fff; }

/* ---------- Hero (Home) ---------- */
.hero {
  position: relative;
  background: var(--navy);
  color: #fff;
  overflow: hidden;
  padding: 72px 0 60px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,35,54,0.65) 0%, rgba(11,35,54,0.85) 100%),
    url("assets/buhler-750tpd.jpg") center/cover no-repeat;
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 18ch; }
.hero h1 em { font-style: normal; color: var(--red); font-weight: 500; }
.hero .lead { color: rgba(255,255,255,0.78); max-width: 56ch; margin-top: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-meta {
  margin-top: 56px;
  display: grid; gap: 28px;
  grid-template-columns: 1fr;
  border-top: 1px solid rgba(255,255,255,.18);
  padding-top: 32px;
}
.hero-meta .item .num {
  font-family: var(--display); font-size: clamp(2rem, 5vw, 3rem); color: #fff; font-weight: 500; letter-spacing: -0.02em;
}
.hero-meta .item .num sup { font-size: 0.5em; color: var(--red); font-family: var(--mono); margin-left: 4px; vertical-align: super; }
.hero-meta .item .label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-top: 8px; }

@media (min-width: 640px) {
  .hero { padding: 110px 0 90px; }
  .hero-meta { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .hero { padding: 160px 0 130px; }
  .hero-meta { grid-template-columns: repeat(4, 1fr); margin-top: 88px; }
}

/* ---------- Page Header (interior pages) ---------- */
.page-head {
  background: var(--navy);
  color: #fff;
  padding: 100px 0 56px;
  position: relative;
  overflow: hidden;
}
.page-head::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, var(--red), transparent 40%);
}
.page-head .crumbs {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(255,255,255,.55);
  margin-bottom: 18px;
}
.page-head .crumbs span { color: var(--red); }
.page-head h1 { color: #fff; max-width: 18ch; }
.page-head .lead { color: rgba(255,255,255,.78); max-width: 60ch; margin-top: 16px; }
@media (min-width: 1024px) {
  .page-head { padding: 140px 0 90px; }
}

/* ---------- Generic section header ---------- */
.section-head { margin-bottom: 48px; }
.section-head h2 { margin-top: 14px; max-width: 22ch; }
.section-head .lead { max-width: 60ch; margin-top: 16px; }

/* ---------- Home: Services ---------- */
.services {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service {
  background: var(--paper);
  padding: 32px 28px;
  display: flex; flex-direction: column; gap: 16px;
  position: relative;
}
.service .num {
  font-family: var(--mono); font-size: 0.72rem; color: var(--muted);
  letter-spacing: 0.14em;
}
.service h3 { color: var(--navy); }
.service p { margin: 0; }
.service ul {
  list-style: none; padding: 0; margin: 8px 0 0; font-size: 0.92rem; color: var(--ink-2);
}
.service ul li { padding: 6px 0; border-top: 1px dashed var(--line); display: flex; gap: 10px; align-items: baseline; }
.service ul li::before { content: "+"; color: var(--red); font-family: var(--mono); font-weight: 500; }
@media (min-width: 768px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services { grid-template-columns: repeat(3, 1fr); } .service { padding: 44px 36px; } }

/* ---------- Home: Featured projects ---------- */
.featured-grid {
  display: grid; gap: 16px;
  grid-template-columns: 1fr;
}
.featured {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--navy);
  aspect-ratio: 4/3;
}
.featured img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease;
  filter: brightness(0.85);
}
.featured:hover img { transform: scale(1.04); }
.featured .meta {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 20px 22px;
  color: #fff;
  background: linear-gradient(180deg, rgba(11,35,54,0) 0%, rgba(11,35,54,0.88) 100%);
}
.featured .meta .tag {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(255,255,255,0.6); margin-bottom: 6px;
}
.featured .meta .ttl {
  font-family: var(--display); font-weight: 500; font-size: 1.05rem; letter-spacing: -0.01em;
}
@media (min-width: 768px) {
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
  .featured.lg { grid-column: span 2; aspect-ratio: 16/8; }
}
@media (min-width: 1024px) {
  .featured-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .featured.lg { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
}

/* ---------- Home: Capabilities strip ---------- */
.capabilities {
  display: grid; gap: 0;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
}
.capability {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px 24px;
  align-items: start;
}
.capability .idx {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em;
  color: var(--red); padding-top: 4px;
}
.capability h3 { font-size: 1.2rem; color: var(--navy); margin-bottom: 6px; }
.capability p { margin: 0; color: var(--muted); font-size: 0.95rem; }
@media (min-width: 1024px) {
  .capability { grid-template-columns: 80px 1fr 1fr; padding: 36px 0; gap: 32px; }
  .capability p { font-size: 1rem; }
}

/* ---------- About: 2-col intro ---------- */
.two-col {
  display: grid; gap: 40px;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
  .two-col { grid-template-columns: 1fr 1.2fr; gap: 80px; }
}
.two-col .col-img {
  position: relative; aspect-ratio: 4/5; overflow: hidden; border-radius: var(--radius);
}
.two-col .col-img img { width: 100%; height: 100%; object-fit: cover; }
.two-col .col-img .badge {
  position: absolute; left: 0; bottom: 0;
  background: var(--red); color: #fff;
  padding: 16px 20px;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
}

/* About: Pillars (mission/vision/values) */
.pillars { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.pillar {
  background: var(--paper); padding: 32px 28px;
  display: flex; flex-direction: column; gap: 12px;
}
.pillar .label { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red); }
.pillar h3 { font-size: 1.25rem; }
.pillar p { margin: 0; color: var(--ink-2); }
@media (min-width: 768px) { .pillars { grid-template-columns: repeat(3, 1fr); } }

/* About: Process timeline */
.process { display: grid; gap: 0; }
.step {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  display: grid; gap: 12px;
  grid-template-columns: 1fr;
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step .step-no { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red); }
.step h3 { color: var(--navy); margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); }
@media (min-width: 1024px) {
  .step { grid-template-columns: 140px 320px 1fr; gap: 32px; padding: 36px 0; align-items: start; }
}

/* ---------- Gallery ---------- */
.filters {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 32px;
}
.filters button {
  font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 10px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--ink-2);
  transition: all .15s;
}
.filters button:hover { border-color: var(--navy); color: var(--navy); }
.filters button.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--navy-700);
  aspect-ratio: 4/3;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item .info {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px 18px;
  color: #fff;
  background: linear-gradient(180deg, rgba(11,35,54,0) 0%, rgba(11,35,54,0.92) 100%);
}
.gallery-item .info .cat {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(255,255,255,0.6); margin-bottom: 4px;
}
.gallery-item .info .title {
  font-family: var(--display); font-weight: 500; font-size: 0.95rem; letter-spacing: -0.005em;
}
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }

/* Masonry-ish span variations on desktop */
@media (min-width: 1024px) {
  .gallery-grid .span-2 { grid-column: span 2; aspect-ratio: 16/9; }
  .gallery-grid .tall { aspect-ratio: 3/4; }
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid; gap: 40px;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: 1fr 1.2fr; gap: 80px; }
}
.contact-info .info-card {
  padding: 24px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 20px;
  align-items: start;
}
.contact-info .info-card:last-child { border-bottom: 1px solid var(--line); }
.contact-info .info-card .ico {
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--red);
  font-family: var(--mono); font-size: 0.9rem;
}
.contact-info .info-card .label { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.contact-info .info-card .val { color: var(--navy); font-weight: 500; font-size: 1rem; line-height: 1.5; }
.contact-info .info-card a.val:hover { color: var(--red); }

.form {
  background: #fff;
  border: 1px solid var(--line);
  padding: 28px 24px;
  border-radius: var(--radius);
}
.form .row { display: grid; gap: 16px; margin-bottom: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form .row.two { grid-template-columns: 1fr 1fr; } }
.form label {
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.form input, .form select, .form textarea {
  width: 100%;
  font: inherit;
  font-family: var(--sans);
  font-size: 0.98rem;
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  transition: border-color .15s, background .15s;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: var(--navy);
  background: #fff;
}
.form textarea { min-height: 140px; resize: vertical; }
.form .actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-top: 8px; }
.form .actions .note { font-family: var(--mono); font-size: 0.68rem; color: var(--muted); letter-spacing: 0.08em; }

/* Map placeholder */
.map {
  width: 100%; aspect-ratio: 16/9;
  background:
    repeating-linear-gradient(135deg, rgba(11,35,54,.06) 0 12px, transparent 12px 24px),
    var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy);
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  position: relative;
  overflow: hidden;
}
.map > span {
  position: relative; z-index: 1;
  background: var(--navy); color: #fff;
  padding: 10px 18px; border-radius: 999px;
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
  box-shadow: 0 6px 18px -6px rgba(11,35,54,0.45);
}

/* ---------- CTA banner ---------- */
.cta {
  background: var(--navy);
  color: #fff;
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: ""; position: absolute; right: -120px; top: 50%; transform: translateY(-50%);
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200,54,47,0.25) 0%, rgba(200,54,47,0) 70%);
  pointer-events: none;
}
.cta .inner {
  position: relative; z-index: 1;
  display: grid; gap: 24px;
  grid-template-columns: 1fr;
  align-items: center;
}
.cta h2 { color: #fff; max-width: 20ch; }
.cta p { color: rgba(255,255,255,0.75); margin: 0; max-width: 48ch; }
.cta .actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 1024px) {
  .cta { padding: 96px 0; }
  .cta .inner { grid-template-columns: 1.4fr 1fr; gap: 60px; }
  .cta .actions { justify-content: flex-end; }
}

/* ---------- Footer ---------- */
.footer {
  background: #0A1B29;
  color: rgba(255,255,255,0.7);
  padding: 56px 0 24px;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid; gap: 36px;
  grid-template-columns: 1fr;
}
.footer h4 { color: #fff; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 16px; font-weight: 500; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { padding: 6px 0; }
.footer a:hover { color: var(--red); }
.footer .brand img { filter: brightness(1.05); }
.footer .brand .name { color: #fff; }
.footer .brand .tag { color: rgba(255,255,255,0.5); }
.footer .blurb { margin: 18px 0 0; max-width: 36ch; color: rgba(255,255,255,0.6); }
.footer .bar {
  margin-top: 40px; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; color: rgba(255,255,255,0.45);
  text-transform: uppercase;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; } }

/* ---------- Utilities ---------- */
.full-bleed-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius); }
.divider { height: 1px; background: var(--line); width: 100%; margin: 56px 0; }
.text-red { color: var(--red); }
.text-mono { font-family: var(--mono); }
.tag-line {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted);
}

/* ---------- Language toggle ---------- */
.lang-toggle {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  background: rgba(255,255,255,0.5);
  margin-right: 8px;
}
.lang-toggle button {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  padding: 6px 12px;
  border: none;
  background: transparent;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 500;
  transition: background .15s, color .15s;
}
.lang-toggle button.is-active {
  background: var(--navy);
  color: #fff;
}
.lang-toggle button:not(.is-active):hover { color: var(--navy); }

.mobile-menu .lang-toggle {
  margin: 28px 0 0 0;
  background: transparent;
  padding: 4px;
}
.mobile-menu .lang-toggle button { padding: 10px 18px; font-size: 0.8rem; }

/* ---------- Floating WhatsApp button ---------- */
.wa-float {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 80;
  display: inline-flex; align-items: center;
  gap: 0;
  background: #25D366;
  color: #fff;
  padding: 0;
  height: 56px;
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.92rem;
  box-shadow: 0 6px 20px -4px rgba(37, 211, 102, 0.5), 0 2px 6px rgba(0,0,0,0.15);
  transition: transform .2s, box-shadow .2s, padding .2s;
  overflow: hidden;
  white-space: nowrap;
}
.wa-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px -4px rgba(37, 211, 102, 0.6), 0 4px 10px rgba(0,0,0,0.2);
}
.wa-float .wa-ico {
  width: 56px; height: 56px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.wa-float .wa-ico svg { width: 28px; height: 28px; }
.wa-float .wa-text {
  max-width: 0;
  opacity: 0;
  transition: max-width .25s ease, opacity .2s ease, padding .2s ease;
  padding: 0;
}
@media (min-width: 1024px) {
  .wa-float { right: 28px; bottom: 28px; }
  .wa-float:hover .wa-text {
    max-width: 220px;
    opacity: 1;
    padding-right: 20px;
  }
}

/* Pulse ring */
.wa-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #25D366;
  z-index: -1;
  animation: wa-pulse 2.4s ease-out infinite;
}
@keyframes wa-pulse {
  0%   { transform: scale(1);   opacity: 0.55; }
  80%  { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(7, 22, 35, 0.94);
  display: none; align-items: center; justify-content: center;
  padding: 24px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 80vh; object-fit: contain; border-radius: var(--radius); }
.lightbox .lb-info { color: #fff; text-align: center; margin-top: 16px; font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; }
.lightbox .lb-close {
  position: absolute; top: 20px; right: 20px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  color: #fff; font-size: 1.4rem;
}
.lightbox .lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  color: #fff; font-family: var(--mono);
}
.lightbox .lb-prev { left: 20px; }
.lightbox .lb-next { right: 20px; }

/* ---------- Capability: fix paragraph column span on mobile ---------- */
.capability p { grid-column: 1 / -1; }
@media (min-width: 1024px) { .capability p { grid-column: auto; } }

/* ---------- CTA light variant ---------- */
.cta.cta-light::before { display: none; }

/* ---------- Gallery span-2 at tablet ---------- */
@media (min-width: 640px) {
  .gallery-grid .span-2 { grid-column: span 2; aspect-ratio: 16/9; }
}

/* =========================================================
   Responsive fixes — Contact & General
   ========================================================= */

/* Contact: prevent long email/phone links from breaking layout */
.contact-info .info-card .val,
.contact-info .info-card a {
  overflow-wrap: break-word;
  word-break: break-word;
  min-width: 0;
}

/* The inner flex row with WA + email links */
.contact-info .info-card > div { min-width: 0; }

/* Form actions: stack on mobile instead of space-between */
@media (max-width: 639px) {
  .form { padding: 20px 16px; }
  .form .actions {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .form .actions .btn { width: 100%; justify-content: center; }
  .form .actions .note { text-align: center; }
}

/* Page head: tighten top padding on very small screens */
@media (max-width: 639px) {
  .page-head { padding: 72px 0 40px; }
  .page-head h1 { font-size: clamp(1.7rem, 7vw, 2.2rem); }
}

/* Hero: reduce bottom padding on small screens so stats aren't cut off */
@media (max-width: 639px) {
  .hero { padding-bottom: 48px; }
  .hero-meta { gap: 20px; }
  .hero-meta .item .num { font-size: 1.9rem; }
}

/* Nav: ensure lang-toggle + cta don't crowd on mid screens */
@media (max-width: 1023px) {
  .lang-toggle { display: none; }
}
.mobile-menu .lang-toggle { display: inline-flex; }

/* Gallery: lightbox nav buttons hidden on very small screens (tap area issue) */
@media (max-width: 480px) {
  .lightbox .lb-prev,
  .lightbox .lb-next { display: none; }
  .lightbox { padding: 16px; }
}

/* Two-col about: let it shrink gracefully between 768-1023px */
@media (min-width: 640px) and (max-width: 1023px) {
  .two-col.col-img { aspect-ratio: 16/9; }
}

/* Footer: tighten bar on very small screens */
@media (max-width: 480px) {
  .footer .bar { flex-direction: column; gap: 6px; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
}
