/* ==========================================================================
   MECHAMATIC — mechamatic-eg.com
   Heat exchangers, pressure vessels, tanks, mixers, reactors
   --------------------------------------------------------------------------
   1.  Tokens
   2.  Reset & base
   3.  Layout primitives
   4.  Typography helpers
   5.  Buttons
   6.  Top bar / header / navigation
   7.  Hero
   8.  Cards & grids
   9.  Feature rows
   10. Spec tables & data lists
   11. Accordion
   12. Badges, stats, logo strip
   13. Video grid
   14. CTA bands
   15. Forms
   16. Footer
   17. Floating WhatsApp
   18. Breadcrumb & page head
   19. Utilities
   20. Responsive
   ========================================================================== */

/* ============================ 1. TOKENS ================================== */
:root {
  /* brand — sampled from the flame mark */
  --red:        #E31E24;
  --red-dk:     #A50F14;
  --red-tint:   #FDEDEE;
  --blue:       #00A0E3;
  --blue-dk:    #1A5C8F;
  --blue-tint:  #E9F6FD;

  /* neutrals */
  --ink-950: #05070A;
  --ink-900: #0B0E12;
  --ink-850: #0F141B;
  --ink-800: #131922;
  --ink-700: #1E2A38;
  --ink-600: #33414F;
  --slate-500: #5A6875;
  --slate-400: #8593A0;
  --slate-300: #B6C0CA;
  --slate-200: #D9E1E8;
  --slate-150: #E4EAEF;
  --slate-100: #EDF2F6;
  --slate-50:  #F5F8FA;
  --white: #FFFFFF;

  /* type */
  --f-head: "Montserrat", "Segoe UI", Arial, sans-serif;
  --f-body: "Inter", "Segoe UI", Arial, sans-serif;

  /* metrics */
  --wrap: 1200px;
  --wrap-narrow: 880px;
  --r-sm: 6px;
  --r:    10px;
  --r-lg: 16px;

  --sh-sm: 0 1px 2px rgba(11,14,18,.06), 0 1px 3px rgba(11,14,18,.05);
  --sh:    0 2px 6px rgba(11,14,18,.06), 0 8px 24px rgba(11,14,18,.07);
  --sh-lg: 0 4px 12px rgba(11,14,18,.08), 0 18px 48px rgba(11,14,18,.12);

  --header-h: 74px;
}

/* ========================= 2. RESET & BASE =============================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.68;
  color: var(--ink-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--blue-dk); text-decoration: none; }
a:hover { color: var(--red); }

h1, h2, h3, h4, h5 {
  font-family: var(--f-head);
  font-weight: 800;
  line-height: 1.15;
  color: var(--ink-900);
  margin: 0 0 .6em;
  letter-spacing: -.015em;
}
h1 { font-size: clamp(2rem, 4.4vw, 3.35rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); font-weight: 700; }
h4 { font-size: 1.06rem; font-weight: 700; letter-spacing: 0; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li { margin-bottom: .4em; }

strong { font-weight: 650; color: var(--ink-800); }
hr { border: 0; border-top: 1px solid var(--slate-200); margin: 2.5rem 0; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink-900); color: #fff; padding: .8rem 1.2rem;
  font-weight: 600; border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ====================== 3. LAYOUT PRIMITIVES ============================= */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}
.wrap--narrow { max-width: var(--wrap-narrow); }

.section { padding: clamp(3.2rem, 6vw, 5.5rem) 0; }
.section--tight { padding: clamp(2.2rem, 4vw, 3.4rem) 0; }
.section--tint { background: var(--slate-50); }
.section--tint-blue { background: var(--blue-tint); }
.section--line { border-top: 1px solid var(--slate-150); }

.section--dark {
  background: var(--ink-900);
  color: var(--slate-300);
  position: relative;
  overflow: hidden;
}
.section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark strong { color: #fff; }
.section--dark a { color: #7FD3F7; }
.section--dark a:hover { color: #fff; }

/* faint engineering grid, used on dark panels */
.grid-bg::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.grid-bg > * { position: relative; z-index: 1; }

.section-head { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { font-size: 1.08rem; color: var(--slate-500); margin-bottom: 0; }
.section--dark .section-head p { color: var(--slate-300); }

/* ====================== 4. TYPOGRAPHY HELPERS ============================ */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--f-body);
  font-size: .78rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--red);
  margin-bottom: .9rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px;
  background: linear-gradient(90deg, var(--red), var(--blue));
}
.eyebrow--blue { color: var(--blue-dk); }
.section--dark .eyebrow { color: #7FD3F7; }

.lead {
  font-size: clamp(1.06rem, 1.5vw, 1.22rem);
  line-height: 1.6;
  color: var(--slate-500);
}
.section--dark .lead { color: var(--slate-300); }

.text-sm { font-size: .93rem; }
.muted { color: var(--slate-500); }

/* ============================ 5. BUTTONS ================================= */
.btn {
  --btn-bg: var(--red);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--f-body);
  font-size: .97rem; font-weight: 650; line-height: 1;
  padding: .95rem 1.55rem;
  border: 2px solid transparent; border-radius: var(--r-sm);
  background: var(--btn-bg); color: var(--btn-fg);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .16s ease, background .16s ease, color .16s ease, border-color .16s ease;
  text-align: center;
}
.btn:hover { color: var(--btn-fg); transform: translateY(-1px); box-shadow: var(--sh); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--red); }
.btn--primary:hover { background: var(--red-dk); }

