:root {
  --navy: #011e39;
  --gold: #bf7629;
  --cream: #f5f1e9;
  --white: #ffffff;
  --text: #17202a;
  --muted: #68717b;
  --line: #d9dde1;
  --max-width: 1180px;
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.container {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(1, 30, 57, 0.08);
}

.nav-wrap {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-family: "Playfair Display", serif;
  font-weight: 700;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand strong {
  color: var(--navy);
}

.brand small {
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.68rem;
  color: var(--gold);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}

.nav-cta {
  padding: 11px 17px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
}

.menu-button {
  display: none;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
}

.hero {
  padding: 72px 0 84px;
  background: linear-gradient(135deg, var(--cream), #ffffff 62%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.25fr;
  align-items: center;
  gap: 64px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  font-size: 0.76rem;
}

h1,
h2,
h3 {
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.08;
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(3.3rem, 7vw, 6.4rem);
  color: var(--navy);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.3rem, 4vw, 4rem);
  color: var(--navy);
}

h3 {
  margin-bottom: 12px;
  font-size: 1.55rem;
}

.hero-text {
  max-width: 560px;
  margin: 0 0 32px;
  font-size: 1.15rem;
  color: var(--muted);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

.button-primary {
  background: var(--gold);
  color: var(--white);
}

.button-secondary {
  color: var(--navy);
  border: 1px solid var(--navy);
}

.hero-image {
  min-height: 560px;
  border-radius: 32px;
  box-shadow: 0 24px 70px rgba(1, 30, 57, 0.18);
}

.placeholder {
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  background:
    linear-gradient(rgba(1, 30, 57, 0.52), rgba(1, 30, 57, 0.52)),
    linear-gradient(135deg, #7f8c99, #c8cdd2);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
}

.trust-strip {
  background: var(--navy);
  color: var(--white);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.trust-grid > div {
  padding: 28px;
  background: var(--navy);
}

.trust-grid strong,
.trust-grid span {
  display: block;
}

.trust-grid span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.92rem;
}

.section {
  padding: 108px 0;
}

.section-heading {
  max-width: 700px;
  margin-bottom: 48px;
}

.section-heading > p:last-child {
  color: var(--muted);
}

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

.service-card {
  padding: 32px;
  min-height: 300px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.service-number {
  margin-bottom: 48px;
  color: var(--gold);
  font-weight: 700;
}

.service-card p {
  color: var(--muted);
}

.section-dark {
  background: var(--navy);
}

.section-heading.light h2,
.section-heading.light p {
  color: var(--white);
}

.section-heading.light > p:last-child {
  color: rgba(255, 255, 255, 0.66);
}

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

.project-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
}

.project-large {
  grid-column: 1 / -1;
}

.project-image {
  min-height: 330px;
}

.project-large .project-image {
  min-height: 610px;
}

.project-info {
  padding: 24px 26px 28px;
}

.project-info p {
  margin: 0 0 6px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
}

.project-info h3 {
  margin-bottom: 0;
  color: var(--navy);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
}

.about-copy {
  font-size: 1.1rem;
  color: var(--muted);
}

.about-copy p:first-child {
  margin-top: 0;
}

.contact-section {
  padding-top: 20px;
}

.contact-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 40px;
  padding: 56px;
  border-radius: 30px;
  background: var(--cream);
}

.contact-card p {
  color: var(--muted);
}

.contact-actions {
  justify-content: flex-end;
}

.text-link {
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}

.site-footer {
  padding: 28px 0;
  background: #001426;
  color: rgba(255, 255, 255, 0.72);
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .menu-button {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 20px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
  }

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

  .site-nav a {
    padding: 13px 0;
  }

  .nav-cta {
    margin-top: 8px;
    text-align: center;
  }

  .hero-grid,
  .about-grid,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 42px;
  }

  .hero-image {
    min-height: 440px;
  }

  .card-grid,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .hero,
  .section {
    padding: 72px 0;
  }

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

  .project-large {
    grid-column: auto;
  }

  .project-large .project-image,
  .project-image {
    min-height: 360px;
  }

  .contact-card {
    padding: 34px 24px;
  }

  .footer-wrap {
    flex-direction: column;
  }
}


.hero-site-image {
  background-position: 72% center;
  background-size: cover;
}

.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 38px;
}

.filter-button {
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  padding: 10px 17px;
  background: transparent;
  color: white;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.filter-button.active {
  background: var(--gold);
  border-color: var(--gold);
}

.portfolio-projects {
  display: grid;
  gap: 70px;
}

.folder-project {
  overflow: hidden;
  border-radius: 28px;
  background: white;
}

.folder-project-images {
  display: grid;
  gap: 6px;
  background: var(--navy);
}

.folder-project img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  display: block;
}

.layout-hero-top .folder-project-images {
  grid-template-columns: repeat(3, 1fr);
}

.layout-hero-top .project-hero {
  grid-column: 1 / -1;
  height: min(62vw, 670px);
}

.layout-hero-left .folder-project-images {
  grid-template-columns: 2fr 1fr;
  grid-template-rows: repeat(3, 230px);
}

.layout-hero-left .project-hero {
  grid-row: 1 / 4;
}

.layout-four-grid .folder-project-images {
  grid-template-columns: repeat(2, 1fr);
}

.layout-four-grid img {
  height: min(36vw, 430px);
}

.folder-project-copy {
  padding: 30px 34px 36px;
}

.folder-project-category {
  margin: 0 0 7px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .77rem;
  font-weight: 700;
}

.folder-project-copy h3 {
  margin-bottom: 12px;
  color: var(--navy);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.folder-project-description {
  max-width: 800px;
  margin: 0;
  color: var(--muted);
  white-space: pre-line;
}

.portfolio-empty {
  padding: 30px;
  border: 1px dashed rgba(255,255,255,.45);
  border-radius: 20px;
  color: white;
}

@media (max-width: 760px) {
  .layout-hero-top .folder-project-images,
  .layout-hero-left .folder-project-images,
  .layout-four-grid .folder-project-images {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .layout-hero-top .project-hero,
  .layout-hero-left .project-hero {
    grid-column: auto;
    grid-row: auto;
    height: 420px;
  }

  .folder-project img,
  .layout-four-grid img {
    height: 320px;
  }
}


.folder-project-images img {
  cursor: zoom-in;
}

.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 72px;
  align-items: center;
  gap: 18px;
  padding: 72px 20px 28px;
  background: rgba(0, 10, 20, 0.94);
}

.lightbox-content {
  margin: 0;
  min-width: 0;
  text-align: center;
}

.lightbox-content img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 140px);
  margin: 0 auto;
  object-fit: contain;
}

