/* ============================================================
   NT OFFICES — style.css
   ============================================================ */

/* 1. CSS Custom Properties
   ============================================================ */
:root {
  --color-bg:           #f7f8f9;
  --color-text:         #222222;
  --color-text-muted:   #575760;
  --color-primary:      #253081;
  --color-primary-dark: #1a2260;
  --color-primary-light: rgba(37, 48, 129, 0.08);
  --color-header-bg:    #ffffff;
  --color-footer-bg:    #253081;
  --color-footer-text:  #ffffff;
  --color-topbar-bg:    #1a2260;
  --color-topbar-text:  #ffffff;
  --color-btn:          #253081;
  --color-btn-hover:    #1a2260;
  --color-card-bg:      #ffffff;
  --color-border:       #e2e4e7;

  --font-stack: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  --container-max: 1200px;
  --container-pad: 1.5rem;

  --radius-card:        6px;
  --shadow-card:        0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-card-hover:  0 8px 28px rgba(0, 0, 0, 0.14);

  --transition: 0.2s ease;
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sr-only:focus {
  position: fixed;
  top: 0;
  left: 0;
  width: auto;
  height: auto;
  padding: 0.75rem 1.5rem;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background: var(--color-primary);
  color: #fff;
  z-index: 9999;
  font-weight: 600;
}

/* 2. Reset / Base
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-stack);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-primary-dark);
}

ul {
  list-style: none;
}

/* 3. Typography
   ============================================================ */
h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--color-text);
}

h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }

p {
  color: var(--color-text-muted);
  max-width: 65ch;
}

/* 4. Layout
   ============================================================ */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: 4rem;
}

.section--alt {
  background-color: var(--color-header-bg);
}

.section__title {
  margin-bottom: 1rem;
}

.section__title + p {
  margin-bottom: 2rem;
}

.text-center {
  text-align: center;
}

.text-center p {
  margin-inline: auto;
}

/* 5. Top Bar
   ============================================================ */
.topbar {
  background-color: var(--color-topbar-bg);
  color: var(--color-topbar-text);
  font-size: 0.8rem;
  padding-block: 0.4rem;
}

.topbar__inner {
  display: flex;
  justify-content: flex-end;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.topbar a {
  color: var(--color-topbar-text);
  opacity: 0.9;
}

.topbar a:hover {
  color: var(--color-topbar-text);
  opacity: 1;
}

/* 6. Header & Navigation
   ============================================================ */
.site-header {
  background-color: var(--color-header-bg);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.75rem;
}

.site-header__logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.site-header__logo img {
  height: 48px;
  width: auto;
}

/* Matches the wordmark on the building signage: bold, tracked, brand navy. */
.site-header__wordmark {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  color: var(--color-primary);
  white-space: nowrap;
}

/* Hamburger toggle */
.site-header__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 110;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  position: relative;
  transition: background-color var(--transition);
}

.hamburger::before,
.hamburger::after {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  position: absolute;
  left: 0;
  transition: transform var(--transition);
}

.hamburger::before { top: -7px; }
.hamburger::after  { top: 7px; }

/* Open state */
.site-header__toggle[aria-expanded="true"] .hamburger {
  background-color: transparent;
}

.site-header__toggle[aria-expanded="true"] .hamburger::before {
  transform: rotate(45deg);
  top: 0;
}

.site-header__toggle[aria-expanded="true"] .hamburger::after {
  transform: rotate(-45deg);
  top: 0;
}

