/* ============================================================
   Billy Digitals — homepage
   Less, but better: one idea per section, lots of air, one call
   to action ("Start an enquiry") used everywhere.
   Loaded after style.css, theme-white.css and site-shell.css.
   ============================================================ */

:root {
  --h-ink: #eaf2ff;
  --h-body: #c9d6ee;
  --h-muted: #93a4c4;
  --h-accent: #38bdf8;
  --h-accent-hover: #7dd3fc;
  --h-line: rgba(120, 180, 255, 0.14);
  --h-field: rgba(120, 180, 255, 0.26);
  --h-alt: #0a1226;
  --h-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --h-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --h-space: clamp(88px, 11vw, 148px);
}

body { background: #060b1a; color: var(--h-body); font-family: var(--h-sans); }

/* ---------- Type ---------- */
.h-hero h1,
.h-section h2 {
  font-family: var(--h-serif); font-weight: 500; color: var(--h-ink);
  letter-spacing: -0.02em; text-wrap: balance;
}
.h-hero h1 em,
.h-section h2 em { font-style: italic; color: var(--h-accent); }
.h-section h2 { font-size: clamp(2rem, 3.8vw, 3rem); line-height: 1.1; }
.h-eyebrow {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--h-accent); margin-bottom: 18px;
}
.h-sub { color: var(--h-muted); font-size: 1.08rem; line-height: 1.7; max-width: 46ch; margin-top: 20px; }
.h-inline { color: var(--h-accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.h-inline:hover { color: var(--h-accent-hover); }

/* ---------- Buttons and links ---------- */
.h-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 38px; }
.h-actions-center { justify-content: center; }
.h-section .btn,
.h-hero .btn { padding: 15px 28px; border-radius: 999px; font-size: 0.98rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
.h-btn-ghost { background: transparent; color: var(--h-ink); border: 1px solid var(--h-field); }
.h-btn-ghost:hover { border-color: var(--h-ink); color: var(--h-ink); background: transparent; }
.h-link { color: var(--h-accent); font-weight: 600; font-size: 0.95rem; white-space: nowrap; transition: color 0.2s ease; }
.h-link span { display: inline-block; transition: transform 0.2s ease; }
.h-link:hover { color: var(--h-accent-hover); }
.h-link:hover span { transform: translateX(3px); }
.h-link-lg { font-size: 1.05rem; }

/* ---------- Sections ---------- */
.h-section { padding: var(--h-space) 0; }
.h-alt { background: var(--h-alt); }
.h-head { max-width: 640px; }
.h-center { text-align: center; }
.h-center .h-sub { margin-inline: auto; }
.h-split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 110px); align-items: start; }

/* ---------- Hero ---------- */
.h-hero { padding: clamp(150px, 16vw, 200px) 0 clamp(80px, 9vw, 120px); overflow: hidden; }
.h-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(40px, 6vw, 90px); align-items: center; }
.h-hero h1 { font-size: clamp(2.7rem, 5.6vw, 4.7rem); line-height: 1.03; max-width: 13ch; }
.h-lead { color: var(--h-muted); font-size: clamp(1.08rem, 1.4vw, 1.2rem); line-height: 1.7; max-width: 44ch; margin-top: 28px; }
.h-hero-visual { position: relative; aspect-ratio: 1264 / 1000; }
.h-shot { position: absolute; width: 86%; height: auto; border-radius: 14px; border: 1px solid var(--h-line); background: #0d1733; }
.h-shot-back { top: 0; right: 0; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.40); }
.h-shot-front { bottom: 0; left: 0; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.60); }

