/* =========================================================
   Innovative Premium Bookkeeping Solutions — styles
   Brand colors sampled from the IPB logo:
     blue  #248CFF   red  #FF0834
   ========================================================= */

:root {
  /* Brand */
  --brand-blue: #248cff;
  --brand-red: #ff0834;

  /* Derived tones (AA-contrast versions for text & buttons) */
  --blue-600: #1473e6;
  --blue-700: #0d5fc4;
  --blue-50: #eef5ff;
  --blue-100: #dcebff;
  --red-600: #e0062d;
  --navy-900: #081a33;
  --navy-800: #0b1f3a;
  --navy-700: #13305a;

  /* Neutrals */
  --ink: #0f1b2d;
  --ink-soft: #3d4b61;
  --muted: #64728a;
  --line: #e3e9f2;
  --bg: #ffffff;
  --bg-tint: #f5f8fd;

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --container: 1180px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(11, 31, 58, .06), 0 2px 8px rgba(11, 31, 58, .05);
  --shadow-md: 0 10px 30px rgba(11, 31, 58, .10);
  --shadow-lg: 0 24px 60px rgba(11, 31, 58, .16);
  --header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-700); }
h1, h2, h3 { color: var(--ink); margin: 0; line-height: 1.15; }
h1, h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--navy-800); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font: 600 1rem/1 var(--font-body);
  padding: .95rem 1.4rem; border-radius: 999px;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn-primary { background: var(--blue-600); color: #fff; box-shadow: 0 6px 18px rgba(20, 115, 230, .28); }
.btn-primary:hover { background: var(--blue-700); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(20, 115, 230, .34); }
.btn-outline { background: #fff; color: var(--navy-800); border-color: var(--line); }
.btn-outline:hover { border-color: var(--brand-blue); color: var(--blue-700); }
.btn-sm { padding: .65rem 1.1rem; font-size: .92rem; }
.btn-lg { padding: 1.05rem 1.6rem; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(11, 31, 58, .06); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 28px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand img { width: 58px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; color: var(--navy-800); }
.brand-sub { font-size: .72rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--red-600); margin-top: 3px; }

.main-nav { display: flex; gap: 6px; margin-left: auto; }
.main-nav a {
  color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: .96rem;
  padding: .5rem .8rem; border-radius: 8px; transition: color .2s, background-color .2s;
}
.main-nav a:hover { color: var(--blue-700); background: var(--blue-50); }

.header-actions { display: flex; align-items: center; gap: 14px; }

.lang-toggle {
  display: inline-flex; padding: 3px; border-radius: 999px;
  background: var(--bg-tint); border: 1px solid var(--line);
}
.lang-toggle button {
  font: 700 .8rem/1 var(--font-body); letter-spacing: .06em;
  border: 0; background: transparent; color: var(--muted);
  padding: .5rem .75rem; border-radius: 999px; cursor: pointer;
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.lang-toggle button[aria-pressed="true"] { background: var(--navy-800); color: #fff; box-shadow: var(--shadow-sm); }
.lang-toggle button:not([aria-pressed="true"]):hover { color: var(--navy-800); }

.menu-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; cursor: pointer; padding: 0; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.menu-toggle span { display: block; width: 20px; height: 2px; background: var(--navy-800); border-radius: 2px; transition: transform .25s, opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 8vw, 110px);
  background:
    radial-gradient(900px 500px at 88% 10%, rgba(36, 140, 255, .12), transparent 60%),
    radial-gradient(700px 420px at -10% 110%, rgba(36, 140, 255, .08), transparent 60%),
    linear-gradient(180deg, #fbfdff 0%, #f3f8ff 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-weight: 600; font-size: .95rem; color: var(--navy-700);
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: .45rem 1rem .45rem .75rem; box-shadow: var(--shadow-sm); margin-bottom: 1.5rem;
}
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brand-red); box-shadow: 0 0 0 4px rgba(255, 8, 52, .12); flex-shrink: 0; }

.hero h1 { font-size: clamp(2.2rem, 4.1vw, 3.3rem); line-height: 1.1; margin-bottom: 1.4rem; color: var(--navy-800); }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--ink-soft); max-width: 36em; margin-bottom: 2rem; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 2.2rem; }

.hero-trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: .95rem; color: var(--muted); }
.hero-trust li { display: flex; align-items: baseline; gap: .4rem; }
.hero-trust strong { color: var(--navy-800); font-family: var(--font-display); font-size: 1.15rem; }

