/* ═══════════════════════════════════════════════════════════════
   THE FERAL FIRM — feral-overrides.css
   Single source of truth for all brand / style overrides.
   ═══════════════════════════════════════════════════════════════ */

/* ── Design Tokens ────────────────────────────────────────────── */
:root {
  /* Brand yellow */
  --brand-yellow:      #F5C518;
  --brand-yellow-dark: #C9A000;
  --brand-yellow-dim:  rgba(245, 197, 24, 0.15);

  /* Text colours */
  --clr-white:     #ffffff;
  --clr-body:      rgba(255,255,255,0.55);
  --clr-label:     rgba(255,255,255,0.38);

  /* Type scale — 7 sizes, nothing else */
  --fs-hero:     3.5rem;    /* page display / h1       */
  --fs-title:    2rem;      /* section heading / h2    */
  --fs-sub:      1.25rem;   /* sub-heading / h3 h4     */
  --fs-body:     1rem;      /* body copy / bullets     */
  --fs-small:    0.875rem;  /* meta values / secondary */
  --fs-label:    0.62rem;   /* caps eyebrow labels     */
  --fs-ui:       0.78rem;   /* buttons / nav chrome    */
}

/* ── Global links — yellow only ──────────────────────────────── */
a, a:link, a:visited                { color: var(--brand-yellow); transition: color 0.18s ease; }
a:hover, a:focus                    { color: var(--brand-yellow-dark); text-decoration: none; }
a:active                            { color: #A07800; }

/* Nav + brand stay out of global link rule */
.navbar-brand, .navbar-brand:hover,
.navbar-brand:focus                 { color: inherit; }
.social-text a, .social-text a:visited { color: inherit; }
.social-text a:hover                { color: var(--brand-yellow); }

/* ── Hamburger fullscreen nav ─────────────────────────────────── */
/* DO NOT apply font-size here — nav font-size is set in main.css */

/* Inactive links — yellow */
.navbar-top-alpha .navbar-mainmenu .nav-item a,
.navbar-top-alpha .navbar-mainmenu .nav-item a:visited,
.navbar-mainmenu .nav-link,
.navbar-mainmenu .nav-link:visited {
  color: var(--brand-yellow) !important;
  transition: color 0.15s ease !important;
}
/* Hover — darker yellow */
.navbar-top-alpha .navbar-mainmenu .nav-item a:hover,
.navbar-mainmenu .nav-link:hover {
  color: var(--brand-yellow-dark) !important;
}
/* Press */
.navbar-top-alpha .navbar-mainmenu .nav-item a:active,
.navbar-mainmenu .nav-link:active {
  color: #A07800 !important;
}
/* Current page — white, not clickable */
.navbar-top-alpha .navbar-mainmenu .nav-item.active a,
.navbar-top-alpha .navbar-mainmenu .nav-item.active a:visited,
.navbar-mainmenu .nav-item.active .nav-link,
.navbar-mainmenu .nav-item.active .nav-link:visited {
  color: var(--clr-white) !important;
  cursor: default;
}
.navbar-top-alpha .navbar-mainmenu .nav-item.active a:hover,
.navbar-mainmenu .nav-item.active .nav-link:hover {
  color: var(--clr-white) !important;
}

/* Hamburger bars — yellow */
.btn-menu .bar1, .btn-menu .bar2, .btn-menu .bar3 {
  background-color: var(--brand-yellow);
}

/* ── Buttons — yellow border+text ────────────────────────────── */
.btn-primary,
.btn-underline.btn-primary,
.btn-transp-arrow.btn-primary,
.btn-circicon.btn-primary             { color: var(--brand-yellow) !important; border-color: var(--brand-yellow) !important; }
.btn-primary:hover,
.btn-underline.btn-primary:hover,
.btn-transp-arrow.btn-primary:hover   { color: var(--brand-yellow-dark) !important; border-color: var(--brand-yellow-dark) !important; }
.btn-primary:active,
.btn-underline.btn-primary:active     { color: #A07800 !important; border-color: #A07800 !important; }

/* ── Scroll arrows ───────────────────────────────────────────── */
.section-footer .icon.down, .section-footer .icon.up,
.section-footer a .icon {
  color: var(--brand-yellow) !important;
  border-color: var(--brand-yellow) !important;
  opacity: 0.65;
  transition: opacity 0.2s ease;
}
.section-footer a:hover .icon { opacity: 1; color: var(--brand-yellow-dark) !important; }

/* ── fp-nav dots ─────────────────────────────────────────────── */
#fp-nav ul li a span, .fp-slidesNav ul li a span { background: rgba(245,197,24,0.35) !important; }
#fp-nav ul li a.active span, #fp-nav ul li:hover a.active span { background: var(--brand-yellow) !important; }

/* ── Form focus — yellow ─────────────────────────────────────── */
.form-control:focus, .form-control-outline:focus,
.form-control-line:focus, input:focus,
textarea:focus, select:focus {
  border-color: var(--brand-yellow) !important;
  outline: none !important;
  box-shadow: 0 0 0 2px var(--brand-yellow-dim) !important;
}
input, textarea { caret-color: var(--brand-yellow); }

/* Full-width contact form */
.message-form, .message-form .form-container,
.message-form .form-container-card   { width: 100%; max-width: 100%; }
.section-aside .message-form         { width: 100%; }
.section-aside .message-form .form-group { width: 100%; }
.message-form .form-control, .message-form .form-control-outline,
.section-aside .message-form input,
.section-aside .message-form textarea { width: 100% !important; box-sizing: border-box !important; }

/* ── Typography — headings white, body grey ─────────────────── */

/* Headings: white. font-size set by main.css display classes */
h1, h2, h3, h4,
.display-title { color: var(--clr-white); }

/* Eyebrow / caps labels — grey, small, always */
h5, h6 {
  font-size: var(--fs-label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--clr-label);
  line-height: 1.3;
}

/* Body text — grey */
p { color: var(--clr-body); margin-top: 0; }

/* ── Global page content grey sweep ─────────────────────────── */
.section-content p, .title-desc p, .media-body p,
.article-light p, .address-container p, .form-desc p,
.invite, .project-intro-para, .project-step-intro,
.footer-left p {
  color: var(--clr-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  margin-bottom: 0.75rem;
  margin-top: 0;
}

ul li, ol li,
.project-step-list li,
.about-client-list li {
  color: var(--clr-body);
  font-size: var(--fs-body);
  line-height: 1.65;
}

/* ── Project meta sidebar ────────────────────────────────────── */
.project-meta { }
.project-meta h5 {
  font-size: var(--fs-label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--clr-label);
  line-height: 1.2;
  margin: 0.85rem 0 0 0;
  padding: 0;
}
.project-meta h5:first-child { margin-top: 0; }
.project-meta p {
  margin: 0 !important;
  padding: 0;
  font-size: var(--fs-small);
  line-height: 1.35;
  color: var(--clr-body);
}
.project-meta a, .project-meta a:visited {
  color: var(--brand-yellow);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.project-meta a:hover { color: var(--brand-yellow-dark); }

/* ── Project body content ────────────────────────────────────── */
.project-section-heading {
  display: block;
  font-size: var(--fs-label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--clr-white);
  opacity: 1;
  margin: 2rem 0 0.35rem;
}
.project-step-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}
.project-step-list li {
  padding: 0.25rem 0 0.25rem 1.4rem;
  position: relative;
  font-size: var(--fs-body);
  color: var(--clr-body);
  line-height: 1.6;
}
.project-step-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: rgba(255,255,255,0.25);
  font-weight: 400;
}
.project-step-intro {
  font-size: var(--fs-body);
  color: var(--clr-body);
  line-height: 1.7;
  margin-bottom: 0.6rem;
}
.project-intro-para {
  font-size: var(--fs-body);
  color: var(--clr-body);
  line-height: 1.8;
  margin-bottom: 1.75rem;
}
.project-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin: 1.75rem 0;
}
.project-approach-title {
  font-size: var(--fs-sub);
  font-weight: 700;
  color: var(--clr-white);
  margin-bottom: 1.25rem;
}

/* ── Inline project images & lightbox ────────────────────────── */
.ff-inline-img {
  position: relative;
  margin: 2rem 0;
  cursor: zoom-in;
  border-radius: 4px;
  overflow: hidden;
  line-height: 0;
}
.ff-inline-img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  transition: opacity 0.25s ease;
}
.ff-inline-img:hover img { opacity: 0.88; }
.ff-inline-zoom {
  position: absolute;
  bottom: 0.7rem; right: 0.8rem;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  background: rgba(0,0,0,0.55);
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
  opacity: 0;
  transition: opacity 0.2s ease;
  line-height: 1.6;
  pointer-events: none;
}
.ff-inline-img:hover .ff-inline-zoom { opacity: 1; }

