/* ============================================================
   HILLTOP CAREERS — brand design system
   Navy #0B1D33 · Gold #C9A063 · Cream #F2EDE6 · Grey #6B7078
   Playfair Display (headings) · Montserrat (body)
   ============================================================ */

:root {
  --navy: #0B1D33;
  --navy-soft: #13273f;
  --gold: #C9A063;
  --gold-soft: #d8b988;
  --cream: #F2EDE6;
  --cream-deep: #EAE2D6;
  --grey: #6B7078;
  --blush: #D9B9B4;
  --white: #FFFFFF;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Montserrat", Helvetica, Arial, sans-serif;
  --max: 1180px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--navy);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

/* ---------- signature motif: gold rule eyebrow ---------- */
.eyebrow {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  font-size: 12px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 26px;
}
.eyebrow::after { content: ""; width: 56px; height: 1px; background: var(--gold); }
.eyebrow.center { align-items: center; }
.on-dark .eyebrow { color: var(--gold-soft); }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.18; }
h1 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); letter-spacing: .01em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
h3 { font-size: 1.35rem; }
.lead { font-size: 1.13rem; line-height: 1.85; color: var(--grey); max-width: 62ch; }
.on-dark .lead { color: rgba(242,237,230,.78); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid rgba(11,29,51,.08);
  transition: box-shadow .3s var(--ease);
}
.brand-logo { height: 80px; width: auto; display: block; }
.site-header.scrolled { box-shadow: 0 6px 30px rgba(11,29,51,.08); }
.header-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between;
  height: 96px;
}
.brand { display: flex; align-items: center; gap: 14px; line-height: 1; }
.brand-mark { height: 44px; width: auto; }
.brand-text { display: flex; flex-direction: column; }
.brand-name {
  font-family: var(--serif); font-size: 1.45rem; letter-spacing: .12em;
  color: var(--navy); text-transform: uppercase;
}
.brand-sub {
  font-size: 8.5px; letter-spacing: .42em; text-transform: uppercase;
  color: var(--gold); margin-top: 7px; font-weight: 500;
}
nav.primary { display: flex; gap: 26px; }
nav.primary a {
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  font-weight: 500; color: var(--navy); position: relative; padding: 6px 0;
}
nav.primary a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--gold);
  transition: width .35s var(--ease);
}
nav.primary a:hover::after, nav.primary a.active::after { width: 100%; }
nav.primary a.active { color: var(--gold); }

/* mobile nav */
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 40px; height: 40px; position: relative; z-index: 110;
}
.nav-toggle span {
  display: block; width: 24px; height: 1.5px; background: var(--navy);
  margin: 6px auto; transition: transform .3s var(--ease), opacity .3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  nav.primary {
    position: fixed; inset: 0; background: var(--navy);
    flex-direction: column; align-items: center; justify-content: center;
    gap: 30px; transform: translateY(-100%); visibility: hidden;
    transition: transform .45s var(--ease), visibility 0s .45s;
  }
  nav.primary.open { transform: translateY(0); visibility: visible; transition: transform .45s var(--ease); }
  nav.primary a { color: var(--cream); font-size: 15px; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; color: var(--cream);
  display: flex; align-items: flex-end;
  min-height: 82vh; overflow: hidden;
}
.hero.short { min-height: 58vh; }
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.04);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,29,51,.5) 0%, rgba(11,29,51,.78) 70%, rgba(11,29,51,.92) 100%),
    linear-gradient(100deg, rgba(11,29,51,.55) 0%, rgba(11,29,51,0) 60%);
}
.hero-content h1, .hero-content .lead { text-shadow: 0 2px 22px rgba(11,29,51,.55); }
.hero-content .eyebrow { text-shadow: 0 1px 10px rgba(11,29,51,.7); }
.hero-content {
  position: relative; z-index: 2;
  max-width: var(--max); margin: 0 auto; width: 100%;
  padding: 120px 28px 90px;
}
.hero-content h1 { max-width: 15ch; }
.hero-content .lead { color: rgba(242,237,230,.85); margin-top: 26px; }
.hero-content .eyebrow { color: #E3C593; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; margin-top: 38px;
  font-size: 12px; letter-spacing: .26em; text-transform: uppercase; font-weight: 500;
  padding: 17px 42px; border: 1px solid var(--gold); color: var(--gold);
  background: transparent; transition: background .35s var(--ease), color .35s var(--ease);
}
.btn:hover { background: var(--gold); color: var(--navy); }
.btn.solid { background: var(--gold); color: var(--navy); }
.btn.solid:hover { background: var(--gold-soft); border-color: var(--gold-soft); }
.btn.navy { border-color: var(--navy); color: var(--navy); }
.btn.navy:hover { background: var(--navy); color: var(--cream); }

