/* Ebenezer Services LLC. "Blue Card" direction: the printed business card at full size,
   in the card's own colors, with a light motion layer (2026-12-04, third pass).
   Colors are measured from the 2026 card. Change them here only. */
:root {
  --blue: #1d44b8;
  --blue-deep: #14204a;
  --orange: #f2682a;
  --orange-soft: #ffb48d;
  --purple: #4a2a8a;
  --red: #d0272d;
  --white: #fff;
  --ink: #14204a;
  --muted: #4d587f;
  --tint: #f3f5fc;
  --color-accent-2: #14204a; /* used by script.js for the form success message */
  --pad: clamp(1.25rem, 4vw, 3.5rem);
  --h: clamp(620px, 90vh, 860px); /* hero height. Every circle is sized from it. */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --display: Unbounded, Figtree, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Figtree, system-ui, sans-serif; font-size: 1.0625rem; color: var(--ink); background: var(--white); line-height: 1.6; overflow-x: hidden; }
h1, h2, h3, p, ul { margin: 0; }
h1, h2, .brand, .footer-name, .btn-glow, .btn-send, .tile-num, .kicker { font-family: var(--display); }
ul { padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
.services :focus-visible, .estimate :focus-visible { outline-color: var(--blue); }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--white); color: var(--ink); padding: .75rem 1rem; z-index: 60; }
.skip-link:focus { left: 0; }

/* ---------- Top bar ---------- */
.topbar { position: fixed; z-index: 40; top: .9rem; left: var(--pad); right: var(--pad); display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .5rem .6rem .5rem 1.2rem; border-radius: 999px; color: var(--white);
  background: rgba(20, 32, 74, .58); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: background .3s, box-shadow .3s; }
.topbar.scrolled { background: rgba(20, 32, 74, .94); box-shadow: 0 8px 28px rgba(20, 32, 74, .25); }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; letter-spacing: .01em; text-transform: uppercase; text-decoration: none; font-size: .8rem; white-space: nowrap; }
.brand-mark { width: 5rem; height: 5rem; border-radius: 50%; background: var(--white); margin: -1.1rem 0 -1.6rem -1rem; box-shadow: 0 6px 18px rgba(20, 32, 74, .3); border: 3px solid var(--white); }
.footer-mark { width: 11rem; height: 11rem; border-radius: 1.25rem; background: var(--white); margin-bottom: 1.3rem; }
.nav-links { display: flex; align-items: center; gap: .3rem; font-weight: 700; font-size: 1rem; }
.nav-links a { text-decoration: none; padding: .5rem .95rem; border-radius: 999px; transition: background .2s; }
.nav-links a:hover, .nav-links a[aria-current] { background: rgba(255, 255, 255, .16); }
.nav-links .lang-switch { background: var(--white); color: var(--blue-deep); margin-left: .4rem; }
.nav-links .lang-switch:hover { background: var(--orange-soft); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--blue); color: var(--white); min-height: var(--h); }
.art span, .art i { position: absolute; }
.art span { border-radius: 50%; }
.c-orange { width: calc(var(--h) * .93); height: calc(var(--h) * .93); left: calc(var(--h) * -.21); top: calc(var(--h) * -.37); background: var(--orange); animation: drift 16s ease-in-out infinite alternate; }
.c-purple { width: calc(var(--h) * .85); height: calc(var(--h) * .85); left: calc(var(--h) * -.05); bottom: calc(var(--h) * -.51); background: var(--purple); animation: drift 20s ease-in-out infinite alternate-reverse; }
.disc { width: calc(var(--h) * .9); height: calc(var(--h) * .9); left: calc(var(--h) * -.02); top: calc(var(--h) * .08); background: var(--white); }
.disc-ring { width: calc(var(--h) * .96); height: calc(var(--h) * .96); left: calc(var(--h) * -.05); top: calc(var(--h) * .05);
  background: conic-gradient(from 0deg, transparent 0, var(--white) 10%, transparent 24%, transparent 50%, var(--orange-soft) 62%, transparent 76%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px)); mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  animation: spin 24s linear infinite; }