/* ---------- Trust ---------- */
.h-trust { padding: 0 0 clamp(56px, 7vw, 84px); }
.h-trust .container { border-top: 1px solid var(--h-line); padding-top: 40px; text-align: center; }
.h-trust-label { color: var(--h-muted); font-size: 0.88rem; margin-bottom: 20px; }
.h-trust-names { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 44px; }
.h-trust-names li { font-family: var(--h-serif); font-size: 1.15rem; color: #8f8d85; }

/* ---------- Selected work ---------- */
.h-work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(56px, 6vw, 80px) clamp(28px, 4vw, 56px); margin-top: clamp(48px, 6vw, 72px); }
.h-project-img { display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--h-line); background: var(--h-alt); }
.h-project-img img { display: block; width: 100%; height: auto; aspect-ratio: 1264 / 848; object-fit: cover; transition: transform 0.7s cubic-bezier(.2, .7, .2, 1); }
.h-project-img:hover img { transform: scale(1.025); }
.h-project-meta { padding-top: 22px; }
.h-project-ind { font-size: 0.82rem; color: var(--h-muted); margin-bottom: 6px; }
.h-project-meta h3 { font-family: var(--h-sans); font-size: 1.3rem; font-weight: 600; color: var(--h-ink); letter-spacing: -0.01em; }
.h-project-meta p:not(.h-project-ind) { color: var(--h-muted); font-size: 0.98rem; line-height: 1.6; margin: 8px 0 14px; max-width: 48ch; }
.h-after { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: clamp(56px, 6vw, 80px); padding-top: 36px; border-top: 1px solid var(--h-line); }

/* ---------- Services ---------- */
.h-services { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--h-line); }
.h-services li { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--h-line); }
.h-services h3 { font-family: var(--h-sans); font-size: 1.15rem; font-weight: 600; color: var(--h-ink); }
.h-services p { color: var(--h-muted); line-height: 1.65; }
.h-services .h-link { display: inline-block; margin-top: 8px; font-size: 0.9rem; }

/* ---------- Service cards ---------- */
.h-svcs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; margin-top: clamp(44px, 5vw, 64px); }
.h-svc { grid-column: span 2; position: relative; display: flex; flex-direction: column; gap: 12px; padding: 30px 28px 28px; border-radius: 22px;
  background: linear-gradient(160deg, rgba(56, 189, 248, 0.07), rgba(43, 127, 255, 0.02) 55%), #0d1733;
  border: 1px solid rgba(120, 180, 255, 0.14); color: inherit; overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .35s, box-shadow .35s; }
