/* ============================================================
   Design Line Construction — Global Stylesheet
   Font: Nunito (Google Fonts)
   Colors: #000000 · #FFFFFF · #AADF00
   SWAP: Replace logo src paths with real PNGs when provided
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;600&display=swap');

/* ── Reset & Tokens ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --black: #000000;
  --white: #FFFFFF;
  --lime:  #AADF00;
  --grey:  #888780;
  --dark:  #0d0d0d;
  --font:  'Nunito', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.7;
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
  opacity: 0;
  animation: pageIn .3s ease forwards;
}

@keyframes pageIn { to { opacity: 1; } }

img { display: block; width: 100%; object-fit: cover; }
a   { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); }

/* ── NAV ── */
#nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 52px;
  transition: background .35s, padding .35s;
}

#nav.scrolled {
  background: var(--black);
  padding: 16px 52px;
}

.nav-logo img {
  height: 44px; width: auto; object-fit: contain;
  transition: opacity .3s;
}

/* dark logo = black bg logo (shown when nav is scrolled / on light pages) */
/* light logo = white logo (shown over dark hero) */
.logo-dark  { display: none; }
.logo-light { display: block; }

#nav.scrolled .logo-light { display: none; }
#nav.scrolled .logo-dark  { display: block; }

.nav-links {
  display: flex; align-items: center; gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: .7rem; font-weight: 300;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--white);
  position: relative;
  transition: color .25s;
}

.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0;
  width: 0; height: 1px; background: var(--lime);
  transition: width .3s;
}

.nav-links a:hover { color: var(--lime); }
.nav-links a:hover::after { width: 100%; }

/* Hamburger */
.nav-hamburger {
  display: none; flex-direction: column;
  gap: 5px; cursor: pointer; z-index: 1100;
  background: none; border: none; padding: 4px;
}

.nav-hamburger span {
  display: block; width: 26px; height: 1px;
  background: var(--white);
  transition: transform .3s, opacity .3s, width .3s;
}

/* Mobile menu overlay */
.nav-overlay {
  position: fixed; inset: 0; z-index: 1050;
  background: var(--black);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 32px;
  opacity: 0; pointer-events: none;
  transition: opacity .35s;
}

.nav-overlay.open { opacity: 1; pointer-events: all; }

.nav-overlay a {
  font-size: 1.8rem; font-weight: 300;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--white);
  transition: color .25s;
}

.nav-overlay a:hover { color: var(--lime); }

.nav-overlay-close {
  position: absolute; top: 28px; right: 36px;
  font-size: 1.6rem; color: var(--white);
  background: none; border: none; cursor: pointer;
  line-height: 1;
}

/* ── HERO SLIDER (index only) ── */
.hero {
  position: relative; width: 100%; height: 100vh;
  overflow: hidden; background: var(--black);
}

.hero-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 1.5s ease;
}

.hero-slide.active { opacity: 1; }

.hero-slide img,
.hero-slide .slide-bg {
  width: 100%; height: 100%;
  object-fit: cover;
}

.slide-bg {
  /* Colour block placeholder until real photos added */
  background: #1a1a1a;
}

.slide-bg.alt { background: #2a2a2a; }

.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to bottom, rgba(0,0,0,.15), rgba(0,0,0,.55));
}

.hero-tagline {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}

.hero-tagline h1 {
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 300; letter-spacing: .15em;
  text-transform: uppercase; color: var(--white);
  text-align: center;
}

/* ── PAGE HEADER BAR ── */
.page-header {
  background: var(--black);
  padding: 120px 52px 48px;
  border-bottom: 1px solid #1c1c1c;
}

.page-header h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  font-weight: 300; letter-spacing: .2em;
  text-transform: uppercase; color: var(--white);
}

/* ── PROJECTS GRID ── */
.projects-section { padding: 60px 52px; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.proj-card {
  cursor: pointer; overflow: hidden;
  text-decoration: none; color: inherit;
  display: block;
}

.proj-card-img {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden;
  background: #1a1a1a;
}

.proj-card-img img,
.proj-card-img .img-placeholder {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.img-placeholder {
  background: #1a1a1a;
  display: flex; align-items: center; justify-content: center;
}
.img-placeholder.alt { background: #2a2a2a; }

.proj-card-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .35s;
}

.proj-card-overlay span {
  color: var(--white); font-size: 1rem;
  font-weight: 300; letter-spacing: .12em;
  text-transform: uppercase; text-align: center;
  padding: 0 20px;
}

.proj-card:hover .proj-card-img img,
.proj-card:hover .img-placeholder { transform: scale(1.05); }
.proj-card:hover .proj-card-overlay { opacity: 1; }

.proj-card-info { padding: 14px 0 0; }

.proj-card-info h3 {
  font-size: .95rem; font-weight: 400;
  letter-spacing: .05em; color: var(--white);
}

.proj-card-info p {
  font-size: .72rem; font-weight: 300;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--grey); margin-top: 4px;
}

/* ── PROJECT DETAIL ── */
.detail-hero {
  width: 100vw; height: 60vh; overflow: hidden;
}

.detail-hero img { width: 100%; height: 100%; object-fit: cover; }
.detail-hero .img-placeholder { width: 100%; height: 100%; background: #1a1a1a; }

.detail-info {
  padding: 52px 52px 40px;
}

.detail-info h1 {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 300; letter-spacing: .08em;
  color: var(--white);
}

.detail-info .detail-location {
  font-size: .75rem; font-weight: 300;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--grey); margin-top: 8px;
}

.detail-info p {
  margin-top: 18px; max-width: 640px;
  color: #aaa; line-height: 1.7;
}

.detail-back {
  display: inline-block;
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--grey); margin: 0 52px 8px;
  transition: color .25s;
}
.detail-back:hover { color: var(--lime); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px; padding: 0 52px 80px;
}

