/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --sidebar-w: 260px;
  --gold: #c9a96e;
  --gold-light: #e8d5a3;
  --gold-dark: #a07840;
  --dark: #0e0e0e;
  --dark-2: #1a1a1a;
  --dark-3: #242424;
  --gray: #6b6b6b;
  --gray-light: #b0b0b0;
  --white: #f8f6f2;
  --white-pure: #ffffff;
  --border: rgba(201,169,110,0.2);
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 8px 40px rgba(0,0,0,0.4);
  --transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--dark);
  color: var(--white);
  overflow-x: hidden;
  min-height: 100vh;
}

/* ===== SIDEBAR ===== */
.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: linear-gradient(180deg, #111 0%, #0a0a0a 100%);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
}

.sidebar-logo {
  padding: 36px 28px 28px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.brand-logo-img {
  display: block;
  width: 156px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
.logo-main {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 0.35em;
  color: var(--gold);
}
.logo-sub {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--gray);
  margin-top: 8px;
  text-transform: uppercase;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 0;
  overflow-y: auto;
}

.nav-divider {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--gray);
  text-transform: uppercase;
  padding: 16px 28px 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 28px;
  color: var(--gray-light);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: var(--transition);
  border-left: 2px solid transparent;
  cursor: pointer;
}
.nav-item svg {
  width: 16px; height: 16px;
  stroke: currentColor; fill: none;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}
.nav-item:hover {
  color: var(--gold-light);
  background: rgba(201,169,110,0.06);
  border-left-color: rgba(201,169,110,0.3);
}
.nav-item.active {
  color: var(--gold);
  background: rgba(201,169,110,0.1);
  border-left-color: var(--gold);
}

.sidebar-contact {
  padding: 20px 28px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.sidebar-phone {
  display: block;
  color: var(--gold);
  font-size: 0.8rem;
  text-decoration: none;
  letter-spacing: 0.05em;
}
.sidebar-phone:hover { color: var(--gold-light); }

/* ===== HAMBURGER ===== */
.hamburger {
  display: none;
  position: fixed;
  top: 18px; left: 18px;
  z-index: 200;
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--gold);
  transition: var(--transition);
  border-radius: 2px;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4px,4px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4px,-4px); }

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 90;
  backdrop-filter: blur(4px);
}

/* ===== MAIN CONTENT ===== */
.main-content {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
}

.section { display: none; }
.section.active { display: block; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, 640px) minmax(380px, 1fr);
  align-content: center;
  column-gap: 36px;
  overflow: hidden;
  padding: 80px 60px 40px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(201,169,110,0.06) 0%, transparent 70%),
              linear-gradient(135deg, #0e0e0e 0%, #161410 100%);
}
.hero-marble-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 80px,
      rgba(201,169,110,0.5) 80px,
      rgba(201,169,110,0.5) 81px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 120px,
      rgba(201,169,110,0.3) 120px,
      rgba(201,169,110,0.3) 121px
    );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.hero-showcase {
  position: relative;
  z-index: 1;
  align-self: center;
  justify-self: end;
  width: min(56vw, 980px);
  border: 1px solid rgba(201,169,110,0.28);
  border-radius: var(--radius);
  overflow: hidden;
  background: #0f0f0f;
  box-shadow: 0 22px 60px rgba(0,0,0,0.45);
}

.hero-showcase-img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 24px;
}
.hero-title em {
  font-style: italic;
  color: var(--gold);
}

.hero-desc {
  font-size: 1rem;
  color: var(--gray-light);
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: 40px;
}

