/* ============================================================
   AI4Hotels — design layer
   Colours/fonts/spacing come from theme.json (var(--wp--preset--*)).
   This file only adds what core blocks don't give for free:
   the signature panel, connector motif, cards, chips, reveal.
   ============================================================ */

/* --- section rhythm --- */
.a4-section { padding-block: 96px; }
@media (max-width: 720px) { .a4-section { padding-block: 64px; } }

/* --- eyebrow label --- */
.eyebrow {
  font-family: var(--wp--preset--font-family--mono);
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--wp--preset--color--blue);
  display: inline-flex; align-items: center; gap: 9px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .6; }

/* --- HERO --- */
.a4-hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.a4-hero .lead { color: var(--wp--preset--color--muted); font-size: 19px; max-width: 38ch; }
@media (max-width: 960px) { .a4-hero { grid-template-columns: 1fr; gap: 40px; } }

/* light showcase panel (holds the connected-hotel render) */
.a4-panel {
  position: relative; border-radius: var(--wp--custom--radius-lg); padding: 14px;
  background: linear-gradient(160deg, #fff, #F2F7FF);
  border: 1px solid var(--wp--preset--color--line);
  box-shadow: 0 34px 76px -36px rgba(31,111,235,.45); overflow: hidden;
}
.a4-panel-inner { border-radius: 16px; overflow: hidden; background: #EDF3FE; }
.a4-panel-inner img { display: block; width: 100%; height: auto; }
.a4-tag {
  position: absolute; left: 22px; bottom: 20px; margin: 0;
  font-family: var(--wp--preset--font-family--mono); font-size: 11.5px;
  color: var(--wp--preset--color--blue-deep);
  background: rgba(255,255,255,.86); border: 1px solid var(--wp--preset--color--line);
  padding: 7px 12px; border-radius: 999px; backdrop-filter: blur(6px);
}

/* secondary (ghost) button — add class a4-ghost to the button block */
.wp-block-button.a4-ghost .wp-block-button__link {
  background: transparent; color: var(--wp--preset--color--ink);
  border: 1px solid var(--wp--preset--color--line);
}
.wp-block-button.a4-ghost .wp-block-button__link:hover {
  border-color: var(--wp--preset--color--blue); color: var(--wp--preset--color--blue);
}

/* --- WHY: 4 benefit cards --- */
.a4-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.a4-card {
  background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line);
  border-radius: var(--wp--custom--radius); padding: 28px 24px;
  transition: transform .25s, box-shadow .25s;
}
.a4-card:hover { transform: translateY(-4px); box-shadow: var(--wp--custom--shadow-sm); }
.a4-ic {
  width: 60px; height: 60px; border-radius: 15px; background: var(--wp--preset--color--haze-2);
  display: flex; align-items: center; justify-content: center; overflow: hidden; margin-bottom: 18px;
}
.a4-ic img { width: 44px; height: 44px; object-fit: contain; mix-blend-mode: multiply; }
@media (max-width: 960px) { .a4-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .a4-grid-4 { grid-template-columns: 1fr; } }

/* --- SERVICES: connected clusters --- */
.a4-svc { position: relative; overflow: hidden; }
.a4-circuit { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5; }
.a4-svc > .wp-block-group { position: relative; z-index: 1; }
.a4-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.a4-svc-card {
  background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line);
  border-radius: var(--wp--custom--radius); overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.a4-svc-card:hover { transform: translateY(-5px); box-shadow: var(--wp--custom--shadow-sm); border-color: var(--wp--preset--color--haze-2); }
.a4-svc-media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--wp--preset--color--navy); }
.a4-svc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.a4-svc-card:hover .a4-svc-media img { transform: scale(1.05); }
.a4-node {
  position: absolute; top: 14px; left: 14px; margin: 0;
  font-family: var(--wp--preset--font-family--mono); font-size: 10.5px; letter-spacing: .05em;
  color: #DCEBFF; background: rgba(8,16,38,.55); border: 1px solid rgba(120,170,255,.3);
  padding: 5px 10px; border-radius: 999px; backdrop-filter: blur(6px);
}
.a4-svc-body { padding: 22px; }
.a4-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.a4-chip {
  font-size: 12.5px; color: var(--wp--preset--color--blue-deep);
  background: var(--wp--preset--color--haze); border: 1px solid var(--wp--preset--color--haze-2);
  padding: 5px 11px; border-radius: 999px;
}
@media (max-width: 960px) { .a4-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .a4-grid-3 { grid-template-columns: 1fr; } }

