@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Montserrat:wght@400;500;600;700&family=Open+Sans:wght@400;500;600&display=swap');

:root {
  --navy: #062a57;
  --navy2: #0a3a72;
  --navy-deep: #031c3a;
  --gold: #c9a227;
  --gold-soft: #d4b84a;
  --ink: #1e2a35;
  --muted: #5c6b7a;
  --line: #d8dde3;
  --paper: #f4f6f9;
  --white: #ffffff;
  --max: 1140px;
  --shadow: 0 12px 40px rgba(3, 28, 58, 0.12);
  --shadow-lg: 0 24px 60px rgba(3, 28, 58, 0.18);
  --radius: 6px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: #0a1f3a url('assets/skyline-bg.jpg') no-repeat center center fixed;
  background-size: cover;
  color: var(--ink);
  font-family: 'Open Sans', system-ui, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Subtle dark overlay on the skyline for depth */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(160deg, rgba(3, 28, 58, 0.55) 0%, rgba(6, 42, 87, 0.35) 50%, rgba(3, 28, 58, 0.6) 100%);
  pointer-events: none;
  z-index: -1;
}

/* ========== LAYOUT ========== */
.site-header,
main,
footer {
  width: min(var(--max), calc(100% - 28px));
  margin-left: auto;
  margin-right: auto;
}

.site-header {
  margin-top: 28px;
  position: relative;
  z-index: 20;
  animation: fadeDown 0.8s var(--ease) both;
}

/* ========== HEADER / TOPBAR ========== */
.topbar {
  height: 88px;
  background: linear-gradient(180deg, #f8f9fb 0%, #e8ecf1 100%);
  display: flex;
  align-items: center;
  padding: 10px 22px;
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.topbar::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft), var(--gold));
}

.brand img {
  width: 280px;
  max-width: 100%;
  display: block;
  transition: transform 0.4s var(--ease);
}

.brand:hover img {
  transform: scale(1.02);
}

/* ========== NAV ========== */
.nav {
  background: linear-gradient(90deg, var(--navy-deep) 0%, var(--navy) 40%, var(--navy2) 100%);
  display: flex;
  justify-content: space-around;
  align-items: center;
  min-height: 56px;
  gap: 2px;
  padding: 0 10px;
  box-shadow: 0 8px 28px rgba(3, 28, 58, 0.35);
  position: relative;
}

.nav a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-family: Montserrat, sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.6px;
  padding: 18px 14px 16px;
  border-top: 3px solid transparent;
  transition: all 0.3s var(--ease);
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: all 0.35s var(--ease);
  transform: translateX(-50%);
}

.nav a:hover,
.nav a:focus {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.nav a:hover::after,
.nav a.active::after {
  width: 60%;
}

.nav a.active {
  color: #fff;
  border-top-color: var(--gold);
  background: rgba(0, 0, 0, 0.15);
}

/* ========== HERO ========== */
.page-hero-wrap {
  position: relative;
  overflow: hidden;
  height: 320px;
  box-shadow: var(--shadow);
}

.page-hero {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.08);
  animation: heroZoom 12s ease-out both;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(3, 28, 58, 0.15) 0%,
    rgba(3, 28, 58, 0.55) 55%,
    rgba(3, 28, 58, 0.82) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 36px 36px;
}

.page-hero-overlay h1 {
  color: #fff;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  font-size: 2.6rem;
  letter-spacing: 0.5px;
  margin: 0;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  animation: fadeUp 0.9s 0.25s var(--ease) both;
  line-height: 1.15;
}

.page-hero-overlay .gold-line {
  width: 64px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin-bottom: 14px;
  animation: expandLine 0.8s 0.15s var(--ease) both;
}

/* ========== CONTENT ========== */
.page-title {
  display: none; /* title now lives in hero overlay */
}

.content-block {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 42px 40px 48px;
  min-height: 280px;
  box-shadow: var(--shadow);
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  animation: fadeUp 0.85s 0.2s var(--ease) both;
}

.content-block p {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: 15.5px;
}

.content-block ul {
  margin: 12px 0 0;
  padding-left: 22px;
}

.content-block li {
  margin: 8px 0;
  color: var(--ink);
}

h1, h2 {
  margin: 0 0 14px;
  color: var(--navy);
  font-family: Montserrat, sans-serif;
  font-weight: 700;
}

h1 { font-size: 1.7rem; }

h2 {
  font-size: 1.45rem;
  border-left: 4px solid var(--gold);
  padding-left: 14px;
}

h3 {
  font-family: Montserrat, sans-serif;
  color: var(--navy2);
  font-weight: 600;
}

/* ========== TEAM ========== */
.people {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.people article {
  background: #fff;
  border: 1px solid var(--line);
  padding: 28px 20px 24px;
  text-align: center;
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(3, 28, 58, 0.06);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.7s var(--ease) forwards;
}

.people article:nth-child(1) { animation-delay: 0.15s; }
.people article:nth-child(2) { animation-delay: 0.3s; }
.people article:nth-child(3) { animation-delay: 0.45s; }

.people article:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.people .person-photo {
  width: 148px;
  height: 148px;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  margin: 0 auto 18px;
  display: block;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--gold), 0 8px 24px rgba(3, 28, 58, 0.15);
  background: #f0f2f5;
  transition: transform 0.4s var(--ease);
}

.people article:hover .person-photo {
  transform: scale(1.04);
}

.people h3 {
  margin: 0 0 4px;
  font-size: 1.15rem;
  color: var(--navy);
}

.people p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.3px;
}