.h-svc:nth-child(4), .h-svc:nth-child(5) { grid-column: span 3; }
.h-svc::after { content: ""; position: absolute; width: 220px; height: 220px; right: -90px; top: -90px; border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.16), transparent 70%); pointer-events: none; transition: opacity .35s; opacity: .6; }
@media (hover: hover) and (min-width: 721px) { .h-svc:hover { transform: translateY(-4px); } }
.h-svc:hover { border-color: rgba(56, 189, 248, 0.45); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35); }
.h-svc:hover::after { opacity: 1; }
.h-svc:focus-visible { outline: 2px solid #38bdf8; outline-offset: 4px; }
.h-svc-ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #1d6ff5, #0ea5e9 55%, #22d3ee); box-shadow: 0 10px 26px rgba(14, 165, 233, 0.35); margin-bottom: 8px; }
.h-svc-ic svg { width: 26px; height: 26px; }
.h-svc-n { position: absolute; top: 26px; right: 28px; font-family: var(--h-serif); font-style: italic; font-size: 1.1rem; color: rgba(147, 164, 196, 0.85); }
.h-svc h3 { font-family: var(--h-sans); font-size: 1.25rem; font-weight: 600; color: var(--h-ink); letter-spacing: -0.01em; }
.h-svc p { color: var(--h-muted); line-height: 1.65; font-size: 0.98rem; flex: 1; }
.h-svc-more { margin-top: 8px; color: #38bdf8; font-weight: 600; font-size: 0.92rem; }
.h-svc-more span { display: inline-block; transition: transform .2s; }
.h-svc:hover .h-svc-more span { transform: translateX(4px); }
.h-svcs-dots { display: none; }
@media (max-width: 1024px) { .h-svcs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .h-svc, .h-svc:nth-child(4), .h-svc:nth-child(5) { grid-column: span 1; } .h-svc:nth-child(5) { grid-column: span 2; } }
@media (max-width: 720px) {
  .h-svcs { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%; gap: 16px; margin: 36px -16px 0; padding: 0 16px 6px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; scrollbar-width: none; }
  .h-svcs::-webkit-scrollbar { display: none; }
  .h-svc, .h-svc:nth-child(4), .h-svc:nth-child(5) { grid-column: auto; scroll-snap-align: start; padding: 26px 22px 24px; }
  .h-svcs-dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
  .h-svcs-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--h-field); transition: background .2s, width .2s; }
  .h-svcs-dots span.on { background: #38bdf8; width: 20px; border-radius: 4px; }
}

/* ---------- Why ---------- */
.h-why { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 40px; }
.h-why > div { border-top: 1px solid var(--h-ink); padding-top: 20px; }
.h-why h3 { font-family: var(--h-sans); font-size: 1.1rem; font-weight: 600; color: var(--h-ink); margin-bottom: 10px; }
.h-why p { color: var(--h-muted); line-height: 1.65; font-size: 0.98rem; }

/* ---------- Process ---------- */
.h-steps { list-style: none; padding: 0; margin: clamp(48px, 6vw, 72px) 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.h-steps li { border-top: 1px solid var(--h-field); padding-top: 24px; }
.h-step-n { display: block; font-family: var(--h-serif); font-style: italic; font-size: 1.4rem; color: var(--h-accent); margin-bottom: 16px; }
.h-steps h3 { font-family: var(--h-sans); font-size: 1.15rem; font-weight: 600; color: var(--h-ink); margin-bottom: 10px; }
.h-steps p { color: var(--h-muted); line-height: 1.65; font-size: 0.98rem; }

@media (min-width: 721px) { .h-steps-dots { display: none; } }

/* ---------- Testimonial ---------- */
.h-quote { max-width: 820px; margin: 0 auto; text-align: center; }
.h-stars { color: var(--h-accent); letter-spacing: 0.2em; font-size: 0.95rem; margin-bottom: 26px; }
.h-quote blockquote { font-family: var(--h-serif); font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.6; color: var(--h-ink); margin: 0; }
.h-quote figcaption { margin-top: 28px; color: var(--h-muted); font-size: 0.95rem; }
.h-quote figcaption strong { color: var(--h-ink); }

/* ---------- Reviews (swipe) ---------- */
.h-reviews-head { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.h-reviews-nav { display: flex; gap: 10px; }
.h-reviews-nav[hidden] { display: none; }
.h-rnav { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--h-field); background: #0d1733; color: var(--h-ink); font-size: 1.1rem; cursor: pointer; transition: border-color .2s, color .2s; }
.h-rnav:hover { border-color: var(--h-accent); color: var(--h-accent); }
.h-rnav:focus-visible { outline: 2px solid var(--h-accent); outline-offset: 3px; }
.h-reviews-track { display: grid; grid-auto-flow: column; grid-auto-columns: min(820px, 100%); gap: 24px; margin-top: clamp(40px, 5vw, 56px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.h-reviews-track::-webkit-scrollbar { display: none; }
.h-reviews-track.is-multi { grid-auto-columns: min(620px, 88%); }
.h-reviews-track:focus-visible { outline: 2px solid var(--h-accent); outline-offset: 6px; border-radius: 20px; }
.h-review { scroll-snap-align: start; background: #0d1733; border: 1px solid var(--h-line); border-radius: 20px; padding: clamp(26px, 4vw, 44px); margin: 0; display: flex; flex-direction: column; }
.h-review blockquote { font-family: var(--h-serif); font-size: clamp(1.02rem, 1.4vw, 1.18rem); line-height: 1.65; color: var(--h-ink); margin: 0; flex: 1; display: grid; gap: 12px; }
.h-reviews-track { align-items: start; }
.h-rmore { font-family: var(--h-sans); font-size: 0.9rem; font-weight: 600; white-space: nowrap; }
.h-rsrc { font-size: 0.8rem; color: #8f8d85; margin-top: 4px; }
.h-review figcaption { margin-top: 26px; display: grid; gap: 2px; font-size: 0.95rem; }
.h-review figcaption strong { color: var(--h-ink); }
.h-review figcaption span { color: var(--h-muted); }
.h-review .h-stars { margin-bottom: 18px; }
.h-reviews-dots { display: flex; justify-content: center; gap: 8px; margin-top: 22px; }
.h-reviews-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--h-field); transition: background .2s, width .2s; }
.h-reviews-dots span.on { background: #1d6ff5; width: 20px; border-radius: 4px; }
.h-reviews-foot { margin-top: 26px; font-size: 0.95rem; color: var(--h-muted); }

/* ---------- Pricing band ---------- */
.h-price { padding-top: 0; }
.h-price .container { border-top: 1px solid var(--h-line); padding-top: var(--h-space); }

/* ---------- FAQ ---------- */
.h-faq { border-top: 1px solid var(--h-line); }
.h-faq-item { border-bottom: 1px solid var(--h-line); }
.h-faq-item summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 24px; align-items: center;
  padding: 24px 0; font-size: 1.05rem; font-weight: 500; color: var(--h-ink);
}
.h-faq-item summary::-webkit-details-marker { display: none; }
.h-faq-item summary::after { content: "+"; flex: none; font-size: 1.4rem; font-weight: 300; color: var(--h-accent); transition: transform 0.25s ease; }
.h-faq-item[open] summary::after { transform: rotate(45deg); }
.h-faq-item summary:focus-visible { outline: 2px solid var(--h-accent); outline-offset: 4px; border-radius: 6px; }
.h-faq-item p { color: var(--h-muted); line-height: 1.7; padding: 0 40px 26px 0; max-width: 62ch; }

/* ---------- Enquiry ---------- */
.h-contact { background: var(--h-alt); }
.h-direct { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 14px; }
.h-direct li { display: flex; gap: 16px; align-items: baseline; font-size: 0.98rem; }
.h-direct span { width: 86px; flex: none; color: var(--h-muted); font-size: 0.85rem; }
.h-direct a { color: var(--h-ink); font-weight: 500; border-bottom: 1px solid var(--h-field); }
.h-direct a:hover { color: var(--h-accent); border-color: var(--h-accent); }

.h-form { background: #0d1733; border: 1px solid var(--h-line); border-radius: 20px; padding: clamp(26px, 4vw, 44px); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.16), 0 24px 60px rgba(0, 0, 0, 0.28); display: grid; gap: 20px; }
.h-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.h-field { display: grid; gap: 8px; }
.h-field label { font-size: 0.88rem; font-weight: 500; color: var(--h-ink); }
.h-opt { color: #8f8d85; font-weight: 400; margin-left: 4px; }
.h-form input,
.h-form select,
.h-form textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--h-ink); background: #0d1733;
  border: 1px solid var(--h-field); border-radius: 12px; padding: 13px 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.h-form textarea { resize: vertical; min-height: 130px; line-height: 1.6; }
.h-form input::placeholder,
.h-form textarea::placeholder { color: #8f8d85; }
.h-form input:focus,
.h-form select:focus,
.h-form textarea:focus { outline: none; border-color: var(--h-accent); box-shadow: 0 0 0 3px rgba(43, 127, 255, 0.15); }
.h-submit { width: 100%; justify-content: center; padding: 16px 28px !important; font-size: 1.02rem !important; margin-top: 4px; }
.h-note { text-align: center; color: var(--h-muted); font-size: 0.88rem; margin-top: -6px; }

/* ---------- Enquiry page ---------- */
.h-enquire { padding-top: clamp(140px, 14vw, 180px); min-height: 100vh; }
.h-enquire h1 { font-family: var(--h-serif); font-weight: 500; color: var(--h-ink); letter-spacing: -0.02em; font-size: clamp(2.3rem, 4.6vw, 3.6rem); line-height: 1.06; text-wrap: balance; }
@media (max-width: 720px) { .h-enquire { padding-top: 116px; } }

/* ---------- Motion: a gentle fade as sections arrive ---------- */
.fx-on .fx { opacity: 0; transform: translateY(18px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2, .7, .2, 1); }
.fx-on .fx.in { opacity: 1; transform: none; }

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .h-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
}
@media (max-width: 900px) {
  .h-hero-grid,
  .h-split { grid-template-columns: 1fr; }
  .h-hero-visual { max-width: 560px; }
  .h-head { max-width: 560px; }
}

/* ---------- Phone ---------- */
@media (max-width: 720px) {
  :root { --h-space: 76px; }
  .h-hero { padding: 124px 0 64px; }
  .h-hero h1 { font-size: clamp(2.35rem, 10vw, 2.9rem); }
  .h-lead { margin-top: 20px; }
  .h-actions { margin-top: 30px; gap: 12px; }
  .h-hero .h-actions .btn { width: 100%; justify-content: center; }
  .h-hero-visual { display: none; }
  .h-hero-copy { text-align: center; }
  .h-hero h1 { margin-inline: auto; }
  .h-lead { margin-inline: auto; }
  .h-trust .container { padding-top: 32px; }
  .h-trust-names { gap: 10px 26px; }
  .h-trust-names li { font-size: 1rem; }
  .h-work-grid { grid-template-columns: 1fr; gap: 52px; margin-top: 40px; }
  .h-after { flex-direction: column; align-items: stretch; text-align: center; }
  .h-after .btn { justify-content: center; }
  .h-services li { grid-template-columns: 1fr; gap: 8px; padding: 24px 0; }
  .h-why { grid-template-columns: 1fr; gap: 30px; }
  /* process becomes a swipe rail */
  .h-steps { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 80%; gap: 16px; margin: 36px -16px 0; padding: 0 16px 4px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; scrollbar-width: none; }
  .h-steps::-webkit-scrollbar { display: none; }
  .h-steps li { scroll-snap-align: start; background: #0d1733; border: 1px solid var(--h-line); border-top: 1px solid var(--h-line); border-radius: 18px; padding: 24px 22px 26px; }
  .h-steps-dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
  .h-steps-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--h-field); transition: background .2s, width .2s; }
  .h-steps-dots span.on { background: #1d6ff5; width: 20px; border-radius: 4px; }
  .h-quote { text-align: left; }
  .h-quote blockquote { font-size: 1.12rem; }
  .h-actions-center .btn { width: 100%; justify-content: center; }
  .h-faq-item summary { padding: 20px 0; font-size: 1rem; }
  .h-faq-item p { padding-right: 0; }
  .h-row { grid-template-columns: 1fr; }
}

/* original blue gradient on buttons and headline emphasis */
.h-section .btn-primary, .h-hero .btn-primary, .h-submit { background: linear-gradient(100deg, #1d6ff5, #0ea5e9 50%, #0891b2) !important; color: #fff !important; }
.h-hero h1 em, .h-section h2 em { background: linear-gradient(100deg, #2b7fff, #38bdf8 50%, #22d3ee); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Swipe rails stay still: no rise-in or hover lift inside them on phones (a lifted card was clipped and jumped) */
@media (max-width: 720px) {
  .fx-on .h-svcs .fx, .fx-on .h-steps .fx { opacity: 1; transform: none; transition: none; }
  .h-svc, .h-svc:hover { transform: none; box-shadow: none; }
  .h-svcs, .h-steps { padding-bottom: 12px; align-items: stretch; }
}

/* A hairline between sections (the pricing band draws its own), and tighter spacing on phones */
.h-section + .h-section:not(.h-price) { border-top: 1px solid var(--h-line); }
@media (max-width: 720px) {
  :root { --h-space: 60px; }
  .h-svcs-dots, .h-steps-dots, .h-reviews-dots { margin-top: 16px; }
}