.lightbox-content figcaption {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.82);
}

.lightbox-close,
.lightbox-nav {
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  cursor: pointer;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
}

.lightbox-nav {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  font-size: 2.8rem;
  line-height: 1;
}

body.lightbox-open {
  overflow: hidden;
}

@media (max-width: 680px) {
  .lightbox {
    grid-template-columns: 46px minmax(0, 1fr) 46px;
    gap: 6px;
    padding-inline: 8px;
  }

  .lightbox-nav {
    width: 42px;
    height: 42px;
    font-size: 2rem;
  }
}


/* Version 7: split hero with solid navy left panel and image on right */
.hero-slideshow {
  position: relative;
  min-height: 720px;
  padding: 0;
  overflow: hidden;
  background: var(--navy);
  isolation: isolate;
}

/* The photograph exists only in the right-hand section. */
.hero-slide {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 38%;
  z-index: -3;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 1.4s ease;
}

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

/*
  Opaque navy from 0–38%.
  Navy fades to transparent from 38–61%.
  Fully transparent over the remaining photograph.
*/
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(
    90deg,
    rgba(1, 30, 57, 1) 0%,
    rgba(1, 30, 57, 1) 38%,
    rgba(1, 30, 57, 0.5) 49.5%,
    rgba(1, 30, 57, 0) 61%,
    rgba(1, 30, 57, 0) 100%
  );
  pointer-events: none;
}

.hero-content {
  min-height: 720px;
  display: flex;
  align-items: center;
}

