/* ACS Works — site styles (futuristic theme) */

@font-face {
  font-family: "Archivo Black";
  src: url("fonts/archivo-black.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("fonts/dm-sans.woff") format("woff");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --night: #070c1d;
  --deep: #0d1530;
  --panel: #111b3a;
  --line: #24305a;
  --text: #dfe6f5;
  --muted: #98a4c4;
  --signal: #f4c430;
  --pulse: #4fd8eb;

  --display: "Archivo Black", "Arial Black", sans-serif;
  --body: "DM Sans", "Segoe UI", system-ui, sans-serif;

  --wrap: 74rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

a { color: inherit; text-underline-offset: 0.2em; }
a:hover { color: var(--signal); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -999px; top: .5rem; z-index: 50; background: var(--signal); color: var(--night); padding: .5rem .9rem; }
.skip:focus { left: .5rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(7, 12, 29, .78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(79, 216, 235, .14);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 4.25rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }

.brand-name { font-family: var(--display); font-size: 1.15rem; letter-spacing: .07em; text-transform: uppercase; line-height: 1; color: #fff; }
.brand-name small { display: block; font-family: var(--body); font-size: .6rem; font-weight: 500; letter-spacing: .2em; color: var(--signal); margin-top: .35rem; }
.brand:hover { color: var(--text); }
.site-nav { display: flex; align-items: center; gap: 1.75rem; font-size: .95rem; }
.site-nav a { text-decoration: none; color: var(--muted); }
.site-nav a:hover { color: var(--text); }
.site-nav .nav-cta { color: var(--night); background: var(--signal); padding: .5rem 1rem; border-radius: 999px; font-weight: 700; }
.site-nav .nav-cta:hover { color: var(--night); background: #ffd75c; }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--signal); color: var(--night);
  font-weight: 700; font-size: 1rem; text-decoration: none;
  padding: .9rem 1.5rem; border-radius: 999px;
  box-shadow: 0 0 0 0 rgba(244, 196, 48, .5);
  transition: box-shadow .25s, background .25s;
}
.button:hover { color: var(--night); background: #ffd75c; box-shadow: 0 0 28px 2px rgba(244, 196, 48, .35); }
.button.ghost { background: transparent; color: var(--text); border: 1px solid rgba(79, 216, 235, .45); }
.button.ghost:hover { color: var(--text); background: rgba(79, 216, 235, .08); box-shadow: 0 0 24px rgba(79, 216, 235, .2); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; min-height: min(80vh, 44rem); display: flex; align-items: center; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60rem 30rem at 15% 40%, rgba(7, 12, 29, .85), transparent 70%),
    linear-gradient(to bottom, transparent 70%, var(--night));
}
.hero .wrap { position: relative; z-index: 1; width: 100%; padding-top: 5rem; padding-bottom: 6rem; }
.hero h1 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.9rem, 3.2vw, 2.85rem);
  line-height: 1.1; letter-spacing: -.025em;
  margin: 0 0 1.25rem; max-width: none;
}
.hero h1 .line2 { color: inherit; }
.hero p { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #c3cde3; max-width: 44ch; margin: 0 0 2rem; }
.actions { display: flex; flex-wrap: wrap; gap: .9rem; }

/* ---------- Engagement strip ---------- */
.engage { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--deep); }
.engage ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.engage li { padding: 1.6rem 1.5rem 1.6rem 0; }
.engage li + li { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.engage strong { display: block; font-family: var(--display); font-weight: 400; font-size: 1.25rem; color: var(--signal); letter-spacing: -.01em; }
.engage span { color: var(--muted); font-size: .97rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(4.5rem, 10vw, 7.5rem) 0; }
.section-head { max-width: 46rem; margin-bottom: 3rem; }
h2 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.04; letter-spacing: -.03em;
  margin: 0 0 1rem;
}
.section-head p { color: var(--muted); font-size: 1.15rem; margin: 0; max-width: 56ch; }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service {
  position: relative; padding: 2rem 1.75rem 2.25rem;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: background .3s;
}
.service::before {
  content: ""; position: absolute; left: -1px; top: -1px; width: 0; height: 2px;
  background: linear-gradient(90deg, var(--signal), var(--pulse)); transition: width .4s ease;
}
.service:hover { background: rgba(79, 216, 235, .04); }
.service:hover::before { width: calc(100% + 1px); }
.service svg { width: 2.4rem; height: 2.4rem; margin-bottom: 1.25rem; }
.service h3 { font-size: 1.2rem; font-weight: 700; margin: 0 0 .5rem; letter-spacing: -.01em; }
.service p { margin: 0; color: var(--muted); font-size: 1rem; }

/* Carousel */
.showcase { background: linear-gradient(180deg, var(--night), var(--deep) 40%, var(--night)); }
.carousel { position: relative; }
.slides { position: relative; border: 1px solid var(--line); border-radius: 1.25rem; overflow: hidden; background: var(--deep); aspect-ratio: 16 / 7; min-height: 22rem; }
.slide {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: 1.15fr 1fr; align-items: center;
  opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s;
}
.slide.is-active { opacity: 1; visibility: visible; }
.slide .art { height: 100%; width: 100%; }
.slide .art svg { width: 100%; height: 100%; display: block; }
.slide .caption { padding: 2rem clamp(1.5rem, 4vw, 3.5rem) 2rem 1rem; }
.slide h3 { font-family: var(--display); font-weight: 400; font-size: clamp(1.5rem, 2.8vw, 2.2rem); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 .8rem; }
.slide p { color: var(--muted); margin: 0; max-width: 38ch; }
.controls { display: flex; align-items: center; justify-content: space-between; margin-top: 1.25rem; }
.dots { display: flex; gap: .5rem; }
.dots button { width: 2.25rem; height: .35rem; border: 0; padding: 0; border-radius: 999px; background: var(--line); cursor: pointer; }
.dots button[aria-current="true"] { background: var(--signal); }
.arrows { display: flex; gap: .5rem; }
.arrows button {
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; color: var(--text);
  font-size: 1.1rem; cursor: pointer;
}
.arrows button:hover { border-color: var(--pulse); color: var(--pulse); }

/* SVG animation helpers */
.spin { transform-box: fill-box; transform-origin: center; animation: spin 18s linear infinite; }
.spin.rev { animation-duration: 26s; animation-direction: reverse; }
.blink { animation: blink 2.4s ease-in-out infinite; }
.blink.d1 { animation-delay: .4s; } .blink.d2 { animation-delay: .8s; } .blink.d3 { animation-delay: 1.2s; } .blink.d4 { animation-delay: 1.6s; }
.dash { stroke-dasharray: 6 10; animation: dash 3s linear infinite; }
.rise { animation: rise 4.8s ease-in-out infinite; }
.rise.d1 { animation-delay: -1.6s; } .rise.d2 { animation-delay: -3.2s; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes dash { to { stroke-dashoffset: -32; } }
@keyframes rise { 0% { transform: translateY(26px); opacity: 0; } 15%, 70% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(-14px); opacity: 0; } }

/* Small business */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 0 0 2rem 4rem; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -.15rem;
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--display); font-size: 1rem; color: var(--night); background: var(--signal);
}
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 1.3rem; top: 2.7rem; bottom: .3rem; width: 1px; background: linear-gradient(var(--signal), var(--line)); }
.steps h3 { margin: 0 0 .3rem; font-size: 1.2rem; }
.steps p { margin: 0; color: var(--muted); }

