/* East Marine — hsdredging.com
   Palette drawn from real product photography: deep marine navy from the reservoir
   hero, brand red from the East Marine mark as accent, rubber-black neutrals. */

:root {
  /* brand */
  --brand:        #12304a;
  --brand-700:    #0d2438;
  --brand-900:    #081826;
  --brand-500:    #1d4a70;
  --brand-300:    #4f7ea5;
  --brand-100:    #dbe6ef;
  --brand-50:     #f2f6fa;

  --accent:       #e11133;
  --accent-600:   #bd0c2a;
  --accent-300:   #ff7d95;
  --accent-50:    #fdeef1;

  --whatsapp:     #25d366;
  --whatsapp-600: #1da851;

  /* neutrals */
  --ink:          #131a20;
  --ink-2:        #2f3b45;
  --ink-3:        #5a6772;
  --ink-4:        #8b959e;
  --line:         #dfe4e9;
  --line-2:       #eef1f4;
  --paper:        #ffffff;
  --paper-2:      #f6f8fa;
  --paper-3:      #eef2f6;

  /* type */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-xs:   0.75rem;
  --fs-sm:   0.8125rem;
  --fs-base: 0.9375rem;
  --fs-md:   1.0625rem;
  --fs-lg:   1.25rem;
  --fs-xl:   1.5rem;
  --fs-2xl:  1.875rem;
  --fs-3xl:  2.375rem;
  --fs-4xl:  3rem;
  --lh-tight: 1.18;
  --lh-snug:  1.35;
  --lh-body:  1.7;

  /* space */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --s-9: 88px; --s-10: 120px;

  /* shape */
  --r-sm: 3px;  --r: 6px;  --r-lg: 10px;  --r-full: 999px;
  --shadow-1: 0 1px 2px rgba(19,26,32,.06), 0 1px 3px rgba(19,26,32,.05);
  --shadow-2: 0 4px 10px rgba(19,26,32,.07), 0 2px 4px rgba(19,26,32,.05);
  --shadow-3: 0 14px 34px rgba(19,26,32,.13), 0 4px 10px rgba(19,26,32,.07);
  --shadow-menu: 0 18px 44px rgba(8,24,38,.18);

  --wrap: 1240px;
  --header-h: 72px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter.woff2") format("woff2");
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  margin: 0 0 var(--s-4);
  color: var(--ink);
  line-height: var(--lh-tight);
  font-weight: 700;
  letter-spacing: -0.018em;
}
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); }
p  { margin: 0 0 var(--s-4); }
a  { color: var(--brand-500); text-decoration: none; }
a:hover { color: var(--accent-600); }

ul, ol { margin: 0 0 var(--s-4); padding-left: 1.15em; }
li { margin-bottom: var(--s-2); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s-5); }
.section { padding: var(--s-9) 0; }
.section--tight { padding: var(--s-7) 0; }
.section--alt { background: var(--paper-2); }
.section--ink { background: var(--brand-900); color: var(--brand-100); }
.section--ink h2, .section--ink h3 { color: #fff; }

.eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--accent-600);
  margin-bottom: var(--s-3);
}
.section--ink .eyebrow { color: var(--accent-300); }

.lede { font-size: var(--fs-md); color: var(--ink-3); max-width: 62ch; }
.section--ink .lede { color: var(--brand-100); }

.head { max-width: 68ch; margin-bottom: var(--s-7); }
.head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 12px 22px;
  border-radius: var(--r);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: .01em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-600); color: #fff; }
