/*
Theme Name: Number 33 Newcastle
Theme URI: https://number33newcastle.com/
Author: Number 33
Description: Bespoke corporate website theme for Number 33 Newcastle.
Version: 1.1.0
Text Domain: number33-newcastle
*/

/* ============================================================
   NUMBER 33 NEWCASTLE — corporate site
   Palette refined around the Number 33 navy / signal red /
   white / cool greys, condensed display type, thin rules.
   ============================================================ */

:root {
  --blue: #0c254f;
  --blue-deep: #081c3d;
  --blue-ink: #06162f;
  --red: #e1251b;
  --red-dark: #b9150d;
  --ink: #14181f;
  --slate: #4a5361;
  --grey: #eef1f5;
  --grey-2: #e2e7ee;
  --line: #d5dbe4;
  --white: #ffffff;
  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', sans-serif;
  --ease: cubic-bezier(.22,.61,.21,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; text-transform: uppercase; letter-spacing: .01em; }

.container { width: min(1200px, 92%); margin-inline: auto; }
.section { padding: clamp(72px, 9vw, 128px) 0; }
.section--blue { background: var(--blue); color: #fff; }
.section--grey { background: var(--grey); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: .12em; font-size: .85rem; font-weight: 500;
  padding: 15px 32px; border: 2px solid transparent; cursor: pointer;
  transition: all .3s var(--ease);
}
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-dark); transform: translateY(-2px); }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-deep); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.75); }
.btn--ghost:hover { background: #fff; color: var(--blue-ink); transform: translateY(-2px); }

/* ---------- section labels ---------- */
.index-label {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: .22em; font-size: .78rem; font-weight: 500; color: var(--slate);
  margin-bottom: 26px;
}
.index-label span {
  display: grid; place-items: center; width: 34px; height: 34px;
  background: var(--red); color: #fff; font-size: .8rem; letter-spacing: 0;
}
.index-label--light { color: rgba(255,255,255,.85); }
.index-label::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.section--blue .index-label::after { background: rgba(255,255,255,.25); }

.section__title { font-size: clamp(2rem, 4.4vw, 3.4rem); margin-bottom: 22px; }
.section__lead { max-width: 640px; color: var(--slate); font-size: 1.06rem; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .35s var(--ease), box-shadow .35s var(--ease);
}
.nav__inner {
  width: min(1280px, 94%); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
}
.nav.scrolled { background: rgba(255,255,255,.97); box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(8,33,79,.08); }
.nav.scrolled .nav__links a { color: var(--ink); }
.nav.scrolled .nav__cta { background: var(--red); color: #fff; border-color: var(--red); }
.nav.scrolled .nav__word { color: var(--ink); }
.nav__logo { display: flex; align-items: center; gap: 14px; }
.nav__mark {
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem;
  background: var(--red); color: #fff; padding: 6px 12px; letter-spacing: .04em;
}
.nav__logo-img { width: 44px !important; height: 44px !important; max-width: 44px !important; object-fit: contain; display: block; flex: 0 0 44px; }
.nav__word { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .14em; font-size: .9rem; color: #fff; transition: color .35s; }
.nav__word em { font-style: normal; color: var(--red); }
.nav__links { display: flex; align-items: center; gap: 34px; }
.nav__links a {
  font-family: var(--font-display); text-transform: uppercase; font-size: .8rem;
  letter-spacing: .14em; color: #fff; transition: color .25s;
}
.nav__links a:not(.nav__cta):hover { color: var(--red); }
.nav__cta { border: 2px solid rgba(255,255,255,.7); padding: 9px 20px; transition: all .25s; }
.nav__cta:hover { background: var(--red); border-color: var(--red); color: #fff; }
.nav__burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__burger span { display: block; width: 26px; height: 2px; background: #fff; margin: 6px 0; transition: all .3s var(--ease); }
.nav.scrolled .nav__burger span { background: var(--ink); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
.hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center 65%; }
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(8,25,58,.92) 0%, rgba(10,44,104,.72) 45%, rgba(8,25,58,.25) 100%);
}
.hero__content { position: relative; width: min(1200px, 92%); margin-inline: auto; padding-top: 60px; }
.hero__kicker {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .26em;
  font-size: .8rem; color: rgba(255,255,255,.88); margin-bottom: 22px;
}
.hero__kicker::before { content: ""; display: inline-block; width: 40px; height: 2px; background: var(--red); margin-right: 14px; vertical-align: middle; }
.hero__title {
  color: #fff; font-size: clamp(2.6rem, 6.4vw, 5.2rem); font-weight: 700; letter-spacing: .005em;
  margin-bottom: 26px; max-width: 14ch;
}
.hero__title span { color: #fff; position: relative; }
.hero__title span::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: .18em;
  background: rgba(255,255,255,.16); z-index: -1;
}
.hero__sub { color: rgba(255,255,255,.85); max-width: 560px; font-size: 1.08rem; font-weight: 300; margin-bottom: 38px; }
.hero__ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__strip { position: absolute; left: 0; right: 0; bottom: 0; background: var(--blue-deep); border-top: 2px solid var(--red); overflow: hidden; }
.marquee { overflow: hidden; padding: 13px 0; }
.marquee__track { display: flex; gap: 34px; width: max-content; animation: marquee 28s linear infinite; }
.marquee__track span {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .2em;
  font-size: .82rem; color: #fff; white-space: nowrap;
}
.marquee__track i { color: rgba(255,255,255,.55); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- frames & media ---------- */
.frame { overflow: hidden; box-shadow: 0 24px 60px rgba(8,33,79,.16); }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.frame:hover img { transform: scale(1.045); }
.frame--tall { grid-row: span 2; }
figure[data-lightbox], img[data-lightbox] { cursor: zoom-in; }

/* ---------- about ---------- */
.about__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 6vw, 90px); align-items: center; margin-bottom: clamp(56px, 7vw, 96px); }
.about__text h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin-bottom: 24px; }
.about__text p { color: var(--slate); margin-bottom: 18px; max-width: 56ch; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 34px 26px 6px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 700; color: var(--blue); line-height: 1; margin-bottom: 10px; }
.stat strong .unit { font-size: .45em; letter-spacing: .08em; margin-left: 4px; color: var(--blue); }
.stat span { font-size: .85rem; color: var(--slate); }

/* ---------- virtual offices ---------- */
.vo .index-label { grid-column: 1 / -1; }
.vo__head {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(32px, 5vw, 80px);
  align-items: end; margin-bottom: clamp(44px, 6vw, 72px);
}
.vo__head h2 { font-size: clamp(2.2rem, 4.6vw, 3.9rem); font-weight: 700; }
.vo__head h2 br:last-child { display: none; }
.vo__head p { color: rgba(255,255,255,.82); font-weight: 300; font-size: 1.05rem; border-left: 2px solid rgba(255,255,255,.48); padding-left: 22px; }

.vo__features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.18); margin-bottom: clamp(48px, 6vw, 80px); }
.vo__card { background: var(--blue); padding: 34px 28px 38px; transition: background .35s var(--ease); }
.vo__card:hover { background: var(--blue-deep); }
.vo__num { font-family: var(--font-display); color: var(--red); font-weight: 600; letter-spacing: .2em; font-size: .85rem; display: block; margin-bottom: 18px; }
.vo__card h3 { font-size: 1.12rem; margin-bottom: 14px; letter-spacing: .03em; }
.vo__card p { font-size: .9rem; color: rgba(255,255,255,.78); font-weight: 300; }

