/* CMF Concepts Ltd — site styles
   Brand: blue #1B75BB + red #EE1D23 from the logo and letterhead.
   Signature element: the letterhead's diagonal red/blue bands. */

:root {
  --blue: #1b75bb;
  --blue-600: #155f99;
  --blue-900: #0b2a47;
  --red: #ee1d23;
  --red-600: #c9141a;
  --ink: #0f1b2a;
  --ink-2: #3b4757;
  --muted: #6a7686;
  --line: #e3e7ee;
  --paper: #f5f7fa;
  --white: #ffffff;

  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", "Segoe UI", Arial, sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(15, 27, 42, .06), 0 8px 24px rgba(15, 27, 42, .08);
  --shadow-lg: 0 2px 4px rgba(15, 27, 42, .06), 0 24px 48px rgba(15, 27, 42, .14);

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(64px, 9vw, 112px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-600); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--blue); color: var(--white); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.01em;
  margin: 0 0 .4em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(44px, 7vw, 84px); font-weight: 800; text-transform: uppercase; }
h2 { font-size: clamp(34px, 4.6vw, 56px); text-transform: uppercase; }
h3 { font-size: clamp(22px, 2.2vw, 28px); }
p { margin: 0 0 1em; text-wrap: pretty; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); max-width: 60ch; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--paper { background: var(--paper); }
.section--dark { background: var(--blue-900); color: #dfe8f2; }
.section--dark h2, .section--dark h3 { color: var(--white); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--red);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; width: 28px; height: 6px;
  background: linear-gradient(100deg, var(--red) 0 55%, transparent 55% 62%, var(--blue) 62%);
  transform: skewX(-20deg);
}
.section--dark .eyebrow { color: #ff6b70; }

.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 40px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head > div { max-width: 720px; }
.section-head p { color: var(--ink-2); margin: 0; }
.section--dark .section-head p { color: #b9c8d8; }

/* Skip link */
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 6px; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 24px;
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
  letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
  border: 2px solid transparent; border-radius: 999px; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: var(--red-600); color: var(--white); }
.btn--blue { background: var(--blue); color: var(--white); }
.btn--blue:hover { background: var(--blue-600); color: var(--white); }
.btn--ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.section--dark .btn--ghost, .cta .btn--ghost { color: var(--white); }
.section--dark .btn--ghost:hover, .cta .btn--ghost:hover { background: var(--white); color: var(--blue-900); border-color: var(--white); }
.btn--wa { background: #1fa855; color: var(--white); }
.btn--wa:hover { background: #178a45; color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 17px;
  letter-spacing: .06em; text-transform: uppercase; text-decoration: none; color: var(--blue);
}
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(4px); }

/* Header */
.topbar { background: var(--blue-900); color: #c7d5e4; font-size: 14px; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding-block: 8px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: #fff; }
.topbar__items { display: flex; flex-wrap: wrap; gap: 6px 22px; }
@media (max-width: 720px) { .topbar__loc { display: none; } }

.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand img { width: 172px; height: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative; padding: 10px 14px;
  font-family: var(--font-display); font-weight: 600; font-size: 18px;
  letter-spacing: .05em; text-transform: uppercase; text-decoration: none; color: var(--ink);
}
.nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 3px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--blue); }
.nav .btn { margin-left: 10px; min-height: 44px; padding: 8px 20px; font-size: 17px; }
.nav .btn::after { display: none; }
.menu-toggle {
  display: none; width: 48px; height: 48px; border: 0; border-radius: 10px;
  background: var(--paper); color: var(--ink); cursor: pointer;
}
.menu-toggle svg { width: 26px; height: 26px; margin: auto; }