/* About */
.about { border-top: 1px solid var(--line); }
.about .wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 2rem 4rem; }
.about p { margin: 0 0 1rem; color: #c3cde3; max-width: 60ch; }
.creds { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; padding: 0; list-style: none; }
.creds li { border: 1px solid var(--line); border-radius: 999px; padding: .3rem .85rem; font-size: .9rem; color: var(--muted); }

/* Contact */
.contact { position: relative; overflow: hidden; text-align: left; }
.contact-panel {
  position: relative; border-radius: 1.5rem; padding: clamp(2.5rem, 6vw, 4.5rem);
  background:
    radial-gradient(40rem 20rem at 100% 0%, rgba(79, 216, 235, .18), transparent 60%),
    radial-gradient(30rem 20rem at 0% 100%, rgba(244, 196, 48, .14), transparent 60%),
    var(--panel);
  border: 1px solid rgba(79, 216, 235, .25);
}
.contact-panel p { color: #c3cde3; max-width: 50ch; margin: 0 0 2rem; font-size: 1.15rem; }
.email-link { display: inline-block; margin-top: 1.5rem; font-family: var(--display); font-size: clamp(1.2rem, 3.4vw, 2rem); color: var(--pulse); text-decoration: none; word-break: break-word; }
.email-link:hover { color: var(--signal); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-top: 1.75rem; padding-bottom: 2.25rem; }
.site-footer p { margin: 0; }

/* Long-form pages */
.page { padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(4rem, 9vw, 7rem); }
.page h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2.4rem, 7vw, 4.5rem); line-height: 1; letter-spacing: -.03em; margin: 0 0 1rem; }
.page .updated { color: var(--muted); margin: 0 0 2.5rem; }
.prose { max-width: 66ch; color: #c3cde3; }
.prose h2 { font-size: clamp(1.3rem, 2.6vw, 1.65rem); margin: 2.5rem 0 .6rem; color: var(--text); }
.prose p, .prose ul { margin: 0 0 1rem; }
.prose a { color: var(--pulse); }

/* Reveal on scroll (one gentle effect, sections only) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 62rem) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .slides { aspect-ratio: auto; min-height: 36rem; }
  .slide { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .slide .art { height: 20rem; }
  .slide .caption { padding: 0 1.75rem 2rem; }
  .split, .about .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 44rem) {
  .site-nav a:not(.nav-cta) { display: none; }
  .services { grid-template-columns: 1fr; }
  .engage ul { grid-template-columns: 1fr; }
  .engage li, .engage li + li { padding: 1.1rem 0; border-left: 0; }
  .engage li + li { border-top: 1px solid var(--line); }
  .brand-name small { display: none; }
}

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

/* ---------- Booking pop-up ---------- */
.booking {
  width: min(40rem, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: 0; border: 1px solid rgba(79, 216, 235, .3); border-radius: 1.25rem;
  background:
    radial-gradient(30rem 16rem at 100% 0%, rgba(79, 216, 235, .14), transparent 60%),
    var(--panel);
  color: var(--text);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 40px rgba(79, 216, 235, .12);
}
.booking::backdrop { background: rgba(4, 7, 18, .72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.booking[open] { animation: pop .28s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.booking-inner { position: relative; padding: clamp(1.5rem, 4vw, 2.5rem); }
.booking h2 { font-size: clamp(1.6rem, 4vw, 2.1rem); margin: 0 2.5rem .5rem 0; }
.booking-intro { color: var(--muted); margin: 0 0 1.75rem; }
.booking-close {
  position: absolute; top: 1rem; right: 1rem;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; color: var(--text);
  font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.booking-close:hover { border-color: var(--pulse); color: var(--pulse); }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.field { display: flex; flex-direction: column; margin-bottom: 1.1rem; }
.field label { font-weight: 600; font-size: .95rem; margin-bottom: .4rem; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  font: inherit; font-size: 1rem; color: var(--text);
  background: var(--night); border: 1px solid var(--line); border-radius: .6rem;
  padding: .75rem .9rem; resize: vertical;
}
.field textarea { min-height: 3.2rem; }
.field input::placeholder, .field textarea::placeholder { color: #66729a; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--pulse); box-shadow: 0 0 0 3px rgba(79, 216, 235, .2); }
.field [aria-invalid="true"] { border-color: #ff7a7a; }
.field-error { color: #ff9a9a; font-size: .88rem; min-height: 0; margin-top: .3rem; }
.field-error:empty { display: none; }
.botcheck { position: absolute; left: -9999px; }

.booking-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .5rem; }
.booking-actions .button { border: 0; cursor: pointer; font-family: inherit; }
.booking-actions .button.ghost { border: 1px solid rgba(79, 216, 235, .45); }
.booking-actions .button[disabled] { opacity: .6; cursor: progress; }
.form-status { margin: 1rem 0 0; color: var(--muted); }
.form-status.error { color: #ff9a9a; }
.booking-done p { color: #c3cde3; margin: 0 0 1.5rem; }

@media (max-width: 34rem) { .field-row { grid-template-columns: 1fr; } }


@media (max-width: 44rem) { .hero h1 br { display: none; } }

.service-link { display: inline; font-weight: 700; color: var(--signal); text-decoration: underline; text-decoration-color: rgba(244, 196, 48, .45); text-underline-offset: .25em; }
.service-link:hover { color: #ffd75c; text-decoration-color: #ffd75c; }
.service p + .service-link { display: inline-block; margin-top: 1rem; }
