/* ==========================================================================
   Nadia Interior — public site
   Visual system aligned with ZROBIM architects reference:
   Montserrat · white / #1b1b1b · gold #cda173 · 10vw grid · full-bleed hero
   ========================================================================== */

:root {
  --gold: #cda173;
  --gold-hover: #b38a5f;
  --black: #080808;
  --dark: #1b1b1b;
  --white: #ffffff;
  --light: #f5f5f5;
  --line: #e5e5e5;
  --muted: #c8c8c8;
  --gray: #9d9d9d;
  --font: "Montserrat", system-ui, sans-serif;
  --ease: cubic-bezier(0.5, 0, 0, 1);
  --ease-out: cubic-bezier(0.19, 1, 0.22, 1);
  --gutter: 10vw;
  --bar: 102px;
  --vh: 1vh;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 15px;
  scroll-behavior: smooth;
}

@media (min-width: 1200px) and (max-width: 1399px) {
  html { font-size: 16px; }
}

@media (min-width: 1400px) {
  html { font-size: 1vw; }
  :root { --bar: 6.8vw; }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-weight: 300;
  line-height: 1.6;
  color: var(--black);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.menu-is-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* —— Grid lines —— */
.grid-line {
  display: none;
}

@media (min-width: 576px) {
  .grid-line {
    display: block;
    position: fixed;
    z-index: 2;
    top: 0;
    width: 1px;
    height: 100%;
    background: var(--line);
    pointer-events: none;
  }
  .grid-line--left { left: var(--gutter); }
  .grid-line--right { right: var(--gutter); }
  .grid-line--center {
    left: 50%;
    z-index: 1;
  }
}

@media (min-width: 576px) and (max-width: 991px) {
  .grid-line--center { display: none; }
}

/* —— Left menu trigger —— */
.menu-open {
  position: relative;
  z-index: 12;
  width: 100%;
  height: var(--bar);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--black);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .menu-open {
    position: fixed;
    left: 0;
    top: 0;
    width: 10%;
    height: 100%;
    flex-direction: column-reverse;
    background: transparent;
  }
}

.menu-open__label {
  writing-mode: horizontal-tb;
}

@media (min-width: 768px) {
  .menu-open__label {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    margin-top: 1rem;
  }
}

.menu-open__icon {
  width: 27px;
  height: 42px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.menu-open__icon-top,
.menu-open__icon-center,
.menu-open__icon-bottom {
  display: block;
  width: 27px;
  height: 2px;
  background: currentColor;
  transition: transform 0.35s var(--ease), margin 0.35s var(--ease), height 0.35s var(--ease), opacity 0.25s var(--ease);
}

@media (min-width: 1200px) {
  .menu-open:hover .menu-open__icon-top {
    margin-left: 12px;
    height: 3px;
  }
  .menu-open:hover .menu-open__icon-bottom {
    margin-right: 12px;
    height: 3px;
  }
}

.template-main .menu-open,
.page-hero .menu-open,
body.template-main .menu-open,
body.template-inner .menu-open {
  color: var(--white);
}

body.template-main .menu-open,
body.template-inner .menu-open {
  color: var(--white);
}

/* On light pages after scroll past hero — keep white on dark hero only via section context.
   Default black; hero pages force white on fixed control via body class. */

body.template-main .menu-open,
body.template-inner .menu-open {
  color: var(--white);
  mix-blend-mode: difference;
}

body.menu-is-open .menu-open {
  color: var(--white);
  mix-blend-mode: normal;
}

/* —— Gold contact bar —— */
.consult-bar {
  display: none;
}

@media (min-width: 992px) {
  .consult-bar {
    position: fixed;
    z-index: 12;
    right: 0;
    top: 0;
    width: 10vw;
    height: var(--bar);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold);
    color: var(--dark);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
  .consult-bar:hover {
    background: var(--gold-hover);
  }
}

/* —— Fullscreen menu —— */
.menu {
  position: fixed;
  z-index: 20;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0.5s var(--ease);
  display: flex;
  flex-direction: column;
}

.menu[hidden] {
  display: none;
}

.menu.is-open {
  opacity: 1;
  visibility: visible;
  display: flex;
}

.menu__inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin: 0;
  background: #000;
  overflow: auto;
}

@media (min-width: 576px) {
  .menu__inner {
    margin: 0 calc(10vw + 1px);
  }
}