/* Lightbox */
.ff-lb-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.93);
  display: flex; align-items: center; justify-content: center; flex-direction: column;
}
.ff-lb-overlay[hidden] { display: none; }
body.ff-lb-open { overflow: hidden; }
.ff-lb-img-wrap { max-width: 90vw; max-height: 82vh; display: flex; align-items: center; justify-content: center; }
.ff-lb-img-wrap img { max-width: 90vw; max-height: 82vh; object-fit: contain; border-radius: 3px; display: block; user-select: none; }
.ff-lb-close {
  position: absolute; top: 1.2rem; right: 1.4rem;
  background: transparent; border: none; color: #fff; font-size: 2.2rem; line-height: 1;
  cursor: pointer; opacity: 0.7; transition: opacity 0.2s ease, color 0.2s ease; padding: 0.2rem 0.5rem;
}
.ff-lb-close:hover { opacity: 1; color: var(--brand-yellow); }
.ff-lb-prev, .ff-lb-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: transparent; border: none; color: #fff; font-size: 3.5rem; line-height: 1;
  cursor: pointer; opacity: 0.5; transition: opacity 0.2s ease, color 0.2s ease; padding: 0.5rem 1rem; user-select: none;
}
.ff-lb-prev { left: 1rem; }
.ff-lb-next { right: 1rem; }
.ff-lb-prev:hover, .ff-lb-next:hover { opacity: 1; color: var(--brand-yellow); }
.ff-lb-counter {
  position: absolute; bottom: 1.2rem; left: 50%; transform: translateX(-50%);
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: rgba(255,255,255,0.4); margin: 0;
}
.ff-lb-overlay::after {
  content: '← → to navigate  ·  Esc to close';
  position: absolute; bottom: 3rem; left: 50%; transform: translateX(-50%);
  font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.18); pointer-events: none; white-space: nowrap;
}

