/*******************************************************************************
 Khaled Marzouk — Option D floating capsule header (fixed)
 *******************************************************************************/

:root {
  --site-header-height: 72px;
  --site-header-inset: 22px;
  --site-header-bg: rgba(12, 14, 18, 0.5);
  --site-header-bg-scrolled: rgba(12, 14, 18, 0.88);
  --site-header-text: #ffffff;
  --site-header-muted: rgba(255, 255, 255, 0.82);
  --site-header-blur: 16px;
  --site-topbar-height: 48px;
  --site-topbar-bg: rgba(12, 12, 12, 0.35);
}

/* -------------------------------------------------------------------------- */
/* Neutralize Firenze left-sidebar geometry                                   */
/* -------------------------------------------------------------------------- */

#main:before {
  left: 0 !important;
  opacity: 0.18;
}

.content-holder {
  padding-left: 0 !important;
}

/* Firenze floats .container left on wide screens — center it sitewide */
.container {
  float: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.wrapper-inner {
  padding-left: 0 !important;
  float: none !important;
  width: 100% !important;
}

.fixed-filter,
.preload-bg,
.back-link,
.form-bg,
.top-bar-holder.fw-topbar {
  left: 0 !important;
}

.nav-button-holder,
.close-menu,
.header-footer,
.header-widget,
.scroll-holder {
  display: none !important;
}

/* -------------------------------------------------------------------------- */
/* Option D — fixed floating capsule                                          */
/* -------------------------------------------------------------------------- */

header.main-header.main-header--top,
header.main-header.main-header--capsule {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: auto !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0;
  max-height: none !important;
  margin: 0 !important;
  padding: var(--site-header-inset) !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  z-index: 100 !important;
  overflow: visible !important;
  transform: none !important;
}

.site-header-shell {
  width: min(1280px, 100%);
  margin: 0 auto;
  background: var(--site-header-bg) !important;
  -webkit-backdrop-filter: blur(var(--site-header-blur));
  backdrop-filter: blur(var(--site-header-blur));
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  box-shadow: 0 14px 48px rgba(0, 0, 0, 0.28);
  transition: background-color 280ms ease, box-shadow 280ms ease, border-color 280ms ease;
}

@media only screen and (min-width: 1600px) {
  .site-header-shell {
    width: min(1480px, 100%);
  }
}

@media only screen and (min-width: 1920px) {
  .site-header-shell {
    width: min(1680px, 100%);
  }
}

@media only screen and (min-width: 2400px) {
  .site-header-shell {
    width: min(1960px, 100%);
  }
}

header.main-header.main-header--top.is-scrolled .site-header-shell {
  background: var(--site-header-bg-scrolled) !important;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.32);
}

header.main-header.main-header--top.is-nav-open .site-header-shell {
  background: var(--site-header-bg-scrolled) !important;
  border-radius: 28px;
}

.site-header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  width: 100%;
  min-height: var(--site-header-height);
  padding: 14px 28px;
  position: relative;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--site-header-text);
  min-height: 44px;
  grid-column: 2;
  padding: 0 14px;
}

.site-brand img {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.site-brand-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--site-header-text);
  white-space: nowrap;
}

.site-nav--left {
  grid-column: 1;
  justify-self: end;
  padding-right: 12px;
}

.site-nav--right {
  grid-column: 3;
  justify-self: start;
  padding-left: 12px;
}

.site-nav--mobile {
  display: none;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav li {
  margin: 0;
  padding: 0;
  float: none;
  width: auto;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--site-header-muted);
  white-space: nowrap;
  transition: color 200ms ease, opacity 200ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.act-link {
  color: #fff;
  opacity: 1;
  outline: none;
}

.site-nav a:focus-visible {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.45);
  border-radius: 4px;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  z-index: 2;
  grid-column: 3;
  justify-self: end;
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 220ms ease, opacity 220ms ease;
}

header.main-header.main-header--top.is-nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

header.main-header.main-header--top.is-nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

header.main-header.main-header--top.is-nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* -------------------------------------------------------------------------- */
/* Light surface (Projects / content pages) — aligns with page + black CTA    */
/* Home keeps dark glass over the hero. Content pages use frosted paper glass */
/* so photography stays the color hero and Get in Touch stays the dark accent */
/* -------------------------------------------------------------------------- */

