/* ==========================================================
   WoodAtHome – Stylesheet  (theme: real wood, warm & crafted)
   ========================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

:root {
  --walnut:      #2B1A0F;
  --wood-dark:   #3B2314;
  --wood-mid:    #6B3F22;
  --wood-warm:   #9C6B3C;
  --wood-light:  #C4935A;
  --wood-pale:   #E8C99A;
  --wood-cream:  #F4ECDF;
  --bg:          #FBF7F0;
  --text:        #22160D;
  --text-muted:  #7A6856;
  --white:       #FFFFFF;
  --shadow:      0 4px 24px rgba(59,35,20,.10);
  --shadow-lg:   0 14px 48px rgba(59,35,20,.18);
  --radius:      12px;
  --radius-lg:   20px;
  --transition:  .3s cubic-bezier(.4,0,.2,1);

}

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--wood-light); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 300;
  background: var(--walnut); color: var(--white); padding: 10px 16px; border-radius: 8px; text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---- TYPOGRAPHY ---- */
h1,h2,h3,h4,h5 { font-family: 'Playfair Display', serif; line-height: 1.2; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); font-weight: 700; letter-spacing: -.01em; }
h1 em { font-style: italic; font-weight: 500; color: var(--wood-pale); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 600; }
h3 { font-size: 1.3rem; font-weight: 600; }
p  { color: var(--text-muted); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.section-tag {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--wood-warm); margin-bottom: 14px;
}
.section-tag::before { content: ''; width: 30px; height: 1px; background: currentColor; opacity: .6; }
.section-header .section-tag::after { content: ''; width: 30px; height: 1px; background: currentColor; opacity: .6; }

.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { margin-bottom: 16px; }
.section-sub { max-width: 560px; margin: 0 auto; font-size: 1.05rem; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 10px;
  font-family: 'Inter', sans-serif; font-size: .95rem; font-weight: 600;
  cursor: pointer; border: 2px solid transparent; text-decoration: none;
  transition: var(--transition);
}
.btn-primary { background: var(--wood-warm); color: var(--white); border-color: var(--wood-warm); box-shadow: 0 6px 18px rgba(156,107,60,.35); }
.btn-primary:hover { background: var(--wood-mid); border-color: var(--wood-mid); transform: translateY(-2px); }
.btn-primary:disabled { opacity: .7; cursor: wait; transform: none; }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.btn-outline:hover { background: rgba(255,255,255,.15); border-color: var(--white); }
.btn-full { width: 100%; }

/* ---- NAVBAR ---- */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 14px 0; transition: var(--transition); }
.navbar.scrolled {
  background: #6b4a30 url(../images/wood/bar.webp) 0 0 / 560px auto repeat;
  border-bottom: 1px solid rgba(0,0,0,.35);
  padding: 8px 0;
  box-shadow: 0 6px 24px rgba(0,0,0,.28);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; text-decoration: none; }
.logo-img { height: 76px; width: auto; transition: var(--transition); filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); }
.navbar.scrolled .logo-img { height: 58px; }
.logo-img-footer { height: 110px; opacity: .92; }

.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a { color: rgba(255,255,255,.97); text-decoration: none; font-size: .9rem; font-weight: 500; transition: var(--transition); text-shadow: 0 1px 4px rgba(0,0,0,.7); }
.nav-links a:hover { color: var(--wood-pale); }
.nav-links .btn-nav { background: #2B1A0F; color: var(--white); padding: 9px 20px; border-radius: 9px; text-shadow: none; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.nav-links .btn-nav:hover { background: var(--wood-mid); color: var(--white); }

.nav-links { margin-left: auto; }
.nav-inner .lang-toggle { margin-left: 22px; flex-shrink: 0; }
.lang-toggle { display: inline-flex; border: 1.5px solid rgba(255,255,255,.6); border-radius: 999px; overflow: hidden; background: rgba(0,0,0,.18); cursor: pointer; padding: 0; font: 700 .72rem 'Inter', sans-serif; letter-spacing: .08em; }
.lang-toggle span { padding: 6px 10px; color: rgba(255,255,255,.85); text-shadow: 0 1px 2px rgba(0,0,0,.4); transition: var(--transition); }
.lang-toggle span.on { background: var(--white); color: var(--wood-dark); text-shadow: none; }
.lang-toggle:hover { border-color: var(--white); }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.hamburger span { display: block; width: 26px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); }