/* ── Square project cards ────────────────────────────────────── */
.ff-card { margin-bottom: 0; }
.ff-card-link { display: block; text-decoration: none; color: inherit; }
.ff-card-link:hover { text-decoration: none; color: inherit; }
.ff-card-img {
  position: relative; width: 100%; padding-top: 100%;
  overflow: hidden; background: #111;
}
.ff-card-img img {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  transition: transform 0.4s ease, opacity 0.4s ease; display: block;
}
.ff-card-link:hover .ff-card-img img { transform: scale(1.04); opacity: 0.82; }
.ff-card-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  justify-content: flex-end; padding: 1.25rem 1.25rem 1.1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.1) 55%, transparent 80%);
  pointer-events: none;
}
.ff-card-overlay--always { opacity: 1; }
.ff-card-cat {
  display: block; font-size: var(--fs-label); text-transform: uppercase;
  letter-spacing: 0.13em; color: rgba(255,255,255,0.5); margin-bottom: 0.2rem;
}
.ff-card-title-overlay {
  display: block; font-size: var(--fs-sub); font-weight: 700;
  color: var(--clr-white); line-height: 1.25; margin-bottom: 0.5rem;
}
.ff-card-view {
  display: block; font-size: var(--fs-ui); color: var(--brand-yellow); font-weight: 600;
  opacity: 0; transform: translateY(4px); transition: opacity 0.22s ease, transform 0.22s ease;
}
.ff-card-link:hover .ff-card-view { opacity: 1; transform: translateY(0); }
.ff-card-body { display: none; }
.ff-card-title { display: none; }
.ff-card-sub   { display: none; }

/* ── Dynamic card grid ───────────────────────────────────────── */
.ff-grid.row {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(1rem, 2vw, 2rem);
}
.ff-grid.row > .col,
.ff-grid.row > [class*="col-"] {
  width: auto !important; max-width: none !important;
  flex: none !important; padding: 0 !important;
}

/* ── Global header padding (navbar clearance) ────────────────── */
#aboutpage  > .section:first-child,
#workspage  > .section:first-child,
#cspage     > .section:first-child,
#contactpage > .section:first-child,
#itempage   > .section:first-child {
  padding-top: 6rem !important;
}

/* ── About page ──────────────────────────────────────────────── */
.about-cat-heading {
  font-size: var(--fs-label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--clr-white);
  margin-bottom: 0.6rem;
  margin-top: 0;
}
.about-client-list {
  list-style: none; padding: 0; margin: 0;
}
.about-client-list li {
  padding: 0.25rem 0;
  font-size: var(--fs-small);
  color: var(--clr-body);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem;
}
.about-client-list li:last-child { border-bottom: none; }
.about-client-list a, .about-client-list a:visited { color: var(--brand-yellow); text-decoration: none; }
.about-client-list a:hover { color: var(--brand-yellow-dark); }
.about-cat-tag { font-size: 0.62rem; color: rgba(255,255,255,0.28); text-align: right; flex-shrink: 0; white-space: nowrap; }

