/* ============================================================
   BINARIO — "Friendly Binary" design system
   Warm, human, rounded. Navy anchor + sky/sun/coral accents.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,600;12..96,700;12..96,800&family=Hanken+Grotesk:wght@400;500;600;700&display=swap');

:root {
  /* base */
  --cream:     #FFF7EC;
  --cream-2:   #FBEDD8;
  --paper:     #FFFFFF;

  /* ink / navy */
  --ink:       #15233F;
  --ink-2:     #2C3C5C;
  --ink-soft:  #5A6A89;
  --line:      #ECE0CC;

  /* accents */
  --sky:       #2EA4F2;
  --sky-deep:  #1B7CC4;
  --sky-soft:  #DBF0FF;
  --sun:       #FFC83D;
  --sun-soft:  #FFEFC2;
  --coral:     #FF7A59;
  --coral-soft:#FFE2D8;
  --mint:      #4FCBA0;
  --mint-soft: #D6F4E9;

  /* radius */
  --r-xs: 10px;
  --r-sm: 14px;
  --r:    22px;
  --r-lg: 30px;
  --r-xl: 44px;
  --pill: 999px;

  /* shadow */
  --sh-sm: 0 2px 10px rgba(21,35,63,.06);
  --sh:    0 18px 40px -18px rgba(21,35,63,.28);
  --sh-lg: 0 40px 80px -30px rgba(21,35,63,.34);
  --sh-sun: 0 16px 30px -12px rgba(255,162,40,.5);
  --sh-sky: 0 16px 30px -12px rgba(46,164,242,.5);

  --maxw: 1200px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  background: var(--cream);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}

p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 26px; }
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section-sm { padding: clamp(44px, 6vw, 80px) 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 700; font-size: 13px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--sky-deep);
}
.eyebrow::before {
  content: ""; width: 22px; height: 10px; border-radius: var(--pill);
  background: repeating-linear-gradient(90deg, var(--sun) 0 5px, transparent 5px 9px);
}
.eyebrow.c-coral { color: var(--coral); }
.eyebrow.c-coral::before { background: repeating-linear-gradient(90deg, var(--coral) 0 5px, transparent 5px 9px); }
.eyebrow.c-mint { color: #2f9b78; }
.eyebrow.on-dark { color: var(--sun); }
.eyebrow.on-dark::before { background: repeating-linear-gradient(90deg, var(--sky) 0 5px, transparent 5px 9px); }

.h-display { font-size: clamp(2.6rem, 6.4vw, 5.2rem); font-weight: 800; }
.h1 { font-size: clamp(2.2rem, 4.6vw, 3.7rem); font-weight: 800; }
.h2 { font-size: clamp(1.8rem, 3.4vw, 2.9rem); font-weight: 700; }
.h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 700; }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.32rem); color: var(--ink-2); line-height: 1.55; }
.muted { color: var(--ink-soft); }

.center { text-align: center; }
.center .eyebrow { justify-content: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 16px;
  padding: 15px 26px; border-radius: var(--pill);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--sky); color: #fff; box-shadow: var(--sh-sky); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 22px 36px -12px rgba(46,164,242,.6); }