.site-nav__list {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.site-nav__link {
  display: inline-block;
  color: var(--color-text);
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
  font-size: 0.95rem;
  transition: background-color var(--transition), color var(--transition);
}

.site-nav__link:hover {
  background-color: var(--color-bg);
  color: var(--color-primary);
}

.site-nav__link--active {
  color: var(--color-primary);
  background-color: var(--color-primary-light);
}

/* 7. Hero
   ============================================================ */
.hero {
  background: linear-gradient(135deg, #253081 0%, #1a2260 50%, #131a4a 100%);
  color: #ffffff;
  padding-block: 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Home hero only — the contact CTA at the foot of the page reuses .hero
   and must keep the flat gradient. */
.hero--photo {
  background-image:
    linear-gradient(rgba(26, 34, 96, 0.78), rgba(19, 26, 74, 0.87)),
    url("../images/hero-building.jpg");
  background-size: cover;
  background-position: center 50%;
  padding-block: 7rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(255,255,255,0.08) 0%, transparent 70%);
}

.hero__title {
  color: #ffffff;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
  position: relative;
}

.hero__subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 400;
  max-width: none;
  position: relative;
}

.hero__cta {
  margin-top: 2rem;
  position: relative;
}

/* Page hero (subpages) */
.page-hero {
  background-color: #1a2260;
  background-image:
    linear-gradient(rgba(26, 34, 96, 0.78), rgba(19, 26, 74, 0.88)),
    url("../images/hero-building.jpg");
  background-size: cover;
  background-position: center 64%;
  color: #ffffff;
  padding-block: 3rem;
}

.page-hero__title {
  color: #ffffff;
}

/* 8. About Section
   ============================================================ */
.about .section__title {
  margin-bottom: 0.75rem;
}

/* The section now sits between two centred bands, so the measure is centred
   in the container; the prose itself stays ragged-right to keep it readable. */
.about .container {
  text-align: center;
}

.about__text {
  font-size: 1.05rem;
  max-width: 72ch;
  margin-inline: auto;
  text-align: left;
}

.about__highlight {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 1.1rem;
  margin-top: 1rem;
  max-width: none;
}

/* 9. Features / Location Highlights
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--color-card-bg);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.feature__icon {
  width: 48px;
  height: 48px;
  margin-inline: auto;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.feature__title {
  margin-bottom: 0.5rem;
}

.feature__text {
  font-size: 0.95rem;
  margin-inline: auto;
}

/* 10. Card Grid (Services, Offices)
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card-grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background: var(--color-card-bg);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.card__image-wrap {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover .card__image {
  transform: scale(1.03);
}

.card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card__title {
  margin-bottom: 0.6rem;
  color: var(--color-text);
  letter-spacing: 0.02em;
}

.card__text {
  flex: 1;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.card__meta {
  font-size: 0.85rem;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card__actions {
  display: flex;
  /* Without this the status pill stretches to the button's height and its
     text stays pinned to the top of the stretched box. */
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Service card (icon variant) */
.service-card {
  background: var(--color-card-bg);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.service-card__icon {
  width: 56px;
  height: 56px;
  margin-inline: auto;
  margin-bottom: 1.25rem;
  color: var(--color-primary);
}

.service-card__title {
  margin-bottom: 0.75rem;
}

.service-card__list {
  text-align: left;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.service-card__list li {
  padding: 0.25rem 0;
  padding-left: 1.25rem;
  position: relative;
}

.service-card__list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

/* 11. Gallery Grid
   ============================================================ */
.gallery-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.gallery-nav__link {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}

.gallery-nav__link:hover,
.gallery-nav__link--active {
  background-color: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

.gallery-section {
  margin-bottom: 3rem;
}

.gallery-section__title {
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-primary-light);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.gallery-item {
  aspect-ratio: 16 / 11;
  overflow: hidden;
  border-radius: var(--radius-card);
  cursor: pointer;
  position: relative;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background var(--transition);
}

.gallery-item:hover::after {
  background: rgba(0, 0, 0, 0.1);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Lightbox (dialog-based) */
.lightbox {
  border: none;
  background: rgba(0, 0, 0, 0.92);
  max-width: 100vw;
  max-height: 100vh;
  width: 100vw;
  height: 100vh;
  padding: 2rem;
}

/* Only when open: a bare `display: flex` on .lightbox would override the
   browser's `dialog:not([open]) { display: none }`, leaving the closed
   dialog laid out at the end of the page and its position: fixed close
   button floating over the header, where it swallows clicks. */
.lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox::backdrop {
  background: transparent;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox__close {
  position: fixed;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 2rem;
  cursor: pointer;
  z-index: 200;
  line-height: 1;
  padding: 0.5rem;
}

.lightbox__close:hover {
  opacity: 0.7;
}

/* 12. Video / Virtual Tour
   ============================================================ */
.tour-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.tour-item {
  background: var(--color-card-bg);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Every tour clip is cropped to portrait 3:4, so the frame matches the
   footage exactly — no letterboxing, and all cards share one height. */
.tour-item__media {
  aspect-ratio: 3 / 4;
  background: #14172e;
  display: flex;
}

.tour-item video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.tour-item__title {
  padding: 1rem 1.5rem;
  font-size: 1.05rem;
}

/* 13. Contact Page
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
}

.contact-info .section__title {
  margin-bottom: 1.5rem;
}

.contact-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1.5rem;
  align-items: baseline;
}

.contact-list dt {
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
  padding-block: 0.3rem;
}

.contact-list dd {
  color: var(--color-text-muted);
  padding-block: 0.3rem;
  border-bottom: 1px solid var(--color-border);
}

.contact-list dd:last-child {
  border-bottom: none;
}

.contact-list a {
  color: var(--color-primary);
}

.contact-map iframe {
  width: 100%;
  height: 420px;
  border: 0;
  border-radius: var(--radius-card);
  display: block;
}

.contact-map__link {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Accessibility info */
.access-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.access-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.access-item__icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: var(--color-primary);
}

.access-item__text {
  font-size: 0.95rem;
}

.access-item__text strong {
  display: block;
  color: var(--color-text);
  margin-bottom: 0.15rem;
}

/* 14. Client Logos Strip
   ============================================================ */
.clients .section__title {
  text-align: center;
  margin-bottom: 2rem;
}

.clients__logos {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  align-items: center;
  justify-content: center;
}

.clients__logo {
  height: 48px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.6);
  transition: filter var(--transition);
}

.clients__logo:hover {
  filter: grayscale(0%) opacity(1);
}

/* 15. Footer
   ============================================================ */
.site-footer {
  background-color: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding-block: 2.5rem;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
}

.site-footer__col h4 {
  color: var(--color-footer-text);
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.site-footer__col p,
.site-footer__col a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  max-width: none;
}

.site-footer__col a:hover {
  color: #ffffff;
}

.site-footer__col p + p {
  margin-top: 0.25rem;
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 2rem;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.site-footer__copy {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: none;
}

.site-footer__copy a {
  color: rgba(255, 255, 255, 0.6);
}

.site-footer__copy a:hover {
  color: #ffffff;
}

/* 16. Buttons
   ============================================================ */
.btn {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition),
              border-color var(--transition), box-shadow var(--transition);
  white-space: nowrap;
  text-decoration: none;
  border: 2px solid transparent;
}

.btn--primary {
  background-color: var(--color-btn);
  color: #fff;
  border-color: var(--color-btn);
}

.btn--primary:hover {
  background-color: var(--color-btn-hover);
  border-color: var(--color-btn-hover);
  color: #fff;
}

.btn--outline {
  background-color: transparent;
  color: var(--color-btn);
  border-color: var(--color-btn);
}

.btn--outline:hover {
  background-color: var(--color-btn);
  color: #fff;
}

.btn--white {
  background-color: #ffffff;
  color: var(--color-primary);
  border-color: #ffffff;
}

.btn--white:hover {
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--color-primary-dark);
}

/* 17. Amenities List
   ============================================================ */
.amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.amenity-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* 18. Privacy / Legal Page
   ============================================================ */
.legal-content {
  max-width: 72ch;
}

.legal-content h2 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-content p {
  margin-bottom: 1rem;
}

.legal-content ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  list-style: disc;
}

.legal-content li {
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
}

/* 19. Image Preview Grid (homepage)
   ============================================================ */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 180px);
  gap: 0.75rem;
  margin-top: 2rem;
}

.preview-grid__item {
  overflow: hidden;
  border-radius: var(--radius-card);
}

.preview-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.preview-grid__item:hover img {
  transform: scale(1.05);
}

.preview-grid__item:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

/* 20. Office Detail
   ============================================================ */
.office-intro {
  max-width: 72ch;
  margin-bottom: 2rem;
}

.office-intro p {
  margin-bottom: 1rem;
}

.office-status {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.office-status--occupied {
  background-color: #fef3c7;
  color: #92400e;
}

.office-status--available {
  background-color: #d1fae5;
  color: #065f46;
}

/* 21. Media Queries
   ============================================================ */
@media (max-width: 768px) {
  .section {
    padding-block: 2.5rem;
  }

  .topbar__inner {
    justify-content: center;
    gap: 1rem;
  }

  /* Mobile nav */
  .site-header__logo img {
    height: 40px;
  }

  .site-header__wordmark {
    font-size: 1.1rem;
  }

  .site-header__toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-header-bg);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 1rem;
  }

  .site-nav--open {
    display: block;
  }

  .site-nav__list {
    flex-direction: column;
    gap: 0;
  }

  .site-nav__link {
    display: block;
    padding: 0.7rem 1rem;
    border-radius: 4px;
  }

  .hero {
    padding-block: 3.5rem;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-map iframe {
    height: 300px;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .site-footer__bottom {
    justify-content: center;
    text-align: center;
  }

  .preview-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 150px);
  }

  .preview-grid__item:first-child {
    grid-column: span 2;
    grid-row: span 1;
  }

  .tour-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (max-width: 480px) {
  :root {
    --container-pad: 1rem;
  }

  .tour-grid {
    grid-template-columns: 1fr;
  }

  .card-grid {
    gap: 1.25rem;
  }

  .clients__logos {
    gap: 1.5rem;
  }

  .clients__logo {
    height: 38px;
  }

  .preview-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .preview-grid__item {
    aspect-ratio: 16 / 10;
  }

  .preview-grid__item:first-child {
    grid-column: span 1;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