.gallery-grid img,
.gallery-grid .img-placeholder {
  width: 100%; height: 300px;
  object-fit: cover; cursor: pointer;
  transition: opacity .3s;
}

.gallery-grid img:hover,
.gallery-grid .img-placeholder:hover { opacity: .8; }

/* ── LIGHTBOX ── */
.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,.95);
  display: none; align-items: center; justify-content: center;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 90vw; max-height: 90vh;
  width: auto; height: auto; object-fit: contain;
}

.lb-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: none; border: 1px solid rgba(255,255,255,.3);
  color: var(--white); font-size: 1.4rem;
  padding: 14px 18px; cursor: pointer;
  transition: border-color .25s, color .25s;
}
.lb-btn:hover { border-color: var(--lime); color: var(--lime); }
.lb-prev { left: 28px; }
.lb-next { right: 28px; }

.lb-close {
  position: absolute; top: 24px; right: 28px;
  background: none; border: none; color: var(--white);
  font-size: 1.8rem; cursor: pointer; line-height: 1;
  transition: color .25s;
}
.lb-close:hover { color: var(--lime); }

/* ── ABOUT ── */
.about-story {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: start;
  padding: 80px 52px;
}

.about-story-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 300; letter-spacing: .05em;
  color: var(--white); line-height: 1.3;
  margin-bottom: 28px;
}

.about-story-text p {
  color: #999; margin-bottom: 18px;
}

.values-section { padding: 0 52px 80px; }

.values-section h2 {
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  font-weight: 300; letter-spacing: .1em;
  text-transform: uppercase; color: var(--white);
  margin-bottom: 40px;
}

.values-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.value-card {
  background: #0f0f0f; padding: 40px 32px;
  border: 1px solid #1c1c1c;
  transition: border-color .3s;
}

.value-card:hover { border-color: var(--lime); }

.value-card .num {
  font-size: 2.5rem; font-weight: 300;
  color: var(--lime); display: block; margin-bottom: 14px;
  letter-spacing: .05em;
}

.value-card h3 {
  font-size: 1rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--white); margin-bottom: 10px;
}

.value-card p { font-size: .9rem; color: #777; }

/* ── SERVICES ── */
.service-row {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 400px;
}

.service-row.reverse { direction: rtl; }
.service-row.reverse > * { direction: ltr; }

.service-row-img {
  width: 100%; height: 100%;
  min-height: 400px; object-fit: cover;
  display: block; background: #1a1a1a;
}
.service-row-img.alt { background: #222; }

.service-row-text {
  background: var(--white);
  padding: 60px;
  display: flex; flex-direction: column; justify-content: center;
}

.service-row-text h2 {
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  font-weight: 300; letter-spacing: .05em;
  color: var(--black); margin-bottom: 20px;
}

.service-row-text p {
  color: #555; line-height: 1.7;
}

/* ── TEAM ── */
.ceo-card {
  display: grid; grid-template-columns: 40% 60%;
  min-height: 520px;
}

.ceo-photo {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
  background: #1a1a1a; min-height: 520px;
}

.ceo-text {
  padding: 60px;
  display: flex; flex-direction: column; justify-content: center;
  background: #0a0a0a;
}

.ceo-text h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  font-weight: 300; letter-spacing: .08em;
  color: var(--white); margin-bottom: 6px;
}

.ceo-text .ceo-role {
  font-size: .72rem; font-weight: 300;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--lime); margin-bottom: 28px;
}

.ceo-text p { color: #888; }

.team-section { padding: 60px 52px 80px; }

.team-section h2 {
  font-size: 1rem; font-weight: 300;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--grey); margin-bottom: 40px;
}

.team-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.team-card { }

.team-card-img {
  aspect-ratio: 1 / 1; overflow: hidden;
  background: #1a1a1a;
}

.team-card-img img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
  transition: transform .4s;
}

