/* =========================================================================
   ORIGAMI DECOR — DESIGN SYSTEM
   Palette:  --black (Luxury Black) --white (Crisp White) --stone (Warm Gray)
             --gold (Champagne Gold) --ink (deep charcoal surface)
   Type:     Fraunces (display serif, optical sizing) / Inter (body + UI)
   Signature: the "fold" — an origami crease motif used in the preloader,
              section dividers, and hover states.
   ========================================================================= */

:root {
  --black: #0B0B0C;
  --ink: #17161A;
  --white: #FBFAF8;
  --stone: #A8A29C;
  --stone-light: #E9E6E0;
  --gold: #C9A961;
  --gold-dark: #A6873F;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 2rem;
  --space-4: 4rem;
  --space-5: 7rem;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-loading { overflow: hidden; height: 100vh; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  margin: 0 0 var(--space-2);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.75rem, 7vw, 5.5rem); font-optical-sizing: auto; font-weight: 300; }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h3 { font-size: 1.4rem; }
p { line-height: 1.7; color: #35322E; }
a { color: inherit; text-decoration: none; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: var(--space-1);
}
.eyebrow.center, h2.center { text-align: center; }

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

/* focus visibility (accessibility floor) */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* =========================================================================
   PRELOADER — "THE SPLIT EFFECT"
   Sequence: fold-mark assembles (triangles rotate into a diamond) →
   wordmark fades in → both black panels slide apart horizontally,
   revealing the hero beneath. Pure CSS keyframes + one JS class toggle.
   ========================================================================= */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.preloader__panel {
  position: absolute;
  top: 0; bottom: 0;
  width: 50%;
  background: #1C1917;
  transition: transform 2.2s cubic-bezier(0.65, 0, 0.35, 1);
  will-change: transform;
  backface-visibility: hidden;
}
.preloader__panel--left  { left: 0; transform: translateX(0) translateZ(0); }
.preloader__panel--right { right: 0; transform: translateX(0) translateZ(0); }

/* Phones only (not tablets): split the black panels vertically (up/down)
   instead of horizontally — tablets and desktop keep the left/right split. */
@media (max-width: 640px) {
  .preloader__panel {
    width: 100%;
    height: 50%;
    left: 0;
    right: 0;
  }
  .preloader__panel--left  { top: 0; bottom: auto; }
  .preloader__panel--right { top: auto; bottom: 0; }
  .preloader--split .preloader__panel--left  { transform: translateY(-100%) translateZ(0); }
  .preloader--split .preloader__panel--right { transform: translateY(100%) translateZ(0); }
}

.preloader__mark {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  opacity: 1;
  transition: opacity 2.2s cubic-bezier(0.65, 0, 0.35, 1);
}

.preloader__logo-img {
  width: min(520px, 74vw);
  max-height: 260px;
  height: auto;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.72);
  transition: opacity 2.2s cubic-bezier(0.16, 1, 0.3, 1), transform 2.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.preloader__logo-img.is-grown {
  opacity: 1;
  transform: scale(1);
}

/* Loading bar: a soft, transparent gold gradient segment sweeping across a barely-visible track */
.preloader__bar {
  width: min(476px, 80vw);
  height: 2px;
  background: rgba(255,255,255,0.14);
  margin-top: 2.4rem;
  position: relative;
  overflow: hidden;
}
.preloader__bar-fill {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgba(201,169,97,0.9), transparent);
  animation: barSweep 1.9s ease-in-out infinite;
  will-change: transform;
  backface-visibility: hidden;
}
@keyframes barSweep {
  0%   { transform: translateX(-100%) translateZ(0); }
  100% { transform: translateX(250%) translateZ(0); }
}
.fold-mark { width: 168px; height: 168px; }
.fold-mark__tri {
  fill: var(--gold);
  transform-origin: 60px 60px;
  opacity: 0;
  animation: foldIn 0.6s var(--ease) forwards;
}
.fold-mark__tri--1 { animation-delay: 0.05s; }
.fold-mark__tri--2 { animation-delay: 0.20s; }
.fold-mark__tri--3 { animation-delay: 0.35s; }
.fold-mark__tri--4 { animation-delay: 0.50s; }
@keyframes foldIn {
  0%   { opacity: 0; transform: scale(0.2) rotate(-45deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

.preloader__word {
  font-family: var(--font-body);
  color: var(--white);
  font-size: 0.78rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  opacity: 0;
  animation: wordIn 0.6s ease forwards 0.75s;
}
@keyframes wordIn { to { opacity: 0.85; } }

/* JS adds .preloader--split to trigger the reveal after ~1.6s */
.preloader--split .preloader__panel--left  { transform: translateX(-100%); }
.preloader--split .preloader__panel--right { transform: translateX(100%); }
.preloader--split .preloader__mark { opacity: 0; transition-delay: 0s; }
.preloader--done { display: none; }

/* =========================================================================
   SCROLL REVEAL (generic fade/rise-in used across sections)
   ========================================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* =========================================================================
   HEADER / NAV
   ========================================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  background: rgba(11, 11, 12, 0.9);
}
.site-header__inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: var(--space-2) var(--space-3);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: var(--space-3);
}
.brand { display: flex; align-items: center; gap: 0.6rem; color: var(--white); justify-self: center; }
.brand--center { grid-column: 2; }
.brand__mark { width: 26px; height: 26px; color: var(--gold); }
.brand__logo-img { max-height: 64px; width: auto; display: block; }
.brand__word { font-family: var(--font-display); font-size: 1.4rem; letter-spacing: 0.02em; }
.brand__word em { font-style: italic; color: var(--gold); }

.main-nav { display: flex; align-items: center; gap: var(--space-3); }
.main-nav--left { grid-column: 1; justify-self: start; }
.main-nav--right { grid-column: 3; justify-self: end; }
.main-nav a {
  position: relative;
  color: var(--white);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  opacity: 0.88;
  transition: opacity 0.2s ease;
  white-space: nowrap;
  padding-bottom: 4px;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0;
  height: 1px;
  background: var(--white);
  transition: width 0.35s ease;
}
.main-nav a:hover { opacity: 1; }
.main-nav a:hover::after { width: 100%; }
.main-nav--right .btn { flex-shrink: 0; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px;
  grid-column: 3; justify-self: end;
}
.nav-toggle span { width: 22px; height: 1.5px; background: var(--white); }

/* Combined mobile off-canvas drawer (desktop keeps the split left/right nav above) */
.mobile-nav {
  position: fixed; top: 0; right: -100%; height: 100vh; width: min(80vw, 340px);
  background: var(--black); display: flex; flex-direction: column; gap: 1.2rem;
  padding: 6rem var(--space-3) var(--space-3); transition: right 0.4s var(--ease); z-index: 600;
}
.mobile-nav a { color: var(--white); font-size: 0.95rem; }
.mobile-nav.is-open { right: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.7rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.btn--gold { background: var(--gold); color: var(--black); }
.btn--gold:hover { background: var(--gold-dark); }
.btn--ghost-light { border-color: rgba(255,255,255,0.5); color: var(--white); }
.btn--ghost-light:hover { background: rgba(255,255,255,0.1); }
.btn--ghost-dark { border-color: var(--black); color: var(--black); }
.btn--ghost-dark:hover { background: var(--black); color: var(--white); }
.btn--block { width: 100%; margin-top: var(--space-2); }

/* =========================================================================
   HERO
   ========================================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  background: var(--black);
  color: var(--white);
  overflow: hidden;
}
.hero__media {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,11,12,0.15) 0%, rgba(11,11,12,0.75) 100%),
              radial-gradient(circle at 70% 30%, rgba(201,169,97,0.18), transparent 60%),
              #14130f;
}
.hero__content {
  position: relative;
  z-index: 2;
  padding: 0 var(--space-3) var(--space-5);
  max-width: 900px;
}
.hero__sub { color: rgba(255,255,255,0.78); max-width: 46ch; font-size: 1.05rem; }
.hero__actions { display: flex; gap: var(--space-2); margin-top: var(--space-3); flex-wrap: wrap; }
.hero__actions.center { justify-content: center; }
.hero__scroll-cue {
  position: absolute; bottom: var(--space-3); left: 50%; transform: translateX(-50%);
  width: 1px; height: 60px; background: rgba(255,255,255,0.3);
}
.hero__scroll-cue span {
  position: absolute; top: 0; left: -2px; width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold);
  animation: cueDrop 2s ease-in-out infinite;
}
@keyframes cueDrop { 0% { top: 0; opacity: 1; } 90% { opacity: 1; } 100% { top: 55px; opacity: 0; } }

/* =========================================================================
   INTRO / GENERIC EDITORIAL SECTIONS
   ========================================================================= */
section { padding: var(--space-5) var(--space-3); }
.intro__inner, .why-us__inner, .service-area__inner {
  max-width: 780px; margin: 0 auto; text-align: left;
}
.intro__lead { font-size: 1.2rem; color: var(--black); }

/* =========================================================================
   SERVICES GRID
   ========================================================================= */
.services { background: var(--stone-light); }
.services__grid {
  max-width: 1300px; margin: var(--space-4) auto 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: rgba(11,11,12,0.08);
}
.service-card {
  background: var(--white);
  padding: var(--space-4) var(--space-3);
  transition: background 0.3s ease;
}
.service-card__image {
  aspect-ratio: 16/9;
  background-size: cover;
  background-position: center;
  margin: calc(var(--space-4) * -1) calc(var(--space-3) * -1) var(--space-3);
  border-bottom: 1px solid rgba(11,11,12,0.06);
}
.service-card:hover { background: var(--black); }
.service-card:hover h3, .service-card:hover p { color: var(--white); }
.service-card h3 { color: var(--black); transition: color 0.3s ease; }
.service-card p { transition: color 0.3s ease; }

/* =========================================================================
   WHY US
   ========================================================================= */
.why-us { background: var(--black); color: var(--white); }
.why-us h2, .why-us .eyebrow { color: var(--white); }
.why-us .eyebrow { color: var(--gold); }
.why-us__grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3);
  margin-top: var(--space-3);
}
.why-us__grid h4 { color: var(--gold); font-family: var(--font-body); font-size: 0.95rem; letter-spacing: 0.03em; margin-bottom: 0.4rem; }
.why-us__grid p { color: rgba(255,255,255,0.72); }

/* =========================================================================
   BEFORE / AFTER SLIDER
   ========================================================================= */
.before-after { background: var(--white); }
.ba-slider {
  position: relative; max-width: 1100px; margin: var(--space-4) auto 0;
  aspect-ratio: 16/9; overflow: hidden; border-radius: 4px;
  background: var(--stone-light);
}
.ba-slider__after, .ba-slider__before {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.ba-slider__after { background: linear-gradient(135deg, #E9E6E0, #C9A961 120%); }
.ba-slider__before {
  background: linear-gradient(135deg, #2a2924, #0B0B0C 120%);
  clip-path: inset(0 50% 0 0);
}
.ba-slider__range {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: ew-resize; margin: 0;
}
.ba-slider__handle {
  position: absolute; top: 0; bottom: 0; width: 2px; background: var(--white);
  transform: translateX(-1px); pointer-events: none;
}
.ba-slider__handle::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 40px; height: 40px; border-radius: 50%; background: var(--white);
  transform: translate(-50%, -50%);
}
.ba-slider__tag {
  position: absolute; top: var(--space-2); font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 0.4rem 0.8rem; background: rgba(11,11,12,0.55); color: var(--white);
}
.ba-slider__tag--before { left: var(--space-2); }
.ba-slider__tag--after { right: var(--space-2); }

/* =========================================================================
   PROJECTS
   ========================================================================= */
.projects__grid {
  max-width: 1300px; margin: var(--space-4) auto 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3);
}
.project-card__image {
  aspect-ratio: 4/5; background: var(--stone-light); background-size: cover; background-position: center;
  margin-bottom: var(--space-2); transition: transform 0.5s var(--ease);
}
.project-card:hover .project-card__image { transform: scale(1.02); }
.project-card h3 { font-size: 1.15rem; margin-bottom: 0.2rem; }
.project-card span { font-size: 0.8rem; color: var(--stone); }
.empty-state { text-align: center; grid-column: 1 / -1; color: var(--stone); }

/* =========================================================================
   TESTIMONIALS
   ========================================================================= */
.testimonials { background: var(--stone-light); }
.testimonials__track {
  display: flex; gap: var(--space-3); overflow-x: auto; scroll-snap-type: x mandatory;
  max-width: 1300px; margin: var(--space-4) auto 0; padding-bottom: var(--space-1);
}
.testimonial-card {
  flex: 0 0 min(420px, 85vw); scroll-snap-align: start;
  background: var(--white); padding: var(--space-3); margin: 0;
  border-left: 2px solid var(--gold);
}
.testimonial-card p { font-family: var(--font-display); font-size: 1.15rem; font-style: italic; }
.testimonial-card cite { font-size: 0.82rem; color: var(--stone); font-style: normal; }
.testimonial-card__footer { display: flex; align-items: center; gap: 0.7rem; margin-top: 1rem; }
.testimonial-card__photo { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }

/* =========================================================================
   SERVICE AREA / ZIP CHECK
   ========================================================================= */
.service-area { text-align: center; }
.zip-check { margin-top: var(--space-3); }
.zip-check label { display: block; font-size: 0.85rem; margin-bottom: 0.6rem; }
.zip-check__row { display: flex; gap: 0.6rem; justify-content: center; }
.zip-check__row input {
  padding: 0.85rem 1rem; border: 1px solid var(--stone); border-radius: 2px; font-size: 1rem; width: 200px;
}

/* =========================================================================
   FINAL CTA
   ========================================================================= */
.final-cta { background: var(--black); color: var(--white); text-align: center; }
.final-cta h2 { color: var(--white); }
.final-cta p { color: rgba(255,255,255,0.75); max-width: 50ch; margin: 0 auto; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.8); padding: var(--space-4) var(--space-3) var(--space-2); }
.site-footer__inner {
  max-width: 1300px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-3);
}
.site-footer h4 { color: var(--white); font-family: var(--font-body); font-size: 0.85rem; letter-spacing: 0.05em; margin-bottom: var(--space-2); }
.site-footer a { display: block; color: rgba(255,255,255,0.65); font-size: 0.88rem; margin-bottom: 0.6rem; }
.site-footer a:hover { color: var(--gold); }
.site-footer__brand .brand__word { color: var(--white); }
.footer-logo-img { max-height: 34px; width: auto; display: block; margin-bottom: 0.8rem; }
.site-footer__bottom {
  max-width: 1300px; margin: var(--space-3) auto 0; padding-top: var(--space-2);
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; font-size: 0.78rem; color: rgba(255,255,255,0.5);
  flex-wrap: wrap; gap: 0.5rem;
}

/* =========================================================================
   MODAL (Consultation Form)
   ========================================================================= */
.modal { position: fixed; inset: 0; z-index: 800; display: none; }
.modal.is-open { display: block; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(11,11,12,0.6); backdrop-filter: blur(2px); }
.modal__panel {
  position: relative; z-index: 2; max-width: 640px; margin: 5vh auto; max-height: 90vh; overflow-y: auto;
  background: var(--white); padding: var(--space-3); border-radius: 4px;
}
.modal__close { position: absolute; top: var(--space-2); right: var(--space-2); background: none; border: 0; font-size: 1.6rem; cursor: pointer; }
.modal__sub { color: var(--stone); font-size: 0.92rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); margin-bottom: var(--space-2); }
.form-row--services { display: flex; flex-wrap: wrap; gap: var(--space-2); border: 0; padding: 0; }
.form-row--services legend { font-size: 0.85rem; margin-bottom: 0.4rem; width: 100%; }
label { display: block; font-size: 0.85rem; color: var(--black); }
input, select, textarea {
  width: 100%; padding: 0.7rem 0.85rem; margin-top: 0.35rem;
  border: 1px solid var(--stone); border-radius: 2px; font-family: var(--font-body); font-size: 0.95rem;
}
.checkbox { display: flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; }
.checkbox input { width: auto; margin-top: 0; }
.form-status { font-size: 0.85rem; min-height: 1.2em; margin-top: 0.5rem; }
.form-status[data-state="ok"] { color: #2E7D32; }
.form-status[data-state="error"] { color: #C0392B; }

/* =========================================================================
   RESPONSIVE — mobile-first fixes (this is the layer decolux.com.tr lacks)
   ========================================================================= */
@media (max-width: 960px) {
  .main-nav--left, .main-nav--right { display: none; }
  .site-header__inner { grid-template-columns: 1fr auto 1fr; }
  .nav-toggle { display: flex; }
  .services__grid, .projects__grid { grid-template-columns: 1fr; }
  .why-us__grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
  h1 { font-size: clamp(2.2rem, 10vw, 3.2rem); }
}
@media (max-width: 560px) {
  section { padding: var(--space-4) var(--space-2); }
  .site-footer__inner { grid-template-columns: 1fr; }
  .zip-check__row { flex-direction: column; align-items: stretch; }
  .zip-check__row input { width: 100%; }
}