/* ---- HERO ---- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; background: var(--walnut); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(95deg, rgba(24,12,5,.92) 0%, rgba(24,12,5,.7) 42%, rgba(24,12,5,.3) 100%),
    linear-gradient(0deg, rgba(24,12,5,.75) 0%, transparent 35%);
}
.hero-content { position: relative; max-width: 700px; padding: 140px 24px 150px; margin-left: calc((100vw - 1200px) / 2 + 24px); }
@media (max-width: 1248px) { .hero-content { margin-left: 0; max-width: 700px; } }
.hero-tag { font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--wood-pale); margin-bottom: 22px; display: flex; align-items: center; gap: 12px; }
.hero-tag::before { content: ''; width: 36px; height: 1px; background: var(--wood-pale); }
.hero h1 { color: var(--white); margin-bottom: 24px; }
.hero-sub { color: rgba(255,255,255,.82); font-size: 1.1rem; max-width: 520px; margin-bottom: 40px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-facts {
  position: absolute; left: 0; right: 0; bottom: 0; list-style: none;
  display: flex; justify-content: center; flex-wrap: wrap; gap: 0;
  background: rgba(24,12,5,.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(232,201,154,.2);
}
.hero-facts li { padding: 18px 40px; text-align: center; border-left: 1px solid rgba(232,201,154,.15); }
.hero-facts li:first-child { border-left: 0; }
.hero-facts strong { display: block; font-family: 'Playfair Display', serif; font-size: 1.35rem; color: var(--wood-pale); line-height: 1.2; }
.hero-facts span { font-size: .78rem; color: rgba(255,255,255,.7); letter-spacing: .04em; }

/* ---- ABOUT ---- */
.about { padding: 120px 0; background: var(--bg); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-visual { position: relative; height: 480px; }
.av { position: absolute; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); border: 5px solid var(--white); background: var(--wood-pale); }
.av img { width: 100%; height: 100%; object-fit: cover; }
.av1 { width: 270px; height: 360px; top: 0; left: 0; }
.av2 { width: 250px; height: 190px; bottom: 28px; right: 0; }
.av3 { width: 170px; height: 120px; top: 42px; right: 36px; }
.about-badge {
  position: absolute; bottom: 70px; left: 150px; z-index: 2;
  background: linear-gradient(145deg, #2B1509, #4a2a15); color: var(--wood-pale);
  border-radius: var(--radius); padding: 16px 22px 16px 16px;
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 12px;
}
.about-badge .rings { width: 48px; height: 48px; color: var(--wood-light); flex-shrink: 0; }
.badge-num { display: block; font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; line-height: 1; color: var(--white); }
.badge-label { display: block; font-size: .78rem; font-weight: 500; opacity: .85; }

.about-text h2 { margin-bottom: 20px; }
.about-text p { margin-bottom: 16px; font-size: 1.02rem; }
.about-text p strong { color: var(--wood-mid); }
.owner { display: flex; align-items: center; gap: 14px; margin-top: 30px; padding-top: 26px; border-top: 1px solid rgba(59,35,20,.12); }
.owner svg { width: 34px; height: 34px; color: var(--wood-warm); flex-shrink: 0; }
.owner strong { display: block; font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--text); }
.owner em { font-style: normal; font-size: .85rem; color: var(--text-muted); }

/* ---- SERVICES ---- */
.services { padding: 110px 0; background: var(--wood-cream); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid rgba(59,35,20,.07); box-shadow: 0 2px 12px rgba(59,35,20,.05);
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.sc-photo { aspect-ratio: 16 / 10; overflow: hidden; background: var(--wood-pale); position: relative; }
.sc-photo::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: linear-gradient(90deg, var(--wood-mid), var(--wood-light), var(--wood-warm)); }
.sc-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.service-card:hover .sc-photo img { transform: scale(1.06); }
.sc-body { padding: 26px 28px 30px; }
.sc-body h3 { margin-bottom: 10px; }
.sc-body p { font-size: .93rem; margin-bottom: 16px; }
.service-list { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.service-list li { font-size: .86rem; color: var(--text-muted); padding-left: 20px; position: relative; }
.service-list li::before { content: ''; position: absolute; left: 0; top: 7px; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--wood-warm); }