.spark { width: 16px; height: 16px; background: var(--white); clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); animation: twinkle 4s ease-in-out infinite; }
.s1 { left: calc(var(--h) * .86); top: calc(var(--h) * .2); }
.s2 { left: calc(var(--h) * .9); top: calc(var(--h) * .7); width: 11px; height: 11px; animation-delay: 1.3s; }
.s3 { left: calc(var(--h) * .8); top: calc(var(--h) * .08); width: 10px; height: 10px; animation-delay: 2.4s; }
.badge { position: absolute; z-index: 2; left: calc(var(--h) * .065); top: calc(var(--h) * .165); width: calc(var(--h) * .73); height: calc(var(--h) * .73); max-width: none; border-radius: 50%; animation: float 8s ease-in-out infinite; }

.hero-copy { position: relative; z-index: 3; min-height: var(--h); display: flex; flex-direction: column; justify-content: center;
  padding: 7rem var(--pad) 3.5rem calc(var(--h) * .9 + 4vw); max-width: calc(var(--h) * .9 + 4vw + 44rem); }
.kicker { font-weight: 600; color: var(--orange-soft); margin-bottom: 1.2rem; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; }
h1 { font-weight: 800; font-size: clamp(1.9rem, 3.5vw, 3.3rem); line-height: 1.1; letter-spacing: -.025em; text-wrap: balance; }
.pitch { font-size: clamp(1.1rem, 1.45vw, 1.3rem); max-width: 34rem; margin: 1.5rem 0 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2rem; }
.btn-glow, .btn-send { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: .6rem; font-weight: 600; font-size: .88rem; text-decoration: none;
  border: 0; border-radius: 999px; padding: 1rem 1.9rem; min-height: 3.4rem; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s, background .2s; }
.btn-glow { color: var(--ink); background: var(--orange); box-shadow: 0 8px 22px rgba(20, 32, 74, .28); }
.btn-send { color: var(--white); background: var(--blue); justify-self: start; }
.btn-glow::after, .btn-send::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 35%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg); animation: sheen 6s ease-in-out infinite; }
.btn-glow:hover, .btn-send:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(20, 32, 74, .32); }
.btn-send:hover { background: var(--ink); }
.btn-send:disabled { opacity: .6; cursor: default; transform: none; }
.btn-ghost { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.08rem; text-decoration: none; border: 2px solid rgba(255, 255, 255, .55); border-radius: 999px; padding: 1rem 1.5rem; min-height: 3.4rem; transition: background .2s, border-color .2s; }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); border-color: var(--white); }
.btn-ghost svg { width: 1.1rem; height: 1.1rem; color: var(--orange-soft); }

