:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-strong: #edf2f7;
  --text: #132032;
  --muted: #4e5f74;
  --primary: #0d3b66;
  --primary-strong: #0a2f52;
  --accent: #f4b942;
  --border: #d8e0ea;
  --shadow: 0 18px 40px rgba(13, 59, 102, 0.12);
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 10%, rgba(244, 185, 66, 0.16), transparent 35%),
    radial-gradient(circle at 90% 20%, rgba(13, 59, 102, 0.12), transparent 40%),
    linear-gradient(180deg, #f9fbfd 0%, var(--bg) 85%);
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  letter-spacing: 0.02em;
}

p,
li,
label,
input,
textarea,
a,
button {
  font-size: 1.05rem;
}

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

.app-shell {
  max-width: 1180px;
}

.site-header {
  backdrop-filter: blur(10px);
  background: rgba(13, 34, 56, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.navbar {
  padding: 0.7rem 0;
}

.brand img {
  width: 172px;
  height: auto;
  background: #102d49;
  border-radius: 10px;
  padding: 0.35rem 0.55rem;
}

.nav-link {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--accent);
}

.navbar-toggler {
  border-color: rgba(244, 185, 66, 0.9);
  background: rgba(13, 59, 102, 0.7);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28244,185,66,0.98%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.4' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-toggler:hover,
.navbar-toggler:focus-visible {
  border-color: #f4b942;
  background: rgba(13, 59, 102, 0.95);
  box-shadow: 0 0 0 0.2rem rgba(244, 185, 66, 0.2);
}

.cta-link {
  background: var(--accent);
  color: #1d2c3f;
  border-radius: 999px;
  border: 2px solid var(--accent);
  padding: 0.68rem 1.35rem !important;
  font-weight: 700;
  margin-left: 0.4rem;
}

.cta-link:hover,
.cta-link:focus-visible {
  background: #e8aa2f;
  border-color: #e8aa2f;
  color: #1a2837;
}

.site-main {
  padding: 1.6rem 0 3.5rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 0.8rem;
}

/* ── Hero redesign ───────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 540px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  animation: rise 0.75s ease-out;
}

.hero-copy {
  background: linear-gradient(150deg, #07192c 0%, var(--primary) 55%, #125190 100%);
  padding: 3.5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
}

.hero .eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1.5px solid rgba(244, 185, 66, 0.55);
  border-radius: 999px;
  padding: 0.22rem 0.9rem;
  margin-bottom: 1.4rem;
}

.hero-title {
  font-size: clamp(1.6rem, 1.5vw + 0.9rem, 2.55rem);
  line-height: 1.08;
  letter-spacing: 0.02em;
  margin: 0 0 1.35rem;
  color: #fff;
  text-wrap: balance;
}

.hero-lead {
  font-size: clamp(0.95rem, 0.3vw + 0.88rem, 1.07rem);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.85);
  max-width: 50ch;
  margin-bottom: 0;
}

.hero-actions {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-media {
  position: relative;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.btn {
  border-radius: 999px;
  padding: 0.68rem 1.35rem;
  font-weight: 700;
  border-width: 2px;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #1d2c3f;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #e8aa2f;
  border-color: #e8aa2f;
  color: #1a2837;
}

.btn-outline-light {
  color: #fff;
}

.section-card {
  margin-top: 1.5rem;
  background: var(--surface);
  border-radius: 20px;
  border: 1px solid var(--border);
  padding: 1.75rem;
  box-shadow: 0 6px 20px rgba(19, 32, 50, 0.05);
  animation: rise 0.6s ease-out;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.value-grid article,
.process-detail-grid article,
.faq-list article {
  background: var(--surface-strong);
  border-radius: 16px;
  padding: 1.2rem;
}

.icon-grid article,
.process-detail-grid article {
  background: #102d49;
  color: #fff;
}

.process-detail-grid article p {
  color: rgba(255, 255, 255, 0.88);
}

.value-grid h2,
.process-detail-grid h2,
.faq-list h2,
.split-section h2,
.callout h2,
.page-header h1 {
  margin-top: 0;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: center;
}

.split-section img {
  width: 100%;
  border-radius: 16px;
}

.text-link {
  text-decoration: none;
  font-weight: 700;
}

.icon-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
}

.icon-grid article {
  text-align: center;
  background: rgba(255, 255, 255, 0.08);
  padding: 1rem 0.75rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.icon-grid img,
.process-detail-grid img {
  width: 54px;
  height: 54px;
  margin-bottom: 0.65rem;
}

.process-preview > .btn {
  display: block;
  width: fit-content;
  margin: 1.25rem auto 0;
}

.process-detail-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

.process-preview {
  background: linear-gradient(125deg, #0d2238 0%, #123452 55%, #1a4c75 100%);
  border-color: rgba(255, 255, 255, 0.08);
}

.process-preview .eyebrow,
.process-preview h2,
.process-preview h3 {
  color: #ffffff;
}

.callout {
  text-align: center;
  background: linear-gradient(120deg, #0f416f 0%, #16619f 100%);
  color: #fff;
}

.callout p {
  color: rgba(255, 255, 255, 0.9);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.25rem;
}

.quote-form {
  display: grid;
  gap: 0.9rem;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

.quote-form label {
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.quote-form input,
.quote-form textarea {
  width: 100%;
  border: 1px solid #bccad9;
  border-radius: 10px;
  padding: 0.6rem 0.7rem;
  background: #fdfefe;
}

.quote-form input:focus,
.quote-form textarea:focus {
  outline: 2px solid rgba(13, 59, 102, 0.25);
  border-color: var(--primary);
}

.contact-aside {
  background: var(--surface-strong);
  border-radius: 16px;
  padding: 1rem;
}

.contact-logo {
  width: 146px;
  margin-bottom: 0.9rem;
  background: #102d49;
  border-radius: 10px;
  padding: 0.35rem 0.55rem;
}

.contact-lines {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.45rem;
}

.contact-line {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 600;
}

.contact-icon {
  width: 1.1rem;
  height: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.contact-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.feature-list {
  margin-bottom: 1rem;
}

.site-footer {
  margin-top: 1rem;
  background: #0d2238;
  color: rgba(255, 255, 255, 0.9);
  padding: 2rem 0 1.2rem;
}

.site-footer h3 {
  font-size: 1.35rem;
  color: #fff;
}

.site-footer a {
  color: var(--accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 1rem;
}

.footer-logo {
  width: 156px;
  margin-bottom: 0.5rem;
  background: #102d49;
  border-radius: 10px;
  padding: 0.35rem 0.55rem;
}

.faq-list {
  display: grid;
  gap: 0.9rem;
}

.faq-list article {
  border-left: 4px solid var(--accent);
  padding: 1.15rem 1.2rem 1.05rem;
}

.faq-list article p {
  margin-bottom: 0;
}

.footer-tagline {
  margin-bottom: 0.35rem;
}

.copyright {
  margin-top: 1.2rem;
  margin-bottom: 0;
  font-size: 0.95rem;
}

.project-grid {
  display: grid;
  gap: 0.95rem;
}

.project-index {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.project-index.section-card {
  padding: 1rem;
}

.project-index-wrap {
  margin-top: 1rem;
}

.project-index-compact {
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #f9fbfe;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(16, 45, 73, 0.12);
}

.project-card-compact {
  border-radius: 12px;
  border-color: #d4deea;
  background: #ffffff;
}

.project-card-media {
  display: block;
  background: #0f2c48;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.project-card-media-compact {
  aspect-ratio: 5 / 3;
  max-height: 270px;
  min-height: 220px;
  background: linear-gradient(145deg, #0f2c48 0%, #164569 100%);
}

.project-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-content {
  padding: 0.85rem;
}

.project-content h2 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.35;
}

.project-content > p {
  margin-top: 0.45rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.project-card-compact .project-content {
  padding: 0.7rem 0.75rem 0.78rem;
  min-height: 145px;
}

.project-card-compact .project-content h2 {
  font-size: 0.97rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-card-compact .project-content > p {
  font-size: 0.84rem;
  line-height: 1.45;
  margin-top: 0.35rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-card-compact .project-row {
  margin-top: 0.45rem;
}

.project-row {
  margin-top: 0.55rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.project-meta {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
}

.project-card-compact .project-meta {
  font-size: 0.77rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #64768c;
}

.project-link-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.24rem 0.62rem;
  border: 1px solid #c2d3e6;
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--primary);
  background: #f3f8fd;
}

.project-link-chip:hover {
  border-color: #9bb7d4;
  background: #e8f1fa;
}

.project-placeholder {
  width: 100%;
  min-height: 220px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.9);
  border: 1px dashed rgba(255, 255, 255, 0.45);
  font-weight: 600;
}

.project-detail-header {
  margin-bottom: 1rem;
}

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

.project-shot {
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  background: #f3f7fc;
  border: 1px solid var(--border);
}

.project-shot-trigger {
  width: 100%;
  display: block;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: zoom-in;
}

.project-shot img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  display: block;
}

.project-shot figcaption {
  padding: 0.8rem 0.9rem;
  font-weight: 600;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.45;
}

.project-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1060;
  background: rgba(8, 18, 31, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.4rem;
}

.project-lightbox.is-open {
  display: flex;
}

.project-lightbox-stage {
  margin: 0;
  max-width: min(1080px, 86vw);
  max-height: 90vh;
  display: grid;
  gap: 0.75rem;
}

.project-lightbox-stage img {
  width: 100%;
  max-height: calc(90vh - 84px);
  object-fit: contain;
  border-radius: 12px;
  background: #050a11;
}

.project-lightbox-stage figcaption {
  text-align: center;
  color: #e4edf8;
  font-weight: 600;
}

.project-lightbox-close,
.project-lightbox-arrow {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(8, 18, 31, 0.7);
  color: #fff;
  border-radius: 999px;
  padding: 0.42rem 0.95rem;
  font-weight: 700;
}

.project-lightbox-close {
  top: 1rem;
  right: 1rem;
}

.project-lightbox-prev {
  left: 1rem;
}

.project-lightbox-next {
  right: 1rem;
}

.project-lightbox-close:hover,
.project-lightbox-arrow:hover {
  background: rgba(12, 38, 63, 0.92);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1199px) {
  .contact-grid,
  .split-section,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991px) {
  .navbar-collapse {
    margin-top: 0.7rem;
    background: #0f2b45;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    padding: 0.6rem;
  }

  .cta-link {
    margin-left: 0;
  }

  .navbar-collapse .cta-link {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 0.35rem;
    padding: 0.5rem 0.9rem !important;
    font-size: 0.95rem;
    border-width: 1.5px;
  }

  .value-grid,
  .icon-grid,
  .process-detail-grid,
  .field-row {
    grid-template-columns: 1fr;
  }

  .project-content {
    padding: 0.8rem;
  }

  .project-index {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .project-index-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-card-media-compact {
    max-height: 230px;
    min-height: 190px;
  }

  .project-lightbox-stage {
    max-width: min(94vw, 960px);
  }

  .project-lightbox-arrow {
    top: auto;
    bottom: 1rem;
  }

  /* Hero: stack on tablets */
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-media {
    order: -1;
    min-height: 280px;
  }

  .hero-media img {
    height: 280px;
    object-fit: cover;
  }

  .hero-copy {
    padding: 2.25rem 2rem;
  }

  .hero-title {
    font-size: clamp(1.6rem, 2.5vw + 0.75rem, 2.25rem);
    line-height: 1.1;
  }

  .hero-lead {
    font-size: 0.97rem;
    max-width: none;
  }

  .hero-actions {
    margin-top: 1.6rem;
  }
}

@media (max-width: 767px) {
  .site-main {
    padding-top: 1rem;
  }

  .section-card {
    padding: 1.1rem;
    border-radius: 16px;
  }

  .hero {
    border-radius: 16px;
  }

  .hero-media {
    min-height: 220px;
  }

  .hero-media img {
    height: 220px;
  }

  .hero-copy {
    padding: 1.75rem 1.35rem;
  }

  .hero-title {
    font-size: clamp(1.45rem, 4vw + 0.4rem, 1.95rem);
    line-height: 1.1;
    margin-bottom: 0.85rem;
  }

  .hero-lead {
    font-size: 0.93rem;
    line-height: 1.65;
  }

  .hero-actions {
    margin-top: 1.35rem;
    flex-direction: column;
  }

  .hero-actions .btn {
    text-align: center;
  }

  .project-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .project-index {
    grid-template-columns: 1fr;
  }

  .project-index-compact {
    grid-template-columns: 1fr;
  }

  .project-card-media-compact {
    max-height: 220px;
    min-height: 180px;
  }

  .project-lightbox {
    padding: 1rem 0.6rem;
  }

  .project-lightbox-stage {
    max-width: 96vw;
  }

  .project-lightbox-stage img {
    max-height: calc(88vh - 88px);
  }

  .project-lightbox-prev {
    left: 0.6rem;
  }

  .project-lightbox-next {
    right: 0.6rem;
  }
}