.btn--brand { background: var(--brand); color: #fff; }
.btn--brand:hover { background: var(--brand-700); color: #fff; }
.btn--ghost { border-color: var(--line); color: var(--ink); background: var(--paper); }
.btn--ghost:hover { border-color: var(--brand-500); color: var(--brand-500); }
.btn--onimg { border-color: rgba(255,255,255,.6); color: #fff; background: rgba(8,24,38,.25); backdrop-filter: blur(3px); }
.btn--onimg:hover { background: #fff; color: var(--brand-900); border-color: #fff; }
.btn--wide { width: 100%; justify-content: center; }
.btn svg { width: 17px; height: 17px; flex: none; }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar {
  background: var(--brand-900);
  color: var(--brand-100);
  font-size: var(--fs-xs);
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); min-height: 34px; }
.topbar a { color: var(--brand-100); }
.topbar a:hover { color: #fff; }
.topbar__set { display: flex; gap: var(--s-5); align-items: center; }

.navbar { display: flex; align-items: center; gap: var(--s-5); min-height: var(--header-h); }
.brandmark { display: flex; align-items: center; flex: none; }
.brandmark img { height: 44px; width: auto; }

.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav__item { position: relative; }
.nav__link {
  display: flex; align-items: center; gap: 5px;
  padding: 10px 13px;
  font-size: var(--fs-sm); font-weight: 600; color: var(--ink);
  border-radius: var(--r-sm);
  white-space: nowrap;
  transition: color .15s var(--ease), background .15s var(--ease);
}
.nav__link:hover, .nav__item:hover > .nav__link, .nav__link[aria-current="page"] { color: var(--brand-500); background: var(--brand-50); }
.nav__link svg { width: 11px; height: 11px; opacity: .55; transition: transform .2s var(--ease); }
.nav__item:hover .nav__link svg { transform: rotate(180deg); }
.nav__cta { margin-left: var(--s-4); flex: none; }

/* ---------- mega menu ---------- */
.mega {
  position: absolute; top: 100%; left: 50%;
  transform: translate(-50%, 6px);
  width: min(940px, calc(100vw - 48px));
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-menu);
  padding: var(--s-5);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .16s var(--ease), transform .16s var(--ease), visibility .16s;
  max-height: min(74vh, 620px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.nav__item:hover .mega, .nav__item:focus-within .mega {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0);
}
.mega::before { content: ""; position: absolute; top: -8px; left: 0; right: 0; height: 8px; }
.mega__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); }
.mega__col { min-width: 0; }
.mega__title {
  display: block;
  font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  color: var(--ink-4); padding-bottom: var(--s-2); margin-bottom: var(--s-3);
  border-bottom: 1px solid var(--line-2);
}
.mega__thumb {
  display: flex; gap: var(--s-3); align-items: center;
  padding: 7px; margin: 0 -7px var(--s-2);
  border-radius: var(--r); min-width: 0;
  transition: background .14s var(--ease);
}
.mega__thumb:hover { background: var(--brand-50); }
.mega__thumb img {
  width: 48px; height: 40px; object-fit: cover; flex: none;
  border-radius: var(--r-sm); background: var(--paper-3);
}
.mega__thumb span {
  font-size: var(--fs-sm); font-weight: 600; color: var(--ink); line-height: 1.3;
  overflow-wrap: anywhere;
}
.mega__thumb:hover span { color: var(--brand-500); }
.mega__link {
  display: block; font-size: var(--fs-sm); color: var(--ink-3);
  padding: 5px 0; overflow-wrap: anywhere;
}
.mega__link:hover { color: var(--brand-500); }
.mega__foot {
  margin-top: var(--s-4); padding-top: var(--s-4);
  border-top: 1px solid var(--line-2);
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-4);
  flex-wrap: wrap;
}
.mega__foot p { margin: 0; font-size: var(--fs-sm); color: var(--ink-3); }

/* ---------- mobile nav ---------- */
.burger {
  display: none; margin-left: auto;
  width: 42px; height: 42px; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); cursor: pointer;
}
.burger svg { width: 20px; height: 20px; }
.mnav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--paper);
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
  padding: var(--s-4) 0 var(--s-6);
}
.mnav.is-open { display: block; }
.mnav a { display: block; padding: 11px 0; font-size: var(--fs-base); font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line-2); }
.mnav a.sub { padding-left: var(--s-4); font-weight: 500; font-size: var(--fs-sm); color: var(--ink-3); }
.mnav .btn { margin-top: var(--s-5); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(88vh, 760px); display: flex; align-items: flex-end; overflow: hidden; background: var(--brand-900); }
.hero__slides { position: absolute; inset: 0; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s var(--ease); }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.hero__slide::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(8,24,38,.90) 0%, rgba(8,24,38,.62) 42%, rgba(8,24,38,.28) 75%, rgba(8,24,38,.42) 100%),
    linear-gradient(to right, rgba(8,24,38,.55) 0%, rgba(8,24,38,.05) 62%);
}
.hero__inner { position: relative; z-index: 2; width: 100%; padding: var(--s-10) 0 var(--s-8); }
.hero__copy { max-width: 730px; color: #fff; }
.hero__copy .eyebrow { color: var(--accent-300); }
.hero__copy h1 { color: #fff; font-size: clamp(1.9rem, 4.2vw, 3.1rem); margin-bottom: var(--s-4); text-shadow: 0 2px 18px rgba(8,24,38,.4); }
.hero__copy p { font-size: var(--fs-md); color: rgba(255,255,255,.92); max-width: 60ch; }
.hero__cta { display: flex; gap: var(--s-3); flex-wrap: wrap; margin-top: var(--s-6); }
.hero__dots { display: flex; gap: var(--s-2); margin-top: var(--s-7); }
.hero__dot {
  width: 34px; height: 3px; border: 0; padding: 0; cursor: pointer;
  background: rgba(255,255,255,.35); border-radius: var(--r-full);
  transition: background .2s var(--ease);
}
.hero__dot.is-active { background: var(--accent); }
.hero__strip {
  position: relative; z-index: 2;
  border-top: 1px solid rgba(255,255,255,.16);
  background: rgba(8,24,38,.55);
  backdrop-filter: blur(5px);
}
.hero__strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); padding-top: var(--s-4); padding-bottom: var(--s-4); }
.hero__stat b { display: block; color: #fff; font-size: var(--fs-lg); line-height: 1.2; }
.hero__stat span { font-size: var(--fs-xs); color: rgba(255,255,255,.72); text-transform: uppercase; letter-spacing: .08em; }

/* ---------- page hero ---------- */
.phero { position: relative; background: var(--brand-900); color: #fff; overflow: hidden; }
.phero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.phero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, rgba(8,24,38,.88), rgba(8,24,38,.55)); }
.phero__inner { position: relative; z-index: 2; padding: var(--s-8) 0 var(--s-7); }
.phero h1 { color: #fff; max-width: 24ch; }
.phero .lede { color: rgba(255,255,255,.88); }

.crumbs { font-size: var(--fs-xs); color: var(--ink-4); padding: var(--s-4) 0; }
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--brand-500); }
.crumbs span { margin: 0 6px; opacity: .5; }
.phero .crumbs, .phero .crumbs a { color: rgba(255,255,255,.7); }
.phero .crumbs a:hover { color: #fff; }

/* ---------- grids & cards ---------- */
.grid { display: grid; gap: var(--s-5); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease);
}
.card:hover { border-color: var(--brand-300); box-shadow: var(--shadow-2); transform: translateY(-2px); }
.card__media { aspect-ratio: 4 / 3; background: var(--paper-3); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.card:hover .card__media img { transform: scale(1.035); }
.card__body { padding: var(--s-5); display: flex; flex-direction: column; flex: 1; }
.card__tag { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-600); margin-bottom: var(--s-2); }
.card__body h3 { font-size: var(--fs-md); margin-bottom: var(--s-2); }
.card__body p { font-size: var(--fs-sm); color: var(--ink-3); margin-bottom: var(--s-4); }
.card__more { margin-top: auto; font-size: var(--fs-sm); font-weight: 700; color: var(--brand-500); display: inline-flex; align-items: center; gap: 6px; }
.card:hover .card__more { color: var(--accent-600); }