.card-lines { display: flex; flex-wrap: wrap; gap: .9rem 2rem; font-weight: 700; font-size: 1.08rem; }
.card-lines li { display: flex; gap: .7rem; align-items: center; }
.card-lines a { text-decoration: none; }
.card-lines a:hover { text-decoration: underline; text-underline-offset: .2em; }
.ring { flex: none; width: 2.5rem; height: 2.5rem; border: 2px solid var(--orange); border-radius: 50%; display: grid; place-items: center; color: var(--orange); }
.ring svg { width: 1.1rem; height: 1.1rem; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2.4vw, 2rem); padding: clamp(3rem, 6vw, 5.5rem) var(--pad); }
.tile { position: relative; overflow: hidden; background: var(--tint); border-radius: 2rem; padding: clamp(1.6rem, 3.4vw, 3.2rem); transition: transform .4s var(--ease), box-shadow .4s; }
.tile::before { content: ""; position: absolute; inset: 0; background: radial-gradient(20rem circle at var(--mx, 85%) var(--my, 0%), rgba(242, 104, 42, .2), transparent 60%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.tile:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(20, 32, 74, .14); }
.tile:hover::before { opacity: 1; }
.tile > * { position: relative; }
.tile-photo { width: 100%; aspect-ratio: 1344 / 690; object-fit: cover; border-radius: 1.25rem; margin-bottom: 1.8rem; }
.ex-label { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .7rem; }
.examples { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.9rem; }
.examples li { display: flex; align-items: center; gap: .5rem; background: var(--white); border-radius: 999px; padding: .45rem .95rem; font-weight: 700; font-size: 1rem; color: var(--ink); }
.examples li::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--orange); }
.img-note { grid-column: 1 / -1; font-size: .9rem; color: var(--muted); }
.tile-num { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .14em; color: var(--muted); margin-bottom: 1rem; }
.tile h2 { font-weight: 800; font-size: clamp(1.9rem, 3.7vw, 3.5rem); line-height: 1.05; letter-spacing: -.03em; color: var(--blue); }
.tile h2 span { color: var(--orange); }
.tile p { font-size: 1.2rem; max-width: 30rem; margin: 1.1rem 0 1.5rem; }
.tile a { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; text-decoration: none; color: var(--white); background: var(--blue); border-radius: 999px; padding: .75rem 1.3rem; min-height: 2.9rem; transition: background .2s, gap .2s; }
.tile a:hover { background: var(--ink); gap: .85rem; }

/* ---------- About ---------- */
.about { position: relative; overflow: hidden; background: var(--orange); color: var(--ink);
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 6vw, 6rem); align-items: end;
  margin: 0 var(--pad); border-radius: 2rem; padding: clamp(3rem, 7vw, 6rem) clamp(1.6rem, 4vw, 4rem); }
.about-arc { position: absolute; right: -9rem; top: -9rem; width: 18rem; height: 18rem; border-radius: 50%; background: var(--purple); animation: drift 14s ease-in-out infinite alternate; }
.about h2 { position: relative; font-weight: 800; font-size: clamp(1.7rem, 3.5vw, 3.2rem); line-height: 1.12; letter-spacing: -.025em; text-wrap: balance; }
.about-copy { position: relative; display: grid; gap: 1rem; font-size: 1.2rem; font-weight: 600; max-width: 28rem; }