.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats {
  position: relative;
  z-index: 2;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 1px;
  background: var(--border);
  margin-top: 56px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat {
  background: var(--dark-2);
  padding: 28px 24px;
  text-align: center;
}
.stat-num {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--gold);
}
.stat-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--gray);
  margin-top: 4px;
  text-transform: uppercase;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  border: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: var(--dark);
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(201,169,110,0.3); }
.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}
.btn-outline:hover { background: rgba(201,169,110,0.1); }
.btn-lg { padding: 16px 36px; font-size: 0.9rem; }
.btn-whatsapp {
  background: #25D366;
  color: var(--white-pure);
}
.btn-whatsapp:hover { background: #20b356; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(37,211,102,0.3); }
.btn-ghost {
  background: transparent;
  color: var(--gray-light);
  border: 1px solid rgba(255,255,255,0.15);
}
.btn-ghost:hover { color: var(--white); border-color: var(--gold); }

/* ===== SECTION HEADERS ===== */
.section-header { text-align: center; margin-bottom: 56px; }
.section-eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 300;
  color: var(--white);
}

/* ===== FEATURES ===== */
.features-section {
  padding: 80px 60px;
  background: var(--dark-2);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 24px;
}
.feature-card {
  padding: 36px 28px;
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}
.feature-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(201,169,110,0.1);
}
.feature-icon {
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: 16px;
  display: block;
}
.feature-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 0.82rem;
  color: var(--gray);
  line-height: 1.7;
}

/* ===== REFERENCES ===== */
.refs-section { padding: 80px 60px; }
.refs-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 24px;
}
.ref-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--dark-2);
  transition: var(--transition);
  cursor: pointer;
}
.ref-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--gold); }
.ref-img {
  height: 220px;
  background: var(--dark-3);
  position: relative;
  overflow: hidden;
}
.ref-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--ref-color, #c9a96e) 0%, rgba(0,0,0,0.4) 100%);
  opacity: 0.3;
}
.ref-img::after {
  content: 'MARMO';
  position: absolute;
  bottom: 16px; right: 16px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  color: var(--ref-color, #c9a96e);
  opacity: 0.4;
  letter-spacing: 0.2em;
}
/* Marble texture patterns for ref cards */
.ref-img-1 { background: linear-gradient(135deg, #2a2018 0%, #1a1510 50%, #231c12 100%); }
.ref-img-2 { background: linear-gradient(135deg, #151820 0%, #0e1015 50%, #12151a 100%); }
.ref-img-3 { background: linear-gradient(135deg, #1e1c18 0%, #161412 50%, #1a1816 100%); }

.ref-info { padding: 20px 24px; }
.ref-info h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 6px;
}
.ref-info p { font-size: 0.78rem; color: var(--gray); }

/* ===== CTA ===== */
.cta-section {
  padding: 80px 60px;
  background: linear-gradient(135deg, #161208 0%, #0e0c08 50%, #141008 100%);
  border-top: 1px solid var(--border);
  text-align: center;
}
.cta-content h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 300;
  color: var(--white);
  margin-bottom: 16px;
}
.cta-content p {
  color: var(--gray-light);
  font-size: 0.95rem;
  margin-bottom: 32px;
}

/* ===== CONFIGURATOR ===== */
.configurator-wrap {
  display: grid;
  grid-template-columns: 1fr 340px;
  min-height: 100vh;
}

.config-canvas-area {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 40px;
  background: var(--dark);
  border-right: 1px solid var(--border);
}

.config-title-bar {
  margin-bottom: 24px;
}
.config-title-bar .section-eyebrow { text-align: left; margin-bottom: 6px; }
.config-title-bar h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 300;
  color: var(--white);
}

.canvas-container {
  flex: 1;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--dark-3);
  border: 1px solid var(--border);
  min-height: 0;
}

/* Scene: layered CSS marble simulation */
.scene {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

/* SCENE BACKGROUNDS */
.scene-bg {
  position: absolute;
  inset: 0;
  transition: background 0.6s ease;
}

/* Marble surface layer (masked area that changes) */
.scene-marble-layer {
  position: absolute;
  transition: background 0.5s ease, box-shadow 0.5s ease;
}

/* Secondary layer (cabinet color etc) */
.scene-secondary-layer {
  position: absolute;
  transition: background 0.4s ease;
}

/* Scene labels */
.scene-label {
  position: absolute;
  bottom: 16px; left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.7);
  color: var(--gold-light);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  padding: 6px 16px;
  border-radius: 20px;
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  white-space: nowrap;
  text-transform: uppercase;
}

.config-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

/* ===== CONFIG PANEL (RIGHT) ===== */
.config-panel {
  padding: 32px 28px;
  overflow-y: auto;
  background: var(--dark-2);
}

.config-panel-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.layer-group { margin-bottom: 32px; }
.layer-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--gray);
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* MARBLE SWATCHES */
.marble-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 8px;
}

.marble-swatch {
  aspect-ratio: 3/2;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-color: var(--dark-3);
}
.marble-swatch:hover { border-color: var(--gold); transform: scale(1.04); }
.marble-swatch.active { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(201,169,110,0.3); }
.marble-swatch .swatch-name {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  font-size: 0.55rem;
  color: #fff;
  padding: 8px 4px 4px;
  text-align: center;
  letter-spacing: 0.05em;
  opacity: 0;
  transition: opacity 0.2s;
}
.marble-swatch:hover .swatch-name,
.marble-swatch.active .swatch-name { opacity: 1; }

/* SECONDARY OPTIONS */
.secondary-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.secondary-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.8rem;
  color: var(--gray-light);
}
.secondary-option:hover { border-color: var(--gold); color: var(--white); }
.secondary-option.active { border-color: var(--gold); background: rgba(201,169,110,0.08); color: var(--gold); }
.secondary-color-dot {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
}

/* selected summary */
.selection-summary {
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 24px;
  font-size: 0.78rem;
  color: var(--gray-light);
  line-height: 1.8;
}
.selection-summary strong { color: var(--gold); }

/* ===== CONTACT PAGE ===== */
.contact-page { padding: 60px; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  max-width: 960px;
  margin: 0 auto;
}
.contact-info h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--gold);
  margin-bottom: 28px;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: var(--gray-light);
  line-height: 1.6;
}
.contact-item svg {
  width: 18px; height: 18px;
  stroke: var(--gold); fill: none;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0; margin-top: 2px;
}

