/* ===== Wave Exchange — light corporate theme ===== */
:root {
  --bg: #f4f6fa;
  --surface: #ffffff;
  --surface-2: #f1f4f9;
  --line: #e2e7ef;
  --line-2: #cfd7e3;
  --text: #0f1b2d;
  --text-2: #33435a;
  --muted: #64748b;
  --navy: #0b2a5b;
  --navy-2: #133c7c;
  --accent: #1a5fc4;
  --accent-soft: #e8f0fc;
  --up: #0f9d58;
  --down: #d93025;
  --wa: #25d366;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 27, 45, .06);
  --shadow: 0 1px 2px rgba(15, 27, 45, .05), 0 8px 24px -8px rgba(15, 27, 45, .12);
  --shadow-lg: 0 2px 4px rgba(15, 27, 45, .05), 0 24px 48px -16px rgba(15, 27, 45, .22);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--text); background: var(--bg); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
svg { width: 1.2em; height: 1.2em; flex: none; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; color: var(--navy); }
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
h1 em, h2 em { font-style: normal; color: var(--accent); }
p { margin: 0 0 1em; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.lead { font-size: 1.12rem; color: var(--text-2); max-width: 34rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .6em; text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 800; color: var(--accent); margin-bottom: .8em; }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--accent); border-radius: 2px; }

.glass { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; border-radius: 10px; padding: .75em 1.35em; transition: background .2s, box-shadow .2s, border-color .2s, transform .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn--primary { color: #fff; background: var(--navy); box-shadow: 0 6px 16px -6px rgba(11, 42, 91, .5); }
.btn--primary:hover { background: var(--navy-2); }
.btn--ghost { color: var(--navy); background: var(--surface); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--navy); }
.btn--sm { padding: .55em 1.05em; font-size: .9rem; }
.btn--lg { padding: .95em 1.6em; font-size: 1.02rem; }
.btn--block { width: 100%; }
.link { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--accent); cursor: pointer; display: inline-flex; align-items: center; gap: .4em; }
.link svg { transition: transform .2s; }
.link:hover svg { transform: translateX(4px); }

