/* ============================================
   NZL Developments Ltd — Site Styles
   ============================================ */

:root {
  --bg: #121214;
  --bg-alt: #1a1b1e;
  --bg-alt-2: #212226;
  --ink: #f5f5f3;
  --ink-soft: #9d9ea4;
  --line: rgba(255, 255, 255, 0.12);
  --line-soft: rgba(255, 255, 255, 0.07);
  --blue: #0057fe;
  --blue-light: #4478ff;
  --white: #ffffff;
  --max: 1280px;
  --gutter: clamp(24px, 5vw, 72px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -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-left: var(--gutter);
  padding-right: var(--gutter);
}

h1, h2, h3, h4 {
  font-weight: 500;
  letter-spacing: 0.3px;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 { font-size: clamp(34px, 5vw, 58px); line-height: 1.08; font-weight: 500; }
h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.15; }
h3 { font-size: 19px; font-weight: 600; }
p { margin: 0 0 1em; color: var(--ink-soft); }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--blue-light);
  margin-bottom: 18px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
  background: transparent;
  color: var(--ink);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--blue); border-color: var(--blue); color: #fff; }

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

.text-link {
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--blue);
  padding-bottom: 3px;
}
.text-link:hover { color: var(--blue-light); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  transition: background 0.35s ease, padding 0.35s ease, box-shadow 0.35s ease;
  background: transparent;
}
.site-header.solid {
  background: rgba(18, 18, 20, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
}
.brand img { height: 42px; width: auto; }

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}
nav.main-nav a {
  font-size: 13px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
nav.main-nav a:hover,
nav.main-nav a.active { border-color: var(--blue); color: var(--blue-light); }

.header-right {
  display: flex;
  align-items: center;
  gap: 28px;
}
.header-phone {
  font-size: 13px;
  letter-spacing: 0.6px;
  font-weight: 600;
  color: var(--ink);
}
.header-phone:hover { color: var(--blue-light); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px; height: 2px;
  background: var(--ink);
}

.mobile-nav { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  color: #fff;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,12,0.55) 0%, rgba(10,10,12,0.25) 40%, rgba(10,10,12,0.85) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding: 0 var(--gutter) 90px;
  max-width: 900px;
}
.hero h1 { color: #fff; margin-bottom: 22px; }
.hero p.lead { color: rgba(255,255,255,0.8); font-size: 18px; max-width: 560px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero.small {
  height: auto;
  min-height: 340px;
  padding-top: 150px;
  box-sizing: border-box;
}

.scroll-cue {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.7);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.scroll-cue::after {
  content: "";
  width: 1px; height: 34px;
  background: rgba(255,255,255,0.5);
}

/* ---------- Sections ---------- */
section { padding: 110px 0; }
section.tight { padding: 70px 0; }
.section-head {
  max-width: 640px;
  margin-bottom: 60px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* Intro / two-col */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.split.reverse .split-media { order: 2; }
.split.reverse .split-copy { order: 1; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-media.ratio { aspect-ratio: 4/5; overflow: hidden; }

/* Why us cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.card-grid .card {
  background: var(--bg-alt);
  padding: 44px 34px;
}
.card .num {
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--blue-light);
  margin-bottom: 24px;
  display: block;
}
.card p:last-child { margin-bottom: 0; }

/* Services grid (home teaser + services page) */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--line);
}
.service-tile {
  position: relative;
  background: var(--bg-alt);
  aspect-ratio: 4/5;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.service-tile img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.75;
  transition: transform 0.6s ease, opacity 0.4s ease;
}
.service-tile:hover img { transform: scale(1.06); opacity: 0.9; }
.service-tile::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,0.85) 100%);
}
.service-tile:hover::after { background: linear-gradient(180deg, rgba(0,87,254,0.12) 0%, rgba(0,0,0,0.85) 100%); }
.service-tile .tile-label {
  position: relative; z-index: 2;
  padding: 26px;
  color: #fff;
  font-size: 15px;
  letter-spacing: 0.6px;
  font-weight: 600;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.service-tile .tile-label span.arrow { font-size: 18px; color: var(--blue-light); }

/* Featured work strip */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 14px;
  height: 560px;
}
.featured-grid a { overflow: hidden; display: block; position: relative; }
.featured-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.featured-grid a:hover img { transform: scale(1.05); }

/* Badges / trust row */
.badge-row {
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}
.badge-row img { height: 72px; width: auto; }
.badge-copy { max-width: 420px; }
.badge-copy p { margin: 0; }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--bg-alt) 0%, #17181c 100%);
  color: var(--ink);
  text-align: center;
  padding: 100px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--ink-soft); max-width: 520px; margin-left: auto; margin-right: auto; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: #0d0d0f;
  border-top: 1px solid var(--line-soft);
  padding: 80px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
}
.footer-grid .brand-block img { width: 300px; height: auto; margin-bottom: 18px; }
.footer-grid h4 {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: var(--blue-light);
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 12px; font-size: 14px; color: var(--ink-soft); }
.footer-grid a:hover { color: var(--blue-light); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
  color: var(--ink-soft);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-badges { display: flex; gap: 20px; align-items: center; }
.footer-badges img { height: 42px; width: auto; }

/* ---------- About page ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 60px;
}
.values-grid .value h3 { margin-bottom: 12px; }

/* ---------- Services page rows ---------- */
.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
  padding: 80px 0;
}
.service-row:not(:last-child) { border-bottom: 1px solid var(--line-soft); }
.service-row .row-media { aspect-ratio: 4/3; overflow: hidden; }
.service-row .row-media img { width: 100%; height: 100%; object-fit: cover; }
.service-row.reverse .row-media { order: 2; }
.service-row .row-index {
  font-size: 13px; letter-spacing: 1px; color: var(--blue-light); margin-bottom: 18px; display: block;
}