/* Harita */
.contact-map-wrap {
  max-width: 960px;
  margin: 40px auto 0;
}
.contact-map-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.contact-map-header svg {
  width: 16px; height: 16px;
  stroke: var(--gold); fill: none;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}
.contact-map-header span {
  font-size: 0.82rem;
  color: var(--gray-light);
  flex: 1;
}
.map-directions-btn {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(180,140,60,0.4);
  padding: 6px 14px;
  border-radius: 2px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.map-directions-btn:hover {
  background: rgba(180,140,60,0.12);
  color: var(--gold-light, #d4af70);
}
.contact-map {
  position: relative;
  width: 100%;
  padding-bottom: 40%;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.07);
}
.contact-map iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* ===== FORM ===== */
.contact-form h3, .modal h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--white);
  margin-bottom: 24px;
}
.form-group {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--gray);
  text-transform: uppercase;
}
.form-group input,
.form-group textarea,
.form-group select {
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  transition: border-color 0.2s;
  outline: none;
  resize: none;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--gold); }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(8px);
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  width: 100%;
  max-width: 520px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: none;
  border: none;
  color: var(--gray);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 6px;
  transition: color 0.2s;
}
.modal-close:hover { color: var(--white); }
.modal-summary {
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 20px;
  font-size: 0.8rem;
  color: var(--gray-light);
  line-height: 2;
}
.modal-summary strong { color: var(--gold); }
.modal-btns {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.modal-btns .btn { flex: 1; justify-content: center; }

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 32px; left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--dark-2);
  border: 1px solid #25D366;
  color: #25D366;
  padding: 14px 28px;
  border-radius: 40px;
  font-size: 0.85rem;
  z-index: 400;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
  pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1280px) {
  .features-grid { grid-template-columns: repeat(2,1fr); }
  .hero-stats { grid-template-columns: repeat(2,1fr); }
  .hero {
    grid-template-columns: 1fr;
    row-gap: 20px;
  }
  .hero-title {
    font-size: clamp(2.4rem, 7vw, 4.4rem);
  }
  .hero-content { order: 1; }
  .hero-showcase {
    order: 2;
    width: 100%;
    max-width: 900px;
    justify-self: stretch;
    margin-top: 8px;
  }
  .hero-stats { order: 3; }
  .hero-stats { margin-top: 40px; }
}