/* ---------- sections ---------- */
section { padding: 110px 0; }
section.tight { padding: 84px 0; }
.bg-white { background: var(--white); }
.bg-navy { background: var(--navy); color: var(--cream); }
.bg-cream-deep { background: var(--cream-deep); }

.section-head { max-width: 720px; margin-bottom: 64px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin-bottom: 20px; }

/* ---------- editorial split ---------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px); align-items: center;
}
.split.rev > .split-img { order: 2; }
.split-img { position: relative; }
.split-img img {
  width: 100%; height: 560px; object-fit: cover;
}
.split-img::before {
  content: ""; position: absolute; top: 22px; left: 22px; right: -22px; bottom: -22px;
  border: 1px solid var(--gold); z-index: -1; opacity: .55;
}
.split.rev .split-img::before { left: -22px; right: 22px; }
.split-body h2 { margin-bottom: 22px; }
.split-body p + p { margin-top: 18px; }
.split-body p { color: var(--grey); }
.on-dark .split-body p { color: rgba(242,237,230,.78); }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split.rev > .split-img { order: 0; }
  .split-img img { height: 380px; }
}

/* ---------- service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; background: rgba(11,29,51,.08); }
.card {
  background: var(--white); padding: 58px 52px;
  transition: background .4s var(--ease);
  display: flex; flex-direction: column;
}
.card:hover { background: var(--cream); }
.card .num {
  font-family: var(--serif); font-size: .95rem; color: var(--gold);
  letter-spacing: .1em; margin-bottom: 22px;
}
.card h3 { margin-bottom: 16px; }
.card p { color: var(--grey); font-size: .98rem; flex: 1; }
.card .more {
  margin-top: 28px; font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase;
  font-weight: 500; color: var(--navy); display: inline-flex; align-items: center; gap: 12px;
}
.card .more::after { content: "→"; color: var(--gold); transition: transform .3s var(--ease); }
.card:hover .more::after { transform: translateX(6px); }
@media (max-width: 820px) { .cards { grid-template-columns: 1fr; } .card { padding: 44px 32px; } }

/* ---------- specialisms / lists ---------- */
.spec-list {
  list-style: none; display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 0 56px; margin-top: 12px;
}
.spec-list li {
  padding: 15px 0; border-bottom: 1px solid rgba(11,29,51,.1);
  font-size: .98rem; letter-spacing: .04em; color: var(--navy);
  display: flex; align-items: baseline; gap: 16px;
}
.spec-list li::before { content: ""; width: 18px; height: 1px; background: var(--gold); flex: none; transform: translateY(-4px); }
.on-dark .spec-list li { color: var(--cream); border-color: rgba(242,237,230,.14); }
@media (max-width: 640px) { .spec-list { grid-template-columns: 1fr; } }