/* ---- PROCESS ---- */
.process { padding: 100px 0; background: linear-gradient(145deg, #2B1509, #4a2a15); position: relative; }
.process .section-header.light .section-tag { color: var(--wood-pale); }
.process .section-header.light h2 { color: var(--white); }
.process-steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; position: relative; }
.step {
  background: rgba(20,10,4,.55); border: 1px solid rgba(232,201,154,.16);
  border-radius: var(--radius); padding: 32px 24px; transition: var(--transition); position: relative;
  backdrop-filter: blur(3px);
}
.step:hover { background: rgba(20,10,4,.72); border-color: rgba(232,201,154,.35); transform: translateY(-4px); }
.step:not(:last-child)::after { content: ''; position: absolute; top: 50px; right: -21px; width: 22px; height: 2px; background: repeating-linear-gradient(90deg, var(--wood-light) 0 4px, transparent 4px 8px); }
.step-num { font-family: 'Playfair Display', serif; font-size: 2.6rem; font-weight: 700; color: var(--wood-pale); opacity: .5; line-height: 1; margin-bottom: 16px; }
.step h4 { color: var(--white); margin-bottom: 10px; font-size: 1.08rem; }
.step p { color: rgba(255,255,255,.7); font-size: .9rem; }

/* ---- GALLERY ---- */
.gallery { padding: 110px 0; }
.gallery-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: -20px 0 34px; }
.chip {
  background: var(--white); color: var(--wood-mid); border: 1.5px solid rgba(107,63,34,.2);
  border-radius: 999px; padding: 8px 18px; font: 600 .84rem 'Inter', sans-serif; cursor: pointer; transition: var(--transition);
}
.chip:hover { border-color: var(--wood-warm); }
.chip.active { background: var(--wood-mid); border-color: var(--wood-mid); color: var(--white); }

.gallery-grid { column-count: 3; column-gap: 16px; }
.gi {
  display: block; width: 100%; margin: 0 0 16px; padding: 0; border: 0; break-inside: avoid;
  position: relative; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; background: var(--wood-pale);
  box-shadow: 0 2px 10px rgba(59,35,20,.1); font: inherit; text-align: left;
}
.gi[hidden] { display: none !important; }
.gi img { width: 100%; height: auto; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.gi:hover img, .gi:focus-visible img { transform: scale(1.05); }
.gi-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px;
  background: linear-gradient(0deg, rgba(20,8,2,.82), transparent);
  color: var(--white); font-size: .88rem; font-weight: 500;
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  opacity: 0; transform: translateY(8px); transition: var(--transition);
}
.gi:hover .gi-cap, .gi:focus-visible .gi-cap { opacity: 1; transform: none; }
.gi-tag { background: var(--wood-warm); color: var(--white); font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: 4px; }
@media (hover: none) { .gi-cap { opacity: 1; transform: none; } }