.team-card:hover .team-card-img img { transform: scale(1.04); }

.team-card h3 {
  font-size: .9rem; font-weight: 400;
  letter-spacing: .05em; color: var(--white);
  margin-top: 14px;
}

.team-card p {
  font-size: .72rem; font-weight: 300;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--grey); margin-top: 4px;
}

/* ── CONTACT ── */
.contact-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; padding: 80px 52px;
}

.contact-info h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 300; letter-spacing: .05em;
  color: var(--white); margin-bottom: 40px;
}

.contact-detail { margin-bottom: 28px; }

.contact-detail label {
  display: block; font-size: .68rem; font-weight: 300;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--lime); margin-bottom: 6px;
}

.contact-detail p, .contact-detail a {
  color: #aaa; line-height: 1.7;
  transition: color .25s;
}

.contact-detail a:hover { color: var(--lime); }

.map-embed {
  margin-top: 36px; overflow: hidden;
  filter: grayscale(1) brightness(.7);
  transition: filter .4s;
}

.map-embed:hover { filter: grayscale(0) brightness(.9); }
.map-embed iframe { display: block; width: 100%; height: 260px; border: 0; }

/* Contact Form */
.contact-form { display: flex; flex-direction: column; gap: 24px; }

.contact-form h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 300; letter-spacing: .05em;
  color: var(--white); margin-bottom: 16px;
}

.form-field { display: flex; flex-direction: column; gap: 6px; }

.form-field label {
  font-size: .68rem; font-weight: 300;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--lime);
}

.form-field input,
.form-field textarea,
.form-field select {
  background: transparent;
  border: none; border-bottom: 1px solid #2a2a2a;
  padding: 10px 0; color: var(--white);
  font-family: var(--font); font-size: .95rem;
  outline: none; transition: border-color .3s; width: 100%;
  appearance: none;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus { border-bottom-color: var(--lime); }

.form-field textarea { resize: none; height: 120px; }
.form-field select option { background: #111; color: var(--white); }

.submit-btn {
  align-self: flex-start; margin-top: 8px;
  padding: 14px 44px;
  background: var(--black); color: var(--lime);
  border: 1px solid var(--lime);
  font-family: var(--font); font-size: .72rem;
  font-weight: 300; letter-spacing: .2em; text-transform: uppercase;
  cursor: pointer; transition: background .3s, color .3s;
}

.submit-btn:hover { background: var(--lime); color: var(--black); }

/* ── FOOTER ── */
footer {
  background: var(--black);
  border-top: 1px solid #1c1c1c;
  padding: 52px;
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 24px;
}

.f-logo img { height: 40px; width: auto; object-fit: contain; display: block; }

.f-social {
  display: flex; gap: 24px; justify-content: center; align-items: center;
}

.f-social a {
  display: flex; align-items: center; justify-content: center;
  color: #555; transition: color .25s;
}

.f-social a:hover { color: var(--lime); }
.f-social svg { display: block; }

.f-info {
  text-align: right; display: flex;
  flex-direction: column; gap: 6px;
}

.f-info p, .f-info a {
  font-size: .68rem; font-weight: 300;
  letter-spacing: .1em; color: #555;
  transition: color .25s;
}

.f-info a:hover { color: var(--lime); }

/* ── UTILITIES ── */
.section-divider { height: 1px; background: #1c1c1c; margin: 0 52px; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  #nav { padding: 20px 24px; }
  #nav.scrolled { padding: 14px 24px; }

  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .page-header { padding: 100px 24px 36px; }
  .projects-section { padding: 40px 24px; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  .about-story { grid-template-columns: 1fr; gap: 40px; padding: 60px 24px; }
  .values-section { padding: 0 24px 60px; }

  .service-row { grid-template-columns: 1fr; direction: ltr !important; min-height: auto; }
  .service-row-text { padding: 40px 24px; }
  .service-row-img { min-height: 280px; }

  .ceo-card { grid-template-columns: 1fr; }
  .ceo-photo { min-height: 340px; }
  .ceo-text { padding: 40px 24px; }
  .team-section { padding: 40px 24px 60px; }

  .contact-layout { grid-template-columns: 1fr; gap: 52px; padding: 60px 24px; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); padding: 0 24px 60px; }
  .gallery-grid img, .gallery-grid .img-placeholder { height: 200px; }

  .detail-info, .detail-back { padding-left: 24px; padding-right: 24px; }

  footer { grid-template-columns: 1fr; text-align: center; padding: 40px 24px; gap: 20px; }
  .f-info { text-align: center; }
  .f-logo { text-align: center; }
  .f-logo img { margin: 0 auto; }

  .lb-prev { left: 10px; }
  .lb-next { right: 10px; }
}

@media (max-width: 480px) {
  .projects-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .hero-tagline h1 { font-size: 1.6rem; letter-spacing: .08em; }
}
