/* Showcase page styles — mocks the look of a generic Australian
   lifting-equipment supplier homepage ("Ironbark Lifting", fictional) so the
   Equipment Finder widget can be seen in real-world context. Anonymised fork:
   no client branding, no client photography (hero is a neutral gradient). */

:root {
  --brand-orange: #f47f26;
  --brand-orange-dark: #d96b15;
  --brand-ink: #1a1a1a;
  --brand-ink-soft: #5a5a5a;
  --brand-line: #e5e5e5;
  --brand-bg: #fafafa;
  --brand-blue: #1a4a7a;
  --aivy-banner-bg: #1a1a1a;
  --aivy-banner-accent: #f47f26;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  color: var(--brand-ink);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Showcase banner ----------------------------------------------------- */

.preview-banner {
  background: var(--aivy-banner-bg);
  color: #fff;
  padding: 12px 0;
  font-size: 13px;
  line-height: 1.45;
}

.preview-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.preview-tag {
  background: var(--aivy-banner-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
  flex-shrink: 0;
}

.preview-text {
  flex: 1;
  color: rgba(255, 255, 255, 0.9);
}

.preview-text strong { color: #fff; }

/* --- Top bar (orange phone strip) ---------------------------------------- */

.top-bar {
  background: var(--brand-orange);
  color: #fff;
  padding: 6px 0;
  font-size: 13px;
  font-weight: 600;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-left { display: flex; align-items: center; gap: 16px; }
.top-bar-right a { color: #fff; text-decoration: none; opacity: 0.9; }
.top-bar-right a:hover { opacity: 1; }

.search-icon { font-size: 14px; }
.top-phone { font-size: 16px; font-weight: 700; }

/* --- Site header ---------------------------------------------------------- */

.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--brand-line);
  padding: 18px 0;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.site-brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
  text-decoration: none;
  color: var(--brand-ink);
}

/* Simple text wordmark (no logo mark — this supplier is fictional). */
.brand-name {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0.01em;
  color: var(--brand-blue);
}

.brand-tagline {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--brand-ink-soft);
  display: block;
  margin-top: -2px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  color: var(--brand-ink);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: color 0.15s;
}

.site-nav a:hover { color: var(--brand-orange); }

/* --- Hero ------------------------------------------------------------------ */

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  /* Neutral industrial gradient instead of client photography. */
  background:
    radial-gradient(1100px 520px at 82% 18%, rgba(43, 108, 176, 0.35) 0%, rgba(43, 108, 176, 0) 60%),
    linear-gradient(135deg, #2b3a4a 0%, #1c2733 55%, #141a21 100%);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(244, 127, 38, 0.55) 0%,
    rgba(217, 107, 21, 0.38) 55%,
    rgba(26, 26, 26, 0.45) 100%
  );
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 72px 24px 60px;
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 50px;
  align-items: center;
  min-height: 620px;
}

.hero-copy {
  color: #fff;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 18px;
}

.hero-copy h1 {
  font-size: 64px;
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 22px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25);
}

.hero-sub {
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 28px;
  max-width: 32em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.hero-annotation {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.4);
  border-left: 3px solid #fff;
  padding: 12px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  border-radius: 0 4px 4px 0;
  backdrop-filter: blur(8px);
}

.annotation-arrow {
  font-size: 20px;
  font-weight: 900;
  color: #fff;
}

.hero-widget {
  width: 460px;
  height: 560px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.18);
  overflow: hidden;
  position: relative;
  transition: all 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

#widget-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  background: transparent;
}

/* Fullscreen state — triggered by postMessage from the widget when its modal
   opens. Expands the iframe to fill the viewport so the modal feels like a
   real page-level overlay. Toggled via the listener at the bottom of the
   showcase HTML (looks for type: 'aivy-widget', event: 'modal-open' / 'modal-close'). */
body.widget-fullscreen {
  overflow: hidden;
}

body.widget-fullscreen .hero-widget {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  max-width: none;
  border-radius: 0;
  z-index: 9999;
  box-shadow: none;
  background: transparent;
}

/* --- Value section ---------------------------------------------------------- */

.value-section {
  padding: 72px 0 80px;
  background: var(--brand-bg);
}

.value-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.value-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand-orange);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--brand-orange);
}

.value-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--brand-ink);
  margin-bottom: 14px;
}

.value-sub {
  font-size: 16px;
  line-height: 1.55;
  color: var(--brand-ink-soft);
  max-width: 56ch;
  margin: 0 auto;
}

.value-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.value-card {
  background: #fff;
  padding: 32px 28px;
  border-radius: 8px;
  border: 1px solid var(--brand-line);
}

.value-icon {
  font-size: 32px;
  color: var(--brand-orange);
  margin-bottom: 16px;
}

.value-card h3 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--brand-ink);
  margin-bottom: 10px;
}

.value-card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--brand-ink-soft);
}

/* --- Footer ----------------------------------------------------------------- */

.site-footer {
  background: var(--brand-ink);
  color: #fff;
  padding: 30px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.footer-fineprint {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 60ch;
}

.footer-fineprint a {
  color: var(--brand-orange);
  text-decoration: none;
  font-weight: 600;
}

.footer-fineprint a:hover { text-decoration: underline; }

/* --- Responsive -------------------------------------------------------------- */

@media (max-width: 1100px) {
  .hero-inner {
    grid-template-columns: 1fr 400px;
    gap: 30px;
  }
  .hero-widget { width: 400px; height: 560px; }
  .hero-copy h1 { font-size: 54px; }
}

@media (max-width: 900px) {
  .site-header-inner { flex-direction: column; gap: 18px; align-items: flex-start; }
  .site-nav { gap: 18px; flex-wrap: wrap; }
  .hero { min-height: auto; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 50px 24px;
  }
  .hero-widget { width: 100%; max-width: 460px; margin: 0 auto; height: 580px; }
  .value-inner { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 580px) {
  .preview-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
  .site-nav a { font-size: 11px; }
  .hero-copy h1 { font-size: 42px; }
  .hero-sub { font-size: 15px; }
  .value-title { font-size: 24px; }
  .value-sub { font-size: 15px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
