/*
Theme Name: interiorglow
Theme URI: https://interiorglow.online
Author: interiorglow
Author URI: https://interiorglow.online
Description: Deutsches WordPress-Theme für Innenarchitektur. Atelier in Tujetsch — Startseite, Projekte, Studio, Leistungen, Kontakt.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: interiorglow
Tags: one-page, custom-menu, featured-images, translation-ready, portfolio
*/

:root {
  --paper: #efece6;
  --bone: #f7f4ee;
  --ink: #141414;
  --mute: #5f5a53;
  --rule: #d8d2c8;
  --accent: #b45309;
  --accent-deep: #9a3f07;
  --accent-soft: #f3e2cc;
  --dark: #161513;
  --dark-2: #211f1c;
  --header-h: 76px;
  --font-display: "Syne", "Avenir Next", system-ui, sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

body.nav-open,
body.lightbox-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font-family: inherit;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.container {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
}

h1,
h2,
h3,
.logo-word,
.footer-logo,
.error-code {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.kicker {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}

.kicker-light {
  color: #e8b07a;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bone);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 999px;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-line {
  background: transparent;
  color: var(--ink);
}

.btn-line:hover {
  background: var(--ink);
  color: var(--bone);
  border-color: var(--ink);
}

.btn-full {
  width: 100%;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

#projects,
#about,
#service,
#contact {
  scroll-margin-top: calc(var(--header-h) + 10px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(239, 236, 230, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled,
.error404 .site-header,
body.nav-open .site-header {
  border-bottom-color: var(--rule);
}

.header-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  width: min(1280px, calc(100% - 40px));
  height: 100%;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  color: var(--accent);
  display: grid;
  place-items: center;
}

.logo-word {
  font-size: 22px;
  letter-spacing: -0.06em;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}

.primary-nav ul {
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.primary-nav a.is-active,
.primary-nav a:hover {
  color: var(--accent);
}

.nav-phone {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding-left: 22px;
  border-left: 1px solid var(--rule);
}

.header-cta {
  min-height: 42px;
  padding: 0 18px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--ink);
  background: transparent;
  border-radius: 50%;
  position: relative;
  cursor: pointer;
}

.nav-toggle span:not(.screen-reader-text) {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1.5px;
  background: var(--ink);
}

.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 23px; }

.nav-toggle.is-open span:nth-child(1) {
  top: 20px;
  transform: rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  top: 20px;
  transform: rotate(-45deg);
}

.hero {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  min-height: calc(100svh - var(--header-h));
  border-bottom: 1px solid var(--rule);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 48px 56px max(24px, calc((100vw - 1280px) / 2 + 20px));
}

.hero h1 {
  margin: 0 0 22px;
  font-size: clamp(42px, 6.2vw, 84px);
}

.hero-lead {
  max-width: 460px;
  margin: 0 0 28px;
  color: var(--mute);
  font-size: 17px;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}

.hero-facts dt {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
}

.hero-facts dd {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}

.hero-collage {
  position: relative;
  background: var(--dark);
  min-height: 560px;
}

.hero-main,
.hero-inset {
  margin: 0;
}

.hero-main {
  height: 100%;
}

.hero-main img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
}

.hero-inset {
  position: absolute;
  left: -48px;
  bottom: 48px;
  width: min(280px, 38%);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 8px solid var(--paper);
  box-shadow: 0 18px 50px rgba(20, 20, 20, 0.28);
}

.hero-inset img {
  width: 100%;
  height: 100%;
}

.hero-note {
  position: absolute;
  right: 20px;
  bottom: 18px;
  margin: 0;
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.ticker {
  overflow: hidden;
  background: var(--ink);
  color: var(--bone);
  border-bottom: 1px solid #2a2724;
}

.ticker-track {
  display: flex;
  gap: 48px;
  width: max-content;
  padding: 16px 0;
  animation: ticker 28s linear infinite;
}

.ticker-track span {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker-track span::after {
  content: "·";
  margin-left: 48px;
  color: var(--accent);
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.projects {
  padding: 88px 0 72px;
}

.section-top {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 36px;
}

.section-top h2,
.studio h2,
.visit h2,
.contact h2 {
  margin: 0;
  font-size: clamp(32px, 4.4vw, 56px);
}

.section-note {
  max-width: 320px;
  margin: 0;
  color: var(--mute);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.filter.is-on,
.filter:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bone);
}

.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 14px;
}

.bento-card {
  overflow: hidden;
  background: var(--dark);
}

.bento-card.is-wide {
  grid-column: span 2;
}

.bento-card.is-tall {
  grid-row: span 2;
}

.bento-card.is-hidden {
  display: none;
}

.bento-card button {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  color: inherit;
}

.bento-card img {
  width: 100%;
  height: 100%;
  transition: transform 0.7s var(--ease);
}

.bento-card:hover img {
  transform: scale(1.06);
}

.bento-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 18px;
  background: linear-gradient(transparent, rgba(20, 20, 20, 0.78));
  color: #fff;
  text-align: left;
}

.bento-meta span {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #e8b07a;
}

.bento-meta strong {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
}

.bento-meta em {
  font-style: normal;
  font-size: 13px;
  opacity: 0.82;
}

.studio {
  background: var(--dark);
  color: var(--bone);
  padding: 96px 0;
}

.studio-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.studio-photos {
  position: relative;
  min-height: 520px;
}

.studio-photo-a,
.studio-photo-b {
  position: absolute;
  object-fit: cover;
}

.studio-photo-a {
  width: 78%;
  height: 78%;
  top: 0;
  left: 0;
}

.studio-photo-b {
  width: 58%;
  height: 52%;
  right: 0;
  bottom: 0;
  border: 10px solid var(--dark);
}

.studio-copy p {
  color: #c9c3b8;
  max-width: 540px;
}

.studio-points {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  gap: 22px;
}

.studio-points li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.studio-points span {
  font-family: var(--font-display);
  font-size: 22px;
  color: #e8b07a;
}

.studio-points h3 {
  margin: 0 0 6px;
  font-size: 22px;
}

.studio-points p {
  margin: 0;
}

.services {
  padding: 88px 0 40px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.service-card {
  background: var(--bone);
  border: 1px solid var(--rule);
  padding: 0 0 22px;
}

.service-media {
  position: relative;
  margin-bottom: 18px;
}

.service-media img {
  width: 100%;
  height: 210px;
}

.service-media span {
  position: absolute;
  left: 14px;
  bottom: -16px;
  font-family: var(--font-display);
  font-size: 42px;
  color: var(--accent);
  line-height: 1;
}

.service-card h3 {
  margin: 8px 18px 8px;
  font-size: 26px;
}

.service-card p {
  margin: 0 18px;
  color: var(--mute);
  font-size: 15px;
}

.visit {
  padding: 40px 0 88px;
}

.visit-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr 1fr;
  gap: 22px;
  align-items: center;
}

.visit-frame {
  margin: 0;
  overflow: hidden;
}

.visit-frame img {
  width: 100%;
  height: 420px;
}

.visit-frame.is-offset {
  margin-top: 48px;
}

.visit-copy {
  text-align: center;
  padding: 12px;
}

.visit-copy p {
  color: var(--mute);
}

.visit-copy .btn {
  margin-top: 8px;
}

.contact {
  background: var(--bone);
  border-top: 1px solid var(--rule);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  padding: 88px 0 48px;
}

.contact-lead {
  color: var(--mute);
  max-width: 440px;
}

.info-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 28px;
}

.info-tiles article {
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--rule);
}

