/*
 * Michal Krische – theme inspired by michal/assets/mirror.JPG:
 * a glass curtain wall with navy steel mullions, sky-blue panes,
 * a few opaque blue panels, and a construction site reflected in orange/red.
 */

:root {
  --navy-900: #0f1c36;
  --navy-800: #1b2d52;   /* mullions */
  --navy-700: #26406f;
  --steel: #3c5a8c;
  --glass-100: #eef4fa;
  --glass-200: #dce8f4;
  --glass-300: #b9d0e8;
  --glass-400: #8fb6de;  /* opaque panel */
  --crane: #e8a13a;      /* crane arm */
  --crane-dark: #b8741a;
  --safety: #c8322b;     /* scaffolding red */
  --timber: #c9a27a;     /* hoarding boards */
  --ink: #14213a;
  --muted: #56647c;
  --focus: var(--crane);

  --wrap: 1180px;
  --mullion: 6px;
  --radius: 4px;
}

body {
  background: var(--glass-100);
  color: var(--ink);
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 720px) {
  .wrap {
    padding: 0 2rem;
  }
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 28, 54, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(143, 182, 222, 0.2);
  color: #fff;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.logo__mark {
  display: block;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo__name {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.logo__tag {
  font-size: 0.72rem;
  color: var(--glass-300);
  letter-spacing: 0.04em;
}

.nav-toggle {
  display: none;
}

.nav ul {
  display: flex;
  gap: 0.25rem;
  padding: 0;
  list-style: none;
}

.nav a {
  display: block;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--glass-200);
  transition: background 0.15s, color 0.15s;
}

.nav a:hover {
  background: rgba(143, 182, 222, 0.15);
  color: #fff;
}

.nav a[aria-current="page"] {
  color: #fff;
  box-shadow: inset 0 -2px 0 var(--crane);
}

.nav .nav__cta {
  background: var(--crane);
  color: var(--navy-900);
  font-weight: 600;
}

.nav .nav__cta:hover {
  background: #f2b458;
  color: var(--navy-900);
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid rgba(143, 182, 222, 0.4);
    border-radius: var(--radius);
    background: transparent;
    color: #fff;
    font: inherit;
    cursor: pointer;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    background: var(--navy-900);
    border-bottom: 1px solid rgba(143, 182, 222, 0.2);
  }

  .nav.is-open {
    display: block;
  }

  .nav ul {
    flex-direction: column;
    padding: 0.5rem 1rem 1rem;
  }

  .nav a {
    padding: 0.75rem;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn--primary {
  background: var(--crane);
  color: var(--navy-900);
}

.btn--primary:hover {
  background: #f2b458;
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

.btn--ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--navy-800);
  isolation: isolate;
}

.hero__photo {
  position: absolute;
  inset: 0;
  z-index: -3;
  background: url("../mirror.JPG") center 40% / cover no-repeat;
}

.hero::before {
  /* tint so text stays readable over the reflection */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(100deg, rgba(15, 28, 54, 0.96) 0%, rgba(15, 28, 54, 0.85) 45%, rgba(27, 45, 82, 0.35) 100%);
}

.hero::after {
  /* curtain-wall mullion grid over the photo */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(15, 28, 54, 0.55) 3px, transparent 3px),
    linear-gradient(to bottom, rgba(15, 28, 54, 0.55) 3px, transparent 3px);
  background-size: 96px 72px;
  pointer-events: none;
}

.hero .wrap {
  padding-top: clamp(4rem, 12vw, 8.5rem);
  padding-bottom: clamp(4rem, 10vw, 7rem);
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--crane);
}

.hero__eyebrow::before {
  content: "";
  width: 2.25rem;
  height: 3px;
  background: var(--crane);
}

.hero h1 {
  max-width: 17ch;
  margin-top: 1.1rem;
  font-size: clamp(2.2rem, 5.5vw, 3.9rem);
  line-height: 1.07;
  letter-spacing: -0.025em;
}

.hero__lead {
  max-width: 52ch;
  margin-top: 1.4rem;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--glass-200);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

/* Credentials strip – sits on the hero's bottom edge like a transom */
.credentials {
  background: var(--navy-800);
  color: var(--glass-200);
  border-top: var(--mullion) solid var(--navy-900);
}

.credentials ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--mullion);
  padding: 0;
  list-style: none;
  background: var(--navy-900);
}

.credentials li {
  padding: 1.25rem 1.25rem 1.3rem;
  background: var(--navy-800);
}

.credentials strong {
  display: block;
  color: #fff;
  font-size: 1rem;
}

.credentials span {
  font-size: 0.85rem;
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section--tint {
  background: var(--glass-200);
}

.section__head {
  max-width: 60ch;
  margin-bottom: 2.5rem;
}

.section__kicker {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--safety);
}

.section h2 {
  margin-top: 0.5rem;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy-800);
}

.section__head p:last-child:not(.section__kicker) {
  margin-top: 1rem;
  color: var(--muted);
}

/* ---------- Services – glass panes in a mullion grid ---------- */

.panes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--mullion);
  padding: var(--mullion);
  background: var(--navy-800);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px -20px rgba(15, 28, 54, 0.45);
}

.pane {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.35) 38%, transparent 39%),
    linear-gradient(160deg, var(--glass-100), var(--glass-300));
  text-decoration: none;
  transition: background-color 0.2s, transform 0.2s;
}