.hero-visual { position: relative; display: flex; justify-content: center; }
.emblem-wrap {
  position: relative; width: min(100%, 480px); aspect-ratio: 1;
  display: grid; place-items: center;
  background: #fff; border-radius: 50%;
  box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--line);
}
.emblem-wrap::before {
  content: ""; position: absolute; inset: -18px; border-radius: 50%;
  border: 2px dashed rgba(255, 8, 52, .22);
}
.emblem-wrap img { width: 78%; }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 16px 12px 12px; box-shadow: var(--shadow-md);
  line-height: 1.25; animation: float 6s ease-in-out infinite;
}
.float-card strong { display: block; color: var(--navy-800); font-size: .92rem; }
.float-card small { color: var(--muted); font-size: .78rem; }
.fc-1 { left: -36px; bottom: -2%; }
.fc-2 { right: -28px; top: -3%; animation-delay: -3s; }
.fc-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.fc-icon svg { width: 20px; height: 20px; }
.fc-green { background: #e6f7ee; color: #148a4b; }
.fc-blue { background: var(--blue-50); color: var(--blue-600); }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Decorative dots echoing the logo */
.hero-dots span { position: absolute; border-radius: 50%; background: var(--brand-red); opacity: .9; }
.hero-dots span:nth-child(1) { width: 14px; height: 14px; top: 12%; left: 58%; }
.hero-dots span:nth-child(2) { width: 8px; height: 8px; top: 72%; left: 44%; }
.hero-dots span:nth-child(3) { width: 10px; height: 10px; top: 88%; left: 80%; }
.hero-dots span:nth-child(4) { width: 6px; height: 6px; top: 8%; left: 92%; }
.hero-dots span:nth-child(5) { width: 18px; height: 18px; top: 90%; left: 6%; background: var(--brand-blue); opacity: .18; }
.hero-dots span:nth-child(6) { width: 7px; height: 7px; top: 26%; left: 3%; }

/* ---------- Stats ---------- */
.stats { background: var(--navy-800); color: #c9d6ea; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 34px 24px; display: flex; flex-direction: column; gap: 6px; border-left: 1px solid rgba(255, 255, 255, .08); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-num { font-family: var(--font-display); font-weight: 600; font-size: 2rem; color: #fff; line-height: 1.1; }
.stat-num::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-red); margin-left: 6px; vertical-align: super; }
.stat-label { font-size: .92rem; line-height: 1.45; }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section-tint { background: var(--bg-tint); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.kicker {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--blue-700); margin-bottom: .9rem;
}
.kicker::before { content: ""; width: 22px; height: 2px; background: var(--brand-red); border-radius: 2px; flex-shrink: 0; }
.kicker-light { color: #8fc2ff; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.25fr .9fr; gap: 64px; align-items: start; }
.about-copy h2 { margin-bottom: 1.4rem; }
.about-copy p { font-size: 1.06rem; }
.about-highlight {
  font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; color: var(--navy-800);
  margin: 2rem 0 .8rem; padding-left: 18px; border-left: 3px solid var(--brand-red);
}

.contact-card-mini {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px; box-shadow: var(--shadow-md);
}
.contact-card-mini h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; margin-bottom: 1.2rem; }
.channel-list { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; gap: 14px; }
.channel-list li { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 12px; background: var(--bg-tint); }
.channel-list strong { display: block; color: var(--navy-800); font-size: .98rem; line-height: 1.3; }
.channel-list small { color: var(--muted); font-size: .86rem; line-height: 1.35; display: block; }
.ch-icon {
  width: 42px; height: 42px; border-radius: 11px; flex-shrink: 0;
  display: grid; place-items: center; background: var(--blue-600); color: #fff;
}
.ch-icon svg { width: 20px; height: 20px; }
.hours { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--ink-soft); margin: 0; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.hours svg { color: var(--brand-red); flex-shrink: 0; margin-top: 3px; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 28px 28px; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.service::after {
  content: ""; position: absolute; top: 26px; right: 26px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand-red); opacity: 0; transition: opacity .25s;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--blue-100); }
.service:hover::after { opacity: 1; }
.svc-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--blue-50); color: var(--blue-600); margin-bottom: 20px;
}
.svc-icon svg { width: 26px; height: 26px; }
.service h3 { margin-bottom: .55rem; font-size: 1.15rem; }
.service p { margin: 0; font-size: .98rem; color: var(--ink-soft); }