.info-tiles span {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.info-tiles strong {
  font-weight: 500;
  line-height: 1.45;
}

.contact-form {
  background: #fff;
  border: 1px solid var(--rule);
  padding: 32px;
}

.contact-form h3 {
  margin: 0 0 8px;
  font-size: 32px;
}

.contact-form > p {
  margin: 0 0 22px;
  color: var(--mute);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
  padding: 12px 14px;
  font-size: 15px;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.form-note {
  min-height: 1.4em;
  margin: 12px 0 0;
  color: var(--accent-deep);
  font-size: 14px;
}

.contact-map {
  height: 380px;
  border-top: 1px solid var(--rule);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: grayscale(0.35) contrast(1.05);
}

.site-footer {
  background: var(--dark);
  color: var(--bone);
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.9fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 28px;
}

.footer-brand p,
.footer-visit p,
.footer-reach p {
  margin: 0;
  color: #c9c3b8;
}

.footer-nav,
.footer-visit,
.footer-reach {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav span,
.footer-visit span,
.footer-reach span {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #e8b07a;
  margin-bottom: 6px;
}

.footer-nav a:hover,
.footer-reach a:hover {
  color: #e8b07a;
}

.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  color: #8d877c;
  font-size: 13px;
}

.error-page {
  min-height: calc(100svh - 280px);
  display: grid;
  place-items: center;
  padding: 80px 0;
}

.error-inner {
  text-align: center;
}

.error-code {
  margin: 0;
  font-size: 92px;
  color: var(--accent);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 24px;
  background: rgba(20, 20, 20, 0.92);
  color: #fff;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-stage {
  margin: 0;
  text-align: center;
}

.lightbox-stage img {
  max-height: 78vh;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
}

.lightbox-stage figcaption {
  margin-top: 12px;
  font-size: 14px;
  opacity: 0.85;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  border-radius: 50%;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: var(--bone);
  padding: 12px 18px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 210;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 1180px) {
  .nav-phone {
    display: none;
  }
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 48px 24px 36px;
  }

  .hero-inset {
    left: 20px;
    width: 180px;
  }

  .bento {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 240px;
  }

  .studio-grid,
  .contact-grid,
  .visit-grid,
  .service-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .visit-grid {
    grid-template-columns: 1fr;
  }

  .visit-frame.is-offset {
    margin-top: 0;
  }
}

@media (max-width: 860px) {
  .header-bar {
    grid-template-columns: auto 1fr auto;
  }

  .header-cta,
  .nav-phone {
    display: none;
  }

  .nav-toggle {
    display: block;
    justify-self: end;
  }

  .primary-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--paper);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 28px 24px;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
  }

  .primary-nav.is-open {
    transform: none;
  }

  .primary-nav ul {
    flex-direction: column;
    gap: 18px;
  }

  .primary-nav a {
    font-size: 28px;
    font-family: var(--font-display);
    font-weight: 700;
  }

  .section-top,
  .hero-facts,
  .studio-grid,
  .service-grid,
  .contact-grid,
  .form-row,
  .info-tiles,
  .footer-grid,
  .footer-base {
    grid-template-columns: 1fr;
    display: grid;
  }

  .section-top {
    align-items: start;
  }

  .bento,
  .bento-card.is-wide,
  .bento-card.is-tall {
    grid-template-columns: 1fr;
    grid-column: auto;
    grid-row: auto;
  }

  .bento {
    display: grid;
  }

  .bento-card {
    min-height: 280px;
  }

  .studio-photos {
    min-height: 380px;
  }

  .lightbox {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
  }

  .lightbox-prev,
  .lightbox-next {
    position: absolute;
    bottom: 18px;
  }

  .lightbox-prev { left: 18px; }
  .lightbox-next { right: 18px; }
}

@media (max-width: 560px) {
  .hero h1 {
    font-size: 40px;
  }

  .hero-inset {
    display: none;
  }

  .hero-main img {
    min-height: 320px;
  }

  .contact-form {
    padding: 22px;
  }

  .visit-frame img,
  .service-media img {
    height: 220px;
  }
}