.pill { display: inline-flex; align-items: center; gap: .6em; padding: .45em .95em; border-radius: 999px; font-size: .84rem; font-weight: 700; background: var(--surface); border: 1px solid var(--line); color: var(--navy); margin-bottom: 1.4rem; box-shadow: var(--shadow-sm); }
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--up); }
.live { display: inline-flex; align-items: center; gap: .5em; font-size: .82rem; font-weight: 700; color: var(--up); }
.live__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--up); animation: pulse 2s infinite; }
.live.is-stale { color: #b7791f; }
.live.is-stale .live__dot { background: #b7791f; animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(15,157,88,.45); } 70% { box-shadow: 0 0 0 8px rgba(15,157,88,0); } 100% { box-shadow: 0 0 0 0 rgba(15,157,88,0); } }

/* ===== Nav ===== */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.nav.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.nav__inner { display: flex; align-items: center; gap: 2rem; height: 72px; }
.nav__logo { display: flex; align-items: center; gap: .7rem; text-decoration: none; font-weight: 800; font-size: 1.1rem; color: var(--navy); }
.nav__logo img { height: 40px; width: auto; }
.nav__logo em { font-style: normal; color: var(--accent); font-weight: 700; }
.nav__links { display: flex; gap: 1.8rem; margin-left: auto; }
.nav__links a { text-decoration: none; font-weight: 600; font-size: .94rem; color: var(--text-2); position: relative; padding: .4rem 0; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform .25s; }
.nav__links a:hover { color: var(--navy); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__burger { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; padding: 0; position: relative; }
.nav__burger span { position: absolute; left: 9px; right: 9px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .25s, top .25s; }
.nav__burger span:first-child { top: 15px; }
.nav__burger span:last-child { top: 23px; }
.nav__burger[aria-expanded="true"] span:first-child { top: 19px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { top: 19px; transform: rotate(-45deg); }

/* ===== Hero ===== */
.hero { position: relative; padding: 150px 0 90px; isolation: isolate; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -1; background: url("img/hero.jpg") right center/cover no-repeat; }
.hero__bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, #ffffff 0%, rgba(255,255,255,.97) 42%, rgba(244,246,250,.86) 70%, rgba(244,246,250,.78) 100%),
              linear-gradient(180deg, rgba(244,246,250,0) 70%, var(--bg) 100%); }
.hero__grid { display: grid; grid-template-columns: 1.2fr .95fr; gap: 4rem; align-items: center; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; margin: 2rem 0 0; }

.quote { padding: 1.4rem; box-shadow: var(--shadow-lg); }
.quote__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; gap: 1rem; padding-bottom: .9rem; border-bottom: 1px solid var(--line); }
.quote__rows { display: grid; }
.qrow { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: .9rem; padding: .75rem .3rem; border-bottom: 1px solid var(--line); }
.qrow:last-child { border-bottom: 0; }
.qrow__code { font-weight: 800; color: var(--navy); }
.qrow__name { display: block; font-size: .75rem; color: var(--muted); font-weight: 500; }
.qrow__val { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; min-width: 64px; }
.qrow__val small { display: block; font-size: .66rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.quote__link { display: flex; align-items: center; justify-content: center; gap: .4em; margin-top: .6rem; padding: .8rem; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent); font-weight: 700; text-decoration: none; transition: background .2s; }
.quote__link:hover { background: #dbe7fa; }
.flag { width: 30px; height: 21px; border-radius: 4px; object-fit: cover; box-shadow: 0 0 0 1px rgba(15,27,45,.1); background: var(--surface-2); }
.skeleton { height: 54px; margin: 4px 0; border-radius: var(--radius-sm); background: linear-gradient(90deg, #eef2f7, #f7f9fc, #eef2f7); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ===== Sections ===== */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; position: relative; }
.section--alt { background: var(--surface); border-block: 1px solid var(--line); }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: 2.2rem; flex-wrap: wrap; }
.section__head p.muted { max-width: 36rem; margin: 0; }
.section__head--center { justify-content: center; text-align: center; }
.section__head--center p.muted { margin-inline: auto; }
.section__head--center .eyebrow::before { display: none; }

/* ===== Rate board ===== */
.board__meta { display: flex; flex-direction: column; align-items: flex-end; gap: .3rem; }
.board { padding: .5rem 1.4rem 1.4rem; max-width: 860px; }
.table-wrap { overflow-x: auto; }
.rates { width: 100%; border-collapse: collapse; }
.rates th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 800; padding: 1rem; border-bottom: 2px solid var(--line); }
.rates td { padding: .85rem 1rem; border-bottom: 1px solid var(--line); }
.rates tbody tr { transition: background .2s; }
.rates tbody tr:hover { background: var(--surface-2); }
.rates .num { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; font-size: 1rem; color: var(--navy); }
.rates th.num { color: var(--muted); font-size: .74rem; }
.cur { display: flex; align-items: center; gap: .85rem; }
.cur b { display: block; color: var(--navy); }
.cur small { color: var(--muted); font-size: .8rem; }
.flash-up { animation: flashUp 2.4s; }
.flash-down { animation: flashDown 2.4s; }
@keyframes flashUp { 0%, 40% { background: rgba(15,157,88,.12); color: var(--up); } }
@keyframes flashDown { 0%, 40% { background: rgba(217,48,37,.1); color: var(--down); } }
.board__more { display: block; margin: 1rem auto 0; font: inherit; font-size: .9rem; font-weight: 700; color: var(--accent); background: var(--accent-soft); border: 0; border-radius: 999px; padding: .6rem 1.3rem; cursor: pointer; transition: background .2s; }
.board__more:hover { background: #dbe7fa; }
.board__note { margin: 1.2rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); }
#rates .container { display: flex; flex-direction: column; }
#rates .board { width: 100%; align-self: center; }
#rates .section__head { max-width: 860px; width: 100%; align-self: center; }

/* ===== Converter ===== */
.converter { display: grid; grid-template-columns: 1fr 1.05fr; gap: 4rem; align-items: center; }
.checks { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .7rem; }
.checks li { display: flex; gap: .7rem; align-items: center; font-weight: 600; color: var(--text-2); }
.checks li::before { content: ""; width: 22px; height: 22px; border-radius: 50%; flex: none;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%231a5fc4' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/13px no-repeat; }
.calc { padding: 1.8rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: .3rem; box-shadow: var(--shadow-lg); background: var(--surface); }
.section--alt .calc { background: var(--bg); }
.calc__field label { display: block; font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: .5rem; }
.calc__row { display: flex; gap: .6rem; padding: .45rem; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-2); transition: border-color .2s, box-shadow .2s; }
.calc__row:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(26,95,196,.15); }
.calc__row input, .calc__result { flex: 1 1 0; width: 100%; min-width: 0; background: none; border: 0; color: var(--navy); font: 800 clamp(1.35rem, 3vw, 1.75rem) var(--font); padding: .35rem .6rem; outline: none; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.calc__result { display: flex; align-items: center; color: var(--accent); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.select { position: relative; display: flex; align-items: center; gap: .5rem; padding: 0 .85rem; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--line); flex: none; }
.select img { width: 24px; height: 17px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(15,27,45,.1); }
.select select { appearance: none; -webkit-appearance: none; background: transparent; border: 0; color: var(--navy); font: 700 1rem var(--font); padding: .65rem 1.4rem .65rem 0; cursor: pointer; outline: none; }
.select::after { content: ""; position: absolute; right: .85rem; top: 50%; width: 7px; height: 7px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.calc__swap { justify-self: center; margin: .5rem 0 -.2rem; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); color: var(--navy); cursor: pointer; display: grid; place-items: center; transition: transform .35s, border-color .2s; box-shadow: var(--shadow-sm); }
.calc__swap:hover { transform: rotate(180deg); border-color: var(--navy); }
.calc__chips { display: flex; gap: .5rem; flex-wrap: wrap; margin: 1rem 0 .4rem; }
.calc__chips button { font: inherit; font-size: .82rem; font-weight: 700; color: var(--text-2); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .32rem .9rem; cursor: pointer; transition: color .2s, border-color .2s; }
.calc__chips button:hover { color: var(--navy); border-color: var(--navy); }
.calc__detail { margin: .6rem 0 1.2rem; display: grid; gap: .45rem; padding: 1rem; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.calc__detail div { display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; }
.calc__detail dt { color: var(--muted); }
.calc__detail dd { margin: 0; font-weight: 700; color: var(--navy); text-align: right; font-variant-numeric: tabular-nums; }
.calc__fine { margin: .8rem 0 0; }

/* ===== Services ===== */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.service { overflow: hidden; display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service img { aspect-ratio: 16/10; object-fit: cover; width: 100%; height: auto; }
.service__body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.service__body p { color: var(--muted); flex: 1; }
.service__icon { aspect-ratio: 16/10; display: grid; place-items: center; color: var(--accent); background: linear-gradient(160deg, var(--accent-soft), #f6f9fe); }
.service__icon svg { width: 76px; height: 76px; }
.tag { align-self: flex-start; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: .3em .8em; border-radius: 6px; background: var(--accent-soft); color: var(--accent); margin-bottom: .9rem; }
.tag--soon { background: #fdf3e1; color: #a16207; }

/* ===== About ===== */
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: center; }
.about__copy > p:not(.eyebrow) { color: var(--text-2); }
.about__media video { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-lg); background: #000; aspect-ratio: 16/10; object-fit: cover; }

/* ===== Location ===== */
.location { position: relative; isolation: isolate; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-lg); background: var(--surface); }
.location__map { position: relative; height: 640px; }
#map { position: absolute; inset: 0; }
.leaflet-container { background: #eef1f5; font-family: var(--font); }
.leaflet-tile-pane { filter: grayscale(.55) contrast(1.02) brightness(1.03); }
.leaflet-control-attribution { background: rgba(255,255,255,.85) !important; color: var(--muted) !important; font-size: 10px; }
.leaflet-control-attribution a { color: var(--muted) !important; }

.pin { position: relative; width: 64px; height: 64px; }
.pin__pulse { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(26,95,196,.28); animation: pinPulse 2.2s ease-out infinite; }
.pin__pulse--2 { animation-delay: 1.1s; }
.pin__core { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy); border: 3px solid #fff; box-shadow: 0 6px 18px rgba(11,42,91,.45); }
.pin__core::after { content: ""; width: 28px; height: 24px; background: url("img/logo-mark.png") center/contain no-repeat; }
@keyframes pinPulse { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(2.4); opacity: 0; } }
.pin-label { background: #fff !important; color: var(--navy) !important; border: 1px solid var(--line) !important; border-radius: 8px !important; padding: .3rem .7rem !important; font: 800 .8rem var(--font) !important; box-shadow: var(--shadow) !important; }
.pin-label::before { display: none; }

.map-ctrl { position: absolute; left: 18px; top: 18px; z-index: 500; display: flex; flex-direction: column; border-radius: 10px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.map-ctrl button { width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: none; color: var(--navy); font: 700 1.25rem var(--font); cursor: pointer; transition: background .2s; }
.map-ctrl button + button { border-top: 1px solid var(--line); }
.map-ctrl button:hover { background: var(--surface-2); }

.loc-card { position: absolute; z-index: 500; top: 22px; right: 22px; bottom: 22px; width: 360px; display: flex; flex-direction: column; gap: .9rem; padding: 1.4rem; overflow-y: auto;
  border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); scrollbar-width: thin; }
.loc-card__head { display: flex; align-items: center; gap: .9rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.loc-card__head img { width: 70px; height: auto; }
.loc-card__head h3 { margin: 0; font-size: 1.15rem; }
.loc-card__head p { margin: 0; }
.loc-card__addr { display: grid; grid-template-columns: auto 1fr; gap: .85rem; align-items: start; }
.loc-card__addr > svg { width: 36px; height: 36px; padding: 8px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); }
.loc-card__addr p { margin: 0 0 .3rem; font-weight: 600; line-height: 1.5; color: var(--text); }
.loc-card__addr .copy { grid-column: 2; justify-self: start; margin-top: -.2rem; }
.copy { display: inline-flex; align-items: center; gap: .35em; font: 700 .75rem var(--font); color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .35em .8em; cursor: pointer; transition: color .2s, border-color .2s; }
.copy svg { width: 14px; height: 14px; }
.copy:hover { color: var(--navy); border-color: var(--line-2); }
.copy.is-done { color: var(--up); border-color: rgba(15,157,88,.4); }
.loc-card__nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.nav-app { display: flex; flex-direction: column; align-items: center; gap: .4rem; padding: .75rem .3rem; border-radius: 10px; text-decoration: none; font-size: .76rem; font-weight: 700; color: var(--text-2); background: var(--surface-2); border: 1px solid transparent; transition: border-color .2s, background .2s; text-align: center; }
.nav-app:hover { border-color: var(--line-2); background: #fff; }
.nav-app__ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: #fff; }
.nav-app__ico svg { width: 18px; height: 18px; }
.nav-app__ico--g { background: linear-gradient(135deg, #34a853, #1a73e8); }
.nav-app__ico--w { background: linear-gradient(135deg, #33ccff, #0099e5); }
.nav-app__ico--a { background: linear-gradient(135deg, #8e8e93, #3a3a3c); }
.loc-card__contact { list-style: none; margin: 0; padding: .2rem 0; display: grid; border-block: 1px solid var(--line); }
.loc-card__contact a { display: flex; align-items: center; gap: .8rem; padding: .5rem .2rem; text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--text-2); transition: color .2s; }
.loc-card__contact a:hover { color: var(--accent); }
.loc-card__contact svg { color: var(--accent); }
.loc-card > .btn { margin-top: auto; }

/* ===== Footer ===== */
.footer { background: var(--navy); color: #c9d5ea; padding: 3rem 0 2rem; }
.footer .muted { color: #9fb0cc; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.footer__brand { display: flex; align-items: center; gap: 1.2rem; }
.footer__brand img { width: 64px; height: auto; }
.footer__brand p { margin: 0; max-width: 18rem; }
.footer__social { display: flex; gap: .6rem; }
.footer__social a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); transition: background .2s; }
.footer__social a:hover { background: rgba(255,255,255,.16); }
.footer__legal { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); }

/* ===== Floating contact button ===== */
.fab-wrap { position: fixed; right: 22px; bottom: 22px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: .7rem; }
.fab { width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; color: #fff; background: var(--navy); box-shadow: 0 0 0 3px #fff, 0 10px 28px -6px rgba(11,42,91,.55); transition: transform .2s, background .2s; }
.fab:hover { transform: scale(1.06); background: var(--navy-2); }
.fab svg { width: 26px; height: 26px; grid-area: 1 / 1; transition: transform .25s, opacity .2s; }
.fab__close { opacity: 0; transform: rotate(-90deg); }
.fab-wrap.is-open .fab__open { opacity: 0; transform: rotate(90deg); }
.fab-wrap.is-open .fab__close { opacity: 1; transform: none; }
.fab-menu { display: flex; flex-direction: column; align-items: flex-end; gap: .6rem; pointer-events: none; }
.fab-menu__item { display: flex; align-items: center; gap: .7rem; text-decoration: none; opacity: 0; transform: translateY(12px) scale(.9); transition: opacity .2s, transform .25s cubic-bezier(.2,.9,.3,1.2); }
.fab-menu__item:nth-child(1) { transition-delay: .04s; }
.fab-menu__item span { font-size: .85rem; font-weight: 700; color: var(--navy); background: #fff; padding: .35rem .75rem; border-radius: 8px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.fab-menu__ico { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: var(--shadow); margin-right: 4px; }
.fab-menu__ico svg { width: 24px; height: 24px; }
.fab-menu__ico--wa { background: var(--wa); }
.fab-menu__ico--ig { background: linear-gradient(45deg, #f9ce34, #ee2a7b 50%, #6228d7); }
.fab-wrap.is-open .fab-menu { pointer-events: auto; }
.fab-wrap.is-open .fab-menu__item { opacity: 1; transform: none; }

/* ===== Contact popover ===== */
.pop { position: fixed; inset: 0; z-index: 2000; }
.pop[hidden] { display: none; }
.pop__backdrop { position: absolute; inset: 0; }
.pop__panel { position: fixed; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; width: 270px; padding: .5rem; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); animation: pop .2s cubic-bezier(.2,.9,.3,1.2); }
.pop__opt { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: .95rem .5rem .85rem; border-radius: 10px; text-decoration: none; font-size: .86rem; color: var(--navy); background: var(--surface-2); border: 1px solid transparent; transition: border-color .2s, background .2s; }
.pop__opt:hover { background: #fff; border-color: var(--line-2); }
.pop__opt svg { width: 44px; height: 44px; padding: 10px; border-radius: 12px; color: #fff; }
.pop__opt--wa svg { background: var(--wa); }
.pop__opt--ig svg { background: linear-gradient(45deg, #f9ce34, #ee2a7b 50%, #6228d7); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.97); } }

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

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .nav__links { position: fixed; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; padding: .3rem 16px 1rem; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); transform: translateY(-130%); transition: transform .3s; z-index: -1; }
  .nav__links.is-open { transform: none; }
  .nav__links a { padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .nav__links a::after { display: none; }
  .nav__inner > .btn { margin-left: auto; }
  .nav__burger { display: block; }
  .hero { padding: 120px 0 70px; }
  .hero__bg::after { background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(244,246,250,.92) 70%, var(--bg)); }
  .hero__grid, .converter, .about { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .services { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; }
  .board__meta { align-items: flex-start; }
  .location__map { height: 400px; }
  .loc-card { position: relative; inset: auto; width: auto; border-radius: 0; border: 0; border-top: 1px solid var(--line); box-shadow: none; overflow: visible; }
  .loc-card > .btn { margin-top: .3rem; }
}
@media (max-width: 640px) {
  .nav__inner { gap: .8rem; }
  .nav__inner > .btn { font-size: .82rem; padding: .5em .9em; }
  .nav__logo span { display: none; }
  .nav__logo img { height: 36px; }
  .btn--lg { width: 100%; }
  .board { padding: .3rem .8rem 1rem; }
  .rates td, .rates th { padding: .75rem .5rem; }
  .cur small { display: none; }
  .flag { width: 26px; height: 18px; }
  .calc { padding: 1.2rem; }
  .select { padding: 0 .7rem; }
  .location { border-radius: 14px; }
  .location__map { height: 320px; }
  .loc-card { padding: 1.2rem; }
  .map-ctrl { left: 12px; top: 12px; }
  .map-ctrl button { width: 36px; height: 36px; }
  .pop__backdrop { background: rgba(15,27,45,.45); animation: fade .2s; }
  .pop__panel { left: 12px !important; right: 12px; bottom: 12px; top: auto !important; width: auto; padding: .6rem; border-radius: 18px; }
  .pop__opt { padding: 1.1rem .5rem 1rem; }
  .fab-wrap { right: 16px; bottom: 16px; }
  .fab { width: 54px; height: 54px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