.tile {
  display: block; padding: var(--s-5);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.tile:hover { border-color: var(--brand-300); box-shadow: var(--shadow-2); }
.tile h3 { font-size: var(--fs-md); }
.tile p { font-size: var(--fs-sm); color: var(--ink-3); margin: 0; }

.feature { display: flex; gap: var(--s-4); }
.feature__num {
  flex: none; width: 34px; height: 34px; border-radius: var(--r-full);
  background: var(--brand-50); color: var(--brand-500);
  display: grid; place-items: center; font-weight: 700; font-size: var(--fs-sm);
}
.section--ink .feature__num { background: rgba(255,255,255,.1); color: var(--accent-300); }
.feature h4 { margin-bottom: 4px; }
.feature p { font-size: var(--fs-sm); color: var(--ink-3); margin: 0; }
.section--ink .feature p { color: var(--brand-100); }

/* ---------- product page ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--s-8); align-items: start; }
.gallery__main { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--paper-3); aspect-ratio: 4 / 3; }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: flex; gap: var(--s-3); margin-top: var(--s-3); flex-wrap: wrap; }
.gallery__thumbs button {
  width: 78px; height: 62px; padding: 0; cursor: pointer; overflow: hidden;
  border: 1.5px solid var(--line); border-radius: var(--r); background: var(--paper-3);
}
.gallery__thumbs button.is-active { border-color: var(--accent); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.pdp__aside h1 { font-size: var(--fs-2xl); }
.spec-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); margin-bottom: var(--s-5); }
.spec-table th, .spec-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.spec-table th { width: 44%; color: var(--ink-3); font-weight: 600; background: var(--paper-2); }
.spec-table td { color: var(--ink); font-weight: 600; }
.table-scroll { overflow-x: auto; }

.checks { list-style: none; padding: 0; margin: 0 0 var(--s-5); }
.checks li { position: relative; padding-left: 26px; font-size: var(--fs-sm); margin-bottom: 10px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .52em;
  width: 13px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.section--ink .checks li::before { border-color: var(--accent-300); }

.prose h2 { font-size: var(--fs-xl); margin-top: var(--s-7); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: var(--fs-md); margin-top: var(--s-5); }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: var(--s-4) 40px var(--s-4) 0;
  font-weight: 700; color: var(--ink); font-size: var(--fs-base); position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 10px; top: 50%;
  width: 9px; height: 9px; margin-top: -6px;
  border-right: 2px solid var(--ink-4); border-bottom: 2px solid var(--ink-4);
  transform: rotate(45deg); transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { font-size: var(--fs-sm); color: var(--ink-3); padding-bottom: var(--s-4); margin: 0; max-width: 76ch; }

.note {
  border-left: 3px solid var(--accent);
  background: var(--accent-50);
  padding: var(--s-4) var(--s-5);
  border-radius: 0 var(--r) var(--r) 0;
  font-size: var(--fs-sm);
}
.note p:last-child { margin: 0; }

.cta-band { background: var(--brand-900); color: #fff; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s-6); padding-top: var(--s-7); padding-bottom: var(--s-7); flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: var(--s-2); }
.cta-band p { color: var(--brand-100); margin: 0; max-width: 56ch; }
.cta-band__btns { display: flex; gap: var(--s-3); flex-wrap: wrap; }

.clients { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.client-chip {
  border: 1px solid var(--line); border-radius: var(--r-full);
  padding: 7px 18px; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2);
  background: var(--paper);
}

.contact-row { display: flex; gap: var(--s-4); align-items: flex-start; padding: var(--s-5) 0; border-bottom: 1px solid var(--line-2); }
.contact-row__icon {
  flex: none; width: 40px; height: 40px; border-radius: var(--r);
  background: var(--brand-50); color: var(--brand-500); display: grid; place-items: center;
}
.contact-row__icon svg { width: 19px; height: 19px; }
.contact-row h4 { margin-bottom: 2px; font-size: var(--fs-sm); }
.contact-row p { margin: 0; font-size: var(--fs-base); color: var(--ink); }
.contact-row small { color: var(--ink-4); font-size: var(--fs-xs); }

/* ---------- floating contact ---------- */
.fab {
  position: fixed; right: 20px; bottom: 24px; z-index: 400;
  display: flex; flex-direction: column; gap: 10px;
}
.fab a {
  width: 52px; height: 52px; border-radius: var(--r-full);
  display: grid; place-items: center;
  box-shadow: var(--shadow-3);
  transition: transform .18s var(--ease), filter .18s var(--ease);
}
.fab a:hover { transform: translateY(-2px) scale(1.04); }
.fab svg { width: 26px; height: 26px; }
.fab__wa { background: var(--whatsapp); color: #fff; }
.fab__wa:hover { background: var(--whatsapp-600); color: #fff; }
.fab__mail { background: var(--brand); color: #fff; }
.fab__mail:hover { background: var(--brand-700); color: #fff; }

/* ---------- footer ---------- */
.footer { background: var(--brand-900); color: var(--brand-100); font-size: var(--fs-sm); }
.footer__top { padding: var(--s-8) 0 var(--s-7); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: var(--s-6); }
.footer h4 { color: #fff; font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .1em; margin-bottom: var(--s-4); }
.footer a { color: var(--brand-100); display: block; padding: 4px 0; }
.footer a:hover { color: #fff; }
.footer p { color: rgba(219,230,239,.8); }
.footer__logo img { height: 46px; width: auto; margin-bottom: var(--s-4); }
.footer__bar {
  border-top: 1px solid rgba(255,255,255,.13);
  padding: var(--s-4) 0;
  display: flex; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap;
  font-size: var(--fs-xs); color: rgba(219,230,239,.62);
}
.footer__bar a { display: inline; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .mega { width: min(860px, calc(100vw - 40px)); }
  .nav__link { padding: 10px 10px; }
}

@media (max-width: 1080px) {
  :root { --fs-3xl: 2.1rem; --fs-2xl: 1.7rem; }
  .mega__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mega { width: min(620px, calc(100vw - 40px)); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--s-6) var(--s-5); }
  .pdp { grid-template-columns: 1fr; gap: var(--s-6); }
}

@media (max-width: 900px) {
  .nav, .nav__cta { display: none; }
  .burger { display: flex; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .hero__strip .wrap { grid-template-columns: repeat(2, 1fr); gap: var(--s-4) var(--s-5); }
  .topbar__set--hide { display: none; }
}

@media (max-width: 720px) {
  :root { --fs-3xl: 1.8rem; --fs-2xl: 1.5rem; --s-9: 56px; --s-10: 72px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero__inner { padding: var(--s-8) 0 var(--s-6); }
  .cta-band .wrap { flex-direction: column; align-items: flex-start; }
  .footer__grid { grid-template-columns: 1fr; }
  .fab { right: 14px; bottom: 78px; }
  .fab a { width: 48px; height: 48px; }
  .btn { padding: 11px 18px; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 var(--s-4); }
  .hero__copy h1 { font-size: 1.6rem; }
  .gallery__thumbs button { width: 62px; height: 50px; }
  .hero__cta .btn { width: 100%; justify-content: center; }
}

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

@media print {
  .header, .fab, .cta-band, .footer__top { display: none; }
  body { color: #000; }
}

/* mega-menu "view all" text link + mobile CTA (keeps a single .btn CTA in the header) */
.mega__all {
  font-size: var(--fs-sm); font-weight: 700; color: var(--brand-500);
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.mega__all:hover { color: var(--accent-600); }
.mnav__cta {
  display: flex !important; align-items: center; justify-content: center;
  margin-top: var(--s-5); padding: 13px 20px !important;
  background: var(--accent); color: #fff !important;
  border-radius: var(--r); border-bottom: 0 !important;
  font-weight: 700;
}
.mnav__cta:hover { background: var(--accent-600); color: #fff !important; }

@media (max-width: 1320px) {
  .hero__copy h1 { max-width: 20ch; }
}

@media (min-width: 1600px) {
  :root { --wrap: 1320px; }
}

/* --- language switcher + RTL (added by msbuild.py) --- */
.langsw{position:relative;display:inline-block;margin-inline-start:.75rem;font-size:.875rem}
.langsw__btn{display:inline-flex;align-items:center;gap:.35rem;padding:.4rem .7rem;border:1px solid currentColor;
  border-radius:999px;background:transparent;color:inherit;cursor:pointer;font:inherit;line-height:1}
.langsw__btn::after{content:"";width:.4em;height:.4em;border-right:2px solid currentColor;
  border-bottom:2px solid currentColor;transform:rotate(45deg);margin-block-end:.15em}
.langsw__menu{position:absolute;inset-inline-end:0;top:calc(100% + .4rem);z-index:120;min-width:11rem;margin:0;padding:.3rem;
  list-style:none;border-radius:.6rem;background:#fff;box-shadow:0 12px 32px rgba(0,0,0,.18);display:none}
.langsw:hover .langsw__menu,.langsw:focus-within .langsw__menu,
.langsw__btn[aria-expanded="true"]+.langsw__menu{display:block}
.langsw__menu a{display:block;padding:.45rem .7rem;border-radius:.4rem;color:#111;text-decoration:none;white-space:nowrap}
.langsw__menu a:hover,.langsw__menu a:focus-visible{background:rgba(0,0,0,.06)}
.langsw__menu a[aria-current="true"]{font-weight:700}
@media (max-width:768px){.langsw{margin-inline-start:.4rem}.langsw__menu{inset-inline-end:auto;inset-inline-start:0}}
[dir="rtl"] body{text-align:right}
[dir="rtl"] .breadcrumbs,[dir="rtl"] .nav,[dir="rtl"] .hero__actions{flex-direction:row-reverse}
[dir="rtl"] ul,[dir="rtl"] ol{padding-inline-start:1.25rem;padding-inline-end:0}
[dir="rtl"] table{direction:rtl}
:lang(ja),:lang(ko){line-height:1.85;word-break:normal;overflow-wrap:anywhere}
:lang(ar){line-height:2;letter-spacing:0}
:lang(ru),:lang(de){overflow-wrap:break-word;hyphens:auto}


/* cify-nav-bullets-fix-20260924 */
nav ul, .nav ul, .nav-list, .nav-ul, .nav__list, ul.nav { list-style: none; }
nav li, .nav li, .nav-list > li, .nav-ul > li, .nav__list > li, ul.nav > li { list-style: none; }
.nav__item, .site-header, .header { overflow: visible; }

/* cify-langsw-ml-fix-20260925 */
.langsw{position:relative;flex:0 0 auto;z-index:300}
.langsw__menu{list-style:none;padding-left:0;z-index:300!important;inset-inline-end:0;inset-inline-start:auto}
.langsw__menu::before{content:"";position:absolute;left:0;right:0;bottom:100%;height:.6rem}
.langsw.is-open .langsw__menu,.langsw__btn[aria-expanded="true"]+.langsw__menu{opacity:1!important;visibility:visible!important;transform:none!important;display:block}
[dir="rtl"] .langsw__menu{inset-inline-end:0;inset-inline-start:auto}

/* cify-rtl-skiplink-fix-20260925 */
[dir="rtl"] .skip-link:not(:focus),[dir="rtl"] .skip:not(:focus),[dir="rtl"] .sr-only,[dir="rtl"] .visually-hidden{left:auto!important;right:-9999px!important}

/* cify-langsw-float-20260925: switcher sat outside the header row (wrapped under logo, menu clipped) -> floating pill bottom-left */
html body .langsw{position:fixed!important;left:16px!important;right:auto!important;bottom:16px!important;top:auto!important;margin:0!important;z-index:9990!important;display:inline-block!important;font-size:13px}
html body .langsw .langsw__btn{display:inline-flex;align-items:center;gap:.35rem;padding:.45rem .9rem;border-radius:999px;background:#111;color:#fff;border:1px solid rgba(255,255,255,.25);box-shadow:0 6px 20px rgba(0,0,0,.25);cursor:pointer;font-weight:600;line-height:1.2}
html body .langsw .langsw__menu{position:absolute!important;top:auto!important;bottom:100%!important;left:0!important;right:auto!important;margin:0 0 8px!important;min-width:11rem;max-height:70vh;overflow:auto;background:#fff;border:1px solid #e3e6ea;border-radius:10px;box-shadow:0 14px 38px rgba(0,0,0,.18);padding:6px 0;list-style:none}
html body .langsw .langsw__menu::before{top:100%!important;bottom:auto!important;height:10px!important;content:"";position:absolute;left:0;right:0}
html body .langsw .langsw__menu li{list-style:none;margin:0}
html body .langsw .langsw__menu a{display:block;padding:.45em 1em;color:#172130;white-space:nowrap;text-decoration:none}
html body .langsw .langsw__menu a:hover{background:#f3f5f7}