/* ---------- values ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px; }
.value h3 { font-size: 1.15rem; margin-bottom: 12px; }
.value h3::before {
  content: ""; display: block; width: 34px; height: 1px; background: var(--gold); margin-bottom: 18px;
}
.value p { color: var(--grey); font-size: .96rem; }
.on-dark .value p { color: rgba(242,237,230,.75); }
@media (max-width: 820px) { .values { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- testimonials ---------- */
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: rgba(242,237,230,.12); }
.quote {
  padding: 64px 56px; background: var(--navy-soft);
}
.quote blockquote {
  font-family: var(--serif); font-size: 1.22rem; line-height: 1.65;
  color: var(--cream); font-style: italic;
}
.quote blockquote::before { content: "“"; display: block; font-size: 3.4rem; color: var(--gold); line-height: .6; margin-bottom: 22px; font-style: normal; }
.quote cite {
  display: block; margin-top: 28px; font-style: normal; font-family: var(--sans);
  font-size: 11.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-soft);
}
@media (max-width: 820px) { .quotes { grid-template-columns: 1fr; } .quote { padding: 44px 32px; } }

/* ---------- clients ---------- */
.clients {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 22px 64px; margin-top: 8px;
}
.clients span {
  font-family: var(--serif); font-size: 1.18rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--grey);
}

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 22ch; margin: 0 auto 10px; }
.cta-band .lead { margin: 0 auto; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: rgba(11,29,51,.08); }
.contact-cell { background: var(--white); padding: 54px 44px; text-align: center; }
.contact-cell .eyebrow { margin-bottom: 18px; }
.contact-cell a, .contact-cell address {
  font-family: var(--serif); font-size: 1.25rem; font-style: normal; line-height: 1.5;
  color: var(--navy); transition: color .3s;
}
.contact-cell a:hover { color: var(--gold); }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
footer {
  background: var(--navy); color: rgba(242,237,230,.7);
  padding: 84px 0 44px; font-size: .9rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 56px; margin-bottom: 64px;
}
.footer-brand .brand-name { color: var(--cream); font-size: 1.3rem; }
.footer-brand .brand-sub { margin-top: 8px; }
.footer-brand p { margin-top: 22px; max-width: 34ch; font-size: .88rem; line-height: 1.8; }
footer h4 {
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold); font-weight: 500; margin-bottom: 22px;
}
footer ul { list-style: none; }
footer li { margin-bottom: 12px; }
footer a { transition: color .3s; }
footer a:hover { color: var(--gold-soft); }
.footer-base {
  border-top: 1px solid rgba(242,237,230,.12); padding-top: 34px;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: .78rem; letter-spacing: .06em; color: rgba(242,237,230,.45);
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- brand hero (no photo — navy + monogram) ---------- */
.hero.brand-hero { background: var(--navy); min-height: 52vh; }
.hero.brand-hero::after { background: radial-gradient(ellipse at 80% 20%, rgba(201,160,99,.14), transparent 55%); }
.hero.brand-hero .hero-mark {
  position: absolute; right: -40px; bottom: -60px; width: min(46vw, 520px);
  opacity: .1; pointer-events: none;
}
@media (max-width: 700px) { .hero.brand-hero .hero-mark { width: 70vw; right: -30px; } }

/* ---------- home brand panel ---------- */
.brand-panel {
  background: var(--navy); padding: 70px 56px; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 560px;
}
.brand-panel img { width: min(72%, 340px); }
.brand-panel p {
  margin-top: 36px; color: var(--gold-soft); font-size: 11.5px;
  letter-spacing: .3em; text-transform: uppercase; font-weight: 500;
}
@media (max-width: 900px) { .brand-panel { min-height: 380px; padding: 54px 30px; } }

.footer-logo { height: 54px; width: auto; margin-bottom: 6px; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- misc ---------- */
.gold-stat { display: flex; gap: 64px; flex-wrap: wrap; margin-top: 54px; }
.gold-stat div span {
  font-family: var(--serif); font-size: 2.6rem; color: var(--gold); display: block; line-height: 1;
}
.gold-stat div small {
  font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--grey);
  display: block; margin-top: 12px;
}
.on-dark .gold-stat div small { color: rgba(242,237,230,.6); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

@media (max-width: 640px) {
  .split-img::before { top: 14px; left: 14px; right: -14px; bottom: -14px; }
  .split.rev .split-img::before { left: -14px; right: 14px; }
  .brand-logo { height: 38px; }
}

.cards .card:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 820px) { .cards .card:last-child:nth-child(odd) { grid-column: auto; } }

/* ---------- Hilltop Care — blush variant ---------- */
body.care { --gold: #B0796F; --gold-soft: #D9B9B4; }
body.care .hero::after {
  background:
    linear-gradient(180deg, rgba(43,29,26,.45) 0%, rgba(43,29,26,.75) 70%, rgba(11,29,51,.9) 100%),
    linear-gradient(100deg, rgba(43,29,26,.5) 0%, rgba(43,29,26,0) 60%);
}
body.care .bg-navy { background: #33272E; }
body.care .quote { background: #3B2D34; }
body.care .btn.solid, body.care .btn:hover { color: #33272E; }
.care-lockup { font-family: var(--serif); font-size: 1.05rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 18px; }
nav.primary a.nav-care { color: #B0796F; }
nav.primary a.nav-care::after { background: #B0796F; }
@media (max-width: 900px) { nav.primary a.nav-care { color: var(--gold-soft); } }

/* ---------- recruitment dropdown ---------- */
.nav-drop { position: relative; }
.nav-drop-btn {
  font-family: var(--sans); font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  font-weight: 500; color: var(--navy); background: none; border: none; cursor: pointer;
  padding: 6px 0; position: relative; display: inline-flex; align-items: center; gap: 7px;
}
.nav-drop-btn::after { content: "▾"; font-size: 9px; color: var(--gold); transform: translateY(-1px); }
.nav-drop-btn.active { color: var(--gold); }
.nav-drop-menu {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(6px);
  background: var(--navy); min-width: 230px; padding: 20px 26px;
  display: flex; flex-direction: column; gap: 4px;
  opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s;
  box-shadow: 0 18px 50px rgba(11,29,51,.25);
}
.nav-drop-menu::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.nav-drop:hover .nav-drop-menu, .nav-drop:focus-within .nav-drop-menu, .nav-drop-menu.open {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.nav-drop-menu a { color: var(--cream) !important; padding: 9px 0 !important; font-size: 11.5px !important; }
.nav-drop-menu a::after { background: var(--gold) !important; }
@media (max-width: 900px) {
  .nav-drop { display: contents; }
  .nav-drop-btn { display: none; }
  .nav-drop-menu {
    position: static; transform: none; opacity: 1; visibility: visible; background: none;
    padding: 0; min-width: 0; box-shadow: none; display: contents;
  }
  .nav-drop-menu a { font-size: 15px !important; padding: 6px 0 !important; }
}

.nav-drop-btn .caret { font-size: 9px; color: var(--gold); margin-left: 4px; }
a.nav-drop-btn { text-decoration: none; }
@media (max-width: 640px) { .brand-logo { height: 62px; } }

.footer-logo { height: 120px !important; }
.client-wall { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.client-cell { background: var(--white); border: 1px solid rgba(11,29,51,.12); flex: 0 0 calc(33.333% - 15px); min-height: 170px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 30px; transition: background .35s var(--ease), border-color .35s var(--ease); }
.client-cell:hover { border-color: var(--gold); }
.client-cell:hover { background: var(--cream); }
.client-cell span { font-family: var(--serif); font-size: 1.45rem; letter-spacing: .18em; text-transform: uppercase; color: var(--navy); line-height: 1.5; }
@media (max-width: 820px) { .client-cell { flex: 0 0 calc(50% - 11px); min-height: 130px; } }
.strip-link { display: block; text-align: center; margin-top: 40px; font-size: 11.5px; letter-spacing: .26em; text-transform: uppercase; font-weight: 500; color: var(--gold); }
.strip-link:hover { color: var(--navy); }

.client-cell img { max-height: 52px; max-width: 76%; width: auto; object-fit: contain; }
.client-cell img.tall { max-height: 72px; }
.client-cell img.wide { max-height: 40px; max-width: 84%; }
.client-cell img.tile { max-height: 84px; box-shadow: 0 8px 26px rgba(11,29,51,.12); }
