/* 
 * File: styles.css
 * Copyright Concept Television Studios Limited 2004-Onwards.
*/

:root{
  --blue:#194c9b;
  --blue-2:#0f3a7a;
  --ink:#0a0a0a;
  --bg:#f7f8fb;
  --card:#ffffff;
  --yellow:#f0c200;
  --conceptorange:#ed6f03;
  --muted:#667085;
  --radius:16px;
  --shadow:0 8px 28px rgba(16,24,40,.08)
}

*{box-sizing:border-box}

body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Inter,Arial,sans-serif;
  color:#111;
  line-height:1.5;
  background:var(--bg)
}

.container{max-width:1120px;margin:0 auto;padding:24px}

/* Remove link underlines site-wide */
a { text-decoration:none; color:inherit; }
a:hover, a:focus { text-decoration:none; opacity:.9; }

/* Header/Hero */
.header{
  background:var(--conceptorange);
  color:#fff;
  padding:72px 0 56px;
  border-bottom:1px solid rgba(255,255,255,.12)
}
.hero-title{font-weight:800;font-size:48px;line-height:1.05;margin:0 0 12px}
.hero-sub{opacity:.95;font-size:18px;margin:0 0 24px}

/* Calculator grid (used on index) */
.calc{
  background:var(--card);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:20px;
  display:grid;
  gap:12px;
  grid-template-columns:repeat(4,minmax(0,1fr))
}
.field{display:flex;flex-direction:column;gap:6px;min-width:0}
select,.input,button{
  width:100%;
  padding:14px;
  border:1px solid #e4e7ec;
  border-radius:12px;
  font-size:16px;
  background:#fff;
  color:#111
}
.btn{background:#111;color:#fff;border:none;font-weight:700;cursor:pointer}
.btn:hover{opacity:.95}

/* Sections & grid */
.grid{display:grid;gap:28px}
.two{grid-template-columns:1.1fr .9fr}
@media (max-width:900px){.calc{grid-template-columns:1fr 1fr}.two{grid-template-columns:1fr}}
@media (max-width:560px){.calc{grid-template-columns:1fr}}
.section{padding:56px 0}
.card{
  background:var(--card);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:24px
}

/* Eyebrow variants */
.eyebrow{
  font-size:13px;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:#373635;
}
.header .eyebrow{color:#ffffff;}

.eyebrows{
  font-size:13px;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:#373635;
  font-weight:600;
}
.header .eyebrows{color:#373635;}

.title{font-size:28px;font-weight:800;margin:8px 0 16px}
.logo-row{display:flex;gap:36px;flex-wrap:wrap;align-items:center;opacity:.9}
.quote{display:flex;gap:16px;align-items:center}
.avatar{width:56px;height:56px;border-radius:50%;background:#d9e1f7}
.muted{color:var(--muted)}
.result{font-weight:800;font-size:22px}
.notice{font-size:12px;color:#667085;margin-top:10px}
.foot{padding:40px 0;color:#667085}
.card a{color:#fff;text-decoration:none}

/* FIX: popup/inline lead form — responsive grid (prevents squish) */
.inline-form{
  display:grid;
  grid-template-columns:minmax(220px,1fr) minmax(220px,1fr);
  gap:12px;
  align-items:start;
  margin-top:12px;
}
.inline-form .input{min-width:0}
.inline-form .consent{
  display:flex; gap:8px; align-items:flex-start;
  grid-column:1 / -1;
  font-size:14px;
}
.inline-form .consent a{color:#0f3a7a;text-decoration:underline}
.inline-form .btn{
  grid-column:1 / -1;
  justify-self:start;
}

/* On wider screens put the button on the right but keep good min widths */
@media (min-width:760px){
  .inline-form{
    grid-template-columns:minmax(260px,1fr) minmax(260px,1fr) auto;
  }
  .inline-form .btn{grid-column:auto}
}

/* Guide's small inline form (used on index) */
.inline-form-guide{
  display:flex; gap:12px; flex-wrap:wrap; margin-top:10px;
}
.inline-form-guide .input{flex:1 1 280px; min-width:0}
.inline-form-guide .btn{flex:0 0 auto}

/* Header flexbox with logo (used on index header) */
.header-flex {
  display:flex;
  align-items:center;
  gap:24px;
  flex-wrap:wrap;
}
.logo-link { flex-shrink:0; }
.logo {
  width:150px;
  height:150px;
  object-fit:contain;
  display:block;
}
.hero-text { flex:1 1 300px; }

/* Reduce top space above logo on mobile */
@media (max-width:560px){
  .header{ padding-top:14px; }
}

/* Guide card with book cover (used on index) */
.guide-card{
  display:grid;
  grid-template-columns:280px 1fr;
  gap:24px;
  align-items:center;
}
.guide-art{ display:block; }
.book-cover{
  width:100%;
  height:auto;
  border-radius:12px;
  box-shadow:var(--shadow);
  display:block;
}
@media (max-width:720px){
  .guide-card{ grid-template-columns:1fr; }
  .guide-art{ order:-1; }
}

/* Case study image */
.case-image {
  width:100%;
  height:auto;
  border-radius:12px;
  margin:12px 0;
  box-shadow:var(--shadow);
  display:block;
}

/* Vertical rhythm */
.container > .section { margin-top:16px; }
.container > .section:first-of-type { margin-top:0; }

/* Broadcaster logos */
.broadcaster-logo{
  height:50px;
  width:auto;
  object-fit:contain;
  display:block;
  margin:8px 0;
  filter:grayscale(20%);
  transition:filter .3s ease;
}
.broadcaster-logo:hover{ filter:none; }

/* Viewport-mounted logo (site-wide) */
@media (min-width:1024px){
  .header .logo-link { display:none; }
  .viewport-logo-link{
    position:fixed; top:30px; left:30px; z-index:20;
  }
  .viewport-logo{
    width:200px; height:200px; object-fit:contain; display:block;
  }
  .header{ padding-left:240px; }
  .header-flex{ display:flex; gap:24px; align-items:center; }
  .hero-text{ padding-left:0; }
}
@media (max-width:1023px){
  .viewport-logo-link{ display:none; }
  .header-flex{ display:block; text-align:center; }
  .header .logo-link{
    display:inline-block;
    margin:0 auto 16px;
  }
  .logo{ width:150px; height:150px; }
}
@media (min-width:1580px){
  .header{ padding-left:0; }
}

/* Video wrapper */
.video-wrap{
  position:relative;
  width:100%;
  padding-bottom:56.25%;
  border-radius:12px;
  overflow:hidden;
  box-shadow:var(--shadow);
  background:#000;
}
.video-wrap iframe{
  position:absolute; inset:0; width:100%; height:100%; border:0;
}

/* Stats grid */
.stats-grid{
  display:grid;
  gap:16px;
  grid-template-columns:repeat(4, minmax(220px, 1fr));
}
@media (max-width:1100px){
  .stats-grid{ grid-template-columns:repeat(2, minmax(220px, 1fr)); }
}
@media (max-width:560px){
  .stats-grid{
    background:var(--card);
    border-radius:var(--radius);
    box-shadow:var(--shadow);
    padding:12px;
    display:block;
  }
  .stats-grid > .card{
    background:transparent;
    box-shadow:none;
    border-radius:0;
    padding:12px 0;
    margin:0;
  }
  .stats-grid > .card + .card{ border-top:1px solid #747678; }
  .stats-grid .title{ margin:4px 0 0; line-height:1.2; }
  .stats-grid .muted{ margin:6px 0 0; }
}

/* Labels readable on white card inside orange header */
.header .calc { color:var(--ink); }
.header .calc .field > .eyebrow{
  color:var(--ink) !important;
  font-weight:600;
  margin-bottom:2px;
  display:inline-block;
}
.header .calc .muted{ color:var(--muted); }
.header .calc select,
.header .calc .input,
.header .calc button{ color:#111; }

/* Estimate card text */
#estimateCard .result { color:var(--ink); }

/* Buttons */
button.btn, a.btn, .card .btn { color:#fff !important; }
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:14px;
  border-radius:12px;
  font-size:16px;
  line-height:1;
  background:#111;
  color:#fff;
  text-decoration:none;
  border:none;
  cursor:pointer;
}
button.btn{ border:none; }
.btn:hover{ opacity:.95; }
.btn:focus-visible{
  outline:2px solid rgba(17,17,17,.6);
  outline-offset:2px;
  border-radius:12px;
}

/* Proposal heading black */
#proposalCard .title { color:var(--ink); }
#estimateCard .eyebrow, 
#estimateCard .title { color:var(--ink); }
#estimateCard .result { color:var(--ink); }

/* Desktop calc compact */
@media (min-width:901px){
  .header .calc{
    gap:8px;
    grid-template-columns:auto auto auto auto auto auto;
    align-items:end;
  }
  .header .calc .field select{ min-width:0; }
  #region{max-width:160px}
  #platform{max-width:150px}
  #weeks{max-width:120px}
  #format{max-width:120px}
  #weight{max-width:140px}
  #estimateBtn{white-space:nowrap; padding-left:16px; padding-right:16px}
}

/* Consent links readable inside cards */
.inline-form .consent a,
.inline-form-guide .consent a {
  color:var(--blue-2) !important;
  text-decoration:underline;
}
.inline-form .consent a:hover,
.inline-form-guide .consent a:hover,
.inline-form .consent a:focus,
.inline-form-guide .consent a:focus {
  opacity:1;
  text-decoration:underline;
}

/* Mobile: stack the proposal form fields */
@media (max-width:560px){
  .inline-form{ grid-template-columns:1fr !important; }
  .inline-form .btn{ grid-column:1 / -1; }
  .inline-form .input{ min-width:0; }
}

/* Mobile progressive disclosure for Platform/Duration/Format/Weight */
.options-detail{ display:contents; }
@media (max-width:560px){
  .options-summary{
    display:none; /* shown via JS when mobile */
    flex-direction:column;
    justify-content:flex-start;
    align-items:flex-start;
    background:var(--card);
    padding:10px 12px;
    border-radius:var(--radius);
    box-shadow:var(--shadow);
    margin-bottom:8px;
    font-size:14px;
    color:var(--ink);
    gap:8px;
  }
  .btn-small{
    background:#111;
    color:#fff !important;
    border:none;
    border-radius:8px;
    padding:6px 10px;
    font-size:14px;
    line-height:1;
    white-space:nowrap;
  }
  .options-detail{
    display:none;
    margin-bottom:8px;
  }
  .options-detail.active{
    display:grid;
    gap:12px;
    grid-template-columns:1fr;
  }
}

/* Footer: Related services — mobile readability */
@media (max-width:560px){
  .stats-grid > .card .eyebrow{ display:none; }
  .stats-grid{ background:var(--card); }
  .stats-grid > .card{ padding:14px 0; }
  .stats-grid > .card + .card{
    border-top:2px solid rgba(10,10,10,0.18);
    margin-top:0;
  }
  .stats-grid .title{ margin:0 0 4px; line-height:1.2; }
  .stats-grid .muted{ margin:0; }
}

/* Footer: Related services — force full-width separators on mobile */
@media (max-width:560px){
  .stats-grid > .card{
    display:block;
    width:100%;
    padding:14px 0;
    background:transparent;
    box-shadow:none;
    border-radius:0;
  }
  .stats-grid > .card + .card{
    border-top:2px solid rgba(10,10,10,0.18);
  }
  .stats-grid > .card .eyebrow{ display:none; }
  .stats-grid .title{ margin:0 0 4px; line-height:1.2; }
  .stats-grid .muted{ margin:0; }
}

/* Utility to hide only on mobile */
@media (max-width:560px){
  .hide-mobile { display:none !important; }
}

/* Make broadcaster logos smaller on mobile */
@media (max-width:560px){
  .broadcaster-logo {
    height:24px;
    margin:1px 0;
  }
}

@media (max-width:560px){
  #estimateText { white-space:pre-line; }
  #estimateText::before { content:""; }
  #estimateText { font-size:22px; }
  #estimateText .meta{
    display:block;
    font-size:14px;
    color:var(--muted);
    margin-top:4px;
  }
}

/* ============================================================================================================== */
/* tv-advert-production.php */

/* Split layout: text + image interspersed */
.split{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:24px;
  align-items:start; /* top-align by default */
}
.split.reverse{
  grid-template-columns:.9fr 1.1fr;
}
@media (max-width:900px){
  .split,
  .split.reverse{
    grid-template-columns:1fr;
  }
}

/* Ensure all split sections align to the top and behave nicely on wrap */
.section.split,
.section.split.reverse,
.split.process-split {
  align-items:start; /* reinforce top alignment */
}

/* Remove default margins so vertical alignment is exact */
.section .card,
.section .figure,
.section aside { margin:0; }

/* Optional: tighten top spacing for headings inside cards so they line up visually */
.section .card .eyebrow { margin-top:0; }
.section .card .title   { margin-top:6px; }

/* Editorial figure styling for 3:2 images (1024x683) */
.figure{
  display:block;
  background:var(--card);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:12px;
}
.figure img{
  width:100%;
  height:auto;
  border-radius:10px;
  display:block;
}
.figure figcaption{
  margin-top:8px;
  font-size:13px;
  color:var(--muted);
}

/* Process split tweaks so list + image sit nicely */
.process-split{ grid-template-columns:1.2fr .8fr; }
@media (max-width:900px){
  .process-split{ grid-template-columns:1fr; }
}
.process-list{ margin:0; padding-left:20px; }

/* ===== NEW: Right column wrapper + orange CTA (keeps CTA aligned with left card) ===== */
.right-stack{
  display:grid;
  gap:20px;
  align-content:start;
}
@media (min-width:901px){
  .right-stack{ grid-column:2; grid-row:1; }
}
.cta-quote{
  background: var(--conceptorange);
  color:#fff;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding:24px;
}
.cta-quote .title{ color:#fff; margin:0 0 8px; }
.cta-quote p{ color:#fff; margin:0 0 12px; }

/* ============================================================================================================== */
/* tv-advertising-packages.php */

.packages-grid{
  display:grid;
  gap:20px;
  grid-template-columns:repeat(auto-fit, minmax(260px, 1fr));
  align-items:stretch;
}
.pkg{
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  text-align:left;
}
.pkg .title{ font-size:22px; margin-bottom:12px; }
.pkg-points{ list-style:none; margin:0 0 16px; padding:0; }
.pkg-points li{
  margin:4px 0;
  padding-left:20px;
  position:relative;
}
.pkg-points li::before{
  content:"✔";
  color:var(--conceptorange);
  position:absolute;
  left:0;
}
.pkg-price{ font-size:24px; font-weight:800; margin:12px 0; }
.pkg-price .per{ font-size:14px; font-weight:400; color:var(--muted); margin-left:4px; }
.pkg .btn{ margin-top:auto; align-self:flex-start; }
.pkg.featured{
  border:2px solid var(--conceptorange);
  box-shadow:0 8px 28px rgba(237,111,3,0.15);
  transform:translateY(-4px);
}
.pkg.featured .title{ color:var(--conceptorange); }

/* Comparison grid with links (no extra buttons) */
.compare-grid{
  display:grid;
  gap:20px;
  grid-template-columns:repeat(4, minmax(0,1fr));
  align-items:stretch;
}
@media (max-width:1100px){ .compare-grid{ grid-template-columns:repeat(2, minmax(0,1fr)); } }
@media (max-width:560px){ .compare-grid{ grid-template-columns:1fr; } }

.compare{
  display:flex;
  flex-direction:column;
  text-decoration:none;
  color:inherit;
  transition:box-shadow .2s ease, transform .2s ease;
}
.compare:hover{ box-shadow:0 10px 28px rgba(16,24,40,.10); transform:translateY(-2px); }

.compare ul{ margin:8px 0 12px; padding-left:18px; }
.compare .price{ font-weight:800; font-size:24px; margin:8px 0; }
.compare .per{ font-size:14px; color:var(--muted); margin-left:4px; }
.link-cue{ margin-top:auto; color:var(--blue-2); text-decoration:underline; }

.compare.featured{
  border:2px solid var(--conceptorange);
  box-shadow:0 8px 28px rgba(237,111,3,.12);
}
.compare.featured .title{ color:var(--conceptorange); }

/* ============================================================================================================== */
/* Modal video (clickable image) */

.video-open{ display:block; cursor:pointer; }
.video-open:focus-visible{
  outline:2px solid var(--conceptorange);
  outline-offset:4px;
  border-radius:10px;
}

/* Basic modal shell */
.video-modal{
  position:fixed; inset:0;
  display:none; /* toggled via .is-open */
  z-index:1000;
}
.video-modal.is-open{ display:block; }

.video-modal__backdrop{
  position:absolute; inset:0;
  background:rgba(0,0,0,.6);
}

.video-modal__dialog{
  position:relative;
  max-width:960px;
  margin:5vh auto;
  background:#000;
  border-radius:12px;
  box-shadow:0 10px 40px rgba(0,0,0,.5);
  padding:0;
}

.video-modal__close{
  position:absolute; top:6px; right:10px;
  font-size:28px; line-height:1;
  background:transparent; border:0; color:#fff;
  cursor:pointer;
}

.video-modal__frame{ padding:8px; }
.video-modal__ratio{ position:relative; width:100%; padding-top:56.25%; }
.video-modal__ratio iframe{
  position:absolute; top:0; left:0; width:100%; height:100%;
  display:block; border:0;
}

/* Small screens */
@media (max-width:640px){
  .video-modal__dialog{ margin:3vh 12px; }
}

/* ============================================================================================================== */
/* Page-specific tweaks (gallery tiles on very small screens) */
@media (max-width:720px){
  .logo-row img[alt*="scene"],
  .logo-row img[alt*="monitor"],
  .logo-row img[alt*="presenter"],
  .logo-row img[alt*="rig"],
  .logo-row img[alt*="macro"],
  .logo-row img[alt*="grading"],
  .logo-row img[alt*="mix"]{
    width:47% !important;
    min-width:120px !important;
  }
}

/* Aligned, no-borders price list */
.costs-list{
  list-style:none;
  margin:8px 0 0;
  padding:0;
}
.costs-list li{
  display:flex;
  align-items:baseline;
  gap:12px;
  padding:4px 0;
}
.costs-list li strong{
  flex:0 0 120px;
  font-weight:800;
}
.costs-list .price{ font-variant-numeric: tabular-nums; }
.costs-list .muted{ margin-left:6px; }

/* Right-align channel numbers (keep labels left) */
.channel-numbers{
  list-style:none;
  margin:8px 0 0;
  padding:0;
}
.channel-numbers li{
  display:grid;
  grid-template-columns: 150px minmax(3ch,auto) minmax(3ch,auto); /* label | main | +1 */
  column-gap:16px;
  align-items:baseline;
  padding:4px 0;
}
.channel-numbers .main,
.channel-numbers .plus1{
  justify-self:end;
  text-align:right;
  font-variant-numeric: tabular-nums;
}
.channel-numbers .head{
  font-size:12px;
  color:var(--muted);
  padding-bottom:2px;
}
.channel-numbers .head .plus1{
  justify-self:end;
  text-align:right;
}
@media (max-width:560px){
  .channel-numbers li{
    grid-template-columns: 130px minmax(3ch,auto) minmax(3ch,auto);
    column-gap:12px;
  }
}

/* Buttons stay white text */
.card .btn, a.btn, button.btn { color: #fff !important; text-decoration: none; }

/* Normal links in cards use readable link styling */
.card a:not(.btn){
  color: var(--blue-2);
  text-decoration: underline;
}
.card a:not(.btn):hover,
.card a:not(.btn):focus{
  opacity: 1;
  text-decoration: underline;
}

/* ===== Floating quote box (desktop only) ===== */
/* Keeps the CTA fixed at mid-viewport on desktop; mobile/tablet unchanged */
@media (min-width: 1200px){
  .right-stack { display: block; }            /* let the figure flow normally */
  .cta-quote{
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    /* Align near the container’s right edge with a small gutter: */
    /*right: max(24px, calc((100vw - (1120px + 48px)) / 2)); */
    right: 32px;
    /* 1120px = container max-width, 48px = container L+R padding */
    width: 300px;                              /* tweak if you prefer */
    z-index: 60;                               /* above content, below navs if any */
  }
}

/* Optional: if you want a slightly smaller floating card on very wide screens */
@media (min-width: 1600px){
  .cta-quote{ width: 300px; }
}

/* Hide close icons on all modals */
.video-modal__close,
.lead-modal__close{
  display: none !important;
}

/* Desktop: normal-width buttons inside inline forms */
.inline-form .btn{
  grid-column: auto;
  justify-self: start;
  width: auto;
  white-space: nowrap; /* keeps label tidy */
}

/* Mobile: keep full-width if desired */
@media (max-width:560px){
  .inline-form .btn{
    grid-column: 1 / -1;
    width: 100%;
  }
}