@media (max-width: 1180px) and (hover: none) and (pointer: coarse) {
  :root { --sidebar-w: 260px; }
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .hamburger { display: flex; }
  .nav-overlay.open { display: block; }

  .main-content { margin-left: 0; }
  .configurator-wrap { grid-template-columns: 1fr; }
  .config-canvas-area {
    position: relative;
    height: auto;
    min-height: 0;
    padding: 20px 16px 12px;
    border-right: 0;
  }
  .canvas-container { min-height: 58vw; height: 58vw; flex: none; }
  .config-actions { margin-top: 12px; }
  .config-title-bar { padding-left: 54px; }
  .config-panel { padding: 20px 16px 28px; }
}

@media (max-width: 900px) {
  :root { --sidebar-w: 260px; }
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-logo { padding: 26px 20px 20px; }
  .brand-logo-img { width: 136px; }
  .logo-sub { font-size: 0.58rem; letter-spacing: 0.18em; margin-top: 6px; }
  .hamburger { display: flex; }
  .nav-overlay.open { display: block; }
  .main-content { margin-left: 0; }
  .configurator-wrap { grid-template-columns: 1fr; }
  .config-canvas-area { position: relative; height: auto; min-height: 0; padding: 20px 16px 12px; }
  .canvas-container { min-height: 58vw; height: 58vw; flex: none; }
  .config-actions { margin-top: 12px; }
  .config-title-bar { padding-left: 54px; }
  .hero { padding: 80px 28px 40px; }
  .hero-showcase {
    border-radius: 10px;
    margin-top: 4px;
  }
  .features-section, .refs-section, .cta-section { padding: 60px 28px; }
  .contact-page { padding: 40px 28px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-map { padding-bottom: 65%; }
  .contact-map-header { gap: 8px; }
  .contact-map-wrap { margin-top: 28px; }
  .refs-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .sidebar-logo { padding: 22px 18px 16px; }
  .brand-logo-img { width: 124px; }
  .logo-sub { font-size: 0.55rem; letter-spacing: 0.15em; }
  .hero-showcase { margin-top: 0; }
  .hero-stats { grid-template-columns: repeat(2,1fr); }
  .hero-btns { flex-direction: column; }
  .btn { justify-content: center; }
  .form-row { grid-template-columns: 1fr; }
  .modal { padding: 28px 20px; }
  .marble-grid { grid-template-columns: repeat(3,1fr); }
}

/* ===== SCENE — REAL PHOTO LAYERS ===== */
.scene-bg-photo {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
/* Sahne fotoğrafı yüklenmemiş mermerler için doku önizlemesi */
.scene-texture-fill {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  border-radius: inherit;
}
.scene-no-photo-hint {
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.55);
  color: rgba(255,255,255,0.45);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 12px;
  white-space: nowrap;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.08);
  pointer-events: none;
}
.scene-bg-kitchen {
  object-position: center 62%;
}

.scene-dim {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.08);
  pointer-events: none;
}

/* Color tint overlays (mix-blend-mode:color) */
.scene-color-layer {
  position: absolute;
  mix-blend-mode: color;
  opacity: 0.65;
  transition: background 0.35s ease;
  pointer-events: none;
}
.scene-cab-upper  { left:0; right:0; top:10%; height:26%; }
.scene-cab-lower  { left:0; right:0; top:52%; height:32%; }

/* Marble surfaces */
.marble-surface {
  position: absolute;
  background-size: cover;
  background-position: center;
  transition: opacity 0.22s ease;
  overflow: hidden;
}
.marble-surface.surface-fading { opacity: 0; }

