/* Shared fixes for all Blue Season pages (HE + EN).
   Loaded after each page's inline <style>, so it wins on equal specificity. */

/* ---- Anchors: fixed header no longer covers section titles ---- */
section[id], main[id] { scroll-margin-top: 96px; }
@media (max-width: 620px) { section[id], main[id] { scroll-margin-top: 80px; } }

/* ---- Skip link ---- */
.skip-link {
  position: absolute; inset-inline-start: 12px; top: -64px; z-index: 2000;
  background: #c8a45d; color: #071a33; padding: 10px 18px; border-radius: 10px;
  font-weight: 800; transition: top .15s ease;
}
.skip-link:focus { top: 12px; }

/* ---- Keyboard focus ---- */
:focus-visible { outline: 3px solid #d8b870; outline-offset: 3px; border-radius: 6px; }
input:focus-visible, textarea:focus-visible { outline: 2px solid #d8b870; outline-offset: 1px; border-color: #d8b870; }

/* ---- Header: compact on scroll ---- */
header .nav, header .brand img { transition: min-height .2s ease, width .2s ease, height .2s ease; }
header.is-compact .nav { min-height: 76px; }
header.is-compact .brand img { width: 56px; height: 56px; }

/* ---- Mobile navigation (burger) ---- */
.nav-toggle {
  display: none; align-items: center; justify-content: center; flex-direction: column; gap: 5px;
  width: 46px; height: 46px; padding: 0; margin: 0;
  background: transparent; border: 1px solid rgba(255,255,255,.35); border-radius: 12px;
  color: #fff; cursor: pointer;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 980px) {
  .mobile-lang { display: none !important; }              /* language switch now lives inside the menu */
  .js header .nav-toggle { display: inline-flex; }
  .js header .nav-links {
    display: none; position: absolute; top: 100%; inset-inline: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #071a33; padding: 8px 22px 24px;
    border-bottom: 1px solid rgba(255,255,255,.14);
    max-height: calc(100vh - 78px); overflow-y: auto;
    font-size: 17px; opacity: 1;
  }
  .js header .nav-links.is-open { display: flex; }
  .js header .nav-links a { padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,.1); }
  .js header .nav-links .nav-cta { margin-top: 16px; padding: 14px; text-align: center; border-bottom: 0; }
  .js header .nav-links .lang-switch { margin-top: 12px; padding: 12px; text-align: center; }
  /* No-JS fallback: keep links visible instead of hiding them */
  html:not(.js) header .nav-links { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; padding-bottom: 10px; }
  html:not(.js) header .nav { flex-wrap: wrap; }
}

/* ---- Cards: arrow position in RTL, no fake hover on non-links, visible CTA on touch ---- */
html[dir="rtl"] .clickable-card::after { right: auto; left: 22px; content: "\2196"; }
html[dir="rtl"] .clickable-card:hover::after { transform: translate(-3px, -3px); }
.company-card:not(.clickable-card):hover,
.production-card:not(.clickable-card):hover { transform: none; }
@media (hover: none) { .visit-website { opacity: 1; transform: none; } }

/* ---- Contrast bumps ---- */
.position-block > span { color: rgba(255,255,255,.78); font-size: 12px; }
.metric span { color: rgba(255,255,255,.82); }

/* ---- Sponsored label on media cards ---- */
.media-tag {
  display: inline-block; margin-bottom: 10px; padding: 3px 11px;
  border: 1px solid rgba(200,164,93,.55); border-radius: 999px;
  background: #faf5e8; color: #7a5c1c; font-size: 12px; font-weight: 800; line-height: 1.6;
}

/* ---- Contact form ---- */
.hp-field { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; border: 0 !important; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.form-note { margin: 0; font-size: 13px; color: rgba(255,255,255,.72); }
.btn-whatsapp { margin-top: 18px; border-color: rgba(255,255,255,.4); color: #fff; width: fit-content; }
.btn-whatsapp:hover { border-color: #c8a45d; color: #c8a45d; }
.callback-form button[disabled] { opacity: .6; cursor: wait; }

/* ---- Footer disclaimer ---- */
.footer-disclaimer {
  flex-basis: 100%; margin: 8px 0 0; padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: 12.5px; line-height: 1.7; color: rgba(255,255,255,.66); max-width: 920px;
}

/* ---- Floating WhatsApp button (phones/tablets) ---- */
.fab-whatsapp {
  display: none; position: fixed; inset-inline-end: 16px; bottom: 16px; z-index: 900;
  background: #c8a45d; color: #071a33; font-weight: 800; font-size: 15px;
  padding: 12px 18px; border-radius: 999px; box-shadow: 0 10px 30px rgba(0,0,0,.3);
}
@media (max-width: 980px) { .fab-whatsapp { display: inline-flex; } }

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .company-card:hover, .production-card:hover, .btn-primary:hover { transform: none; }
}

/* ---- Logos whose artwork is white on transparent (Channel22) need a dark plate ---- */
.publisher-logo[src$="channel22.webp"] { background: #071a33; padding: 10px 14px; border-radius: 10px; }

/* ---- Portfolio: align role badges across clickable / non-clickable cards ---- */
.production-card:not(.clickable-card) .position-block { margin-bottom: 37px; }
@media (max-width: 620px) { .production-card:not(.clickable-card) .position-block { margin-bottom: 0; } }

/* Arrow badge sits above the logo panel */
.clickable-card::after { z-index: 2; }

/* =====================================================================
   VISUAL POLISH (round 2)
   ===================================================================== */

/* ---- Hero: tighter headline so the stats row is visible above the fold ---- */
html[lang="he"] .hero h1 { font-size: clamp(40px, 4.4vw, 64px); line-height: 1.1; }
html[lang="en"] .hero h1 { font-size: clamp(46px, 5vw, 72px); line-height: 1.04; }
.hero-grid { padding-block: 56px; }
.hero-photo { position: relative; align-self: center; }
.hero-photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(7,26,51,.5));
}
.hero-metrics .metric strong { font-size: 28px; line-height: 1.2; font-variant-numeric: tabular-nums; }

/* ---- Section headings: gold accent bar ---- */
.section-head h2::after,
.portfolio-v2-head h2::after {
  content: ""; display: block; width: 56px; height: 3px; margin-top: 16px; border-radius: 3px;
  background: linear-gradient(90deg, #c8a45d, #e6cf9c);
}
.portfolio-v2-head h2::after { margin-inline: auto; }

/* ---- Desktop nav: animated gold underline ---- */
.nav-links a:not(.nav-cta):not(.lang-switch) { position: relative; }
.nav-links a:not(.nav-cta):not(.lang-switch)::after {
  content: ""; position: absolute; inset-inline: 0; bottom: -6px; height: 2px; background: #c8a45d;
  transform: scaleX(0); transition: transform .25s ease;
}
.nav-links a:not(.nav-cta):not(.lang-switch):hover::after,
.nav-links a:not(.nav-cta):not(.lang-switch):focus-visible::after { transform: scaleX(1); }
@media (max-width: 980px) { .nav-links a::after { display: none !important; } }

/* ---- Journey: real vertical timeline ---- */
.timeline { position: relative; padding-inline-start: 30px; }
.timeline::before {
  content: ""; position: absolute; inset-block: 14px; inset-inline-start: 4px; width: 2px;
  background: linear-gradient(180deg, #c8a45d, rgba(200,164,93,.12));
}
.timeline-item { position: relative; transition: box-shadow .25s ease, transform .25s ease; }
.timeline-item::before {
  content: ""; position: absolute; inset-inline-start: -32px; top: 34px; width: 14px; height: 14px; border-radius: 50%;
  background: #c8a45d; box-shadow: 0 0 0 5px rgba(200,164,93,.22);
}
.timeline-item:hover { box-shadow: 0 18px 46px rgba(7,26,51,.08); }
@media (max-width: 620px) { .timeline { padding-inline-start: 22px; } .timeline-item::before { inset-inline-start: -25px; top: 28px; } }

/* ---- Activities: image zoom on hover ---- */
.activity-img { transition: transform .5s ease; }
.activity { overflow: hidden; }
.activity:hover .activity-img { transform: scale(1.05); }
.activity-img { transform-origin: center; }
.activity-body { position: relative; background: #fff; }

/* ---- Portfolio: featured card glow, seamless kindergarten logo ---- */
.featured-company.production-card {
  box-shadow: 0 30px 90px rgba(0,0,0,.34), 0 0 0 1px rgba(216,184,112,.3), 0 0 70px rgba(216,184,112,.14);
}
@media (min-width: 981px) { .featured-company.production-card { transform: translateY(-6px); } .featured-company.production-card:hover { transform: translateY(-14px); } }
.logo-kindergarten { mix-blend-mode: multiply; }

/* ---- Media: calm greyscale logos that colour up on hover ---- */
.media-card .publisher-logo { filter: grayscale(1); opacity: .82; transition: filter .3s ease, opacity .3s ease; }
.media-card:hover .publisher-logo, .media-card:focus-within .publisher-logo { filter: none; opacity: 1; }
@media (hover: none) { .media-card .publisher-logo { filter: none; opacity: 1; } }
.media-card { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.media-card:hover { transform: translateY(-4px); box-shadow: 0 22px 54px rgba(7,26,51,.10); border-color: rgba(200,164,93,.5); }
.media-card .btn { transition: background .2s ease, color .2s ease, transform .2s ease; }
.media-card .btn:hover { background: #c8a45d; color: #071a33; }

/* ---- Buttons ---- */
.btn-primary { box-shadow: 0 10px 28px rgba(200,164,93,.25); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(200,164,93,.38); }
.btn-secondary:hover { border-color: #c8a45d; color: #c8a45d; }

/* ---- Form states ---- */
input:user-invalid, textarea:user-invalid { border-color: #e58a8a; }

/* ---- Scroll progress bar ---- */
.scroll-progress {
  position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 1001; pointer-events: none;
  background: linear-gradient(90deg, #c8a45d, #e6cf9c); transform: scaleX(var(--p, 0)); transform-origin: left center;
}
html[dir="rtl"] .scroll-progress { transform-origin: right center; }

/* ---- Reveal on scroll (only when JS added .reveal; keyframes so hover transforms keep working) ---- */
.reveal { opacity: 0; }
.reveal.in { animation: bs-rise .75s cubic-bezier(.2,.7,.2,1) both; animation-delay: var(--d, 0s); }
@keyframes bs-rise { from { opacity: 0; translate: 0 26px; } to { opacity: 1; translate: 0 0; } }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; } .reveal.in { animation: none; } .scroll-progress { display: none; } }

/* ---- Print: clean one-pager for sharing ---- */
@media print {
  header, .fab-whatsapp, .scroll-progress, .nav-toggle, .skip-link, .callback-form, .btn-row { display: none !important; }
  .hero { min-height: 0; padding-top: 24px; }
  .reveal { opacity: 1 !important; animation: none !important; }
  section { padding: 28px 0; break-inside: avoid; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* "22+" must not render as "+22" in RTL */
html[dir="rtl"] .metric strong { direction: ltr; text-align: right; }

/* =====================================================================
   VISUAL POLISH (round 3)
   ===================================================================== */

/* ---- Editorial coverage strip under the hero ---- */
.press-strip { background: #fff; border-bottom: 1px solid rgba(7,26,51,.08); padding: 26px 0; }
.press-strip .container { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 18px 52px; }
.press-strip-label { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #677386; }
html[lang="he"] .press-strip-label { letter-spacing: .04em; font-size: 13px; }
.press-strip a { display: flex; align-items: center; height: 34px; }
.press-strip img { height: 100%; width: auto; max-width: 140px; object-fit: contain; filter: grayscale(1); opacity: .72; transition: filter .3s ease, opacity .3s ease; }
.press-strip a:hover img, .press-strip a:focus-visible img { filter: none; opacity: 1; }
@media (hover: none) { .press-strip img { filter: none; opacity: 1; } }
@media (max-width: 620px) { .press-strip { padding: 20px 0; } .press-strip .container { gap: 14px 30px; } .press-strip a { height: 28px; } }

/* ---- Hero metrics stay compact (3 across) on phones ---- */
@media (max-width: 620px) {
  .hero-metrics { grid-template-columns: repeat(3, 1fr); margin-top: 26px; }
  .hero-metrics .metric { padding: 14px 10px; }
  .hero-metrics .metric strong { font-size: 22px; }
  .hero-metrics .metric span { font-size: 12px; line-height: 1.35; display: block; }
}

/* ---- Floating WhatsApp: only after the hero, hidden while the form is on screen ---- */
.js .fab-whatsapp { opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .25s ease, transform .25s ease; }
.js .fab-whatsapp.is-visible { opacity: 1; transform: none; pointer-events: auto; }

/* ---- Contact heading rhythm ---- */
.contact-box h2 { line-height: 1.15; }

/* ---- Footer ---- */
footer .footer-inner { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 30px 48px; align-items: start; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 56px; height: 56px; object-fit: contain; border-radius: 50%; background: rgba(255,255,255,.06); padding: 3px; box-shadow: 0 0 0 1px rgba(200,164,93,.28); }
.footer-brand strong { display: block; font-size: 16px; }
.footer-brand span { display: block; font-size: 13px; color: rgba(255,255,255,.66); line-height: 1.5; }
.footer-col-title { display: block; margin-bottom: 10px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #c8a45d; }
html[lang="he"] .footer-col-title { letter-spacing: .03em; font-size: 13px; }
.footer-links { display: grid; gap: 6px; }
.footer-links a { color: rgba(255,255,255,.82); transition: color .2s ease; }
.footer-links a:hover, .footer-links a:focus-visible { color: #d8b870; }
.footer-nav-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; }
footer .footer-disclaimer { grid-column: 1 / -1; flex-basis: auto; max-width: none; margin: 4px 0 0; }
.footer-copy { grid-column: 1 / -1; font-size: 13px; color: rgba(255,255,255,.6); }
@media (max-width: 980px) { footer .footer-inner { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 620px) { footer .footer-inner { grid-template-columns: 1fr; gap: 24px; } }
@media print { .press-strip, footer nav { display: none !important; } }

/* ---- Featured card: logo sits directly on the dark green card (no cream plate) ---- */
.production-card .premium-logo-panel.logo-on-dark {
  background: radial-gradient(ellipse at 50% 45%, rgba(216,184,112,.14), transparent 68%);
  border-color: rgba(216,184,112,.28); box-shadow: none; padding: 14px 18px;
}
.logo-on-dark .logo-caskflow { max-width: 94%; max-height: 190px; filter: drop-shadow(0 6px 18px rgba(0,0,0,.35)); }

/* =====================================================================
   PREMIUM POLISH (round 4): typography, hero atmosphere, scroll cue
   ===================================================================== */

/* ---- Typography: serif display headings (Hebrew: Frank Ruhl Libre, English: Cormorant Garamond) ---- */
html[lang="he"] h1,
html[lang="he"] .section-head h2,
html[lang="he"] .portfolio-v2-head h2,
html[lang="he"] #portfolio h2,
html[lang="he"] .contact-box h2,
html[lang="he"] .page-hero h1,
html[lang="he"] .media-bio h2,
html[lang="he"] #portfolio .production-card h3 {
  font-family: 'Frank Ruhl Libre', 'Assistant', Georgia, serif;
  font-weight: 700; letter-spacing: 0;
}
html[lang="he"] .hero h1 { font-size: clamp(44px, 4.8vw, 70px); line-height: 1.12; }
html[lang="he"] .section-head h2 { font-size: clamp(38px, 4.8vw, 58px); line-height: 1.12; }
html[lang="he"] #portfolio .production-card h3 { font-size: 26px; line-height: 1.25; }

html[lang="en"] h1,
html[lang="en"] .section-head h2,
html[lang="en"] .contact-box h2,
html[lang="en"] .leader-text h2,
html[lang="en"] .page-hero h1,
html[lang="en"] .section-title,
html[lang="en"] .media-bio h2 {
  font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 700; letter-spacing: -.01em;
}
html[lang="en"] .section-head h2 { font-size: clamp(44px, 5.4vw, 66px); line-height: 1.04; }
html[lang="en"] .contact-box h2 { font-size: 52px; }

/* ---- Hero atmosphere: slow gold glow + fine grain ---- */
.hero::before { animation: bs-drift 22s ease-in-out infinite alternate; will-change: transform; }
@keyframes bs-drift { from { transform: translate3d(-1.5%, -1%, 0) scale(1.02); } to { transform: translate3d(1.5%, 1%, 0) scale(1.07); } }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
@media (prefers-reduced-motion: reduce) { .hero::before { animation: none; } .scroll-cue i::after { animation: none; } }

/* ---- Scroll cue ---- */
.scroll-cue {
  position: absolute; inset-inline: 0; bottom: 18px; margin-inline: auto; width: fit-content; z-index: 3;
  display: none; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,.62); font-size: 11px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase;
}
html[lang="he"] .scroll-cue { letter-spacing: .06em; font-size: 12px; }
.scroll-cue i { position: relative; display: block; width: 1px; height: 38px; background: rgba(255,255,255,.22); overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -14px; width: 1px; height: 14px; background: #d8b870; animation: bs-cue 2.2s ease-in-out infinite; }
@keyframes bs-cue { 0% { top: -14px; } 70%, 100% { top: 38px; } }
.scroll-cue:hover { color: #d8b870; }
@media (min-width: 981px) and (min-height: 760px) { .scroll-cue { display: flex; } }
@media print { .scroll-cue, .hero::after { display: none !important; } }

/* ---- Heading rhythm with the serif faces ---- */
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] .section-title { line-height: 1.1; }
html[lang="he"] h2 { line-height: 1.2; }
html[lang="he"] #portfolio .portfolio-v2-head h2 { font-size: clamp(36px, 4.2vw, 56px); }
html[lang="en"] .media-bio h2 { font-size: clamp(34px, 4vw, 52px); }

html[lang="en"] .media-bio h2, html[lang="en"] .section-title { margin-bottom: 16px; }