/* ========== CLIENTS & SERVICES GRIDS ========== */
.client-grid,
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(3, 28, 58, 0.05);
}

.client-grid span,
.service-grid div {
  padding: 13px 16px;
  border-right: 1px solid #e6e9ed;
  border-bottom: 1px solid #e6e9ed;
  font-size: 14px;
  transition: background 0.25s ease, color 0.25s ease;
}

.client-grid span:hover,
.service-grid div:hover {
  background: linear-gradient(135deg, #f7f9fc, #eef3f9);
  color: var(--navy);
}

.service-grid div {
  font-weight: 600;
  color: #2a4a6e;
}

/* ========== PROJECT CATEGORIES ========== */
.project-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.project-cat-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  padding: 28px 22px;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius);
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(3, 28, 58, 0.05);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.65s var(--ease) forwards;
}

.project-cat-card:nth-child(1) { animation-delay: 0.1s; }
.project-cat-card:nth-child(2) { animation-delay: 0.18s; }
.project-cat-card:nth-child(3) { animation-delay: 0.26s; }
.project-cat-card:nth-child(4) { animation-delay: 0.34s; }
.project-cat-card:nth-child(5) { animation-delay: 0.42s; }
.project-cat-card:nth-child(6) { animation-delay: 0.5s; }

.project-cat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gold);
  transform: scaleY(0);
  transition: transform 0.35s var(--ease);
  transform-origin: top;
}

.project-cat-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.project-cat-card:hover::before {
  transform: scaleY(1);
}

.project-cat-card h3 {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.project-cat-card:hover h3 {
  color: var(--navy2);
}

.project-cat-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
}

/* ========== PROJECT TABS & LISTS ========== */
.project-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
}

.project-tabs a {
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  font-family: Montserrat, sans-serif;
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.4px;
  padding: 10px 16px;
  border-radius: 4px;
  transition: all 0.3s var(--ease);
  border: 1px solid transparent;
}

.project-tabs a:hover {
  background: var(--navy2);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(6, 42, 87, 0.3);
}

.project-tabs a.active-tab {
  background: var(--navy-deep);
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
}

.project-section h3 {
  margin: 0 0 16px;
  font-size: 1.25rem;
  color: var(--navy);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 8px;
  display: inline-block;
}

.project-section ul {
  columns: 2;
  column-gap: 36px;
  margin: 12px 0 0;
  padding-left: 18px;
}

.project-section li {
  margin: 7px 0;
  break-inside: avoid;
  font-size: 14.5px;
}

.backtop {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 28px;
  color: var(--navy);
  font-weight: 700;
  font-family: Montserrat, sans-serif;
  font-size: 14px;
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: all 0.3s var(--ease);
}

.backtop:hover {
  color: var(--gold);
  gap: 10px;
}

/* ========== CONTACT ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-grid h3 {
  margin: 0 0 16px;
  font-size: 1.15rem;
  color: var(--navy);
  letter-spacing: 0.4px;
}

.contact-grid p {
  margin: 0 0 18px;
  font-size: 15px;
}

.contact-grid a {
  color: var(--navy2);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}

.contact-grid a:hover {
  border-bottom-color: var(--gold);
}

.qr-block {
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 8px 28px rgba(3, 28, 58, 0.08);
}

.qr-block h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

.qr-code {
  width: 210px;
  height: 210px;
  object-fit: contain;
  display: block;
  margin: 14px auto 0;
  background: #fff;
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: 4px;
  transition: transform 0.4s var(--ease);
}

.qr-block:hover .qr-code {
  transform: scale(1.03);
}

/* ========== FOOTER ========== */
footer {
  background: linear-gradient(90deg, var(--navy-deep), var(--navy));
  color: rgba(255, 255, 255, 0.88);
  text-align: center;
  font-size: 12.5px;
  letter-spacing: 0.3px;
  padding: 16px 14px;
  margin-bottom: 36px;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

/* ========== ANIMATIONS ========== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroZoom {
  from { transform: scale(1.12); }
  to { transform: scale(1.0); }
}

@keyframes expandLine {
  from { width: 0; opacity: 0; }
  to { width: 64px; opacity: 1; }
}

/* Reveal utility for scroll-triggered elements */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .site-header, main, footer { width: 100%; margin-left: 0; margin-right: 0; }
  .site-header { margin-top: 0; }
  .topbar { border-radius: 0; }
  .nav {
    overflow-x: auto;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
  }
  .nav a {
    white-space: nowrap;
    font-size: 12px;
    padding: 16px 12px;
  }
  .page-hero-wrap { height: 260px; }
  .page-hero-overlay { padding: 0 24px 28px; }
  .page-hero-overlay h1 { font-size: 2rem; }
  .content-block { padding: 32px 24px 40px; }
  .people { grid-template-columns: 1fr; max-width: 320px; margin-left: auto; margin-right: auto; }
  .client-grid, .service-grid { grid-template-columns: 1fr 1fr; }
  .project-cat-grid { grid-template-columns: 1fr 1fr; }
  .project-section ul { columns: 1; }
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  footer { margin-bottom: 0; border-radius: 0; }
}

@media (max-width: 520px) {
  .topbar { height: 72px; padding: 8px 14px; }
  .brand img { width: 220px; }
  .page-hero-wrap { height: 220px; }
  .page-hero-overlay h1 { font-size: 1.65rem; }
  .content-block { padding: 26px 18px 34px; }
  .client-grid, .service-grid, .project-cat-grid { grid-template-columns: 1fr; }
  h1 { font-size: 1.4rem; }
  .qr-code { width: 180px; height: 180px; }
}