/* ---------- Estimate ---------- */
.estimate { position: relative; display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 6rem); padding: clamp(3.5rem, 8vw, 7rem) var(--pad); }
.glow-orb { display: none; }
.estimate h2 { font-weight: 800; font-size: clamp(1.7rem, 3vw, 2.7rem); line-height: 1.12; letter-spacing: -.025em; color: var(--blue); }
.estimate-lede { font-size: 1.2rem; margin: 1rem 0 2.2rem; }
.estimate .card-lines { flex-direction: column; gap: 1.3rem; font-size: 1.08rem; }
.estimate .card-lines li { align-items: flex-start; }
.estimate .card-lines small { display: block; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.estimate .card-lines a { overflow-wrap: anywhere; }

.contact-form { display: grid; gap: 1.4rem; align-content: start; background: var(--tint); border-radius: 2rem; padding: clamp(1.4rem, 3vw, 2.6rem); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.hidden-field { position: absolute; left: -9999px; }
label { display: grid; gap: .45rem; }
.label-text { font-weight: 600; font-size: .95rem; }
.req { color: var(--red); }
.opt { font-weight: 400; color: var(--muted); }
input, select, textarea { font: inherit; color: var(--ink); background: var(--white); border: 2px solid #c3cbe6; border-radius: .9rem; padding: .85rem 1rem; min-height: 3.2rem; width: 100%; transition: border-color .2s, box-shadow .2s; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(29, 68, 184, .18); }
[aria-invalid="true"] { border-color: var(--red); }
.field-error { color: #a81c22; font-size: .9rem; font-weight: 600; }
.form-legend { font-size: .9rem; color: var(--muted); }
.form-note { font-size: .95rem; color: var(--muted); }
.form-note.form-error { color: #a81c22; font-weight: 600; }

/* ---------- Footer ---------- */
.footer { background: var(--blue-deep); color: var(--white); padding: clamp(3rem, 6vw, 5rem) var(--pad) 2rem; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.footer-name { font-weight: 800; font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.12; letter-spacing: -.02em; text-transform: uppercase; }
.footer-name em { display: block; font-family: Figtree, system-ui, sans-serif; font-style: normal; font-size: 1rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: #c9d0ea; margin-top: .3rem; }
.footer-name span { display: block; font-family: Figtree, system-ui, sans-serif; font-size: 1.05rem; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--orange-soft); margin-top: .9rem; }
.footer-col { display: grid; gap: .55rem; align-content: start; }
.footer-col h3 { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-soft); margin-bottom: .3rem; }
.footer-col a { text-decoration: none; overflow-wrap: anywhere; }
.footer-col a:hover { text-decoration: underline; text-underline-offset: .2em; }
.footer-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, .22); font-size: .88rem; color: #c9d0ea; }
.footer-credit a { color: var(--white); }

.call-bar { display: none; }

/* ---------- Motion (kept gentle on purpose) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js .tile[data-reveal]:nth-of-type(2) { transition-delay: .12s; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-8px); } }
@keyframes twinkle { 0%, 100% { opacity: .2; transform: scale(.6); } 50% { opacity: 1; transform: scale(1.1) rotate(45deg); } }
@keyframes sheen { 0%, 60% { left: -60%; } 100% { left: 130%; } }
@keyframes drift { to { transform: translate(1.2rem, 1rem); } }

/* ---------- Tablet and phone ---------- */
@media (max-width: 860px) {
  :root { --h: 25rem; }
  .topbar { top: .6rem; padding: .4rem .45rem .4rem 1rem; }
  .brand { font-size: .68rem; }
  .brand .llc { display: none; }
  .brand-mark { width: 3.9rem; height: 3.9rem; margin: -.8rem 0 -1.2rem -.8rem; }
  .nav-links a:not(.lang-switch) { display: none; }
  .nav-links .lang-switch { margin: 0; padding: .5rem .9rem; }
  .hero { min-height: 0; }
  .art { position: relative; height: calc(var(--h) + 3.5rem); overflow: hidden; }
  .disc { left: calc(50% - var(--h) * .45); top: calc(var(--h) * .17); }
  .disc-ring { left: calc(50% - var(--h) * .48); top: calc(var(--h) * .14); }
  .c-orange { left: calc(50% - var(--h) * .75); }
  .c-purple { left: calc(50% - var(--h) * .1); bottom: calc(var(--h) * -.66); }
  .spark { display: none; }
  .badge { left: calc(50% - var(--h) * .365); top: calc(var(--h) * .255); }
  .hero-copy { min-height: 0; padding: 1.75rem var(--pad) 3rem; max-width: none; background: var(--blue); }
  .services, .about, .estimate { grid-template-columns: 1fr; }
  .tile-num { margin-bottom: 1.2rem; }
  .about { align-items: start; }
  .about-arc { width: 12rem; height: 12rem; right: -7rem; top: -7rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer { padding-bottom: 6.5rem; }
  .call-bar { position: fixed; z-index: 30; left: .6rem; right: .6rem; bottom: .6rem; display: grid; grid-template-columns: 1fr 1.5fr; overflow: hidden; border-radius: 999px; background: var(--blue-deep); box-shadow: 0 8px 28px rgba(20, 32, 74, .35); }
  .call-bar a { display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3.4rem; color: var(--white); font-weight: 700; text-decoration: none; }
  .call-bar svg { width: 1.1rem; height: 1.1rem; }
  .call-bar .primary { background: var(--orange); color: var(--ink); border-radius: 999px; }
}

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