.vo__who { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; margin-bottom: clamp(48px, 6vw, 80px); }
.vo__who-grid { display: flex; flex-direction: column; }
.vo__who-item { display: flex; gap: 22px; padding: 26px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.vo__who-item:first-child { border-top: 1px solid rgba(255,255,255,.18); }
.vo__who-item > span {
  flex: 0 0 auto; width: 46px; height: 46px; display: grid; place-items: center;
  border: 2px solid rgba(255,255,255,.48); font-family: var(--font-display); font-size: 1.15rem; font-weight: 600;
}
.vo__who-item h4 { font-size: 1.05rem; margin-bottom: 6px; letter-spacing: .04em; }
.vo__who-item p { font-size: .9rem; color: rgba(255,255,255,.75); font-weight: 300; }
.vo__collage { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.vo__collage .frame { height: 240px; }
.vo__collage .frame--tall { height: 100%; min-height: 498px; }
.vo__cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.25); padding-top: 40px; }
.vo__cta p { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .06em; font-size: 1.15rem; max-width: 30ch; }

/* ---------- spaces grid ---------- */
.spaces__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 54px; }
.space-card { border: 1px solid var(--line); background: #fff; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.space-card:hover { transform: translateY(-6px); box-shadow: 0 26px 50px rgba(8,33,79,.14); }
.space-card figure { height: 230px; overflow: hidden; }
.space-card figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.space-card:hover figure img { transform: scale(1.06); }
.space-card__body { padding: 26px 26px 30px; position: relative; }
.space-card__body::before { content: ""; position: absolute; top: 0; left: 26px; width: 44px; height: 3px; background: var(--blue); }
.space-card__body h3 { font-size: 1.18rem; margin: 10px 0 10px; }
.space-card__body p { font-size: .9rem; color: var(--slate); }

/* ---------- facilities ---------- */
.facilities__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.facilities__media { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.facilities__media .frame { height: 380px; }
.facilities__media .frame--offset { transform: translateY(48px); height: 320px; }
.facilities__text h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin-bottom: 28px; }
.ticklist { list-style: none; margin-bottom: 34px; }
.ticklist li { position: relative; padding: 13px 0 13px 36px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: .96rem; }
.ticklist li::before {
  content: ""; position: absolute; left: 0; top: 20px; width: 16px; height: 8px;
  border-left: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue); transform: rotate(-45deg);
}
.section--grey .ticklist li::before { border-color: var(--blue); }
.ticklist--red li::before { border-color: var(--red); }