.btn-sun { background: var(--sun); color: var(--ink); box-shadow: var(--sh-sun); }
.btn-sun:hover { transform: translateY(-3px); box-shadow: 0 22px 36px -12px rgba(255,162,40,.62); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { transform: translateY(-3px); background: var(--ink-2); }
.btn-ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; transform: translateY(-3px); }
.btn-white { background: #fff; color: var(--ink); box-shadow: var(--sh-sm); }
.btn-white:hover { transform: translateY(-3px); box-shadow: var(--sh); }
.btn-lg { padding: 18px 34px; font-size: 17px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--sky-deep); }
.link-arrow svg { width: 17px; height: 17px; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ---------- badge / chip ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 600; font-size: 14px; color: var(--ink-2);
  background: var(--paper); border: 1.5px solid var(--line);
  padding: 8px 15px; border-radius: var(--pill);
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--sun); flex: none; }
.chip.is-filter { cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.chip.is-filter:hover { border-color: var(--ink); }
.chip.is-filter.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- cards ---------- */
.card {
  background: var(--paper); border-radius: var(--r-lg);
  border: 1.5px solid var(--line);
  box-shadow: var(--sh-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card-hover:hover { transform: translateY(-6px); box-shadow: var(--sh); }

/* ---------- decorative ---------- */
.dotgrid {
  background-image: radial-gradient(currentColor 2px, transparent 2px);
  background-size: 18px 18px;
}
.blob { position: absolute; border-radius: 50%; filter: blur(2px); pointer-events: none; z-index: 0; }

.squiggle { display: block; }

/* ---------- header ---------- */
.topbar {
  background: var(--ink); color: #cfd9ec;
  font-size: 13.5px; font-weight: 500;
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 42px; }
.topbar a { display: inline-flex; align-items: center; gap: 7px; transition: color .2s; }
.topbar a:hover { color: #fff; }
.topbar .tb-left { display: flex; gap: 22px; }
.topbar .tb-right { display: flex; gap: 16px; align-items: center; }
.topbar svg { width: 15px; height: 15px; opacity: .8; }

.site-head {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,247,236,.82);
  backdrop-filter: blur(14px);
  border-bottom: 1.5px solid transparent;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.site-head.scrolled { border-color: var(--line); box-shadow: var(--sh-sm); background: rgba(255,247,236,.94); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 20px; }

.logo { display: inline-flex; align-items: center; gap: 11px; font-family: 'Bricolage Grotesque'; font-weight: 800; font-size: 23px; letter-spacing: -.02em; }
.logo-mark { width: 40px; height: 40px; flex: none; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-weight: 600; font-size: 15.5px; color: var(--ink-2);
  padding: 9px 15px; border-radius: var(--pill); position: relative;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--ink); background: rgba(21,35,63,.05); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 2px; height: 3px;
  border-radius: var(--pill); background: var(--sun);
}
.nav-cta { display: flex; align-items: center; gap: 12px; }

/* ---------- dropdown submenu (desktop) ---------- */
.nav-item { position: relative; display: flex; align-items: center; }
.nav-item.has-sub > a { display: inline-flex; align-items: center; gap: 4px; }
.caret { width: 15px; height: 15px; margin-top: 1px; transition: transform .25s var(--ease); }
.nav-item.has-sub:hover > a .caret,
.nav-item.has-sub:focus-within > a .caret { transform: rotate(180deg); }
/* invisible bridge so the menu doesn't close in the gap below the trigger */
.nav-item.has-sub::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px; }
.submenu {
  position: absolute; top: calc(100% + 12px); left: 0; z-index: 60;
  background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r);
  box-shadow: var(--sh); padding: 8px; min-width: 232px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility 0s .22s;
}
.nav-item.has-sub:hover .submenu,
.nav-item.has-sub:focus-within .submenu {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility 0s;
}
.submenu a {
  display: block; padding: 11px 14px; border-radius: var(--r-xs);
  font-size: 15px; font-weight: 600; color: var(--ink-2); white-space: nowrap;
  transition: background .18s, color .18s;
}
.submenu a::after { display: none; }
.submenu a:hover { background: rgba(21,35,63,.05); color: var(--ink); }

/* ---------- submenu (mobile) ---------- */
.m-sub { padding-left: 16px; margin: 2px 0 6px; border-left: 3px solid var(--sun); }
.mobile-menu .m-sub a {
  font-size: 16px; font-weight: 600; color: var(--ink-2);
  padding: 8px 0; border-bottom: none;
}

.burger { display: none; width: 46px; height: 46px; border-radius: var(--r-xs); background: var(--ink); align-items: center; justify-content: center; }
.burger span, .burger span::before, .burger span::after {
  content: ""; display: block; width: 20px; height: 2.4px; background: #fff; border-radius: 2px; position: relative; transition: .3s;
}
.burger span::before { position: absolute; top: -6px; }
.burger span::after { position: absolute; top: 6px; }
body.menu-open .burger span { background: transparent; }
body.menu-open .burger span::before { top: 0; transform: rotate(45deg); }
body.menu-open .burger span::after { top: 0; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 120px 0 0 0; z-index: 55;
  background: var(--cream); padding: 24px 26px;
  transform: translateY(-12px); opacity: 0; pointer-events: none;
  transition: .3s var(--ease);
}
body.menu-open .mobile-menu { opacity: 1; transform: none; pointer-events: auto; }
/* when the topbar has scrolled away, the sticky header sits at top:0 (78px),
   so the menu must start at 78px instead of 120px to avoid a 42px gap */
body.tb-hidden .mobile-menu { top: 78px; }
.mobile-menu a { display: block; font-family: 'Bricolage Grotesque'; font-weight: 700; font-size: 20px; padding: 11px 0; border-bottom: 1.5px solid var(--line); }
.mobile-menu .btn { margin-top: 18px; width: 100%; justify-content: center; text-align: center; font-size: 16px; padding-top: 14px; padding-bottom: 14px; }

/* ---------- footer ---------- */
.site-foot { background: var(--ink); color: #b9c4db; position: relative; overflow: hidden; }
.site-foot a { transition: color .2s; }
.site-foot a:hover { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding: 80px 0 50px; position: relative; z-index: 1; }
.foot-grid h4 { color: #fff; font-size: 15px; letter-spacing: .04em; margin-bottom: 18px; font-family: 'Hanken Grotesk'; font-weight: 700; text-transform: uppercase; }
.foot-links { display: flex; flex-direction: column; gap: 11px; font-size: 15.5px; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 26px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 14px; position: relative; z-index: 1; flex-wrap: wrap; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
.reveal.d5 { transition-delay: .40s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}

/* float anim */
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes floaty2 { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-16px) rotate(4deg); } }
@keyframes spin-slow { to { transform: rotate(360deg); } }
.float { animation: floaty 6s ease-in-out infinite; }
.float2 { animation: floaty2 7s ease-in-out infinite; }

/* ---------- utilities ---------- */
.grid { display: grid; gap: 24px; }
.g-2 { grid-template-columns: repeat(2,1fr); }
.g-3 { grid-template-columns: repeat(3,1fr); }
.g-4 { grid-template-columns: repeat(4,1fr); }
.stack-sm > * + * { margin-top: 12px; }
.mt-s { margin-top: 16px; } .mt-m { margin-top: 28px; } .mt-l { margin-top: 44px; }
.flex { display: flex; } .items-center { align-items: center; } .gap-s { gap: 12px; } .gap-m { gap: 20px; }
.wrap-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.bg-paper { background: var(--paper); }
.bg-cream2 { background: var(--cream-2); }
.bg-ink { background: var(--ink); color: #fff; }
.bg-ink h1,.bg-ink h2,.bg-ink h3 { color: #fff; }
.bg-sky-soft { background: var(--sky-soft); }

/* FAQ accordion */
.faq { background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r); padding: 4px 26px; box-shadow: var(--sh-sm); transition: box-shadow .25s; }
.faq[open] { box-shadow: var(--sh); }
.faq summary { list-style: none; cursor: pointer; font-family: 'Bricolage Grotesque'; font-weight: 700; font-size: 1.15rem; color: var(--ink); padding: 20px 40px 20px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 0; top: 22px; width: 24px; height: 24px;
  background: var(--cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2315233F' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center/13px no-repeat;
  border-radius: 50%; transition: transform .3s var(--ease);
}
.faq[open] summary::after { transform: rotate(135deg); }
.faq p { color: var(--ink-soft); font-size: 16.5px; padding: 0 0 22px; margin-top: -4px; }

/* contact cards */
.contact-card { display: flex; align-items: center; gap: 16px; background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r); padding: 16px 20px; box-shadow: var(--sh-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
a.contact-card:hover { transform: translateY(-3px); box-shadow: var(--sh); }
.contact-card .ci { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; flex: none; }
.contact-card .ci svg { width: 24px; height: 24px; }

/* map */
.map-wrap {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh);
  background: var(--cream-2);
  min-height: 460px;
}
.map-frame { width: 100%; height: 100%; min-height: 460px; border: 0; display: block; filter: saturate(1.05); }
.map-card {
  position: absolute; left: 28px; bottom: 28px; z-index: 2;
  width: min(360px, calc(100% - 56px));
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh);
  padding: 24px 26px;
}
.map-card .map-pin { width: 44px; height: 44px; border-radius: 14px; background: var(--sun-soft); display: flex; align-items: center; justify-content: center; flex: none; }
.map-card h3 { font-size: 1.35rem; }
@media (max-width: 640px) {
  .map-wrap { min-height: 0; }
  .map-frame { min-height: 320px; }
  .map-card { position: static; width: 100%; border-radius: 0; border: none; box-shadow: none; padding: 24px 20px 4px; }
}

/* form */
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span { font-weight: 600; font-size: 14px; color: var(--ink-2); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 16px; color: var(--ink);
  background: var(--cream); border: 1.5px solid var(--line); border-radius: var(--r-sm);
  padding: 14px 16px; transition: border-color .2s, box-shadow .2s; width: 100%; resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 4px var(--sky-soft); background: #fff; }

.ava { width: 38px; height: 38px; border-radius: 50%; border: 3px solid var(--cream); flex: none; }

/* service rows */
.srv-list { list-style: none; margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.srv-list li { position: relative; padding-left: 34px; font-size: 16.5px; color: var(--ink-2); font-weight: 500; }
.srv-list li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--mint-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%232f9b78' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/14px no-repeat;
}

.round-top { border-radius: var(--r-xl) var(--r-xl) 0 0; }
.round-all { border-radius: var(--r-xl); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .nav-links, .nav-cta .btn { display: none; }
  .burger { display: flex; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 34px; padding: 56px 0 40px; }
  .g-4 { grid-template-columns: repeat(2,1fr); }
  .topbar .tb-left .tb-hide { display: none; }
  .hero-grid, .why-grid, .trust-grid { grid-template-columns: 1fr !important; }
  .hero-grid { gap: 48px !important; }
  .why-grid { gap: 34px !important; }
  .trust-grid { gap: 28px 24px !important; grid-template-columns: 1fr 1fr !important; }
  .srv-row { grid-template-columns: 1fr !important; gap: 30px !important; }
  .srv-visual { order: 2; }
  #featured-post { grid-template-columns: 1fr !important; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .g-2, .g-3, .g-4 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .topbar .tb-right { display: none; }
  .wrap { padding: 0 20px; }
  .field-row { grid-template-columns: 1fr; }
}