/* ---------- Projects / gallery page ---------- */
.cat-nav {
  position: sticky;
  top: 78px;
  z-index: 50;
  background: rgba(18, 18, 20, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
  padding: 18px 0;
  overflow-x: auto;
}
.cat-nav-inner {
  display: flex;
  gap: 30px;
  white-space: nowrap;
}
.cat-nav a {
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-soft);
  padding-bottom: 6px;
  border-bottom: 2px solid transparent;
}
.cat-nav a:hover { color: var(--ink); border-color: var(--blue); }

.gallery-section {
  padding: 90px 0 40px;
  scroll-margin-top: 150px;
}
.gallery-section .section-head { display: flex; justify-content: space-between; align-items: flex-end; max-width: none; }
.gallery-section .count { font-size: 13px; color: var(--ink-soft); }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.photo-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.photo-grid figure {
  margin: 0;
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 4/3;
  background: var(--bg-alt);
}
.photo-grid.cols-2 figure { aspect-ratio: 3/2; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.photo-grid figure:hover img { transform: scale(1.045); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(5,5,6,0.96);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; }
.lightbox .lb-close, .lightbox .lb-prev, .lightbox .lb-next {
  position: absolute;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 15px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.lightbox .lb-close:hover, .lightbox .lb-prev:hover, .lightbox .lb-next:hover { color: var(--blue-light); }
.lightbox .lb-close { top: 30px; right: 40px; }
.lightbox .lb-prev { left: 30px; top: 50%; transform: translateY(-50%); font-size: 32px; }
.lightbox .lb-next { right: 30px; top: 50%; transform: translateY(-50%); font-size: 32px; }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}
.contact-card {
  border: 1px solid var(--line);
  background: var(--bg-alt);
  padding: 36px;
}
.contact-card + .contact-card { margin-top: 24px; }
.contact-card h3 { margin-bottom: 4px; }
.contact-card .role { font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--blue-light); margin-bottom: 18px; }
.contact-card a.detail { display: block; font-size: 15px; margin-bottom: 6px; color: var(--ink); }
.contact-card a.detail:hover { color: var(--blue-light); }

.form-field { margin-bottom: 22px; }
.form-field label {
  display: block; font-size: 12px; letter-spacing: 1px; text-transform: uppercase;
  font-weight: 600; margin-bottom: 10px; color: var(--ink-soft);
}
.form-field input, .form-field textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 12px 0;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
}
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--blue); }
.form-field textarea { resize: vertical; min-height: 110px; }
.hours-line { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.hours-dot { width: 8px; height: 8px; border-radius: 50%; background: #3ecf4a; display: inline-block; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .split, .contact-grid, .service-row { grid-template-columns: 1fr; gap: 34px; }
  .split.reverse .split-media, .service-row.reverse .row-media { order: 1; }
  .split.reverse .split-copy, .service-row.reverse .row-content { order: 2; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .featured-grid { height: auto; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(4, 220px); }
  .photo-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .values-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  nav.main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-phone { display: none; }
  .brand img { height: 26px; }
  .card-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  section { padding: 70px 0; }
  .hero { min-height: 480px; }

  .mobile-nav {
    position: fixed; inset: 0;
    background: var(--bg);
    z-index: 999;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
  }
  .mobile-nav.open { display: flex; }
  .mobile-nav a {
    font-size: 22px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    color: var(--ink);
  }
  .mobile-nav a:hover { color: var(--blue-light); }
}


/* ---------- Enquiry form: thank-you pop-up ---------- */
.form-error { color: #ff8a8a; font-size: 15px; line-height: 1.5; margin: 0 0 18px; }
.modal[hidden] { display: none; }
.modal {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(8, 8, 10, 0.78);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.modal-box {
  background: var(--bg-alt-2);
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  max-width: 440px; width: 100%;
  padding: 44px 36px 38px;
  text-align: center;
  animation: modal-in 0.28s ease;
}
.modal-box h3 { font-size: 28px; margin: 14px 0 10px; color: var(--ink); }
.modal-box p { color: var(--ink-soft); margin: 0 0 28px; line-height: 1.6; }
.modal-tick {
  width: 56px; height: 56px; margin: 0 auto;
  border-radius: 50%; background: var(--blue); color: #fff;
  font-size: 28px; line-height: 56px;
}
body.modal-open { overflow: hidden; }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Header: keep the wide logo and nav from colliding ---------- */
@media (max-width: 1180px) {
  .brand img { height: 32px; }
}
@media (max-width: 1040px) {
  nav.main-nav { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav {
    position: fixed; inset: 0;
    background: var(--bg);
    z-index: 999;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
  }
  .mobile-nav.open { display: flex; }
  .mobile-nav a {
    font-size: 22px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    color: var(--ink);
  }
}
@media (max-width: 720px) {
  .brand img { height: 26px; }
}