.btn--blue { background: var(--blue-dk); }
.btn--blue:hover { background: #14496f; }

.btn--dark { background: var(--ink-800); }
.btn--dark:hover { background: var(--ink-900); }

.btn--ghost {
  background: transparent; color: var(--ink-800); border-color: var(--slate-300);
}
.btn--ghost:hover { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }

.btn--ghost-light {
  background: transparent; color: #fff; border-color: rgba(255,255,255,.42);
}
.btn--ghost-light:hover { background: #fff; border-color: #fff; color: var(--ink-900); }

.btn--wa { background: #25D366; color: #06301A; }
.btn--wa:hover { background: #1EBE5A; color: #06301A; }

.btn--sm { padding: .68rem 1.05rem; font-size: .88rem; }
.btn--lg { padding: 1.1rem 2rem; font-size: 1.04rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

.arrow-link {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 650; font-size: .95rem; color: var(--blue-dk);
}
.arrow-link::after { content: "→"; transition: transform .16s ease; }
.arrow-link:hover { color: var(--red); }
.arrow-link:hover::after { transform: translateX(4px); }

/* ================== 6. TOP BAR / HEADER / NAVIGATION ===================== */
.topbar {
  background: var(--ink-900);
  color: var(--slate-300);
  font-size: .85rem;
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 40px;
}
.topbar a { color: var(--slate-300); font-weight: 500; }
.topbar a:hover { color: #fff; }
.topbar-contact { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.topbar-contact span { display: inline-flex; align-items: center; gap: .45rem; }
.topbar-tag {
  color: var(--slate-400);
  letter-spacing: .06em; text-transform: uppercase; font-size: .74rem; font-weight: 600;
}
.topbar-social { display: flex; align-items: center; gap: .9rem; }
.topbar-social a { display: inline-flex; }
.topbar-social svg { width: 17px; height: 17px; fill: currentColor; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.97);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--slate-150);
}
.site-header.is-stuck { box-shadow: var(--sh); }
.header-inner {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: var(--header-h);
}

/* --- brand lockup: mark + CSS wordmark --- */
.brand { display: inline-flex; align-items: center; gap: .7rem; flex: 0 0 auto; }
.brand img { width: 42px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--f-head); font-weight: 800; font-size: 1.34rem;
  letter-spacing: .015em; color: var(--ink-900);
}
.brand-sub {
  font-size: .625rem; font-weight: 650; letter-spacing: .17em;
  text-transform: uppercase; color: var(--slate-400); margin-top: 3px;
}

/* --- primary nav --- */
.nav { margin-left: auto; }
.nav-list {
  display: flex; align-items: center; gap: .25rem;
  list-style: none; margin: 0; padding: 0;
}
.nav-list > li { position: relative; margin: 0; }
.nav-list > li > a {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .6rem .72rem;
  font-size: .935rem; font-weight: 600; color: var(--ink-700);
  border-radius: var(--r-sm);
  white-space: nowrap;
}
.nav-list > li > a:hover,
.nav-list > li.is-open > a { background: var(--slate-100); color: var(--ink-900); }
.nav-list > li > a[aria-current="page"] { color: var(--red); }

.caret { width: 9px; height: 9px; fill: none; stroke: currentColor; stroke-width: 2.2; opacity: .7; }

.submenu {
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 268px; padding: .5rem;
  list-style: none; margin: 0;
  background: #fff;
  border: 1px solid var(--slate-150);
  border-radius: var(--r);
  box-shadow: var(--sh-lg);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.nav-list > li:hover > .submenu,
.nav-list > li.is-open > .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu li { margin: 0; }
.submenu a {
  display: block; padding: .6rem .75rem;
  font-size: .91rem; font-weight: 550; color: var(--ink-700);
  border-radius: var(--r-sm);
}
.submenu a:hover { background: var(--slate-100); color: var(--red); }
.submenu a small {
  display: block; font-size: .78rem; font-weight: 500;
  color: var(--slate-400); margin-top: 2px;
}
.submenu a:hover small { color: var(--slate-500); }

/* Shell & tube and air-cooled are kinds of heat exchanger, not separate
   equipment families, so they sit indented beneath it. The vertical rule joins
   up between adjacent children to read as a branch of the parent item. */
.submenu-child { position: relative; }
.submenu-child > a { padding-left: 1.9rem; }
.submenu-child::before {
  content: "";
  position: absolute; left: 1.05rem; top: 0; bottom: 0;
  width: 2px; background: var(--slate-200);
  border-radius: 2px;
}
.submenu-child:hover::before { background: var(--red); }

.header-cta { flex: 0 0 auto; display: flex; align-items: center; gap: .6rem; }

/* CTA buttons that only belong inside the collapsed mobile panel */
.nav-mobile-cta { display: none; }

/* --- mobile toggle --- */
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--slate-200);
  border-radius: var(--r-sm); cursor: pointer; color: var(--ink-800);
}
.nav-toggle svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2; fill: none; }
.nav-toggle .ic-close { display: none; }
.nav-toggle[aria-expanded="true"] .ic-open { display: none; }
.nav-toggle[aria-expanded="true"] .ic-close { display: block; }

/* ============================== 7. HERO ================================== */
.hero {
  position: relative;
  background: var(--ink-900);
  color: var(--slate-300);
  overflow: hidden;
  padding: clamp(3.4rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 52px 52px;
}
.hero::after {
  content: "";
  position: absolute; top: -14%; right: -8%;
  width: 620px; height: 620px; border-radius: 50%;
  background:
    radial-gradient(circle at 34% 34%, rgba(227,30,36,.24), transparent 62%),
    radial-gradient(circle at 68% 66%, rgba(0,160,227,.22), transparent 64%);
  filter: blur(18px);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 2; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero h1 { color: #fff; margin-bottom: 1.1rem; }
.hero h1 .accent {
  background: linear-gradient(92deg, #FF5A5F, #4FC3F7);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
  font-size: clamp(1.04rem, 1.6vw, 1.2rem);
  color: var(--slate-300);
  max-width: 34em;
  margin-bottom: 1.8rem;
}
.hero .btn-row { margin-bottom: 2rem; }

.hero-figure {
  background: linear-gradient(170deg, #FBFDFE, #E7EEF4);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-lg);
  padding: 1.1rem 1.1rem .4rem;
  box-shadow: var(--sh-lg);
}
.hero-figure figcaption {
  font-size: .82rem; font-weight: 600; color: var(--slate-500);
  padding: .55rem .2rem .75rem;
  border-top: 1px solid var(--slate-200);
  margin-top: .5rem;
}

/* trust chips under the hero copy */
.hero-chips {
  display: flex; flex-wrap: wrap; gap: .5rem;
  list-style: none; margin: 0; padding: 0;
}
.hero-chips li {
  margin: 0;
  font-size: .8rem; font-weight: 650; letter-spacing: .05em; text-transform: uppercase;
  color: #CFE9F8;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 100px;
  padding: .42rem .85rem;
}

/* ========================= 8. CARDS & GRIDS ============================== */
.grid { display: grid; gap: 1.35rem; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* equipment / product card */
.card {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--slate-150);
  border-radius: var(--r);
  overflow: hidden;
  transition: transform .16s ease, box-shadow .18s ease, border-color .18s ease;
}
a.card, .card--link { color: inherit; }
a.card:hover, .card--link:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-lg);
  border-color: var(--slate-200);
  color: inherit;
}
.card-media {
  background: linear-gradient(168deg, #FAFCFD, #E9EFF5);
  border-bottom: 1px solid var(--slate-150);
  padding: .6rem;
}
/* A fixed box with contain, not cover: the cards mix photographic renders with
   labelled technical drawings, and cropping would cut the drawing labels off.
   Fixing the ratio keeps every card body starting at the same height, so rows
   line up however tall or wide the source image happens to be. */
.card-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}
.card-body { padding: 1.35rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: .5rem; font-size: 1.16rem; }
.card-body > p { color: var(--slate-500); font-size: .95rem; margin-bottom: 1rem; }
.card-body .arrow-link { margin-top: auto; }

.card-tags {
  display: flex; flex-wrap: wrap; gap: .35rem;
  list-style: none; padding: 0; margin: 0 0 1rem;
}
.card-tags li {
  margin: 0; font-size: .76rem; font-weight: 600;
  color: var(--slate-500); background: var(--slate-50);
  border: 1px solid var(--slate-150); border-radius: 4px;
  padding: .22rem .5rem;
}

/* compact icon/number card */
.tile {
  background: #fff;
  border: 1px solid var(--slate-150);
  border-radius: var(--r);
  padding: 1.5rem 1.5rem 1.6rem;
  position: relative;
}
.tile--tint { background: var(--slate-50); }
.tile h3, .tile h4 { margin-bottom: .5rem; }
.tile p { color: var(--slate-500); font-size: .95rem; margin-bottom: 0; }
.tile-num {
  font-family: var(--f-head); font-weight: 800; font-size: .9rem;
  color: var(--red); letter-spacing: .06em; display: block; margin-bottom: .7rem;
}
.tile-ic {
  width: 42px; height: 42px; margin-bottom: 1rem;
  display: grid; place-items: center;
  border-radius: 9px;
  background: linear-gradient(150deg, var(--red-tint), var(--blue-tint));
  border: 1px solid var(--slate-150);
}
.tile-ic svg { width: 22px; height: 22px; stroke: var(--ink-700); stroke-width: 1.7; fill: none; }

.section--dark .tile {
  background: rgba(255,255,255,.045);
  border-color: rgba(255,255,255,.11);
}
.section--dark .tile p { color: var(--slate-300); }
.section--dark .tile-ic {
  background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.14);
}
.section--dark .tile-ic svg { stroke: #7FD3F7; }

/* industry tile with a coloured left rule */
.rule-tile {
  background: #fff; border: 1px solid var(--slate-150);
  border-left: 3px solid var(--blue);
  border-radius: 0 var(--r) var(--r) 0;
  padding: 1.25rem 1.35rem;
}
.rule-tile:nth-child(even) { border-left-color: var(--red); }
.rule-tile h4 { margin-bottom: .35rem; }
.rule-tile p { font-size: .92rem; color: var(--slate-500); margin: 0; }

/* ========================= 9. FEATURE ROWS =============================== */
.feature {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.feature + .feature { margin-top: clamp(3rem, 6vw, 5rem); }
.feature--flip .feature-media { order: 2; }

.feature-media {
  background: linear-gradient(168deg, #FBFDFE, #E7EEF4);
  border: 1px solid var(--slate-150);
  border-radius: var(--r-lg);
  padding: 1rem;
}
.feature-media figcaption {
  font-size: .82rem; font-weight: 600; color: var(--slate-500);
  border-top: 1px solid var(--slate-200);
  margin-top: .6rem; padding-top: .6rem;
}

/* checkmark list */
.check-list { list-style: none; padding: 0; margin: 0 0 1.4rem; }
.check-list li {
  position: relative; padding-left: 1.9rem; margin-bottom: .6rem;
  font-size: .97rem;
}
.check-list li::before {
  content: "";
  position: absolute; left: 0; top: .42em;
  width: 1.1rem; height: .6rem;
  border-left: 2.4px solid var(--red);
  border-bottom: 2.4px solid var(--red);
  transform: rotate(-45deg);
}
.check-list--blue li::before { border-color: var(--blue); }
.section--dark .check-list li::before { border-color: #7FD3F7; }

/* ==================== 10. SPEC TABLES & DATA LISTS ======================= */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.spec-table {
  width: 100%; border-collapse: collapse;
  font-size: .93rem;
  background: #fff;
  border: 1px solid var(--slate-150);
  border-radius: var(--r);
}
.spec-table caption {
  caption-side: top; text-align: left;
  font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--slate-500); padding-bottom: .7rem;
}
.spec-table th, .spec-table td {
  padding: .82rem 1rem;
  border-bottom: 1px solid var(--slate-150);
  text-align: left; vertical-align: top;
}
.spec-table thead th {
  background: var(--ink-900); color: #fff;
  font-family: var(--f-body); font-size: .8rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
  border-bottom: 0;
}
.spec-table thead th:first-child { border-radius: var(--r) 0 0 0; }
.spec-table thead th:last-child  { border-radius: 0 var(--r) 0 0; }
.spec-table tbody tr:last-child th,
.spec-table tbody tr:last-child td { border-bottom: 0; }
.spec-table tbody tr:nth-child(even) { background: var(--slate-50); }
.spec-table tbody th {
  font-family: var(--f-body); font-weight: 650; color: var(--ink-800);
  white-space: nowrap;
}
.spec-table td code {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: .88em; background: var(--slate-100);
  padding: .1rem .35rem; border-radius: 4px;
}

/* two-column definition grid */
.dl-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; background: var(--slate-150); border: 1px solid var(--slate-150); border-radius: var(--r); overflow: hidden; }
.dl-grid > div { background: #fff; padding: 1.1rem 1.25rem; }
.dl-grid dt { font-size: .77rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--slate-400); margin-bottom: .3rem; }
.dl-grid dd { margin: 0; font-weight: 600; color: var(--ink-800); font-size: 1rem; }

/* =========================== 11. ACCORDION =============================== */
.acc { border: 1px solid var(--slate-150); border-radius: var(--r); overflow: hidden; background: #fff; }
.acc-item + .acc-item { border-top: 1px solid var(--slate-150); }
.acc-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.3rem;
  background: transparent; border: 0; cursor: pointer;
  font-family: var(--f-head); font-size: 1.02rem; font-weight: 700; color: var(--ink-900);
  text-align: left; line-height: 1.35;
}
.acc-btn:hover { background: var(--slate-50); }
.acc-btn .acc-code {
  font-family: var(--f-body); font-size: .74rem; font-weight: 700; letter-spacing: .08em;
  color: #fff; background: var(--ink-700);
  border-radius: 4px; padding: .2rem .45rem; margin-right: .7rem; flex: 0 0 auto;
}
.acc-ic { flex: 0 0 auto; width: 15px; height: 15px; position: relative; }
.acc-ic::before, .acc-ic::after {
  content: ""; position: absolute; background: var(--red);
  transition: transform .18s ease, opacity .18s ease;
}
.acc-ic::before { inset: 6px 0 auto; height: 2.4px; }
.acc-ic::after  { inset: 0 6px auto; width: 2.4px; height: 15px; }
.acc-btn[aria-expanded="true"] .acc-ic::after { transform: scaleY(0); opacity: 0; }
.acc-panel { display: none; padding: 0 1.3rem 1.4rem; }
.acc-panel.is-open { display: block; }
.acc-panel p:first-child { margin-top: 0; }
.acc-panel > :last-child { margin-bottom: 0; }

/* ================= 12. BADGES, STATS, LOGO STRIP ========================= */
.badge-strip {
  display: flex; flex-wrap: wrap; gap: .6rem;
  list-style: none; padding: 0; margin: 0;
}
.badge-strip li { margin: 0; }
.badge {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .84rem; font-weight: 650;
  color: var(--ink-800); background: #fff;
  border: 1px solid var(--slate-200); border-radius: 100px;
  padding: .5rem 1rem;
}
.badge b { font-family: var(--f-head); font-weight: 800; color: var(--red); }
.section--dark .badge {
  color: #fff; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16);
}
.section--dark .badge b { color: #7FD3F7; }

.stat-row {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 1px; background: var(--slate-150);
  border: 1px solid var(--slate-150); border-radius: var(--r); overflow: hidden;
}
.stat { background: #fff; padding: 1.5rem 1.3rem; text-align: center; }
.stat-val {
  font-family: var(--f-head); font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.15rem); line-height: 1;
  background: linear-gradient(92deg, var(--red), var(--blue-dk));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: block; margin-bottom: .45rem;
}
.stat-lbl {
  font-size: .8rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase;
  color: var(--slate-500);
}
.section--dark .stat-row { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.12); }
.section--dark .stat { background: rgba(255,255,255,.03); }
.section--dark .stat-lbl { color: var(--slate-400); }
.section--dark .stat-val {
  background: linear-gradient(92deg, #FF5A5F, #7FD3F7);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ========================== 13. VIDEO GRID =============================== */
.video-card {
  background: #fff; border: 1px solid var(--slate-150);
  border-radius: var(--r); overflow: hidden;
  transition: transform .16s ease, box-shadow .18s ease;
}
.video-card:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); }

.video-embed {
  position: relative; aspect-ratio: 16 / 9;
  background: var(--ink-800);
  border: 0; padding: 0; margin: 0;
  width: 100%; cursor: pointer; display: block; overflow: hidden;
}
.video-embed img { width: 100%; height: 100%; object-fit: cover; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-embed::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,7,10,.05), rgba(5,7,10,.42));
  transition: opacity .16s ease;
}
.video-embed:hover::after { opacity: .7; }
.video-embed.is-live::after, .video-embed.is-live .play { display: none; }
.play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 62px; height: 62px; border-radius: 50%;
  background: var(--red); z-index: 2;
  display: grid; place-items: center;
  box-shadow: 0 6px 22px rgba(5,7,10,.4);
  transition: transform .16s ease, background .16s ease;
}
.video-embed:hover .play { transform: translate(-50%,-50%) scale(1.08); background: var(--red-dk); }
.play svg { width: 22px; height: 22px; fill: #fff; margin-left: 3px; }
.video-card-body { padding: 1.05rem 1.2rem 1.2rem; }
.video-card-body h3 { font-size: 1.02rem; margin-bottom: .3rem; }
.video-card-body p { font-size: .86rem; color: var(--slate-500); margin: 0; }

/* ==================== 13b. RENDER GALLERY & LIGHTBOX ===================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
}
.gallery--tight { gap: .9rem; }

.gallery figure {
  margin: 0;
  background: #fff;
  border: 1px solid var(--slate-150);
  border-radius: var(--r);
  overflow: hidden;
  transition: transform .16s ease, box-shadow .18s ease;
}
.gallery figure:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); }

/* The renders sit on their own pale studio backgrounds, so a neutral tile
   keeps them from clashing with each other. */
.shot {
  display: block; width: 100%;
  background: linear-gradient(168deg, #FBFCFD, #EDF1F5);
  border: 0; padding: 0; margin: 0;
  cursor: zoom-in;
  position: relative;
  overflow: hidden;
}
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot--4x3  { aspect-ratio: 4 / 3; }
.shot--16x9 { aspect-ratio: 16 / 9; }
.shot--tall { aspect-ratio: 3 / 4; }
.shot img.contain { object-fit: contain; }

.gallery figcaption {
  padding: .85rem 1rem 1rem;
  font-size: .88rem; line-height: 1.5;
  color: var(--slate-500);
  border-top: 1px solid var(--slate-150);
}
.gallery figcaption b {
  display: block; color: var(--ink-800); font-weight: 650;
  font-size: .93rem; margin-bottom: .15rem;
}

.section--dark .gallery figure {
  background: rgba(255,255,255,.045);
  border-color: rgba(255,255,255,.11);
}
.section--dark .gallery figcaption {
  color: var(--slate-300); border-top-color: rgba(255,255,255,.11);
}
.section--dark .gallery figcaption b { color: #fff; }

/* --- lightbox --- */
.lb {
  position: fixed; inset: 0; z-index: 200;
  display: none;
  background: rgba(5,7,10,.92);
  padding: 3.5rem 1.2rem 1.2rem;
}
.lb.is-open { display: grid; place-items: center; }
.lb img {
  max-width: min(1400px, 96vw);
  max-height: 88vh;
  width: auto; height: auto;
  border-radius: 6px;
  box-shadow: 0 20px 70px rgba(0,0,0,.6);
}
.lb-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1rem 1.4rem;
  text-align: center;
  font-size: .92rem; color: rgba(255,255,255,.86);
  background: linear-gradient(transparent, rgba(5,7,10,.85));
}
.lb-close {
  position: absolute; top: .8rem; right: 1rem;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.24);
  border-radius: 50%; cursor: pointer; color: #fff;
}
.lb-close:hover { background: var(--red); border-color: var(--red); }
.lb-close svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2.2; fill: none; }

/* =========================== 14. CTA BANDS =============================== */
.cta-band {
  position: relative; overflow: hidden;
  background: var(--ink-900);
  color: #fff;
  padding: clamp(2.8rem, 5.5vw, 4.2rem) 0;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 340px at 12% 8%,  rgba(227,30,36,.30), transparent 62%),
    radial-gradient(900px 340px at 88% 96%, rgba(0,160,227,.28), transparent 62%);
}
.cta-band .wrap { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; margin-bottom: .6rem; }
.cta-band p { color: rgba(255,255,255,.86); margin-bottom: 0; }
.cta-flex {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
}
.cta-flex > div { flex: 1 1 380px; }
.cta-flex .btn-row { flex: 0 0 auto; }

/* contact quick-strip */
.contact-strip {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1px; background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.16); border-radius: var(--r); overflow: hidden;
}
.contact-strip a, .contact-strip div {
  background: rgba(255,255,255,.04);
  padding: 1.3rem 1.4rem; color: #fff;
  display: flex; flex-direction: column; gap: .3rem;
}
.contact-strip a:hover { background: rgba(255,255,255,.1); color: #fff; }
.contact-strip .lbl {
  font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: #7FD3F7;
}
.contact-strip .val { font-weight: 650; font-size: 1.02rem; word-break: break-word; }

/* ============================= 15. FORMS ================================= */
.form-card {
  background: #fff; border: 1px solid var(--slate-150);
  border-radius: var(--r-lg); padding: clamp(1.5rem, 3vw, 2.4rem);
  box-shadow: var(--sh);
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.05rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: .86rem; font-weight: 650; color: var(--ink-800);
}
.field label .req { color: var(--red); }
.field .hint { font-size: .8rem; color: var(--slate-400); font-weight: 500; }

.field input, .field select, .field textarea {
  font-family: var(--f-body); font-size: .97rem; color: var(--ink-800);
  background: #fff;
  border: 1.5px solid var(--slate-200); border-radius: var(--r-sm);
  padding: .78rem .9rem;
  width: 100%;
  transition: border-color .14s ease, box-shadow .14s ease;
}
.field textarea { min-height: 128px; resize: vertical; line-height: 1.6; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%235A6875' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
  background-size: 12px;
  padding-right: 2.4rem;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,160,227,.16);
}
.field input::placeholder, .field textarea::placeholder { color: var(--slate-400); }

/* .field sets flex-direction: column, so row must be restated here */
.field-inline { display: flex; flex-direction: row; align-items: flex-start; gap: .6rem; }
.field-inline input[type="checkbox"] { width: 18px; height: 18px; margin-top: .22rem; flex: 0 0 auto; accent-color: var(--red); }
.field-inline label { font-weight: 500; font-size: .9rem; color: var(--slate-500); }

.form-note {
  font-size: .84rem; color: var(--slate-400);
  border-top: 1px solid var(--slate-150); margin-top: 1.4rem; padding-top: 1.1rem;
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert {
  border-radius: var(--r-sm); padding: .95rem 1.15rem;
  font-size: .93rem; font-weight: 550; margin-bottom: 1.4rem;
  border: 1px solid transparent;
}
.alert--ok   { background: #E8F7EE; border-color: #B5E3C6; color: #14653A; }
.alert--err  { background: var(--red-tint); border-color: #F6C6C8; color: #8E1015; }
.alert--info { background: var(--blue-tint); border-color: #B9E2F7; color: #14496F; }

/* ============================ 16. FOOTER ================================= */
.site-footer {
  background: var(--ink-950); color: var(--slate-400);
  font-size: .93rem;
  padding: clamp(2.8rem, 5vw, 4rem) 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 2.4rem;
  padding-bottom: 2.6rem;
}
.site-footer .brand-name { color: #fff; }
.site-footer .brand-sub { color: var(--slate-500); }
.footer-about p { color: var(--slate-400); margin: 1.1rem 0 1.3rem; max-width: 34ch; }
.footer-col h4 {
  color: #fff; font-family: var(--f-body);
  font-size: .78rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  margin-bottom: 1.05rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: .55rem; }
/* Matches the header dropdown: the two exchanger types sit under their parent. */
.footer-col li.is-child { padding-left: 1rem; position: relative; }
.footer-col li.is-child::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 6px; height: 2px; background: rgba(255,255,255,.28);
}
.footer-col a { color: var(--slate-400); }
.footer-col a:hover { color: #fff; }
.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; }
.footer-contact svg { width: 16px; height: 16px; flex: 0 0 auto; margin-top: .28rem; fill: none; stroke: var(--slate-500); stroke-width: 1.8; }

.footer-social { display: flex; gap: .6rem; }
.footer-social a {
  width: 38px; height: 38px; border-radius: var(--r-sm);
  display: grid; place-items: center;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  color: var(--slate-300);
}
.footer-social a:hover { background: var(--red); border-color: var(--red); color: #fff; }
.footer-social svg { width: 18px; height: 18px; fill: currentColor; }

.footer-bar {
  border-top: 1px solid rgba(255,255,255,.09);
  padding: 1.3rem 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  font-size: .86rem; color: var(--slate-500);
}
.footer-bar a { color: var(--slate-400); }
.footer-bar a:hover { color: #fff; }

/* ====================== 17. FLOATING WHATSAPP ============================ */
.wa-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  display: inline-flex; align-items: center; gap: .6rem;
  background: #25D366; color: #06301A;
  font-weight: 700; font-size: .93rem;
  padding: .82rem 1.15rem; border-radius: 100px;
  box-shadow: 0 6px 26px rgba(5,7,10,.26);
  transition: transform .16s ease, box-shadow .16s ease;
}
.wa-fab:hover { transform: translateY(-2px); color: #06301A; box-shadow: 0 10px 32px rgba(5,7,10,.32); }
.wa-fab svg { width: 22px; height: 22px; fill: currentColor; flex: 0 0 auto; }

/* =================== 18. BREADCRUMB & PAGE HEAD ========================== */
.page-head {
  position: relative; overflow: hidden;
  background: var(--ink-900); color: var(--slate-300);
  padding: clamp(2.4rem, 5vw, 3.8rem) 0 clamp(2.2rem, 4.5vw, 3.2rem);
}
.page-head::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
}
.page-head::after {
  content: "";
  position: absolute; right: -6%; top: -40%;
  width: 460px; height: 460px; border-radius: 50%;
  background:
    radial-gradient(circle at 36% 36%, rgba(227,30,36,.2), transparent 62%),
    radial-gradient(circle at 66% 64%, rgba(0,160,227,.2), transparent 64%);
  filter: blur(16px); pointer-events: none;
}
.page-head .wrap { position: relative; z-index: 1; }
.page-head h1 { color: #fff; margin-bottom: .7rem; }
.page-head .lead { color: var(--slate-300); max-width: 62ch; margin-bottom: 0; }

.breadcrumb { margin-bottom: 1.2rem; }
.breadcrumb ol {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  list-style: none; margin: 0; padding: 0;
  font-size: .84rem; color: var(--slate-400);
}
.breadcrumb li { margin: 0; display: inline-flex; align-items: center; gap: .5rem; }
.breadcrumb li + li::before { content: "/"; color: var(--slate-500); }
.breadcrumb a { color: var(--slate-300); font-weight: 550; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb [aria-current="page"] { color: #fff; font-weight: 600; }

/* in-page anchor nav */
.jump-nav {
  border-top: 1px solid var(--slate-150);
  border-bottom: 1px solid var(--slate-150);
  background: var(--slate-50);
}
.jump-nav ul {
  display: flex; flex-wrap: wrap; gap: .2rem;
  list-style: none; margin: 0; padding: 0;
}
.jump-nav li { margin: 0; }
.jump-nav a {
  display: inline-block; padding: .85rem .95rem;
  font-size: .9rem; font-weight: 600; color: var(--slate-500);
  border-bottom: 2px solid transparent;
}
.jump-nav a:hover { color: var(--red); border-bottom-color: var(--red); }

/* =========================== 19. UTILITIES =============================== */
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: .6rem; }  .mb-1 { margin-bottom: .6rem; }
.mt-2 { margin-top: 1.2rem; } .mb-2 { margin-bottom: 1.2rem; }
.mt-3 { margin-top: 2rem; }   .mb-3 { margin-bottom: 2rem; }
.mt-4 { margin-top: 3rem; }   .mb-4 { margin-bottom: 3rem; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.no-bullets { list-style: none; padding: 0; }
.two-col { columns: 2; column-gap: 2.4rem; }
.two-col li { break-inside: avoid; }

/* ========================== 20. RESPONSIVE =============================== */
@media (max-width: 1080px) {
  .nav-list > li > a { padding: .6rem .55rem; font-size: .9rem; }
  .brand-sub { display: none; }
}

@media (max-width: 940px) {
  :root { --header-h: 66px; }

  /* collapse the desktop nav into a panel */
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0;
    margin: 0;
    background: #fff;
    border-top: 1px solid var(--slate-150);
    padding: 1rem 24px 6rem;
    overflow-y: auto;
    display: none;
  }
  .nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--slate-150); }
  .nav-list > li > a {
    justify-content: space-between; padding: 1rem .2rem;
    font-size: 1.02rem; border-radius: 0;
  }
  .nav-list > li > a:hover, .nav-list > li.is-open > a { background: transparent; }
  .nav-list > li.is-open > a .caret { transform: rotate(180deg); }
  .caret { transition: transform .18s ease; }
  .submenu {
    position: static; min-width: 0;
    opacity: 1; visibility: visible; transform: none;
    border: 0; box-shadow: none; border-radius: 0;
    padding: 0 0 .8rem .2rem;
    display: none;
  }
  .nav-list > li:hover > .submenu { display: none; }
  .nav-list > li.is-open > .submenu { display: block; }
  .submenu a { padding: .62rem .8rem; border-left: 2px solid var(--slate-200); border-radius: 0; }
  .nav-mobile-cta { display: grid; gap: .7rem; margin-top: 1.4rem; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { order: -1; }
  .feature, .feature--flip .feature-media { grid-template-columns: 1fr; order: 0; }
  .feature-media { order: -1; }

  .grid--4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .stat-row { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 2rem; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .topbar .wrap { justify-content: center; }
  .topbar-tag, .topbar-social { display: none; }
  .topbar-contact { gap: 1rem; justify-content: center; font-size: .82rem; }

  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .dl-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .contact-strip { grid-template-columns: 1fr; }
  .cta-flex { flex-direction: column; align-items: flex-start; }
  .two-col { columns: 1; }
  .wa-fab span { display: none; }
  .wa-fab { padding: .9rem; }
}

@media (max-width: 520px) {
  .wrap { padding-inline: 18px; }
  .nav { padding-inline: 18px; }
  .grid--4 { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand img { width: 36px; }
  .brand-name { font-size: 1.2rem; }
  .btn { width: 100%; }
  .btn-row .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

@media print {
  .topbar, .site-header, .wa-fab, .cta-band, .jump-nav { display: none !important; }
  body { font-size: 11pt; color: #000; }
  .section--dark, .page-head, .hero { background: #fff !important; color: #000 !important; }
  .page-head h1, .hero h1 { color: #000 !important; }
  a { color: #000; }
}
