/* BabelFish Communications. White and fish blue, one page. */
:root {
  --blue: #00aeef;
  --blue-dark: #0088c2;
  --blue-deep: #005f8a;
  --blue-pale: #e6f7fe;
  --ink: #333;
  --muted: #6b7680;
  --line: #e4e9ee;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.22, .8, .3, 1);
  --shadow: 0 20px 50px -24px rgba(0, 95, 138, .35);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.7; color: var(--ink); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-dark); }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.15; font-weight: 800; color: #222; letter-spacing: -.01em; }
h1 { font-size: clamp(34px, 4.6vw, 58px); }
h2 { font-size: clamp(26px, 3vw, 38px); }
h3 { font-size: 20px; }
p { margin: 0 0 1.1em; }
ul { margin: 0; padding: 0; list-style: none; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--blue); color: #fff; padding: 8px 14px; font-weight: 700; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.eyebrow { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .85); }
.eyebrow--blue { color: var(--blue); }
.eyebrow--white { color: rgba(255, 255, 255, .85); }
.lead { font-size: 18px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: inherit; transition: transform .25s var(--ease), box-shadow .25s, background .2s, color .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-dark); color: #fff; }
.btn--white { background: #fff; color: var(--blue-deep); }
.btn--white:hover { color: var(--blue-dark); }
.btn--ghost { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--blue-deep); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.section { padding: 84px 0; }
.section--blue { background: linear-gradient(160deg, var(--blue) 0%, var(--blue-dark) 100%); color: #fff; }
.section--blue h2 { color: #fff; }
.section--contact { background: var(--blue-pale); }
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .12s; } .js .reveal[data-delay="2"] { transition-delay: .24s; }

/* ---------------------------------------------------------------- top bar */
.top { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.top__inner { display: flex; align-items: center; gap: 28px; height: 78px; }
.top__logo img { width: 230px; height: auto; }
.top__nav { display: flex; gap: 26px; margin-left: auto; }
.top__nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; position: relative; padding: 6px 0; }
.top__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--blue); transform: scaleX(0); transition: transform .25s var(--ease); transform-origin: left; }
.top__nav a:hover::after, .top__nav a.is-active::after { transform: scaleX(1); }
.top__call { padding: 10px 20px; font-size: 14px; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(135deg, #00b7f5 0%, var(--blue) 45%, var(--blue-dark) 100%); color: #fff; padding: 70px 0 120px; }
.hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero h1 { color: #fff; }
.hero .lead { color: rgba(255, 255, 255, .92); max-width: 520px; }
.swap { display: inline-block; position: relative; color: #fff; border-bottom: 4px solid rgba(255, 255, 255, .6); }
.swap.is-out { animation: swapout .25s forwards; } .swap.is-in { animation: swapin .35s var(--ease); }
@keyframes swapout { to { opacity: 0; transform: translateY(-10px); } }
@keyframes swapin { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.hero__phone img { width: 100%; max-width: 560px; margin: 0 auto; filter: drop-shadow(0 30px 40px rgba(0, 60, 90, .45)); animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 90px; z-index: 1; }
.bubbles { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.bubbles i { position: absolute; bottom: -60px; width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, .45); border-radius: 50%; animation: rise 11s linear infinite; }
.bubbles i:nth-child(1) { left: 6%; width: 12px; height: 12px; animation-duration: 9s; } .bubbles i:nth-child(2) { left: 18%; animation-delay: 2s; } .bubbles i:nth-child(3) { left: 31%; width: 26px; height: 26px; animation-delay: 5s; animation-duration: 14s; }
.bubbles i:nth-child(4) { left: 44%; animation-delay: 1s; } .bubbles i:nth-child(5) { left: 57%; width: 10px; height: 10px; animation-delay: 7s; } .bubbles i:nth-child(6) { left: 70%; animation-delay: 3.5s; animation-duration: 12s; }
.bubbles i:nth-child(7) { left: 83%; width: 30px; height: 30px; animation-delay: 6s; animation-duration: 16s; } .bubbles i:nth-child(8) { left: 93%; animation-delay: 4s; }
@keyframes rise { 0% { transform: translateY(0) translateX(0); opacity: 0; } 10% { opacity: 1; } 100% { transform: translateY(-110vh) translateX(20px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .bubbles i, .hero__phone img { animation: none; } }

/* ---------------------------------------------------------------- services */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px 28px; box-shadow: 0 10px 30px -20px rgba(0, 95, 138, .3); transition: transform .3s var(--ease), box-shadow .3s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card__icon { width: 58px; height: 58px; border-radius: 16px; background: var(--blue-pale); display: grid; place-items: center; margin-bottom: 18px; }
.card__icon svg { width: 32px; height: 32px; fill: var(--blue); }
.card p { margin: 0; color: #4b5560; font-size: 15px; }
.note { margin: 30px 0 0; padding: 16px 20px; border-left: 4px solid var(--blue); background: var(--blue-pale); border-radius: 0 12px 12px 0; font-size: 15px; color: #3d4852; }

/* ---------------------------------------------------------------- split sections */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split--rev .split__copy { order: 1; } .split--rev .split__img { order: 2; }
.split__img img { width: 100%; max-width: 520px; margin: 0 auto; }
.section--blue .split__img img { filter: drop-shadow(0 30px 40px rgba(0, 60, 90, .45)); }
.ticks li { position: relative; padding: 6px 0 6px 34px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 14px; height: 8px; border-left: 3px solid #fff; border-bottom: 3px solid #fff; transform: rotate(-45deg); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; }
.facts div { background: var(--blue-pale); border-radius: 14px; padding: 16px 14px; }
.facts strong { display: block; font-size: 22px; font-weight: 800; color: var(--blue-deep); line-height: 1.1; }
.facts span { font-size: 13px; color: var(--muted); }
.split__img--fish { display: grid; place-items: center; }
.fish { width: min(100%, 380px); filter: drop-shadow(0 20px 30px rgba(0, 95, 138, .25)); transition: transform .4s var(--ease); }
.split__img--fish:hover .fish { transform: rotate(-6deg) scale(1.04); }
.js .fish.is-in { animation: swim 7s ease-in-out infinite; }
@keyframes swim { 0%, 100% { transform: translate(0, 0) rotate(0); } 25% { transform: translate(10px, -8px) rotate(-3deg); } 60% { transform: translate(-8px, 6px) rotate(2deg); } }
@media (prefers-reduced-motion: reduce) { .js .fish.is-in { animation: none; } }

/* ---------------------------------------------------------------- contact */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 50px; align-items: start; }
.contact__list li { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-top: 1px solid rgba(0, 95, 138, .12); }
.contact__list svg { width: 26px; height: 26px; fill: var(--blue); flex: none; }
.contact__list a, .contact__list > li > span { text-decoration: none; color: var(--ink); line-height: 1.3; }
.contact__list strong { display: block; font-size: 18px; color: #222; }
.contact__list a span, .contact__list > li > span > span { font-size: 13px; color: var(--muted); }
.contact__list a:hover strong { color: var(--blue-dark); }
.contact__form { background: #fff; border-radius: 20px; padding: 30px; box-shadow: var(--shadow); }
.bf-form { display: grid; gap: 12px; }
.bf-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bf-form input, .bf-form textarea { width: 100%; padding: 13px 16px; border: 2px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; font-size: 15px; transition: border-color .2s; }
.bf-form input:focus, .bf-form textarea:focus { outline: none; border-color: var(--blue); }
.bf-form .is-invalid { border-color: #e0533e; }
.bf-form textarea { resize: vertical; min-height: 120px; }
.bf-form__hp { position: absolute; left: -9999px; }
.bf-form__submit { justify-self: start; }
.bf-form__submit:disabled { opacity: .6; cursor: wait; }
.bf-form__status { margin: 0; font-weight: 600; min-height: 1.5em; font-size: 15px; }
.bf-form__status.is-ok { color: #1b7f3b; } .bf-form__status.is-error { color: #c0392b; }

/* ---------------------------------------------------------------- footer */
.foot { background: #1f2a33; color: #b8c4cf; padding: 40px 0; font-size: 14px; }
.foot__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot img { width: 180px; height: auto; }
.foot p { margin: 0; } .foot a { color: #8fd8f7; }
.callbar { display: none; }
.is-404 .section { padding-top: 120px; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 960px) {
  .hero__inner, .split, .contact { grid-template-columns: 1fr; }
  .split--rev .split__copy { order: 2; } .split--rev .split__img { order: 1; }
  .hero__phone img { max-width: 420px; }
  .cards { grid-template-columns: 1fr; }
  .top__nav { display: none; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .section { padding: 56px 0; }
  .hero { padding: 44px 0 100px; }
  .top__inner { height: 66px; gap: 12px; }
  .top__logo img { width: 170px; }
  .top__call { display: none; }
  .bf-form__row, .facts { grid-template-columns: 1fr; }
  .contact__form { padding: 20px; }
  .foot { padding-bottom: 90px; }
  .callbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; align-items: baseline; justify-content: center; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--blue); color: #fff; text-decoration: none; box-shadow: 0 -8px 30px rgba(0, 0, 0, .2); }
  .callbar span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
  .callbar strong { font-size: 20px; font-weight: 800; }
}