header.main-header.main-header--light {
  --site-header-bg: rgba(255, 255, 255, 0.82);
  --site-header-bg-scrolled: rgba(255, 255, 255, 0.94);
  --site-header-text: #1a1a1a;
  --site-header-muted: rgba(26, 26, 26, 0.72);
  --site-ink: #292929;
}

header.main-header.main-header--light .site-header-shell {
  border-color: rgba(26, 26, 26, 0.1) !important;
  box-shadow: 0 10px 36px rgba(26, 26, 26, 0.1);
}

header.main-header.main-header--light.is-scrolled .site-header-shell,
header.main-header.main-header--light.is-nav-open .site-header-shell {
  border-color: rgba(26, 26, 26, 0.12) !important;
  box-shadow: 0 14px 40px rgba(26, 26, 26, 0.12);
}

header.main-header.main-header--light .site-brand img {
  filter: none;
}

header.main-header.main-header--light .site-nav a:hover,
header.main-header.main-header--light .site-nav a:focus-visible,
header.main-header.main-header--light .site-nav a.act-link {
  color: var(--site-ink);
}

header.main-header.main-header--light .site-nav a.act-link {
  box-shadow: inset 0 -2px 0 var(--site-ink);
  padding-bottom: 2px;
}

header.main-header.main-header--light .site-nav a:focus-visible {
  box-shadow: 0 0 0 2px rgba(41, 41, 41, 0.28);
}

header.main-header.main-header--light .nav-toggle {
  border-color: rgba(26, 26, 26, 0.22);
}

header.main-header.main-header--light .nav-toggle-bar {
  background: #1a1a1a;
}

/* Projects page surface */
.page-projects {
  background: #f4f4f4;
}

.page-projects .content-holder {
  background: transparent;
}

.page-projects .content.pad-con--projects {
  padding-top: calc(var(--site-header-inset) + var(--site-header-height) + 28px) !important;
}

.page-projects .inline-filter {
  background: #fff;
  border: 1px solid rgba(26, 26, 26, 0.08);
}

.page-projects .inline-filter a,
.page-projects .inline-filter .count-folio {
  background: #fff;
  border-left-color: rgba(26, 26, 26, 0.08);
}

.page-projects .inline-filter a.gallery-filter-active:before {
  background: #292929;
}

.page-projects .notifer {
  background: #fff;
  border: 1px solid rgba(26, 26, 26, 0.08);
}

.page-projects .projects-cta.flat-btn,
.page-projects .notifer .flat-btn.projects-cta {
  background: #292929;
  border: 1px solid #292929;
  color: #fff;
}

.page-projects .projects-cta.flat-btn:hover,
.page-projects .notifer .flat-btn.projects-cta:hover {
  background: #111;
  border-color: #111;
  color: #fff;
}

/* -------------------------------------------------------------------------- */
/* Legacy top-bar / share strip — removed for capsule header consistency      */
/* -------------------------------------------------------------------------- */

.top-bar-holder {
  display: none !important;
}

/* -------------------------------------------------------------------------- */
/* Content spacing under fixed chrome                                         */
/* -------------------------------------------------------------------------- */

.content.pad-con,
.content.pad-con2,
.content.pad-con3 {
  padding-top: calc(var(--site-header-inset) + var(--site-header-height) + 28px) !important;
}

.page-title {
  padding-top: calc(200px + var(--site-header-inset) + var(--site-header-height)) !important;
  overflow: hidden;
}

.page-title h2 {
  left: 0 !important;
  right: 0 !important;
  width: 100%;
  padding: 0 6vw;
  text-align: center !important;
  font-size: clamp(42px, 6.5vw, 92px) !important;
  line-height: 1.05;
  pointer-events: none;
  box-sizing: border-box;
}

.page-title-inner,
.page-title-decor {
  display: none !important;
}

.content {
  float: none !important;
}

.full-height-wrap,
.hero-wrap {
  margin-top: 0;
}

.fixed-filter {
  top: calc(var(--site-header-inset) + var(--site-header-height)) !important;
}

/* -------------------------------------------------------------------------- */
/* Single project — large-screen body                                         */
/* -------------------------------------------------------------------------- */

.page-project-single {
  background: #fff;
}

.page-project-single .page-title {
  overflow: hidden;
}

.page-project-single .project-single-container {
  /* Fill wide desktops (e.g. 2560) — avoid a narrow left/center column */
  max-width: min(1480px, 92%);
  width: 100%;
}

.page-project-single .details-box {
  float: none;
  width: 100%;
  padding: 64px clamp(12px, 2vw, 28px) 80px;
}