.pane--solid {
  /* the opaque blue panels in the facade */
  background: var(--glass-400);
}

.pane__num {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--steel);
}

.pane h3 {
  margin-top: 0.75rem;
  font-size: 1.3rem;
  line-height: 1.25;
  color: var(--navy-800);
}

.pane p {
  margin-top: 0.75rem;
  color: #33415a;
}

.pane ul {
  margin-top: 1rem;
  padding-left: 1.1rem;
  color: #33415a;
  font-size: 0.95rem;
}

.pane li + li {
  margin-top: 0.3rem;
}

.pane li::marker {
  color: var(--crane-dark);
}

.pane__more {
  margin-top: auto;
  padding-top: 1.5rem;
  font-weight: 600;
  color: var(--navy-700);
}

.pane__more:hover {
  color: var(--safety);
}

@media (max-width: 760px) {
  .panes {
    grid-template-columns: 1fr;
  }
}

/* ---------- About ---------- */

.about {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

/* two columns only when the photo is actually present */
.about:has(.about__figure) {
  grid-template-columns: 1.1fr 1fr;
}

/* keep a readable line length when the text spans the full width */
.about__text {
  max-width: 60ch;
}

.about:has(.about__figure) .about__text {
  max-width: none;
}

.about__text p + p {
  margin-top: 1rem;
}

.about__text p {
  color: #33415a;
}

.about__figure {
  position: relative;
  padding: var(--mullion);
  background: var(--navy-800);
  border-radius: var(--radius);
}

.about__figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.about__figure figcaption {
  padding: 0.6rem 0.25rem 0.1rem;
  font-size: 0.8rem;
  color: var(--glass-300);
}

.about__figure::after {
  /* crane-orange corner bracket */
  content: "";
  position: absolute;
  right: -12px;
  bottom: -12px;
  width: 38%;
  height: 38%;
  z-index: -1;
  border-right: 6px solid var(--crane);
  border-bottom: 6px solid var(--crane);
}

@media (max-width: 860px) {
  .about:has(.about__figure) {
    grid-template-columns: 1fr;
  }
}

/* ---------- References ---------- */

.refs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.ref {
  padding: 1.5rem;
  background: #fff;
  border-top: 4px solid var(--navy-800);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(15, 28, 54, 0.08);
}

.ref h3 {
  font-size: 1.05rem;
  color: var(--navy-800);
}

.ref ul {
  margin-top: 0.75rem;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
  color: #33415a;
}

.ref li {
  position: relative;
  padding-left: 1.1rem;
}

.ref li + li {
  margin-top: 0.4rem;
}

.ref li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 7px;
  height: 7px;
  background: var(--crane);
}

.refs__more {
  margin-top: 2rem;
}

.link-arrow {
  font-weight: 600;
  color: var(--navy-700);
  text-underline-offset: 4px;
}

.link-arrow:hover {
  color: var(--safety);
}

/* ---------- Contact ---------- */

.contact {
  position: relative;
  color: #fff;
  background: var(--navy-900);
  overflow: hidden;
  isolation: isolate;
}

.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(143, 182, 222, 0.08) 2px, transparent 2px),
    linear-gradient(to bottom, rgba(143, 182, 222, 0.08) 2px, transparent 2px);
  background-size: 96px 72px;
}

.contact h2 {
  color: #fff;
}

.contact .section__head p:last-child:not(.section__kicker) {
  color: var(--glass-300);
}

.contact .section__kicker {
  color: var(--crane);
}

.contact__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--mullion);
  background: rgba(143, 182, 222, 0.25);
  padding: var(--mullion);
  border-radius: var(--radius);
}

.contact__card {
  padding: 1.5rem;
  background: var(--navy-800);
}

.contact__card h3 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--glass-400);
}

.contact__card address,
.contact__card p {
  margin-top: 0.75rem;
  font-style: normal;
  color: var(--glass-100);
}

.contact__card a {
  color: #fff;
  text-decoration-color: var(--crane);
  text-underline-offset: 4px;
}

.contact__card a:hover {
  color: var(--crane);
}

.contact__big {
  font-size: 1.2rem;
  font-weight: 600;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 1.5rem 0;
  background: #0a1427;
  color: var(--glass-300);
  font-size: 0.85rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}

.site-footer a {
  color: var(--glass-200);
  text-underline-offset: 3px;
}

/* ---------- Work in progress page ---------- */

.wip {
  position: relative;
  display: grid;
  place-items: center;
  min-height: calc(100vh - 4.25rem - 3.5rem);
  padding: 4rem 1rem;
  overflow: hidden;
  color: #fff;
  background: var(--navy-800);
  isolation: isolate;
  text-align: center;
}

.wip .hero__photo {
  filter: saturate(0.9);
}

.wip::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: rgba(15, 28, 54, 0.86);
}

.wip__box {
  max-width: 36rem;
}

.wip__tape {
  /* safety-barrier tape */
  height: 14px;
  margin: 0 auto 2rem;
  width: min(280px, 80%);
  background: repeating-linear-gradient(-45deg, var(--crane) 0 14px, var(--navy-900) 14px 28px);
  border-radius: 2px;
}

.wip h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.wip p {
  margin-top: 1rem;
  color: var(--glass-200);
}

.wip .hero__actions {
  justify-content: center;
}
