/* =============================================================================
   GaganSoft v2 (red/black brand palette) - marketing pages (owner: PUB): home, about, services, companies,
   contact, stories, legal, thank-you, 404. Built on css/app.css tokens/classes.
   ========================================================================== */

/* ----------------------------------------------------------------------------- home hero */
.home-hero { padding: 88px 0 96px; }
.home-hero .hero-copy h1 { margin-bottom: 18px; }
.home-search { max-width: 640px; }
.search-tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; margin: 0 0 12px; padding: 4px; border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius-pill); background: rgba(255, 255, 255, .06); }
.search-tab { position: relative; margin: 0; cursor: pointer; }
.search-tab input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.search-tab span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: var(--radius-pill); color: #E5E5E5; font-size: .9rem; font-weight: 600; transition: background .15s, color .15s; }
.search-tab span i { font-size: .85em; opacity: .85; }
.search-tab:hover span { background: rgba(255, 255, 255, .08); }
.search-tab input:checked + span { background: #fff; color: var(--primary-600, #CC0000); box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .5); }
.search-tab input:focus-visible + span { outline: 3px solid #FFFF00; outline-offset: 2px; }
.home-hero .hero-actions { margin-top: 28px; }

/* journey panel (decorative illustration of the student flow; no data) */
.journey { position: relative; padding: 22px; }
.journey-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; color: #E5E5E5; font-family: var(--font-head); font-weight: 700; font-size: .95rem; }
.journey-dots { display: inline-flex; gap: 6px; }
.journey-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .25); }
.journey-dots i:first-child { background: #FF0000; }
.journey-dots i:nth-child(2) { background: #FFFF00; }
.journey-dots i:nth-child(3) { background: #B0B9AE; }
.journey-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.journey-list li { display: flex; align-items: center; gap: 14px; margin: 0; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); }
.journey-list li > div { flex: 1; min-width: 0; }
.journey-list strong { display: block; color: #fff; font-size: .95rem; }
.journey-list span:not(.journey-ico):not(.journey-pill) { display: block; color: var(--on-dark-muted); font-size: .8125rem; }
.journey-ico { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px; background: rgba(255, 0, 0, .18); color: #FFE5E5; }
.journey-list li.is-done .journey-ico { background: rgba(255, 255, 255, .10); color: #fff; }
.journey-list li.is-current { background: linear-gradient(135deg, rgba(255, 0, 0, .5), rgba(255, 0, 0, .14)); border-color: rgba(255, 0, 0, .5); }
.journey-list li.is-current .journey-ico { background: rgba(255, 255, 255, .16); color: #fff; }
.journey-tick { color: var(--primary); font-size: 1.1rem; }
.journey-next { color: var(--on-dark-muted); }
.journey-pill { padding: 4px 10px; border-radius: var(--radius-pill); background: #fff; color: var(--primary-600, #CC0000); font-size: .75rem; font-weight: 700; }
.journey-progress { height: 6px; margin-top: 16px; border-radius: 6px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.journey-progress span { display: block; width: 72%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #CC0000, #FF0000); }
.journey-float { position: absolute; left: -28px; bottom: -26px; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; background: #fff; box-shadow: var(--shadow-lg); }
.journey-float strong { display: block; color: var(--ink); font-size: .9rem; }
.journey-float span:not(.icon-tile) { display: block; color: var(--muted); font-size: .8rem; }
@media (prefers-reduced-motion: no-preference) {
  .journey-float { animation: home-float 6s ease-in-out infinite; }
  @keyframes home-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
}
@media (max-width: 900px) {
  .journey-float { left: 12px; bottom: -22px; }
  .hero-art { max-width: 520px; }
}
/* Phones: the three search tabs stay on one row (no orphan "Jobs" pill), and the decorative journey panel
   is dropped so real content comes sooner. */
@media (max-width: 640px) {
  .home-hero .hero-art { display: none; }
}
@media (max-width: 560px) {
  .search-tabs { display: flex; flex-wrap: nowrap; width: 100%; border-radius: 14px; }
  .search-tab { flex: 1 1 auto; min-width: 0; }
  .search-tab span { justify-content: center; gap: 6px; padding: 8px 6px; border-radius: 10px; font-size: .82rem; white-space: nowrap; }
  .journey-float { display: none; }
}
@media (max-width: 380px) {
  .search-tab span i { display: none; }
}

/* ----------------------------------------------------------------------------- trust strip + counters */
.trust-strip { padding: 28px 0; border-bottom: 1px solid var(--border); background: #fff; }
.trust-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 24px; }
.trust-list li { display: flex; align-items: center; gap: 12px; margin: 0; }
.trust-list strong { display: block; color: var(--ink); font-size: .95rem; line-height: 1.3; }
.trust-list span:not(.icon-tile) { display: block; color: var(--muted); font-size: .85rem; line-height: 1.4; }
.home-counters { margin-top: 24px; }
@media (max-width: 900px) { .trust-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .trust-list { grid-template-columns: minmax(0, 1fr); } }

/* ----------------------------------------------------------------------------- verify band */
.verify-band { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 24px 40px; align-items: center; padding: 36px 40px; border-radius: var(--radius-xl); background: var(--grad-soft); border: 1px solid var(--primary-100); }
.verify-band-copy { display: flex; gap: 18px; align-items: flex-start; }
.verify-band h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); margin-bottom: 6px; }
.verify-band p { margin: 0; color: var(--ink-2); }
.verify-band .verify-widget input { min-height: 50px; background: #fff; font-family: var(--font-mono); letter-spacing: .02em; }
.verify-band .verify-widget .btn { min-height: 50px; }
@media (max-width: 900px) { .verify-band { grid-template-columns: minmax(0, 1fr); padding: 28px 24px; } }
@media (max-width: 480px) { .verify-band-copy { flex-direction: column; } .verify-band .verify-widget .btn { flex: 1 1 100%; } }

/* ----------------------------------------------------------------------------- sponsors */
.sponsors-band { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: #fff; }
.sponsor-name { padding: 8px 16px; border: 1px dashed var(--border-strong); border-radius: var(--radius-pill); font-size: .95rem; color: var(--ink-2); }
.logo-strip a:hover .sponsor-name { border-color: var(--primary-200); color: var(--primary); }

/* ----------------------------------------------------------------------------- companies band (home) */
.home-companies .split { align-items: end; }
.company-tiles { gap: 14px; }
.company-tiles .feature-tile { color: inherit; padding: 22px; }
.company-tiles .feature-tile h3 { font-size: 1rem; }
.company-tiles .feature-tile p { font-size: .875rem; }
.company-tiles .feature-tile:hover { border-color: rgba(255, 0, 0, .55); }
.company-cta { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; padding: 28px; border-radius: var(--radius-xl); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); }
.company-cta-text { color: var(--on-dark); font-size: 1.05rem; margin: 0 0 6px; }

@media (max-width: 1100px) { .company-tiles { grid-template-columns: minmax(0, 1fr); } }

/* ----------------------------------------------------------------------------- DV Soft pointer */
.dv-pointer { display: flex; align-items: center; gap: 18px 24px; flex-wrap: wrap; padding: 22px 26px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-xs); }
.dv-pointer-copy { flex: 1 1 280px; min-width: 0; }
.dv-pointer-copy strong { display: block; color: var(--ink); font-family: var(--font-head); font-size: 1.1rem; }
.dv-pointer-copy span { color: var(--muted); }

/* ----------------------------------------------------------------------------- about */
.about-pillars .feature-tile { color: inherit; }
.about-pillars .feature-tile .link-more { margin-top: auto; }
.role-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.role-grid li { display: flex; align-items: center; gap: 12px; margin: 0; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; font-weight: 600; color: var(--ink); font-size: .95rem; }
.role-grid .icon-tile { width: 38px; height: 38px; flex-basis: 38px; font-size: 1rem; border-radius: 11px; }
.wing-card { height: 100%; padding: 28px; border-radius: var(--radius-xl); border: 1px solid var(--border); background: #fff; box-shadow: var(--shadow-sm); }
.wing-card h3 { margin: 14px 0 8px; }
.wing-card p { color: var(--muted); }
.wing-card.is-ours { background: var(--grad-soft); border-color: var(--primary-100); }
.fact-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-top: 28px; }

/* ----------------------------------------------------------------------------- services */
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.service-card { scroll-margin-top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 12px; padding: 26px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-xs); transition: box-shadow .2s, border-color .2s; }
.service-card:target { border-color: var(--primary); box-shadow: var(--ring), var(--shadow); }
.service-card h2 { font-size: 1.15rem; margin: 6px 0 0; }
.service-card p { color: var(--muted); margin: 0; font-size: .95rem; }
.service-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.service-card ul li { margin: 0; }
.service-card .card-actions { margin-top: auto; padding-top: 6px; }
@media (max-width: 1000px) { .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .service-grid { grid-template-columns: minmax(0, 1fr); } }

/* ----------------------------------------------------------------------------- companies */
.offer-card { scroll-margin-top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 12px; height: 100%; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius-xl); background: #fff; box-shadow: var(--shadow-sm); }
.offer-card h2 { font-size: 1.3rem; margin: 6px 0 0; }
.offer-card p { color: var(--muted); margin: 0; }
.offer-card .check-list { margin: 4px 0 0; font-size: .95rem; }
.offer-card .btn { margin-top: auto; align-self: flex-start; }
.offer-card:target { border-color: var(--primary); box-shadow: var(--ring), var(--shadow); }
.enquiry-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px; align-items: start; }
.enquiry-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.enquiry-aside .check-list { margin-top: 16px; }
.interest-choices .choice { min-height: 0; }
@media (max-width: 900px) { .enquiry-layout { grid-template-columns: minmax(0, 1fr); } .enquiry-aside { position: static; } }

/* ----------------------------------------------------------------------------- contact */
.contact-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 40px; align-items: start; }
.contact-cards { display: grid; gap: 14px; }
.contact-card .icon-tile { flex: 0 0 48px; }
.contact-quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 8px; }
.contact-quick a { display: flex; flex-direction: column; gap: 6px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; color: var(--ink); font-weight: 600; font-size: .9rem; transition: border-color .15s, transform .15s; }
.contact-quick a:hover { border-color: var(--primary-200); transform: translateY(-2px); }
.contact-quick a i { color: var(--primary); font-size: 1.15rem; }
.contact-quick a span { color: var(--muted); font-weight: 400; font-size: .8125rem; }
.map-wrap { border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.map-wrap .map-frame { display: block; width: 100%; height: 380px; border: 0; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .contact-quick { grid-template-columns: minmax(0, 1fr); } }

/* ----------------------------------------------------------------------------- legal */
.legal-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; }
.legal-nav { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 4px; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; }
.legal-nav a { display: block; padding: 9px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 500; font-size: .95rem; }
.legal-nav a:hover { background: var(--surface); color: var(--primary); }
.legal-nav a[aria-current="page"] { background: var(--primary-50); color: var(--primary-600, #CC0000); font-weight: 600; }
.legal-body h2 { scroll-margin-top: calc(var(--header-h) + 24px); }
.legal-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 24px; color: var(--muted); font-size: .9rem; }
.legal-toc { margin: 0 0 28px; padding: 18px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.legal-toc ol { margin: 0; padding-left: 1.2em; columns: 2; column-gap: 32px; font-size: .95rem; }
@media (max-width: 900px) { .legal-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; } .legal-nav { position: static; grid-auto-flow: column; overflow-x: auto; } .legal-nav a { white-space: nowrap; } }
@media (max-width: 560px) { .legal-toc ol { columns: 1; } }

/* ----------------------------------------------------------------------------- stories, thank-you, 404 */
.story-note { max-width: 720px; margin: 32px auto 0; text-align: center; color: var(--muted); }
.done-card { max-width: 720px; margin: 0 auto; padding: 40px; text-align: center; border: 1px solid var(--border); border-radius: var(--radius-xl); background: #fff; box-shadow: var(--shadow); }
.done-card .icon-tile { margin: 0 auto 18px; }
.done-card h1 { font-size: clamp(1.75rem, 3.4vw, 2.4rem); }
.done-card p { color: var(--muted); }
.done-next { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 32px; text-align: left; }
.done-next a { display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); color: var(--ink); font-weight: 600; transition: border-color .15s, transform .15s; }
.done-next a:hover { border-color: var(--primary-200); transform: translateY(-2px); }
.done-next a span { color: var(--muted); font-weight: 400; font-size: .875rem; }
.done-next a i { color: var(--primary); }
.nf-code { display: inline-block; font-family: var(--font-head); font-weight: 800; font-size: clamp(4rem, 12vw, 7rem); line-height: 1; letter-spacing: -.05em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
@media (max-width: 640px) { .done-card { padding: 28px 20px; } .done-next { grid-template-columns: minmax(0, 1fr); } }

/* A plain .section that follows a coloured one keeps its top padding (app.css collapses every
   .section + .section pair, which is only right for two plain sections). Same specificity as that rule, loaded later. */
:is(.section-surface, .section-soft, .section-dark, .section-grad) + .section:not(.section-surface):not(.section-soft):not(.section-dark):not(.section-grad) { padding-top: 88px; }
@media (max-width: 640px) {
  :is(.section-surface, .section-soft, .section-dark, .section-grad) + .section:not(.section-surface):not(.section-soft):not(.section-dark):not(.section-grad) { padding-top: 60px; }
}
.contact-quick a span { overflow-wrap: anywhere; }
.contact-card p a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--primary-200); }
.home-counters, .stories-stats { grid-template-columns: repeat(auto-fit, minmax(170px, 260px)); justify-content: center; }
@media (max-width: 420px) { .home-counters, .stories-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