/* ---------- community ---------- */
.community__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.community__text h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin-bottom: 24px; }
.community__text > p { color: var(--slate); margin-bottom: 16px; }
.community__media .frame { height: 520px; }

/* ---------- gallery strip ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.gallery__item { height: 300px; overflow: hidden; position: relative; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .5s; filter: saturate(.92); }
.gallery__item:hover img { transform: scale(1.07); filter: saturate(1.05); }

/* ---------- location ---------- */
.location h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); margin-bottom: 22px; }
.location__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.location p { color: rgba(255,255,255,.82); font-weight: 300; margin-bottom: 30px; max-width: 52ch; }
.distances { list-style: none; }
.distances li { display: grid; grid-template-columns: 110px 1fr; gap: 18px; align-items: baseline; padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.distances strong { font-family: var(--font-display); font-size: 1.35rem; color: #fff; font-weight: 600; }
.distances strong::after { content: ""; display: block; width: 30px; height: 2px; background: var(--red); margin-top: 4px; }
.distances span { color: rgba(255,255,255,.75); font-size: .92rem; font-weight: 300; }
.location__media-stack { display: grid; gap: 22px; }
.location__map-frame { position: relative; overflow: hidden; cursor: zoom-in; box-shadow: 0 30px 70px rgba(4,15,38,.45); border: 6px solid #fff; }
.location__map-frame img { width: 100%; height: 460px; object-fit: cover; object-position: center; display: block; transition: transform .8s var(--ease); }
.location__map-frame--aerial img { height: 300px; }

.location__map-frame--full img {
  height: auto !important;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  background: #fff;
}

.location__map-frame:hover img { transform: scale(1.04); }
.location__map-frame figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 18px 12px;
  background: linear-gradient(transparent, rgba(8,33,79,.55));
  color: #fff; font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: .16em; font-size: .7rem; opacity: 0; transition: opacity .3s var(--ease);
}
.location__map-frame:hover figcaption { opacity: 1; }

/* ---------- contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.contact h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 22px; }
.contact__grid > div > p { color: var(--slate); margin-bottom: 34px; max-width: 52ch; }
.contact__details { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; }
.contact__details span { display: block; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .18em; font-size: .72rem; color: var(--blue); margin-bottom: 8px; }
.contact__details a { display: block; font-weight: 500; font-size: .98rem; padding: 2px 0; transition: color .2s; }
.contact__details a:hover { color: var(--blue); }
.contact__form { background: var(--grey); padding: clamp(30px, 4vw, 48px); border-top: 4px solid var(--blue); }
.contact__form h3 { font-size: 1.25rem; margin-bottom: 26px; }
.contact__form label { display: block; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; color: var(--slate); margin-bottom: 20px; }
.contact__form input, .contact__form select, .contact__form textarea {
  display: block; width: 100%; margin-top: 8px; padding: 13px 14px;
  border: 1px solid var(--line); background: #fff; font-family: var(--font-body); font-size: .95rem;
  transition: border-color .2s, box-shadow .2s;
}
.contact__form input:focus, .contact__form select:focus, .contact__form textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(15,61,143,.12);
}
.contact__form textarea { resize: vertical; }
.form__note { margin-top: 16px; color: var(--blue); font-weight: 500; font-size: .92rem; }
.form__note--error { color: var(--red-dark); }
.form__honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.contact__form button:disabled { opacity: .65; cursor: wait; transform: none; }

/* ---------- footer ---------- */
.footer { background: var(--blue-ink); color: rgba(255,255,255,.8); }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 44px; padding: clamp(56px, 7vw, 84px) 0; }
.footer__logo-img { width: 64px !important; height: auto !important; max-width: 64px !important; display: block; }
.footer__brand p { margin-top: 18px; font-size: .9rem; line-height: 1.8; font-weight: 300; }
.footer__col h4 { font-size: .85rem; letter-spacing: .18em; color: #fff; margin-bottom: 18px; }
.footer__col a { display: block; font-size: .9rem; font-weight: 300; padding: 5px 0; transition: color .2s; }
.footer__col a:hover { color: #fff; }
.footer__small { font-size: .78rem !important; color: rgba(255,255,255,.45); margin-top: 16px; line-height: 1.7; }
.footer__bar { border-top: 1px solid rgba(255,255,255,.14); padding: 20px 0; }
.footer__bar-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .78rem; color: rgba(255,255,255,.5); font-weight: 300; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(6,14,32,.92);
  display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .3s var(--ease);
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 88vw; max-height: 86vh; box-shadow: 0 40px 100px rgba(0,0,0,.5); }
.lightbox__close {
  position: absolute; top: 26px; right: 34px; background: none; border: 0; color: #fff;
  font-size: 2.6rem; line-height: 1; cursor: pointer; transition: color .2s;
}
.lightbox__close:hover { color: var(--red); }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .vo__features { grid-template-columns: 1fr 1fr; }
  .spaces__grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { border-bottom: 1px solid var(--line); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav__links {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 82vw); flex-direction: column;
    align-items: flex-start; justify-content: center; gap: 26px; padding: 90px 40px;
    background: var(--blue-ink); transform: translateX(100%); transition: transform .4s var(--ease);
  }
  .nav__links.open { transform: none; box-shadow: -30px 0 80px rgba(0,0,0,.4); }
  .nav__links a { color: #fff !important; font-size: 1rem; }
  .nav__cta { border-color: rgba(255,255,255,.6); }
  .nav__burger { display: block; z-index: 110; }
  .nav__burger.open span { background: #fff !important; }
  .nav__burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav__burger.open span:nth-child(2) { opacity: 0; }
  .nav__burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .nav__logo-img { width: 38px !important; height: 38px !important; max-width: 38px !important; flex-basis: 38px; }
  .nav__word { font-size: .8rem; letter-spacing: .1em; }

  .about__grid, .vo__head, .vo__who, .facilities__grid, .community__grid, .location__grid, .contact__grid { grid-template-columns: 1fr; }
  .facilities__media .frame--offset { transform: none; }
  .community__media .frame { height: 380px; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery__item { height: 220px; }
  .vo__collage .frame--tall { min-height: 0; height: 240px; }
}
@media (max-width: 560px) {
  .spaces__grid { grid-template-columns: 1fr; }
  .vo__features { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .contact__details { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .hero__ctas .btn { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track { animation: none; }
}