@media (max-width: 920px) {
  /* backdrop-filter would trap the fixed menu inside the header, so use a solid header on small screens */
  .header { background: var(--white); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .menu-toggle { display: grid; place-items: center; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(86vw, 360px);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 96px 24px 24px; background: var(--white);
    box-shadow: var(--shadow-lg);
    transform: translateX(105%); transition: transform .3s ease; z-index: 60;
  }
  .nav.is-open { transform: none; }
  .nav a { padding: 16px 6px; font-size: 22px; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav .btn { margin: 20px 0 0; border-bottom: 0; }
  .menu-toggle { position: relative; z-index: 70; }
  .nav-scrim { position: fixed; inset: 0; background: rgba(11, 42, 71, .45); z-index: 45; opacity: 0; pointer-events: none; transition: opacity .3s; }
  .nav-scrim.is-open { opacity: 1; pointer-events: auto; }
}

/* Signature diagonal bands */
.bands { position: absolute; pointer-events: none; }
.bands span { position: absolute; display: block; transform: skewX(-24deg); }

/* Hero */
.hero { position: relative; overflow: hidden; padding-block: clamp(48px, 7vw, 96px) clamp(64px, 8vw, 104px); }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 span { color: var(--blue); }
.hero h1 em { font-style: normal; color: var(--red); }
.hero .lead { margin-bottom: 28px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; padding: 0; list-style: none; }
.hero__facts li {
  font-size: 15px; font-weight: 600; color: var(--ink-2);
  padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--white);
}
.hero .bands { right: -6%; top: -4%; width: 58%; height: 108%; z-index: 0; }
.hero .bands span:nth-child(1) { right: 0; top: 0; width: 64%; height: 100%; background: var(--paper); }
.hero .bands span:nth-child(2) { right: 58%; top: 0; width: 22px; height: 100%; background: var(--red); }
.hero .bands span:nth-child(3) { right: 50%; top: 0; width: 10px; height: 100%; background: var(--blue); }

.mosaic { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 210px 150px 210px; gap: 12px; }
.mosaic figure { margin: 0; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--paper); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.mosaic figure:nth-child(1) { grid-row: 1 / 3; }
.mosaic figure:nth-child(2) { grid-row: 1 / 2; }
.mosaic figure:nth-child(3) { grid-row: 2 / 4; }
.mosaic figure:nth-child(4) { grid-row: 3 / 4; grid-column: 1; }
.mosaic__tag {
  position: absolute; left: -18px; bottom: 28px; z-index: 2;
  background: var(--white); border-radius: 12px; padding: 12px 16px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 12px; font-size: 15px; line-height: 1.3;
}
.mosaic__tag b { display: block; font-family: var(--font-display); font-size: 20px; text-transform: uppercase; letter-spacing: .02em; }
.mosaic__tag i { width: 12px; height: 12px; border-radius: 50%; background: #1fa855; box-shadow: 0 0 0 5px rgba(31, 168, 85, .18); flex: none; }

@media (max-width: 920px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .bands { width: 100%; right: -30%; opacity: .7; }
  .mosaic { grid-template-rows: 170px 120px 170px; }
  .mosaic__tag { left: 12px; }
}

/* Ticker */
.ticker { background: var(--blue); color: var(--white); overflow: hidden; border-block: 4px solid var(--red); }
.ticker__track { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.ticker__track ul { display: flex; margin: 0; padding: 0; list-style: none; }
.ticker li {
  display: flex; align-items: center; gap: 28px; padding: 16px 28px 16px 0;
  font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
}
.ticker li::after { content: ""; width: 10px; height: 10px; background: var(--red); transform: rotate(45deg); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: inherit;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; color: inherit; }
.card__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card__img img { transform: scale(1.05); }
.card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__body h3 { margin: 0; font-size: 24px; text-transform: uppercase; }
.card__body p { margin: 0; color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.card__num { font-family: var(--font-display); font-weight: 700; color: var(--red); font-size: 15px; letter-spacing: .1em; }

/* Featured projects */
.projects { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.project { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--ink); color: var(--white); text-decoration: none; min-height: 420px; display: flex; }
.project:nth-child(1) { grid-column: span 7; }
.project:nth-child(2) { grid-column: span 5; }
.project:nth-child(3) { grid-column: span 12; min-height: 340px; }
.project img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.project:hover img { transform: scale(1.04); }
.project::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 42, 71, 0) 35%, rgba(11, 42, 71, .92) 100%); }
.project__body { position: relative; z-index: 1; margin-top: auto; padding: 28px; max-width: 620px; }
.project__body h3 { color: var(--white); font-size: clamp(26px, 3vw, 36px); text-transform: uppercase; margin-bottom: 8px; }
.project__body p { color: #d6e1ec; margin: 0; }
.tag {
  display: inline-block; margin-bottom: 12px; padding: 4px 12px; border-radius: 999px;
  background: var(--red); color: var(--white);
  font-family: var(--font-display); font-weight: 700; font-size: 14px; letter-spacing: .1em; text-transform: uppercase;
}
.project--split { display: grid; grid-template-columns: 1fr 1fr; }
.project--split img { position: relative; }
@media (max-width: 860px) {
  .project:nth-child(n) { grid-column: span 12; min-height: 360px; }
}

/* Workshop / machinery */
.machines { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.machine { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius); padding: 16px; display: flex; gap: 16px; align-items: center; }
.machine img { width: 96px; height: 96px; object-fit: contain; background: var(--white); border-radius: 10px; padding: 6px; flex: none; }
.machine h3 { font-size: 22px; margin: 0 0 4px; text-transform: uppercase; }
.machine p { margin: 0; font-size: 15px; color: #b9c8d8; line-height: 1.45; }
@media (max-width: 960px) { .machines { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .machines { grid-template-columns: 1fr; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; padding: 0; margin: 0; list-style: none; }
.steps li { position: relative; padding: 28px 24px 24px; background: var(--white); border-radius: var(--radius); border-top: 5px solid var(--blue); box-shadow: var(--shadow); }
.steps li:nth-child(even) { border-top-color: var(--red); }
.steps li::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font-family: var(--font-display); font-weight: 800; font-size: 44px; line-height: 1; color: var(--line); margin-bottom: 12px;
}
.steps h3 { font-size: 24px; text-transform: uppercase; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--ink-2); font-size: 16px; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Sectors */
.sectors { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.sector { padding: 24px 20px; border-right: 1px solid var(--line); background: var(--white); }
.sector:last-child { border-right: 0; }
.sector svg { width: 34px; height: 34px; color: var(--blue); margin-bottom: 12px; }
.sector h3 { font-size: 21px; text-transform: uppercase; margin-bottom: 4px; }
.sector p { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.45; }
@media (max-width: 960px) {
  .sectors { grid-template-columns: 1fr 1fr; }
  .sector { border-bottom: 1px solid var(--line); }
}
@media (max-width: 520px) { .sectors { grid-template-columns: 1fr; } .sector { border-right: 0; } }

/* Client logos (managed in /admin → Clients) */
.clients { margin-top: clamp(40px, 5vw, 56px); }
.clients__title { font-size: 15px; font-family: var(--font-body); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-align: center; margin-bottom: 18px; }
.clients__grid { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.clients__grid li { flex: 0 1 180px; }
.clients__logo { display: flex; align-items: center; justify-content: center; height: 104px; padding: 16px 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
a.clients__logo { transition: border-color .2s, box-shadow .2s; }
a.clients__logo:hover { border-color: var(--blue); box-shadow: 0 8px 20px rgba(15,27,42,.08); }
.clients__logo img { max-width: 100%; max-height: 64px; width: auto; height: auto; object-fit: contain; }
@media (max-width: 520px) { .clients__grid li { flex-basis: calc(50% - 6px); } .clients__logo { height: 88px; padding: 12px; } }

/* CTA band */
.cta { position: relative; overflow: hidden; background: var(--blue); color: var(--white); padding-block: clamp(56px, 8vw, 88px); }
.cta .wrap { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta h2 { color: var(--white); margin: 0 0 8px; }
.cta p { margin: 0; color: #dbe9f6; max-width: 56ch; }
.cta .bands { right: -60px; top: 0; width: 360px; height: 100%; }
.cta .bands span:nth-child(1) { right: 120px; width: 46px; height: 100%; background: var(--red); }
.cta .bands span:nth-child(2) { right: 60px; width: 20px; height: 100%; background: rgba(255, 255, 255, .9); }
.cta .bands span:nth-child(3) { right: 0; width: 46px; height: 100%; background: var(--blue-900); }
@media (max-width: 720px) { .cta .bands { opacity: .35; } }

/* Page hero (inner pages) */
.page-hero { position: relative; overflow: hidden; background: var(--paper); padding-block: clamp(48px, 7vw, 88px); border-bottom: 1px solid var(--line); }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(42px, 6vw, 72px); max-width: 16ch; }
.page-hero .bands { right: -40px; top: 0; width: 320px; height: 100%; }
.page-hero .bands span:nth-child(1) { right: 120px; width: 34px; height: 100%; background: var(--red); }
.page-hero .bands span:nth-child(2) { right: 80px; width: 14px; height: 100%; background: var(--blue); }
.page-hero .bands span:nth-child(3) { right: 0; width: 60px; height: 100%; background: var(--blue-900); }
@media (max-width: 720px) { .page-hero .bands { opacity: .25; } }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }

/* Services page */
.svc-nav { position: sticky; top: 76px; z-index: 20; background: var(--white); border-bottom: 1px solid var(--line); }
.svc-nav ul { display: flex; gap: 6px; margin: 0; padding: 10px 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.svc-nav ul::-webkit-scrollbar { display: none; }
.svc-nav a {
  display: block; white-space: nowrap; padding: 8px 14px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: 16px; letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none; color: var(--ink-2); background: var(--paper);
}
.svc-nav a:hover, .svc-nav a.is-active { background: var(--blue); color: var(--white); }

.svc { padding-block: clamp(56px, 7vw, 88px); border-bottom: 1px solid var(--line); scroll-margin-top: 140px; }
.svc:nth-of-type(even) { background: var(--paper); }
.svc .wrap { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.svc__num { font-family: var(--font-display); font-weight: 800; font-size: 18px; color: var(--red); letter-spacing: .12em; }
.svc h2 { font-size: clamp(32px, 4vw, 48px); }
.svc ul.ticks { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; }
.svc ul.ticks li { position: relative; padding-left: 28px; color: var(--ink-2); }
.svc ul.ticks li::before { content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 6px; background: var(--blue); transform: skewX(-24deg); }
.svc__gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.svc__gallery figure { margin: 0; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1; background: var(--white); border: 1px solid var(--line); }
.svc__gallery figure:first-child { grid-column: span 2; grid-row: span 2; }
.svc__gallery img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; transition: transform .4s; }
.svc__gallery img:hover { transform: scale(1.05); }
.svc__gallery--contain img { object-fit: contain; padding: 8px; background: var(--white); }
.svc__note { font-size: 15px; color: var(--muted); }
@media (max-width: 860px) { .svc .wrap { grid-template-columns: 1fr; } }

/* Office services list */
.mini-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; padding: 0; margin: 0; list-style: none; }
.mini-list li { padding: 16px 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); font-weight: 600; }

/* Work gallery */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filters button {
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink-2); cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: .04em; text-transform: uppercase;
}
.filters button:hover { border-color: var(--blue); color: var(--blue); }
.filters button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: var(--white); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--paper); position: relative; display: flex; flex-direction: column; }
.gallery figure[hidden] { display: none; }
.gallery button { all: unset; display: block; cursor: zoom-in; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; }
.gallery button:focus-visible { outline: 3px solid var(--red); outline-offset: -3px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery figcaption { flex: 1; }
.gallery figure:hover img { transform: scale(1.03); }
.gallery figcaption { padding: 12px 14px 14px; background: var(--white); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); }
.gallery figcaption b { display: block; font-family: var(--font-display); font-size: 19px; text-transform: uppercase; letter-spacing: .02em; line-height: 1.15; }
.gallery figcaption span { font-size: 14px; color: var(--muted); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; background: rgba(8, 20, 34, .92); padding: 24px; }
.lightbox.is-open { display: grid; }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); }
.lightbox img { max-height: 78vh; width: auto; margin: 0 auto; border-radius: 10px; }
.lightbox figcaption { color: #dbe6f2; text-align: center; margin-top: 14px; font-size: 16px; }
.lightbox figcaption b { color: var(--white); font-family: var(--font-display); font-size: 22px; text-transform: uppercase; display: block; }
.lightbox__btn {
  position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .12); color: var(--white); font-size: 26px; display: grid; place-items: center;
}
.lightbox__btn:hover { background: var(--red); }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 18px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { .lightbox__prev, .lightbox__next { top: auto; bottom: 18px; transform: none; } }

/* About */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split__img { position: relative; }
.split__img img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.split__img::before { content: ""; position: absolute; inset: 24px -24px -24px 24px; border-radius: var(--radius); background: repeating-linear-gradient(-66deg, var(--red) 0 14px, transparent 14px 28px); opacity: .9; z-index: -1; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split__img::before { inset: 16px -12px -16px 16px; } }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value { padding: 28px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.value h3 { text-transform: uppercase; font-size: 24px; }
.value p { margin: 0; color: var(--ink-2); }
.value svg { width: 36px; height: 36px; color: var(--red); margin-bottom: 14px; }
@media (max-width: 860px) { .values { grid-template-columns: 1fr; } }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-block: 1px solid rgba(255, 255, 255, .14); }
.fact { padding: 28px 20px; border-right: 1px solid rgba(255, 255, 255, .14); }
.fact:last-child { border-right: 0; }
.fact b { display: block; font-family: var(--font-display); font-size: clamp(30px, 3.4vw, 42px); color: var(--white); line-height: 1.05; text-transform: uppercase; }
.fact span { color: #b9c8d8; font-size: 15px; }
@media (max-width: 860px) { .facts { grid-template-columns: 1fr 1fr; } .fact:nth-child(2) { border-right: 0; } .fact { border-bottom: 1px solid rgba(255, 255, 255, .14); } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
@media (max-width: 920px) { .contact-grid { grid-template-columns: 1fr; } }
.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow); }
.form h2 { font-size: clamp(30px, 3.4vw, 40px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: 15px; }
.field label small { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid #cfd6e0; border-radius: 10px; background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(27, 117, 187, .15); }
.field .err { color: var(--red-600); font-size: 14px; min-height: 0; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--red); }
.form__note { font-size: 14px; color: var(--muted); margin: 14px 0 0; }

.info-cards { display: grid; gap: 14px; }
.info { display: flex; gap: 16px; padding: 20px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); text-decoration: none; color: inherit; }
a.info:hover { border-color: var(--blue); color: inherit; }
.info__icon { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--red); color: var(--white); }
.info__icon svg { width: 22px; height: 22px; }
.info b { display: block; font-family: var(--font-display); font-size: 20px; text-transform: uppercase; letter-spacing: .03em; }
.info span { color: var(--ink-2); font-size: 16px; }
.map { margin-top: 14px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; background: var(--paper); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative;
  font-family: var(--font-display); font-weight: 700; font-size: 22px; text-transform: uppercase; letter-spacing: .02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 30px; color: var(--red); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--ink-2); padding-bottom: 18px; margin: 0; }

/* Footer */
.footer { background: #071d33; color: #a9bbcf; font-size: 16px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-block: 64px 48px; }
.footer__logo { display: inline-block; background: var(--white); border-radius: 12px; padding: 12px 16px; margin-bottom: 18px; }
.footer__logo img { width: 160px; }
.footer h3 { color: var(--white); font-size: 20px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a { color: #d6e2ee; text-decoration: none; }
.footer a:hover { color: var(--white); text-decoration: underline; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 14px; }
.footer__stripe { height: 8px; background: linear-gradient(100deg, var(--red) 0 40%, var(--white) 40% 41.5%, var(--blue) 41.5%); }
@media (max-width: 920px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__top { grid-template-columns: 1fr; } }

/* Floating WhatsApp */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: #1fa855; color: var(--white); box-shadow: 0 10px 24px rgba(31, 168, 85, .4);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.07); color: var(--white); }
.wa-float svg { width: 32px; height: 32px; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.footer__social { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; font-weight: 600; }