.page-project-single .details-box h3 {
  float: none;
}

.page-project-single .project-summary {
  max-width: 56rem;
  margin: 0 0 36px;
  float: none;
}

.page-project-single .gallery-items {
  float: none;
  width: 100%;
}

.page-project-single .content,
.page-project-single .content.mr-bottom {
  float: none !important;
  width: 100% !important;
}

@media only screen and (min-width: 1600px) {
  .page-project-single .project-single-container {
    max-width: min(1720px, 90%);
  }
}

@media only screen and (min-width: 1920px) {
  .page-project-single .project-single-container {
    max-width: min(2040px, 90%);
  }
}

/* 2560×1440 and similar ultrawide / full-HD+ desktops */
@media only screen and (min-width: 2400px) {
  .page-project-single .project-single-container {
    max-width: min(2320px, 92%);
  }

  .page-project-single .details-box {
    padding-top: 72px;
    padding-bottom: 96px;
  }
}

/* -------------------------------------------------------------------------- */
/* Mobile                                                                     */
/* -------------------------------------------------------------------------- */

body.nav-open {
  overflow: hidden;
}

@media only screen and (max-width: 980px) {
  :root {
    --site-header-height: 64px;
    --site-header-inset: 14px;
  }

  header.main-header.main-header--top,
  header.main-header {
    left: 0 !important;
    width: 100% !important;
  }

  .site-header-shell {
    border-radius: 24px;
  }

  .site-header-inner {
    grid-template-columns: 1fr auto;
    min-height: var(--site-header-height);
    padding: 12px 18px;
    gap: 12px;
  }

  .site-nav--left,
  .site-nav--right {
    display: none !important;
  }

  .site-brand {
    grid-column: 1;
    justify-content: flex-start;
    padding: 0;
  }

  .site-brand-text {
    font-size: 13px;
    letter-spacing: 0.1em;
  }

  .site-brand img {
    width: 36px;
    height: 36px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav--mobile {
    display: block;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    width: 100%;
    margin: 0;
    padding: 12px;
    background: rgba(12, 14, 18, 0.96);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 120;
    transition: opacity 200ms ease, visibility 200ms ease;
  }

  header.main-header.main-header--top.is-nav-open .site-nav--mobile {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .site-nav--mobile ul {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .site-nav--mobile a {
    justify-content: flex-start;
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    border-radius: 12px;
  }

  .site-nav--mobile a.act-link,
  .site-nav--mobile a:hover {
    background: rgba(255, 255, 255, 0.08);
  }

  header.main-header.main-header--light .site-nav--mobile {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(26, 26, 26, 0.1);
    box-shadow: 0 18px 40px rgba(26, 26, 26, 0.12);
  }

  header.main-header.main-header--light .site-nav--mobile a.act-link,
  header.main-header.main-header--light .site-nav--mobile a:hover {
    background: rgba(41, 41, 41, 0.06);
    color: #292929;
  }

  .page-projects .content.pad-con--projects {
    padding-top: calc(var(--site-header-inset) + var(--site-header-height) + 18px) !important;
  }

  .top-bar-holder {
    position: relative !important;
    top: 0 !important;
    margin-top: calc(var(--site-header-inset) + var(--site-header-height));
    float: left;
    width: 100% !important;
  }

  .content.pad-con,
  .content.pad-con2,
  .content.pad-con3 {
    padding-top: 28px !important;
  }

  .page-title {
    padding-top: calc(160px + var(--site-header-height)) !important;
  }

  .page-title h2 {
    font-size: 42px;
    left: 6%;
    right: 6%;
    text-align: center;
  }
}

@media only screen and (max-width: 560px) {
  .site-brand-text {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .page-title h2 {
    font-size: 32px;
  }
}

@media (prefers-reduced-transparency: reduce) {
  :root {
    --site-header-bg: rgba(12, 14, 18, 0.96);
    --site-header-bg-scrolled: rgba(12, 14, 18, 0.98);
    --site-topbar-bg: rgba(12, 12, 12, 0.96);
  }

  header.main-header.main-header--light {
    --site-header-bg: rgba(255, 255, 255, 0.98);
    --site-header-bg-scrolled: #ffffff;
  }

  header.main-header.main-header--top .site-header-shell,
  .top-bar-holder,
  .site-nav--mobile {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header-shell,
  .site-nav--mobile,
  .site-nav a,
  .nav-toggle-bar {
    transition: none !important;
  }
}