/* Client logo grid */
.about-logo-grid {
  display: flex !important; flex-wrap: nowrap;
  justify-content: space-between; align-items: center;
  gap: 1.5rem; width: 100%;
}
.about-logo-grid > [class*="col-"] {
  flex: 1 1 0 !important; max-width: none !important; padding: 0 !important;
  display: flex; align-items: center; justify-content: center;
}
.about-client-logo {
  max-height: 56px; width: 100%; max-width: 160px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.5; transition: opacity 0.25s ease;
}
.about-client-logo:hover { opacity: 1; }
@media (max-width: 640px) {
  .about-logo-grid { flex-wrap: wrap; }
  .about-logo-grid > [class*="col-"] { flex: 1 1 30%; }
}

/* Client category grid — each category its own column */
.about-client-cats {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0 2.5rem;
  align-items: start;
  width: 100%;
}
.about-client-cats > [class*="col-"] {
  width: auto !important; max-width: none !important;
  flex: none !important; padding-left: 0 !important; padding-right: 0 !important;
  min-width: 0;
}

/* Mobile: the client-category grid stacks cleanly */
@media (max-width: 640px) {
  .about-client-cats {
    grid-template-columns: 1fr !important;
    gap: 1.5rem 0 !important;
  }
  .about-client-list li {
    font-size: 0.85rem;
  }
  .about-cat-tag {
    font-size: 0.6rem;
  }
}


/* Design Principles — large */
.about-principles .project-step-list { margin: 0; }
.about-principles .project-step-list li {
  font-size: 1.6rem !important;
  font-weight: 700 !important;
  color: var(--clr-white) !important;
  opacity: 1;
  padding: 0.45rem 0 0.45rem 2.5rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.about-principles .project-step-list li::before {
  content: '';
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 1.4rem; height: 1.4rem;
  background: var(--brand-yellow);
  border-radius: 3px; opacity: 0.85;
}

/* ── Global links catch-all (inside main only) ───────────────── */
main a:not(.btn):not(.navbar-brand):not(.ff-card-link):not(.nav-link),
main a:not(.btn):not(.navbar-brand):not(.ff-card-link):not(.nav-link):visited {
  color: var(--brand-yellow);
}
main a:not(.btn):not(.navbar-brand):not(.ff-card-link):not(.nav-link):hover {
  color: var(--brand-yellow-dark);
}
main a:not(.btn):not(.navbar-brand):not(.ff-card-link):not(.nav-link):active {
  color: #A07800;
}

/* ── About page: headings wrap normally, columns don't overflow ── */
#aboutpage h1,
#aboutpage h2,
#aboutpage h3,
#aboutpage h4 {
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

/* Prevent any column from bleeding into its sibling */
#aboutpage .row > [class*="col-"] {
  min-width: 0;
  overflow: hidden;
}

/* The same fix for every static page section — belt-and-suspenders */
.page-item-static h1,
.page-item-static h2,
.page-item-static h3,
.page-item-static h4 {
  white-space: normal;
  overflow-wrap: break-word;
}
.page-item-static .row > [class*="col-"] {
  min-width: 0;
}

/* ── No hyphens anywhere — break on spaces only ─────── */
* {
  hyphens: none !important;
  -webkit-hyphens: none !important;
  overflow-wrap: break-word;
  word-break: normal;
}

/* ── Footer social/private icons (4-up: Ig · Tw · Cl · Ts) ──────── */
/* The site footer's right block lists Ig, Tw, plus the new Cl and Ts
   icons that link to work.theferalfirm.com and secret.theferalfirm.com.
   Inherits .social-text positioning from main.css; we only theme the
   colours and add an accent for the two new private destinations.    */
.page-footer .social-text li a[href*="work.theferalfirm.com"],
.page-footer .social-text li a[href*="secret.theferalfirm.com"] {
  position: relative;
}
.page-footer .social-text li a[href*="work.theferalfirm.com"]::after,
.page-footer .social-text li a[href*="secret.theferalfirm.com"]::after {
  /* Tiny brand-yellow dot above the Cl/Ts shortcodes — signals "private" */
  content: "";
  position: absolute;
  top: -3px;
  right: -3px;
  width: 4px;
  height: 4px;
  background: var(--brand-yellow);
  border-radius: 50%;
  opacity: 0.85;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.page-footer .social-text li a[href*="work.theferalfirm.com"]:hover::after,
.page-footer .social-text li a[href*="secret.theferalfirm.com"]:hover::after {
  opacity: 1;
  transform: scale(1.4);
}