/* --- ABOUT: pipeline list --- */
.a4-flow { background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line); border-radius: var(--wp--custom--radius); padding: 30px; box-shadow: var(--wp--custom--shadow-sm); }
.a4-flow-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--wp--preset--color--line); }
.a4-flow-row:last-child { border-bottom: 0; }
.a4-flow-num { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 9px; background: var(--wp--preset--color--blue); color: #fff; font-family: var(--wp--preset--font-family--mono); font-size: 13px; display: flex; align-items: center; justify-content: center; }

/* --- reveal on scroll (only when app.js is present, so the editor stays visible) --- */
.a4-js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.a4-js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .a4-js .reveal { opacity: 1; transform: none; } }

/* --- sticky header (add class a4-header to your Header template part) --- */
.a4-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(251,252,254,.82); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--wp--preset--color--line);
}

/* ============================================================
   Pattern helpers — WP figure resets + About + Contact
   ============================================================ */

/* image blocks fill their frames (WP wraps <img> in <figure>) */
.a4-ic .wp-block-image { margin: 0; }
.a4-svc-media .wp-block-image { margin: 0; height: 100%; }
.a4-svc-media .wp-block-image img { width: 100%; height: 100%; object-fit: cover; }

/* About — bespoke callout */
.a4-bespoke { margin-top: 26px; background: var(--wp--preset--color--navy); color: #EAF1FF; border-radius: 16px; padding: 22px 24px; display: flex; align-items: center; gap: 18px; }
.a4-bespoke b { color: #fff; }
.a4-bespoke p { margin: 4px 0 0; color: #AEC3E8; font-size: 14.5px; }
.a4-bespoke-star { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 11px; background: var(--wp--preset--color--orange); display: flex; align-items: center; justify-content: center; font-size: 20px; color: #fff; }

/* About — connected pipeline card */
.a4-flow { background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line); border-radius: var(--wp--custom--radius); padding: 30px; box-shadow: var(--wp--custom--shadow-sm); }
.a4-flow-title { font-family: var(--wp--preset--font-family--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--wp--preset--color--muted); margin: 0 0 18px; }
.a4-flow-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--wp--preset--color--line); }
.a4-flow-row:last-child { border-bottom: 0; }
.a4-flow-num { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 9px; background: var(--wp--preset--color--blue); color: #fff; font-family: var(--wp--preset--font-family--mono); font-size: 13px; display: flex; align-items: center; justify-content: center; }
.a4-flow-row span { font-size: 15.5px; font-weight: 500; color: var(--wp--preset--color--ink); }
.a4-flow-row small { display: block; color: var(--wp--preset--color--muted); font-size: 13px; font-weight: 400; }

/* Contact — CTA card */
.a4-cta { position: relative; overflow: hidden; background: var(--wp--preset--color--navy); color: #fff; border-radius: 28px; padding: 64px 56px; box-shadow: var(--wp--custom--shadow); }
.a4-cta::after { content: ""; position: absolute; right: -80px; top: -80px; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, rgba(31,111,235,.5), transparent 70%); pointer-events: none; }
.a4-cta > * { position: relative; z-index: 1; }
.a4-cta .a4-lead { color: #B7CBEC; max-width: 48ch; }
.a4-eyebrow-light { color: #7FB0FF; }
.a4-eyebrow-light::before { background: #7FB0FF; }
@media (max-width: 720px) { .a4-cta { padding: 40px 26px; } }

/* light (secondary) button on dark CTA */
.wp-block-button.a4-light .wp-block-button__link { background: #fff; color: var(--wp--preset--color--blue); }
.wp-block-button.a4-light .wp-block-button__link:hover { background: #EAF1FF; }