/* Lightbox */
.lightbox { position: fixed; inset: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--white); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(15,8,3,.94); }
.lightbox figure { max-width: 92vw; text-align: center; }
.lightbox img { max-width: 92vw; max-height: 80vh; width: auto; height: auto; margin: 0 auto; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox figcaption { margin-top: 14px; color: rgba(255,255,255,.8); font-size: .92rem; }
.lb-close, .lb-nav { position: absolute; background: rgba(255,255,255,.1); color: var(--white); border: 1px solid rgba(255,255,255,.2); border-radius: 50%; width: 46px; height: 46px; font-size: 1.7rem; line-height: 1; cursor: pointer; transition: var(--transition); display: grid; place-items: center; }
.lb-close:hover, .lb-nav:hover { background: var(--wood-warm); border-color: var(--wood-warm); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* ---- 3D DESIGNER ---- */
.kitchen3d-section { padding: 110px 0 90px; background: linear-gradient(180deg, var(--bg) 0%, var(--wood-cream) 100%); }

.k3d-wrapper { display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: #FBF7F2; border: 1px solid rgba(59,35,20,.1); }

.k3d-rooms { display: flex; gap: 4px; padding: 10px 12px 0; background: #6b4a30 url(../images/wood/bar.webp) 0 0 / 560px auto repeat; overflow-x: auto; }
.k3d-room {
  display: inline-flex; align-items: center; gap: 9px; padding: 13px 24px; cursor: pointer;
  background: rgba(20,10,4,.38); color: rgba(255,255,255,.95); border: 0; border-radius: 12px 12px 0 0; text-shadow: 0 1px 3px rgba(0,0,0,.6);
  font: 600 .92rem 'Inter', sans-serif; white-space: nowrap; transition: var(--transition);
}
.k3d-room svg { width: 20px; height: 20px; }
.k3d-room:hover { background: rgba(255,255,255,.16); color: var(--white); }
.k3d-room.active { background: #F4EBDD; color: var(--wood-dark); }

.k3d-canvas-wrap {
  position: relative; width: 100%; height: 640px; overflow: hidden;
  background: radial-gradient(ellipse 70% 80% at 50% 35%, #FBF4E8 0%, #E9DBC3 70%, #DCC9AA 100%);
  transition: background .8s ease;
}
.is-night .k3d-canvas-wrap { background: radial-gradient(ellipse 70% 80% at 50% 35%, #2E3550 0%, #171B2D 70%, #0E111C 100%); }
.k3d-canvas-wrap canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.k3d-canvas-wrap canvas:active { cursor: grabbing; }

.k3d-loading { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; background: rgba(244,236,223,.92); }
.k3d-loading p { font-size: .9rem; font-weight: 500; color: var(--wood-warm); letter-spacing: .05em; text-align: center; max-width: 320px; }
.k3d-spinner { width: 44px; height: 44px; border: 3px solid rgba(156,107,60,.2); border-top-color: var(--wood-warm); border-radius: 50%; animation: k3dSpin .8s linear infinite; }
@keyframes k3dSpin { to { transform: rotate(360deg); } }

.k3d-tools { position: absolute; top: 14px; right: 14px; z-index: 2; display: flex; gap: 8px; }
.k3d-tools button {
  display: inline-flex; align-items: center; gap: 7px; height: 42px; min-width: 42px; padding: 0 12px; justify-content: center;
  background: rgba(43,26,15,.78); color: var(--white); border: 1px solid rgba(255,255,255,.14); border-radius: 11px;
  font: 600 .8rem 'Inter', sans-serif; cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: var(--transition);
}
.k3d-tools button svg { width: 19px; height: 19px; }
.k3d-tools button:hover { background: var(--wood-warm); }
.k3d-tools button.on { background: var(--wood-warm); border-color: var(--wood-light); }

.k3d-toast {
  position: absolute; left: 50%; bottom: 52px; z-index: 2; transform: translate(-50%, 10px);
  background: rgba(43,26,15,.9); color: var(--white); padding: 10px 18px; border-radius: 999px; font-size: .86rem; font-weight: 500;
  opacity: 0; pointer-events: none; transition: var(--transition); white-space: nowrap; max-width: 92%; overflow: hidden; text-overflow: ellipsis;
}
.k3d-toast.show { opacity: 1; transform: translate(-50%, 0); }
.k3d-hint {
  position: absolute; left: 14px; bottom: 12px; z-index: 1; font-size: .72rem; color: rgba(59,35,20,.7);
  background: rgba(255,255,255,.6); backdrop-filter: blur(4px); padding: 5px 12px; border-radius: 999px; pointer-events: none;
}
.k3d-hint span { color: var(--wood-mid); font-weight: 700; }
.is-night .k3d-hint { background: rgba(0,0,0,.35); color: rgba(255,255,255,.6); }
.is-night .k3d-hint span { color: var(--wood-pale); }

.k3d-navbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; background: #6b4a30 url(../images/wood/bar.webp) 0 0 / 560px auto repeat; flex-wrap: wrap; }
.k3d-views { display: flex; gap: 8px; flex-wrap: wrap; }
.k3d-btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px;
  background: rgba(20,10,4,.42); color: rgba(255,255,255,.95); text-shadow: 0 1px 3px rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.13);
  border-radius: 9px; font: 500 .82rem 'Inter', sans-serif; cursor: pointer; transition: var(--transition);
}
.k3d-btn svg { width: 16px; height: 16px; }
.k3d-btn:hover, .k3d-btn.active { background: var(--wood-warm); color: var(--white); border-color: var(--wood-warm); }
.k3d-action { border-color: rgba(232,201,154,.4); color: var(--wood-pale); }

/* Material editor */
.k3d-editor { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); background: #FBF7F2; }
.k3d-group { padding: 20px 24px 18px; border-bottom: 1px solid rgba(59,35,20,.08); border-right: 1px solid rgba(59,35,20,.08); min-width: 0; }
.k3d-group.pulse { animation: k3dPulse 1.4s ease; }
@keyframes k3dPulse { 0%,60% { background: rgba(196,147,90,.22); box-shadow: inset 0 0 0 2px var(--wood-warm); } 100% { background: transparent; box-shadow: inset 0 0 0 2px transparent; } }
.k3d-editor-label { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--wood-mid); }
.k3d-editor-label em { font-style: normal; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--text-muted); font-size: .82rem; }
.k3d-swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.k3d-swatch { display: flex; flex-direction: column; align-items: center; gap: 5px; background: none; border: 2px solid transparent; border-radius: 10px; padding: 5px 6px; cursor: pointer; transition: var(--transition); font: inherit; }
.k3d-swatch:hover { border-color: var(--wood-light); background: rgba(156,107,60,.06); }
.k3d-swatch.active { border-color: var(--wood-warm); background: rgba(156,107,60,.1); }
.sw-preview { display: block; width: 46px; height: 46px; border-radius: 8px; background-size: cover; background-position: center; box-shadow: 0 2px 6px rgba(0,0,0,.18), inset 0 0 0 1px rgba(0,0,0,.08); }
.sw-label { font-size: .68rem; font-weight: 500; color: var(--text-muted); max-width: 66px; text-align: center; line-height: 1.15; min-height: 2.3em; display: flex; align-items: flex-start; justify-content: center; }
.k3d-swatch.active .sw-label, .k3d-swatch:hover .sw-label { color: var(--wood-mid); }
.k3d-swatch-color { position: relative; }
.k3d-swatch-color input[type="color"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }
.sw-color-preview { background: conic-gradient(#e74c3c, #e67e22, #f1c40f, #2ecc71, #3498db, #9b59b6, #e74c3c); }
.k3d-swatch-color.active .sw-color-preview { background: var(--picked, #9C6B3C); }

.k3d-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 24px; background: var(--wood-cream); border-top: 1px solid rgba(59,35,20,.1); flex-wrap: wrap; }
.k3d-summary { font-size: .82rem; color: var(--text-muted); flex: 1 1 360px; line-height: 1.5; }
.k3d-note { text-align: center; font-size: .8rem; margin-top: 18px; }
.k3d-fail { color: var(--wood-mid); font-size: .95rem; }

/* touch devices: the 3D is "frozen" until tapped, so a finger on it scrolls the page instead of trapping it */
.k3d-canvas-wrap, .k3d-gate-btn { -webkit-tap-highlight-color: transparent; }
.k3d-gate {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 10px;
  padding: 0 16px 26px; touch-action: pan-y; cursor: pointer;
  background: linear-gradient(180deg, rgba(43,26,15,0) 45%, rgba(43,26,15,.34) 100%);
}
.k3d-gate[hidden] { display: none; }
.k3d-gate-btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border: 0; border-radius: 999px; background: rgba(43,26,15,.93); color: var(--white); font: 600 .95rem 'Inter', sans-serif; box-shadow: 0 8px 24px rgba(0,0,0,.35); cursor: pointer; }
.k3d-gate-btn svg { width: 22px; height: 22px; }
.k3d-gate p { color: var(--white); font-size: .76rem; text-shadow: 0 1px 4px rgba(0,0,0,.65); text-align: center; }
.k3d-tools [data-tool="scroll"] { display: none; }
.k3d-live .k3d-tools [data-tool="scroll"] { display: inline-flex; }
.is-fs .k3d-tools [data-tool="scroll"] { display: none !important; }

/* iPhone Safari has no element fullscreen → CSS fullscreen */
.k3d-wrapper.pseudo-fs { position: fixed; inset: 0; z-index: 300; width: 100vw; height: 100vh; height: 100dvh; max-width: none; border: 0; border-radius: 0; box-shadow: none; }
.k3d-noscroll { overflow: hidden; }

/* fullscreen */
.k3d-wrapper.is-fs { border-radius: 0; height: 100%; }
.k3d-wrapper.is-fs .k3d-canvas-wrap { flex: 1; height: auto; min-height: 0; }
.k3d-wrapper.is-fs .k3d-editor { max-height: 34vh; overflow-y: auto; }

/* ---- COMPLETE SOLUTIONS ---- */
.solutions { padding: 80px 0; text-align: center; background: linear-gradient(145deg, #2B1509, #4a2a15); }
.solutions .section-tag { color: var(--wood-pale); }
.solutions h2 { color: var(--white); margin-bottom: 30px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chips li { padding: 9px 20px; border-radius: 999px; font-size: .9rem; font-weight: 500; color: var(--wood-pale); border: 1px solid rgba(232,201,154,.35); background: rgba(20,10,4,.35); }

/* ---- CONTACT ---- */
.contact { padding: 110px 0; background: var(--bg); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: start; }
.contact-info h2 { margin: 6px 0 20px; }
.contact-info > p { margin-bottom: 38px; font-size: 1.02rem; }
.contact-details { display: flex; flex-direction: column; gap: 22px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.ci-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--wood-cream); color: var(--wood-warm); display: grid; place-items: center; flex-shrink: 0; border: 1px solid rgba(156,107,60,.2); }
.ci-icon svg { width: 21px; height: 21px; }
.contact-item strong { display: block; font-size: .9rem; color: var(--text); margin-bottom: 2px; }
.contact-item p { font-size: .95rem; line-height: 1.6; }
.contact-item a { color: var(--wood-mid); text-decoration: none; font-weight: 500; }
.contact-item a:hover { text-decoration: underline; }

.contact-form-wrap { background: var(--white); border-radius: var(--radius-lg); padding: 44px; box-shadow: var(--shadow-lg); border-top: 5px solid var(--wood-warm); }
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: .85rem; font-weight: 600; color: var(--text); }
.form-group input, .form-group select, .form-group textarea {
  padding: 12px 16px; border: 1.5px solid rgba(59,35,20,.15); border-radius: 9px;
  font: 400 .95rem 'Inter', sans-serif; color: var(--text); background: var(--bg); transition: var(--transition); outline: none; width: 100%;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--wood-warm); box-shadow: 0 0 0 3px rgba(156,107,60,.14); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: .75rem; color: var(--text-muted); text-align: center; margin-top: -6px; }
.form-error { color: #8a2a1c; background: #fbe9e5; border: 1px solid #f0c4ba; padding: 10px 14px; border-radius: 8px; font-size: .88rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-success { text-align: center; padding: 40px 20px; }
.success-icon { width: 64px; height: 64px; background: linear-gradient(135deg, var(--wood-mid), var(--wood-warm)); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin: 0 auto 20px; }
.form-success h3 { color: var(--text); margin-bottom: 8px; }

/* ---- FOOTER ---- */
.footer { background: linear-gradient(rgba(20,10,4,.4), rgba(20,10,4,.4)), #6b4a30 url(../images/wood/bar.webp) 0 0 / 560px auto repeat; padding: 64px 0 0; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; padding-bottom: 50px; }
.footer-brand p { color: rgba(255,255,255,.62); font-size: .9rem; margin-top: 8px; max-width: 300px; }
.footer-links h5 { color: var(--wood-pale); font-family: 'Inter', sans-serif; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 18px; }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-links a { color: rgba(255,255,255,.65); font-size: .9rem; text-decoration: none; transition: var(--transition); }
.footer-links a:hover { color: var(--wood-pale); }
.footer-bottom { border-top: 1px solid rgba(232,201,154,.14); padding: 20px 24px; text-align: center; background: rgba(0,0,0,.2); }
.footer-bottom p { color: rgba(255,255,255,.45); font-size: .78rem; }

/* ---- REVEAL ---- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1000px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .step:not(:last-child)::after { display: none; }
  .gallery-grid { column-count: 2; }
  .k3d-canvas-wrap { height: 520px; }
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 56px; }
  .about-visual { height: 420px; max-width: 520px; margin: 0 auto; width: 100%; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  .k3d-hint { display: none; }
  .k3d-editor { grid-template-columns: 1fr; }
  .k3d-group { border-right: 0; padding: 16px 18px; }
}
@media (max-width: 720px) {
  html { scroll-padding-top: 12px; }
  .navbar, .navbar.scrolled { position: absolute; background: none; box-shadow: none; border-bottom: 0; padding: 14px 0; }
  .navbar.scrolled .logo-img { height: 62px; }
  .nav-links {
    position: fixed; top: 0; right: -100%; width: 78vw; max-width: 320px; height: 100vh; height: 100dvh;
    background: linear-gradient(145deg, #2B1509, #4a2a15);
    flex-direction: column; align-items: flex-start; padding: 90px 32px 40px; gap: 26px;
    transition: right var(--transition); box-shadow: -4px 0 24px rgba(0,0,0,.4);
  }
  .nav-links.open { right: 0; }
  .nav-links a { font-size: 1.05rem; }
  .hamburger { display: flex; z-index: 101; margin-left: 12px; }
  .nav-inner .lang-toggle { margin-left: auto; position: relative; z-index: 101; }
  .logo-img { height: 62px; }
  .hero-content { padding: 110px 20px 190px; }
  .hero-facts li { padding: 12px 18px; flex: 1 1 33%; }
  .hero-facts strong { font-size: 1.02rem; }
  .hero-facts span { font-size: .7rem; }
  .services-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 30px 22px; }
  .process-steps { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
  .footer-brand { grid-column: span 1; }
  .gallery-grid { column-gap: 10px; }
  .gi { margin-bottom: 10px; }
  .k3d-canvas-wrap { height: min(68vh, 560px); height: min(68svh, 560px); min-height: 340px; }
  .k3d-tools button span { display: none; }
  /* compact, swipeable rows so the editor is not endlessly long */
  .k3d-swatches { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; padding-bottom: 6px; margin-right: -18px; }
  .k3d-swatch { flex: 0 0 auto; scroll-snap-align: start; }
  .k3d-views { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; padding-bottom: 2px; }
  .k3d-btn { flex: 0 0 auto; white-space: nowrap; }
  .k3d-navbar { padding: 10px 12px; }
  .k3d-group { padding: 14px 18px 8px; }
  /* phone fullscreen: give the room the whole screen (tabs, views and tools stay) */
  .k3d-wrapper.is-fs .k3d-editor, .k3d-wrapper.is-fs .k3d-cta { display: none; }
  .k3d-tools { top: 10px; right: 10px; gap: 6px; }
  .k3d-tools button { height: 38px; min-width: 38px; padding: 0 9px; }
  .k3d-room { padding: 12px 16px; font-size: .84rem; }
  .k3d-btn { padding: 7px 12px; font-size: .78rem; }
  .sw-preview { width: 40px; height: 40px; }
  .k3d-cta .btn { width: 100%; }
  .av1 { width: 200px; height: 270px; }
  .av2 { width: 190px; height: 150px; }
  .av3 { width: 130px; height: 96px; top: 30px; right: 10px; }
  .about-badge { left: 90px; bottom: 56px; }
}
@media (max-width: 480px) { .gallery-grid { column-count: 1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