.hero-slideshow .hero-copy {
  width: min(690px, 52%);
  padding: 80px 0;
}

.hero-slideshow h1 {
  color: white;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
}

.hero-slideshow .hero-text {
  color: rgba(255, 255, 255, 0.84);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.25);
}

.hero-slideshow .eyebrow {
  color: #e09a4f;
}

.button-hero-secondary {
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.76);
  background: rgba(0, 15, 29, 0.18);
  backdrop-filter: blur(4px);
}

.button-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 900px) {
  .hero-slideshow,
  .hero-content {
    min-height: 650px;
  }

  .hero-slide {
    left: 30%;
  }

  .hero-overlay {
    background: linear-gradient(
      90deg,
      rgba(1, 30, 57, 1) 0%,
      rgba(1, 30, 57, 1) 30%,
      rgba(1, 30, 57, 0.58) 48%,
      rgba(1, 30, 57, 0.12) 72%,
      rgba(1, 30, 57, 0.12) 100%
    );
  }

  .hero-slideshow .hero-copy {
    width: min(620px, 72%);
  }
}

@media (max-width: 680px) {
  .hero-slideshow,
  .hero-content {
    min-height: 610px;
  }

  .hero-slide {
    left: 0;
  }

  .hero-overlay {
    background: rgba(1, 30, 57, 0.72);
  }

  .hero-slideshow .hero-copy {
    width: 100%;
    padding: 72px 0;
  }
}

/* Version 5: any number of project images */
.folder-project-images {
  align-items: stretch;
}

.folder-project-images img {
  min-width: 0;
}

/* One image */
.folder-project[data-image-count="1"] .folder-project-images {
  display: block;
}

.folder-project[data-image-count="1"] .folder-project-images img {
  width: 100%;
  height: min(70vw, 760px);
}

/* Generic equal grid */
.layout-grid .folder-project-images {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.layout-grid .folder-project-images img {
  height: min(34vw, 430px);
}

/* Large hero followed by as many tiles as needed */
.layout-hero-top .folder-project-images {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.layout-hero-top .project-hero {
  grid-column: 1 / -1;
  height: min(62vw, 680px);
}

.layout-hero-top .folder-project-images img:not(.project-hero) {
  height: min(25vw, 330px);
}

/* Large hero on left. Remaining images flow in a two-column panel. */
.layout-hero-left .folder-project-images {
  grid-template-columns: minmax(0, 1.45fr) repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(190px, 1fr);
}

.layout-hero-left .project-hero {
  grid-column: 1;
  grid-row: 1 / span 3;
  min-height: 690px;
}

.layout-hero-left .folder-project-images img:not(.project-hero) {
  min-height: 220px;
}

/* Good for larger sets: 7, 8, 10+ images */
.layout-masonry .folder-project-images {
  display: block;
  columns: 3;
  column-gap: 6px;
  padding: 0;
}

.layout-masonry .folder-project-images img {
  width: 100%;
  height: auto;
  min-height: 0;
  margin: 0 0 6px;
  break-inside: avoid;
}

.layout-masonry .project-hero {
  column-span: all;
  width: 100%;
  max-height: 720px;
  object-fit: cover;
}

@media (max-width: 900px) {
  .layout-hero-left .folder-project-images {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .layout-hero-left .project-hero {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 500px;
  }

  .layout-masonry .folder-project-images {
    columns: 2;
  }
}

@media (max-width: 680px) {
  .layout-grid .folder-project-images,
  .layout-hero-top .folder-project-images,
  .layout-hero-left .folder-project-images {
    grid-template-columns: 1fr;
  }

  .layout-hero-top .project-hero,
  .layout-hero-left .project-hero {
    grid-column: auto;
    grid-row: auto;
    height: 420px;
    min-height: 0;
  }

  .layout-grid .folder-project-images img,
  .layout-hero-top .folder-project-images img:not(.project-hero),
  .layout-hero-left .folder-project-images img:not(.project-hero) {
    height: 320px;
    min-height: 0;
  }

  .layout-masonry .folder-project-images {
    columns: 1;
  }
}