@media (min-width: 992px) {
  .menu__inner {
    margin-right: 50vw;
  }
}

.menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--bar);
  padding: 0 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.menu__logo {
  color: var(--white);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.menu-close {
  border: 0;
  background: transparent;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  padding: 0.75rem;
}

.menu-close:hover {
  color: var(--gold);
}

.menu__nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 0;
}

.menu__nav a {
  display: block;
  padding: 0.65rem 1.5rem 0.65rem 2rem;
  color: var(--white);
  text-transform: uppercase;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
}

.menu__nav a:hover {
  color: var(--gold);
}

.menu__foot {
  padding: 1.5rem 2rem 2rem;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* —— Page shell —— */
.page-wrap {
  position: relative;
  z-index: 3;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* —— Sections —— */
.section {
  position: relative;
  display: flex;
  flex-direction: column;
}

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

.section--light {
  background: var(--light);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section--back {
  color: var(--white);
  min-height: 80vh;
}

.section__body {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 100%;
  padding: 3.2rem 1.25rem;
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
}

@media (min-width: 576px) {
  .section__body {
    padding-left: calc(var(--gutter) + 1.5rem);
    padding-right: calc(var(--gutter) + 1.5rem);
  }
}

@media (min-width: 992px) {
  .section__body {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}

@media (min-width: 1400px) {
  .section__body {
    padding-top: 4.5vw;
    padding-bottom: 4.5vw;
  }
}

.section__header {
  margin-bottom: 2rem;
}

.section__header-title {
  position: relative;
  line-height: 1.15;
  font-size: 1.8rem;
  text-transform: uppercase;
  font-weight: 400;
  padding-bottom: 1rem;
  margin: 0;
}

@media (min-width: 576px) {
  .section__header-title { font-size: 2rem; }
}
@media (min-width: 768px) {
  .section__header-title { font-size: 2.4rem; }
}
@media (min-width: 1200px) {
  .section__header-title { font-size: 2.6rem; }
}

.section__header-title::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 8px;
  width: 128px;
  background: var(--gold);
}

@media (max-width: 767px) {
  .section__header-title::before {
    left: 50%;
    margin-left: -64px;
  }
  .section {
    text-align: center;
  }
  .section__content {
    text-align: left;
  }
}

.section__header-title strong {
  display: block;
  font-weight: 800;
}

.section__header-subtitle {
  display: block;
  font-size: 1rem;
  margin-top: 1rem;
  text-transform: uppercase;
  font-weight: 500;
}

.section__header-subtitle a {
  color: inherit;
  border-bottom: 1px solid var(--gold);
}

.section--dark .section__header-subtitle a {
  color: var(--white);
}

.section__content {
  max-width: 40rem;
  font-size: 1rem;
}

.section__content p {
  margin: 0 0 1.6rem;
}

.section__content p:last-child {
  margin-bottom: 0;
}

.section__buttons {
  margin-top: 2.5rem;
}

@media (max-width: 767px) {
  .section__buttons {
    text-align: center;
  }
}

/* —— Buttons & links —— */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.75rem;
  border: 1px solid var(--black);
  background: transparent;
  color: var(--black);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.button:hover {
  background: var(--black);
  color: var(--white);
}

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

.button--gold:hover {
  background: var(--gold-hover);
  border-color: var(--gold-hover);
  color: var(--dark);
}

.button--white {
  border-color: var(--white);
  color: var(--white);
}

.button--white:hover {
  background: var(--white);
  color: var(--dark);
}

.section--dark .button:not(.button--gold):not(.button--white) {
  border-color: var(--white);
  color: var(--white);
}

.section--dark .button:not(.button--gold):not(.button--white):hover {
  background: var(--white);
  color: var(--dark);
}

.link-gold {
  color: var(--gold) !important;
  border-bottom: 1px solid var(--gold);
  display: inline;
}

.link-gold:hover {
  border-color: transparent;
}

/* —— Hero —— */
.hero,
.page-hero {
  position: relative;
  min-height: 100vh;
  min-height: calc(var(--vh, 1vh) * 100);
  display: flex;
  flex-direction: column;
  color: var(--white);
  overflow: hidden;
}

.page-hero--short {
  min-height: 70vh;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__img,
.hero__placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__placeholder {
  background:
    linear-gradient(135deg, #2a2420 0%, #4a4038 35%, #6b5d4f 55%, #3d3832 100%);
}

.hero__placeholder--projects {
  background: linear-gradient(145deg, #1a1a1a 0%, #3d342c 40%, #5c4e42 70%, #1f1c19 100%);
}

.hero__placeholder--services {
  background: linear-gradient(160deg, #222 0%, #4a4036 45%, #2c2824 100%);
}

.hero__placeholder--about {
  background: linear-gradient(120deg, #1b1b1b 0%, #3a3530 50%, #1b1b1b 100%);
}

.hero__placeholder--contact {
  background: linear-gradient(200deg, #2c2620 0%, #1b1b1b 60%, #3d342c 100%);
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.25) 40%, rgba(0, 0, 0, 0.55) 100%);
}

.hero__top {
  position: relative;
  z-index: 2;
  height: var(--bar);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .hero__top {
    justify-content: flex-start;
    padding-left: calc(var(--gutter) + 1rem);
  }
}

.hero__logo {
  color: var(--white);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  text-align: center;
}

@media (min-width: 768px) {
  .hero__logo {
    font-size: 0.9rem;
  }
}

.hero__body {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding-bottom: calc(var(--bar) + 1rem);
}

.hero__header {
  margin-bottom: 0;
}

.hero__title {
  color: var(--white);
}

.hero__title::before {
  background: var(--gold);
}

.hero__subtitle {
  color: rgba(255, 255, 255, 0.85);
}

.hero__scroll {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 0;
  width: 48px;
  height: var(--bar);
  margin-left: -24px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
}

.hero__scroll-arrow {
  width: 18px;
  height: 18px;
  border-right: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: rotate(45deg);
  animation: scroll-bounce 1.2s infinite;
}

@keyframes scroll-bounce {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.85; }
  50% { transform: rotate(45deg) translate(4px, 4px); opacity: 1; }
}

/* —— Stats —— */
.stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem 1rem;
  margin: 1rem 0 3rem;
  padding: 0;
}

.stats__item {
  flex: 1 1 30%;
  min-width: 7rem;
  text-align: center;
}

.stats__value {
  display: block;
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.1;
}

@media (min-width: 768px) {
  .stats__value { font-size: 3.2rem; }
}

.stats__label {
  display: block;
  margin-top: 0.5rem;
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
}

/* —— Philosophy —— */
.philosophy {
  display: grid;
  gap: 2.5rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .philosophy {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.philosophy__title {
  font-size: 1.15rem;
  font-weight: 600;
  text-transform: uppercase;
  margin: 0 0 1rem;
  line-height: 1.35;
}

.philosophy__desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* —— Pride / service photo strips —— */
.pride {
  min-height: 70vh;
  color: var(--white);
  overflow: hidden;
}

.pride__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.pride__bg {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.pride__bg--1 {
  background-image: linear-gradient(135deg, #2c2824, #5a4e44 40%, #8a7a68 70%, #2a2420);
}

.pride__bg--2 {
  background-image: linear-gradient(200deg, #1a1a1a, #3d4a45 45%, #6a7568 75%, #1b1b1b);
}

.pride__bg--3 {
  background-image: linear-gradient(160deg, #241f1c, #4a3f38 50%, #7a6a58, #1f1c1a);
}

.pride__shade {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

@media (min-width: 992px) {
  .pride__shade {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.2) 55%, rgba(0, 0, 0, 0.35) 100%);
  }
  .pride--flip .pride__shade {
    background: linear-gradient(270deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.2) 55%, rgba(0, 0, 0, 0.35) 100%);
  }
}

.pride__body {
  justify-content: center;
}

.pride__panel {
  max-width: 32rem;
}

@media (min-width: 992px) {
  .pride--flip .pride__panel {
    margin-left: auto;
  }
}

.pride .section__header-title::before {
  background: var(--gold);
}

/* —— Project list —— */
.project-list {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .project-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1.5rem;
  }
}

.project-list__media {
  position: relative;
  overflow: hidden;
  background: #d0d0d0;
  aspect-ratio: 1000 / 668;
}

.project-list__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out), filter 0.5s var(--ease);
  filter: grayscale(0.15);
}

.project-list__link:hover .project-list__media img {
  transform: scale(1.04);
  filter: grayscale(0);
}

.project-list__ph {
  width: 100%;
  height: 100%;
  min-height: 12rem;
}

.project-list__ph--1 { background: linear-gradient(145deg, #cfc7bc, #8a7f72); }
.project-list__ph--2 { background: linear-gradient(145deg, #b8b2a8, #5c564e); }
.project-list__ph--3 { background: linear-gradient(145deg, #d4cdc2, #6e655a); }
.project-list__ph--4 { background: linear-gradient(145deg, #a9a297, #3d3832); }

.project-list__meta {
  padding: 1.1rem 0 0.25rem;
}

.project-list__title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.project-list__cat {
  margin: 0;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--gray);
  font-weight: 500;
}

.project-list__summary {
  margin: 0.65rem 0 0;
  font-size: 0.95rem;
  color: #444;
  text-transform: none;
  font-weight: 300;
}

.project-list__cta {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
}

/* —— Chief / quote —— */
.chief__quote {
  max-width: 40rem;
  margin-bottom: 3rem;
}

.chief__quote p {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.55;
  font-weight: 400;
}

.h-inline {
  font-size: 1.2rem;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0 0 1rem;
}

/* —— Services page rows —— */
.service-rows {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
}

.service-row {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.service-row__num {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--gold);
}

.service-row__title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
}

.service-row p {
  margin: 0;
  color: #444;
}

/* —— Contact board —— */
.contact-board {
  max-width: 36rem;
}

.contact-board__row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.contact-board__label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
}

.contact-board__row a {
  font-size: 1.1rem;
  font-weight: 500;
}

.contact-board__row a:hover {
  color: var(--gold);
}

/* —— Footer —— */
.footer {
  margin-top: auto;
}

.footer .section__header-title {
  color: var(--white);
}

@media (min-width: 768px) {
  .footer .section__header-title {
    font-size: 3rem;
  }
}

.footer__grid {
  display: grid;
  gap: 2rem;
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.footer__block-title {
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  margin: 0 0 1rem;
  color: var(--white);
}

.footer__block-content {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 0.65rem;
  line-height: 1.6;
}

.footer__block-content a {
  color: var(--muted);
}

.footer__block-content a:hover {
  color: var(--gold);
}

.footer__bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
  font-size: 0.8rem;
}

.footer__bottom p {
  margin: 0;
}

/* —— Scroll animations (gold bar wipe + fade) —— */
[data-scroll="fade"] {
  opacity: 0;
}

[data-scroll="fade"].scrolled {
  animation: opacity-fade 1.5s var(--ease-out) forwards;
}

@keyframes opacity-fade {
  0%, 50% { opacity: 0; }
  100% { opacity: 1; }
}

[data-scroll="title"] {
  position: relative;
  overflow: hidden;
}

[data-scroll="title"] > * {
  opacity: 0;
}

[data-scroll="title"]::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  left: -32px;
  width: 0;
  height: 100%;
  background: var(--gold);
  pointer-events: none;
}

@media (min-width: 1200px) {
  [data-scroll="title"]::after {
    left: -64px;
  }
}

[data-scroll="title"].scrolled::after {
  animation: scroll-title 1.5s var(--ease-out) forwards;
}

[data-scroll="title"].scrolled > * {
  animation: opacity-title 1.5s var(--ease-out) forwards;
}

@keyframes scroll-title {
  0% { left: -32px; width: 0; }
  50% { left: -32px; width: calc(100% + 64px); }
  100% { left: calc(100% + 32px); width: 0; }
}

@keyframes opacity-title {
  0%, 50% { opacity: 0; }
  100% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  [data-scroll="fade"],
  [data-scroll="title"] > * {
    opacity: 1;
    animation: none !important;
  }
  [data-scroll="title"]::after {
    display: none;
  }
  .hero__scroll-arrow {
    animation: none;
  }
}

/* Mobile menu-open sits above hero content */
@media (max-width: 767px) {
  body.template-main .menu-open,
  body.template-inner .menu-open {
    position: absolute;
    top: 0;
    left: 0;
    right: auto;
    width: auto;
    height: var(--bar);
    padding: 0 1rem;
    mix-blend-mode: normal;
    color: var(--white);
  }

  .menu-open__label {
    display: none;
  }

  .hero__top {
    justify-content: flex-end;
    padding-right: 1rem;
  }
}