.marble-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, transparent 50%, rgba(0,0,0,0.08) 100%);
  pointer-events: none;
}

/* Kitchen */
.scene-counter {
  left:0; right:0;
  top:55%; height:22%;
  transform-origin: top center;
  transform: perspective(600px) rotateX(-22deg);
  box-shadow: 0 4px 24px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.18);
}
.scene-apron   { left:0; right:0; top:69%; height:8%; opacity:0.92; }

/* Table */
.scene-tabletop { left:8%; right:8%; top:40%; height:9%; border-radius:6px; box-shadow:0 8px 40px rgba(0,0,0,0.65),0 2px 8px rgba(0,0,0,0.4); }
.scene-leg { position:absolute; width:2.5%; top:49%; height:20%; border-radius:0 0 4px 4px; }
.scene-leg-l { left:14%; }
.scene-leg-r { right:14%; }

/* Floor */
.scene-floor-grid {
  position: absolute;
  left:0; right:0; bottom:0; height:48%;
  display: grid;
  grid-template-columns: repeat(4,1fr);
  grid-template-rows: repeat(3,1fr);
  gap: 3px;
  transition: background 0.3s ease;
}
.scene-wall-grid {
  position: absolute;
  left:0; right:0; top:28%; height:24%;
  display: grid;
  grid-template-columns: repeat(6,1fr);
  grid-template-rows: repeat(2,1fr);
  gap: 2px;
  transition: background 0.3s ease;
}
.scene-baseboard {
  position: absolute;
  left:0; right:0; bottom:48%; height:2%;
  transition: background 0.3s ease;
}
.floor-tile, .wall-tile {
  position: relative;
  background-size: cover;
  background-position: center;
  transition: opacity 0.22s ease;
}
.floor-tile.surface-fading, .wall-tile.surface-fading { opacity: 0; }

/* Stair */
.scene-tread {
  width: 55%; height: 7%;
  box-shadow: 0 4px 16px rgba(0,0,0,0.55);
}
.scene-riser { width: 55%; height: 9%; }
.scene-handrail-v {
  position: absolute;
  left: 55%; width: 1%; top: 15%; height: 52%;
  background: rgba(220,220,220,0.7);
  border-radius: 2px;
}
.scene-handrail-h {
  position: absolute;
  left: 10%; width: 47%; top: 14%; height: 1.2%;
  background: rgba(220,220,220,0.6);
  border-radius: 2px;
  transform: rotate(15deg);
  transform-origin: left center;
}

/* Windowsill */
.scene-win-frame {
  position: absolute;
  left: 18%; right: 18%; top: 6%; bottom: 32%;
  border: 8px solid;
  border-radius: 4px;
  transition: border-color 0.3s ease;
}
.scene-windowsill {
  left: 14%; right: 14%; bottom: 32%; height: 5%;
  border-radius: 3px 3px 2px 2px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.12);
}

/* Door threshold */
.scene-floor-left  { position:absolute; left:0; width:32%; bottom:0; height:40%; opacity:0.5; transition:background 0.3s; }
.scene-floor-right { position:absolute; right:0; width:32%; bottom:0; height:40%; opacity:0.5; transition:background 0.3s; }
.scene-threshold   { left:28%; right:28%; bottom:0; height:7%; box-shadow:0 -2px 16px rgba(0,0,0,0.6); }

/* Scene label */
.scene-label {
  position: absolute;
  bottom: 16px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0,0,0,0.72);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 7px 18px;
  backdrop-filter: blur(10px);
  white-space: nowrap;
  pointer-events: none;
}
.scene-marble-badge {
  font-size: 0.72rem;
  color: var(--gold-light);
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  letter-spacing: 0.08em;
}
.scene-origin {
  font-size: 0.62rem;
  color: var(--gray);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-left: 1px solid var(--border);
  padding-left: 10px;
}

