/*
  Pathway Productions — V3 shared design system
  Source of truth: reference/APPROVED_HOMEPAGE_V3.html + docs/DESIGN_SYSTEM.md
  This file holds only what every page shares: tokens, reset, type, header/nav,
  buttons, footer, section rhythm and the two honest-placeholder patterns
  (missing image / unverified video). Page-specific composition lives in
  each page's own stylesheet.
*/

:root{
  --ink:#292d31;        /* text on light surfaces */
  --muted:#666d70;       /* secondary text on light surfaces */
  --blue:#269cc2;        /* Pathway blue — decorative use only (rule, slash, icon accents): fails AA as text on light surfaces */
  --blue-text:#0f6f8f;   /* accessible blue for ALL text on light surfaces, including large headline emphasis (5.1:1 on paper, 5.7:1 on white) */
  --blue-btn:#167e9f;    /* accessible blue for button fills carrying white text on light surfaces (4.65:1 on white; buttons here never sit on the paper surface) */
  --blue-btn-hover:#0f6f8f;
  --paper:#F1F3F5;       /* light gray */
  --line:#dedfdf;        /* hairline on light surfaces */
  --charcoal:#292D31;    /* primary charcoal */
  --charcoal-alt:#30363B;/* alternate charcoal — never adjacent to --charcoal */
  --on-dark:#fff;
  --on-dark-muted:#cbd1d4;
  --on-dark-line:rgba(255,255,255,.25);
  --serif:Georgia,'Times New Roman',serif;
  --sans:Arial,Helvetica,sans-serif;
  --page:1250px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;color:var(--ink);font-family:var(--sans);background:#fff;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
a:hover{color:#087eab}
a:focus-visible,button:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
img{max-width:100%;display:block}

.wrap{max-width:var(--page);margin:auto;padding:0 42px}

/* ---------- Header / nav ---------- */
.top{border-bottom:1px solid #e9e9e9;background:#fff;position:sticky;top:0;z-index:20}
.nav{min-height:88px;display:flex;align-items:center;justify-content:space-between;gap:30px}
/* flex-shrink:0: without this, the mobile header row (logo / phone / Book a
   call / Menu) was squeezing the LOGO specifically rather than any of its
   siblings. The row's text buttons have their own content-driven minimum
   width the browser won't shrink past, but a flex item wrapping an <img>
   has no such floor — so the logo kept absorbing the entire shortfall,
   while its fixed CSS height stayed put. img{max-width:100%} (above) then
   clamped the image's rendered WIDTH down to that shrunken box while
   height:40px held firm, squashing the aspect ratio — at a 375px viewport
   it was rendering roughly half as wide as it should, at 320px barely a
   sliver. flex-shrink:0 keeps this item at its natural, aspect-correct
   size always; the mobile-specific sizing below (height reductions, tighter
   .nav gap) is what actually makes room for it instead. */
.brand{display:flex;gap:13px;align-items:center;flex-shrink:0}
.brand-logo{height:40px;width:auto;display:block}
.slash{height:31px;width:11px;transform:skew(-19deg);background:var(--blue);flex:none}
.brandname{font-size:24px;letter-spacing:2px;font-weight:700;line-height:1}
.brandname small{display:block;font-size:10px;letter-spacing:3px;font-weight:400;margin-top:6px}
.navlinks{display:flex;align-items:center;gap:26px;font-size:13px}
.navlinks a{white-space:nowrap}
.navlinks a.current{color:var(--blue)}
.header-social{display:flex;align-items:center;gap:14px;color:var(--muted)}
.header-social a{display:flex}
.header-social svg{width:17px;height:17px;fill:currentColor;transition:fill .15s ease}
.header-social a:hover svg{fill:var(--blue-text)}
.outline,.btn{display:inline-flex;align-items:center;justify-content:center;gap:12px;border-radius:4px;padding:14px 20px;font-size:13px;font-weight:600;cursor:pointer;border:1px solid transparent}
.outline{border-color:#737a7e;background:none;color:var(--ink)}
.btn{background:var(--blue-btn);color:#fff}
.btn:hover{background:var(--blue-btn-hover);color:#fff}
.mobile{display:none;border:1px solid var(--line);padding:10px;background:#fff}

/* ---------- Header dropdown (mega menu) ----------
   On desktop (pointer:fine, 851px+) the panel also opens on hover, so
   browsing doesn't require the extra click on the small chevron — the
   chevron and click/tap behaviour (handled in main.js) still work for
   keyboard/touch and remain the only trigger below that breakpoint.
   The main link text still navigates normally to the section's landing
   page. Closes when another dropdown opens, on outside click, or on
   Escape (handled in main.js). Panels are grouped into labelled
   categories (.navdrop-group); Creative Productions has 3 groups
   (default, 3 columns), Digital Marketing has 4 (.navdrop-panel--4col).
   Each group heading uses the brand-blue accent, consistent weight/size/
   letter-spacing across every group, so it reads clearly as a heading
   over the plain-ink links beneath it. */
.navdrop{position:relative;display:flex;align-items:center;gap:2px}
.navdrop-toggle{display:inline-flex;align-items:center;justify-content:center;border:none;background:none;color:inherit;font-size:11px;padding:6px 4px;cursor:pointer;line-height:1;opacity:.7;transition:transform .15s ease}
.navdrop-toggle:hover{opacity:1}
.navdrop.open .navdrop-toggle{transform:rotate(180deg);opacity:1}
.navdrop-panel{
  position:absolute;top:100%;left:50%;transform:translateX(-50%) translateY(4px);
  background:#fff;border:1px solid var(--line);border-radius:6px;
  box-shadow:0 18px 40px rgba(20,24,27,.14);
  padding:24px 28px 18px;margin-top:6px;
  display:grid;grid-template-columns:repeat(3,178px);align-items:start;gap:0 32px;
  opacity:0;visibility:hidden;pointer-events:none;
  transition:opacity .15s ease,transform .15s ease;
  z-index:30;
}
.navdrop-panel--4col{grid-template-columns:repeat(4,160px);gap:0 26px}
.navdrop-group{display:flex;flex-direction:column}
.navdrop-group-title{font-family:var(--sans);font-size:11px;letter-spacing:1.4px;text-transform:uppercase;font-weight:700;color:var(--blue-text);margin:0 0 11px;padding-bottom:8px;border-bottom:1px solid rgba(15,111,143,.18)}
.navdrop-panel a{display:block;padding:7px 0;font-size:13px;font-family:var(--sans);color:var(--ink);border-bottom:1px solid var(--line);white-space:normal}
.navdrop-panel a:hover{color:var(--blue-text)}
.navdrop-group a:last-child{border-bottom:none}
.navdrop-panel .navdrop-all{
  grid-column:1/-1;margin-top:12px;padding-top:16px;border-top:1px solid var(--line);
  border-bottom:none;font-weight:600;font-size:13px;color:var(--blue-text);
  text-align:center;
}
.navdrop.open .navdrop-panel{
  opacity:1;visibility:visible;pointer-events:auto;transform:translateX(-50%) translateY(0);
}
@media(min-width:851px) and (hover:hover) and (pointer:fine){
  .navdrop:hover .navdrop-panel{
    opacity:1;visibility:visible;pointer-events:auto;transform:translateX(-50%) translateY(0);
  }
  .navdrop:hover .navdrop-toggle{transform:rotate(180deg);opacity:1}
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs{background:var(--paper);border-bottom:1px solid var(--line)}
.breadcrumbs ol{list-style:none;margin:0;padding:13px 0;display:flex;align-items:center;flex-wrap:wrap;font-size:12px;color:var(--muted)}
.breadcrumbs li{display:flex;align-items:center}
.breadcrumbs li+li::before{content:'/';margin:0 9px;color:#b7bcbe}
.breadcrumbs a{color:var(--muted)}
.breadcrumbs a:hover{color:var(--blue-text)}
.breadcrumbs li[aria-current="page"]{color:var(--ink);font-weight:600}
@media(max-width:850px){
  .breadcrumbs ol{font-size:11px;padding:11px 0;flex-wrap:nowrap}
  .breadcrumbs li+li::before{margin:0 7px}
  /* On a 4+-level trail (e.g. Home / Creative Productions / Production
     Services in India / Crew & Equipment), showing every level wrapped to
     an awkward, mis-aligned second line. On narrow screens, collapse
     everything between the first (Home) and last (current page) item into
     a single "…", so the trail reads as one line: Home / … / Crew & Equipment.
     The full trail stays in the DOM and in the page's BreadcrumbList schema
     either way — this only changes what's visually shown, so no SEO impact.

     Scoped to ol:has(li:nth-child(4)) — i.e. only a trail with a 4th item —
     so the ~30 pages with a 2-3 level trail (which already fit on one line
     fine) are left completely alone and don't grow an unnecessary "…".
     li:last-child wins the cascade over the plain li+li separator above
     because it's more specific, so no !important is needed. */
  .breadcrumbs ol:has(li:nth-child(4)) li:not(:first-child):not(:last-child){display:none}
  .breadcrumbs ol:has(li:nth-child(4)) li:last-child::before{
    content:'… /';margin:0 7px;color:#b7bcbe;
  }
  /* display:block (not the default li flex) so text-overflow actually
     applies — it doesn't reliably truncate a flex container's own text. */
  .breadcrumbs li:last-child{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;max-width:100%}
}

/* ---------- Type / eyebrow ---------- */
.eyebrow{font-size:11px;letter-spacing:2.6px;text-transform:uppercase;font-weight:700;color:#5c6267} /* 6.18:1 on white */
.rule{width:42px;height:3px;background:var(--blue);margin:0 0 23px}
.serif{font-family:var(--serif);font-weight:400;letter-spacing:-1.8px}
h1,h2,h3{margin:0}
.section h2{font-family:var(--serif);font-weight:400;letter-spacing:-1px;font-size:clamp(34px,4vw,52px);line-height:1.13;margin:12px 0 18px}
.section h2 em{color:var(--blue-text);font-style:normal;font-weight:400}
.section p{font-size:16px;line-height:1.85;color:#51585c;margin:0 0 18px}

/* ---------- Section rhythm / backgrounds ---------- */
.section{padding:85px 0}
.bg-white{background:#fff;color:var(--ink)}
.bg-paper{background:var(--paper);color:var(--ink)}
.bg-charcoal{background:var(--charcoal);color:var(--on-dark)}
.bg-charcoal-alt{background:var(--charcoal-alt);color:var(--on-dark)}
.bg-charcoal h2,.bg-charcoal-alt h2{color:var(--on-dark)}
.bg-charcoal p,.bg-charcoal-alt p{color:var(--on-dark-muted)}
.bg-charcoal .eyebrow,.bg-charcoal-alt .eyebrow{color:#a6d9e7}
.bg-charcoal h2 em,.bg-charcoal-alt h2 em{color:#9ad4e4}
.bg-charcoal .btn,.bg-charcoal-alt .btn{background:#4BB4CE;color:#172A30}
.bg-charcoal .btn:hover,.bg-charcoal-alt .btn:hover{background:#78C8DC}
.split{display:grid;grid-template-columns:1fr 1fr;gap:80px;align-items:start}
.link{font-size:14px;font-weight:bold;color:var(--blue-text)}
.bg-charcoal .link,.bg-charcoal-alt .link{color:#9ad4e4}

/* ---------- Actions ---------- */
.actions{display:flex;gap:12px;flex-wrap:wrap}

/* ---------- Honest placeholder patterns (no fake imagery, no fake video) ---------- */
.placeholder-media{
  position:relative;overflow:hidden;color:#a2b1b9;
  background:linear-gradient(140deg,#35434c,#1d272e 72%);
  display:flex;align-items:center;justify-content:center;
}
.placeholder-media .placeholder-label{
  position:absolute;top:18px;left:18px;right:18px;
  display:flex;justify-content:space-between;gap:12px;
  font-size:9px;letter-spacing:.18em;color:#9cb0b9;
}
.placeholder-media .placeholder-note{
  text-align:center;max-width:280px;padding:0 20px;
  font-size:11px;letter-spacing:.08em;line-height:1.7;color:#aeb9c1;
}
.placeholder-media svg{width:40px;height:40px;stroke-width:1.2;color:#8aa0aa;margin-bottom:14px}

.video-pending{
  position:relative;display:flex;align-items:center;gap:16px;
  padding:18px 22px;border:1px solid #3e5059;background:#182228;color:#c7d3d8;
  font-size:12px;letter-spacing:.04em;
}
.video-pending svg{width:26px;height:26px;color:var(--blue);flex:none}
.video-pending strong{color:#fff;font-weight:600}
.video-pending span{display:block;color:#8ba0a9;font-size:11px;margin-top:3px}

/* ---------- Footer ---------- */
.footer{padding:56px 0 30px;border-top:1px solid var(--line)}
.footrow{display:flex;justify-content:space-between;gap:24px;flex-wrap:wrap;color:#697074;font-size:13px;padding-top:28px;border-top:1px solid var(--line);margin-top:40px}
.footrow a{margin-right:16px}

/* Full sitemap — every page reachable from every page, grouped by section.
   Four equal columns site-wide (Creative Productions / Digital Marketing /
   Strategy & Consulting / Company) — originally trialled on the homepage
   only, now the standard everywhere so the footer is identical on every
   page. Digital Marketing's long list splits into its execution services
   and its strategy/consulting services, so no single column runs away
   from the others. */
.footer-sitemap{display:grid;grid-template-columns:repeat(4,1fr);gap:40px}
.footer-col h4{font-size:11px;letter-spacing:1.6px;text-transform:uppercase;font-weight:700;color:#5c6267;margin:0 0 16px}
.footer-col h4 a{color:inherit}
.footer-col h4 a:hover{color:var(--blue-text)}
/* Direct-child combinator, not a bare descendant selector: the link list
   lives as direct <a> children of .footer-col (JS later moves them into
   .footer-col__links-inner, which this still reaches — see below), while
   the heading's own link (Creative Productions/Digital Marketing) is
   nested inside <h4> and must stay inline, not become this block-level
   list-item style, or it collides with the link-count badge next to it. */
.footer-col > a,.footer-col__links-inner a{display:block;font-size:13px;color:#51585c;padding:7px 0;text-align:left}
.footer-col > a:hover,.footer-col__links-inner a:hover{color:var(--blue-text)}
@media(max-width:850px){
  .footer-sitemap{grid-template-columns:1fr 1fr;gap:28px}
}
/* Footer accordion toggle button — built by JS (assets/js/main.js) into
   every .footer-col h4 on every page. Hidden outside the narrow tier below;
   on tablet/desktop the heading is just a heading and all links stay
   visible, same as before. */
.footer-col__toggle{
  display:none;background:none;border:0;padding:4px;margin:-4px -4px -4px 0;
  cursor:pointer;flex-shrink:0;line-height:1;
}
.footer-col__toggle::after{
  content:'+';font:300 24px/1 var(--sans);color:var(--blue-text);
  display:block;transition:transform .15s ease;
}
.footer-col.is-open .footer-col__toggle::after{transform:rotate(45deg)}
.footer-col__toggle:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
/* Link-count badge, also built by JS, same display:none-unless-narrow
   pattern as the toggle button above — a quiet hint of how much is behind
   each heading before it's opened, read off the real number of links in
   that group rather than an invented decoration. Sits inside
   .footer-col__label, which JS wraps around the heading's original
   content (plain text, or the Creative Productions/Digital Marketing
   link) so the heading row still has exactly two flex children —
   label and toggle — for the existing space-between layout. */
.footer-col__label{display:inline}
.footer-col__count{
  display:none;font:400 11px/1 var(--sans);color:#8ba0a9;
  margin-left:8px;
}

@media(max-width:480px){
  /* Superseded the earlier 2-column pairing at this width: Arun then asked
     for the 4 groups back as separate headings, each independently
     collapsible/tap-to-expand — an accordion, same visual language as the
     .faq-group/.faq-item pattern already used on the FAQ section
     (assets/css/site.css) for consistency: hairline top/bottom rules, a
     "+" that rotates to "x" on open. The .footer-col__links/__links-inner
     wrapper and the .footer-col__toggle button are both added by JS
     (assets/js/main.js, footer accordion block) at runtime, so every one of
     the 38 pages gets this from the one shared script without a markup
     edit per file. Tablet (481-850px) keeps the plain always-visible
     2-column grid above, unchanged — only phone widths get the accordion.
     Two of the four headings (Creative Productions, Digital Marketing) are
     themselves links to their category page — that link must keep
     navigating normally, so only the dedicated toggle button (or a tap on
     the row's empty space) opens/closes the list; see main.js for how the
     click is routed. */
  .footer-sitemap{grid-template-columns:1fr;gap:0}
  .footer-col{border-top:1px solid var(--line)}
  .footer-col:last-child{border-bottom:1px solid var(--line)}
  .footer-col h4{
    margin:0;padding:16px 2px;cursor:pointer;user-select:none;
    display:flex;align-items:center;justify-content:space-between;gap:16px;
  }
  .footer-col__toggle{display:block}
  .footer-col__count{display:inline}
  .footer-col__links{
    display:grid;grid-template-rows:0fr;
    transition:grid-template-rows .25s ease;
  }
  .footer-col.is-open .footer-col__links{grid-template-rows:1fr}
  .footer-col__links-inner{overflow:hidden}
  .footer-col__links-inner a{padding:7px 2px}
  .footer-col.is-open .footer-col__links-inner{padding-bottom:10px}
}

/* ---------- Pending-route interception banner (internal review build only) ---------- */
.pending-banner{
  display:none;position:fixed;left:0;right:0;bottom:0;z-index:50;
  background:#1b252b;color:#fff;font-size:13px;padding:14px 22px;
  align-items:center;justify-content:space-between;gap:16px;
}
.pending-banner.show{display:flex}
.pending-banner button{background:none;border:1px solid #556168;color:#fff;border-radius:4px;padding:6px 12px;font-size:12px;cursor:pointer}

#menu{display:none}
@media(max-width:850px){
  .wrap{padding:0 22px}
  /* Collapsed to logo / phone-icon / Book-a-call / Menu — four items with
     real content-driven widths competing in one row, so the generous
     30px desktop gap (meant for text nav links with room to breathe) is
     cut down here to actually fit all four on a phone-width screen. */
  .nav{min-height:72px;gap:10px}
  .navlinks{display:none;position:absolute;top:72px;left:0;right:0;background:#fff;padding:22px;flex-direction:column;align-items:start;border-bottom:1px solid var(--line);z-index:19;max-height:calc(100vh - 72px);overflow-y:auto}
  .navlinks.open{display:flex}
  .mobile{display:block}
  .nav>a.outline{display:none} /* "Get in Touch" link only — the .meet-header-btn "Book a call" button (also .outline) stays visible, see meeting-widget.css */
  .header-social{display:none}
  .split{grid-template-columns:1fr;gap:20px}
  .section{padding:60px 0}

  /* Dropdown becomes a tap-to-expand accordion row inside the mobile menu
     (same click-driven .open toggle as desktop, just a different panel
     layout: static, single column, left-rule instead of a floating card). */
  .navdrop{flex-direction:column;align-items:stretch;width:100%;gap:0}
  .navdrop>a{padding:9px 0}
  /* Enlarged from the original 10px/6px padding (a ~24.5x36px hit area,
     short of the ~44x44px recommended minimum tap target) without changing
     the row's own layout height — the toggle is absolutely positioned, so
     widening it doesn't push sibling rows down; top is nudged up slightly
     to keep it vertically centred on the row now that it's a bit taller. */
  .navdrop-toggle{display:block;position:absolute;right:0;top:0;font-size:16px;padding:12px 14px}
  .navdrop-panel{
    position:static;display:none;grid-template-columns:1fr;gap:0;
    opacity:1;visibility:visible;pointer-events:auto;transform:none;
    box-shadow:none;border:none;border-radius:0;margin:0 0 6px;padding:0 0 0 14px;
    border-left:2px solid var(--line);
  }
  .navdrop.open .navdrop-panel{display:block;transform:none}
  .navdrop-panel a{padding:10px 0}
  .navdrop-group-title{margin:16px 0 4px}
  .navdrop-group:first-child .navdrop-group-title{margin-top:2px}
  .navdrop-panel .navdrop-all{text-align:left}
}
@media(max-width:480px){
  .brandname{font-size:19px}
  .brand-logo{height:30px}
}
@media(max-width:360px){
  /* Matches meeting-widget.css's own 360px tier for the header's other
     controls (.meet-header-btn) — shrinking the logo a bit further here
     too is what leaves enough room for all four header items together on
     the smallest common phone widths (320-360px), now that .brand no
     longer shrinks past its natural (aspect-correct) size. */
  .brand-logo{height:24px}
}