/* ---------- Why ---------- */
.why { background: var(--navy-800); color: #c9d6ea; position: relative; overflow: hidden; }
.why::before {
  content: ""; position: absolute; width: 620px; height: 620px; border-radius: 50%;
  right: -220px; top: -260px; background: radial-gradient(circle, rgba(36, 140, 255, .22), transparent 65%);
}
.why-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 72px; position: relative; }
.why h2 { color: #fff; margin-bottom: 1.2rem; }
.why-tag { font-family: var(--font-display); font-style: italic; font-size: 1.25rem; color: #8fc2ff; }
.why-emblem { width: 220px; margin-top: 2.2rem; background: #fff; border-radius: 50%; padding: 22px; box-shadow: 0 20px 50px rgba(0, 0, 0, .3); }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.why-list li { display: flex; gap: 24px; padding: 24px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.why-list li:first-child { padding-top: 6px; }
.why-list li:last-child { border-bottom: 0; }
.why-num { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--brand-red); min-width: 32px; padding-top: 2px; }
.why-list h3 { color: #fff; font-size: 1.2rem; margin-bottom: .35rem; }
.why-list p { margin: 0; color: #b6c5dc; }

/* ---------- Contact ---------- */
.contact-wrap {
  display: grid; grid-template-columns: .9fr 1.1fr; border-radius: 28px; overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.contact-info {
  background: linear-gradient(160deg, var(--navy-800) 0%, var(--navy-700) 100%);
  color: #c9d6ea; padding: clamp(36px, 5vw, 56px); position: relative; overflow: hidden;
}
.contact-info::after {
  content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%; background: var(--brand-red);
  right: 40px; top: 40px; box-shadow: -34px 26px 0 -4px rgba(255, 8, 52, .7), -8px 62px 0 -5px rgba(255, 8, 52, .5);
}
.contact-info h2 { color: #fff; margin-bottom: 1rem; }
.contact-info > p { font-size: 1.06rem; }
.next-steps { list-style: none; margin: 2rem 0; padding: 0; display: grid; gap: 14px; }
.next-steps li { display: flex; align-items: center; gap: 14px; color: #fff; font-weight: 600; font-size: 1.02rem; line-height: 1.4; }
.step-num {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  background: rgba(36, 140, 255, .18); color: #8fc2ff; border: 1px solid rgba(143, 194, 255, .35);
}
.contact-note { font-size: .9rem; color: #9fb2cd; margin: 0; max-width: 30em; }

.contact-form { background: #fff; padding: clamp(32px, 5vw, 56px); display: grid; gap: 18px; align-content: start; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-weight: 600; font-size: .9rem; color: var(--navy-800); }
.field input, .field textarea {
  font: 400 1rem/1.5 var(--font-body); color: var(--ink);
  padding: .8rem .95rem; border: 1.5px solid var(--line); border-radius: 11px; background: var(--bg-tint);
  transition: border-color .2s, background-color .2s, box-shadow .2s; width: 100%;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand-blue); background: #fff; box-shadow: 0 0 0 4px rgba(36, 140, 255, .15); }
.field.invalid input, .field.invalid textarea { border-color: var(--red-600); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; font-size: .95rem; min-height: 1.4em; }
.form-status.ok { color: #148a4b; font-weight: 600; }
.form-status.err { color: var(--red-600); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #93a6c1; padding: 44px 0; font-size: .92rem; }
.footer-inner { display: grid; grid-template-columns: 1fr; gap: 18px 32px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 52px; background: #fff; border-radius: 50%; padding: 4px; }
.footer-name { color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; margin: 0; }
.footer-tag { margin: 0; font-style: italic; }
.footer-copy { grid-column: 1 / -1; margin: 0; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .85rem; }

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

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .header-cta { display: none; }
  .brand-name { font-size: 1rem; }
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 64px; }
  .hero-visual { max-width: 440px; margin: 0 auto; width: 100%; }
  .about-grid, .why-grid, .contact-wrap { grid-template-columns: 1fr; }
  .about-grid, .why-grid { gap: 48px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .08); }
  .why-emblem { display: none; }
  .hero-dots, .contact-info::after { display: none; }
  .fc-1 { left: -8px; bottom: 4%; }
  .fc-2 { right: -8px; top: 0; }

  /* Mobile nav */
  .menu-toggle { display: inline-flex; }
  .main-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px 16px 18px;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: .9rem .6rem; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.02rem; }
  .main-nav a:last-child { border-bottom: 0; }
  .header-actions { margin-left: auto; }
}

@media (max-width: 640px) {
  :root { --header-h: 68px; }
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .brand img { width: 44px; }
  .brand-text { display: none; }
  .header-actions { gap: 10px; }
  .hero-ctas .btn { width: 100%; }
  .services-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .stat { padding: 24px 12px; }
  .stat:nth-child(odd) { padding-left: 0; }
  .stat-num { font-size: 1.6rem; }
  .float-card { padding: 10px 12px 10px 10px; }
  .fc-1 { left: 0; bottom: 4%; }
  .fc-2 { right: 0; top: 2%; }
  .emblem-wrap::before { inset: -10px; }
  .contact-wrap { border-radius: 20px; }
}

@media (min-width: 641px) and (max-width: 820px) {
  .brand-sub { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
