/* Al Noor Interiors — Dubai fit-out concept */

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/cormorant/cormorant-latin-400.woff2") format("woff2");
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/cormorant/cormorant-latin-600.woff2") format("woff2");
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/outfit/outfit-latin-400.woff2") format("woff2");
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/outfit/outfit-latin-500.woff2") format("woff2");
}

:root {
  --dx-stone: #e8e2d6;
  --dx-charcoal: #1c1b19;
  --dx-gold: #b8956c;
  --dx-sand: #f7f4ef;
  --dx-muted: #6f6a63;
  --dx-font-display: "Cormorant Garamond", Georgia, serif;
  --dx-font-ui: "Outfit", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}

body.dx-body {
  margin: 0;
  font-family: var(--dx-font-ui);
  color: var(--dx-charcoal);
  background: var(--dx-sand);
  line-height: 1.6;
}

img { max-width: 100%; display: block; height: auto; }

:focus-visible { outline: 2px solid var(--dx-gold); outline-offset: 3px; }

.dx-frame {
  font-family: var(--dx-font-ui);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.5rem 1rem;
  background: var(--dx-charcoal);
  color: var(--dx-stone);
}

.dx-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  position: relative;
  z-index: 10;
  color: var(--dx-charcoal);
  background: var(--dx-sand);
  border-bottom: 1px solid rgba(28, 27, 25, 0.08);
}

.dx-hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  padding: clamp(3rem, 8vw, 5rem) clamp(1rem, 4vw, 3rem) 3rem;
  color: #fff;
  overflow: hidden;
}

.dx-logo {
  font-family: var(--dx-font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.dx-lang {
  font-size: 0.8125rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(28, 27, 25, 0.25);
  background: transparent;
  color: var(--dx-charcoal);
  white-space: nowrap;
}

.dx-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.dx-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dx-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28,27,25,0.35) 0%, rgba(28,27,25,0.75) 100%);
}

.dx-hero__copy {
  position: relative;
  z-index: 1;
  max-width: 36rem;
}

.dx-hero h1 {
  font-family: var(--dx-font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 600;
  line-height: 1.05;
  margin: 0 0 1rem;
}

.dx-hero p {
  font-size: 1.0625rem;
  opacity: 0.92;
  margin: 0 0 1.5rem;
}

.dx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1.5rem;
  font-family: var(--dx-font-ui);
  font-size: 0.9375rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s, transform 0.15s;
}

.dx-btn--gold { background: var(--dx-gold); color: #fff; }
.dx-btn--gold:hover { background: #a6845c; }
.dx-btn:active { transform: scale(0.98); }
.dx-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.dx-btn--outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.6);
  color: #fff;
}

.dx-section {
  padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 4vw, 3rem);
}

.dx-section h2 {
  font-family: var(--dx-font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  margin: 0 0 1.5rem;
}

.dx-gallery {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .dx-gallery { grid-template-columns: 1.2fr 0.8fr; grid-template-rows: repeat(2, 1fr); }
  .dx-gallery__item:first-child { grid-row: span 2; }
}

.dx-gallery__item {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  background: var(--dx-stone);
}

.dx-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Visible by default — clip only under motion-ready enhancement */
  clip-path: none;
}

html.motion-ready .dx-gallery__item:not(.is-revealed) img {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

html.motion-ready .dx-gallery__item.is-revealed img {
  clip-path: inset(0 0 0 0);
}

@media (prefers-reduced-motion: reduce) {
  html.motion-ready .dx-gallery__item img {
    clip-path: none !important;
    transition: none;
  }
}

.dx-gallery__tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.6rem;
  background: rgba(28,27,25,0.75);
  color: #fff;
}

.dx-services {
  display: grid;
  gap: 1.5rem;
  background: var(--dx-stone);
  padding: clamp(2rem, 5vw, 3rem);
}

@media (min-width: 768px) {
  .dx-services { grid-template-columns: repeat(3, 1fr); }
}

.dx-services h3 {
  font-family: var(--dx-font-display);
  font-size: 1.375rem;
  margin: 0 0 0.5rem;
}

.dx-process ol {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .dx-process ol { grid-template-columns: repeat(4, 1fr); }
}

.dx-process li {
  counter-increment: step;
  padding: 1rem 0;
  border-top: 1px solid rgba(28,27,25,0.15);
}

.dx-process li::before {
  content: "0" counter(step);
  font-size: 0.75rem;
  color: var(--dx-gold);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 0.5rem;
}

.dx-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28,27,25,0.55);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s;
}

.dx-drawer-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.dx-drawer {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(100%, 28rem);
  background: var(--dx-sand);
  z-index: 201;
  padding: 2rem 1.5rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: -12px 0 40px rgba(0,0,0,0.15);
}

.dx-drawer-overlay.is-open .dx-drawer {
  transform: translateX(0);
}

.dx-drawer h2 {
  font-family: var(--dx-font-display);
  font-size: 1.75rem;
  margin: 0 0 0.5rem;
}

.dx-drawer label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  margin: 0.75rem 0 0.35rem;
}

.dx-drawer select,
.dx-drawer input {
  width: 100%;
  min-height: 44px;
  padding: 0.6rem 0.75rem;
  font: inherit;
  border: 1px solid rgba(28,27,25,0.2);
  background: #fff;
}

.dx-drawer-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
}

.dx-footer {
  padding: 2rem clamp(1rem, 4vw, 3rem);
  font-size: 0.875rem;
  color: var(--dx-muted);
  border-top: 1px solid rgba(28,27,25,0.1);
}

.demo-success {
  padding: 1.25rem;
  border: 2px solid var(--dx-gold);
  background: rgba(184,149,108,0.12);
}

.demo-success h3 { font-family: var(--dx-font-display); margin: 0 0 0.5rem; }

.dx-drawer select:user-invalid,
.dx-drawer input:user-invalid {
  border-color: #a33;
}

.dx-btn[aria-busy="true"] { cursor: wait; opacity: 0.7; }

.dx-areas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.dx-areas span {
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(28,27,25,0.15);
  font-size: 0.8125rem;
}