/* ===== MARBLE GRADIENT FALLBACKS (gösterilir; gerçek fotoğraf üstüne gelir) ===== */
.marble-calacatta-gold  { background-color: #e8d8b0; }
.marble-statuario       { background-color: #e8e0d0; }
.marble-nero-marquina   { background-color: #111111; }
.marble-emprador        { background-color: #7a4a28; }
.marble-crema-marfil    { background-color: #e4d0a0; }
.marble-silver-grey     { background-color: #b0aaa6; }
.marble-rosso-levanto   { background-color: #8a2030; }
.marble-afyon-beyazi    { background-color: #f5f0e8; }
.marble-travertin       { background-color: #d4b880; }

/* ===== BLOG SECTION ===== */
.blog-page { padding: 60px 60px 80px; }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.blog-card {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}
.blog-card:hover {
  border-color: rgba(201,169,110,0.4);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.blog-card-img {
  width: 100%; height: 200px;
  background-size: cover; background-position: center;
  background-color: var(--dark-3);
}
.blog-card-body { padding: 20px; }
.blog-card-date {
  font-size: 0.72rem; color: var(--gold);
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px;
}
.blog-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem; font-weight: 400;
  color: var(--white); margin-bottom: 10px; line-height: 1.4;
}
.blog-card-summary { font-size: 0.82rem; color: var(--gray-light); line-height: 1.6; }
.blog-empty { text-align: center; color: var(--gray); padding: 60px 20px; font-size: 0.9rem; }

/* Blog post modal */
.blog-post-modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.82);
  z-index: 500;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 40px 20px; overflow-y: auto;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.blog-post-modal.open { opacity: 1; pointer-events: all; }

/* ===== FLOATING WHATSAPP ===== */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #fff;
  border-radius: 50px;
  padding: 12px 20px 12px 14px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}
.whatsapp-float:hover {
  background: #20b356;
  box-shadow: 0 6px 28px rgba(37,211,102,0.6);
  transform: translateY(-2px);
}
.whatsapp-float svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}
.whatsapp-float-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
@media (max-width: 900px) {
  .whatsapp-float {
    bottom: 20px;
    left: 16px;
    padding: 0;
    border-radius: 50%;
    width: 52px;
    height: 52px;
    justify-content: center;
  }
  .whatsapp-float-label { display: none; }
}
.blog-post-inner {
  background: var(--dark-2); border: 1px solid var(--border);
  border-radius: var(--radius); width: min(780px, 100%); overflow: hidden;
}
.blog-post-cover {
  width: 100%; height: 320px;
  background-size: cover; background-position: center;
  background-color: var(--dark-3);
}
.blog-post-content { padding: 36px; }
.blog-post-meta {
  font-size: 0.75rem; color: var(--gold);
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px;
}
.blog-post-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem; font-weight: 400; line-height: 1.3; margin-bottom: 20px;
}
.blog-post-body { font-size: 0.92rem; color: var(--gray-light); line-height: 1.8; white-space: pre-wrap; }
.blog-post-inner-wrap { position: relative; }
.blog-post-close {
  position: absolute; top: 20px; right: 20px;
  background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.15);
  color: #fff; width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1.1rem; transition: background 0.2s;
}
.blog-post-close:hover { background: rgba(0,0,0,0.8); }

/* ===== FLOATING WHATSAPP ===== */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #fff;
  border-radius: 50px;
  padding: 12px 20px 12px 14px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}
.whatsapp-float:hover {
  background: #20b356;
  box-shadow: 0 6px 28px rgba(37,211,102,0.6);
  transform: translateY(-2px);
}
.whatsapp-float svg { width: 26px; height: 26px; flex-shrink: 0; }
.whatsapp-float-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
@media (max-width: 900px) {
  .whatsapp-float {
    bottom: 20px; left: 16px;
    padding: 0;
    border-radius: 50%;
    width: 52px; height: 52px;
    justify-content: center;
  }
  .whatsapp-float-label { display: none; }
}
