/*
Theme Name: DecorrWorks
Theme URI: https://decorrworks.online
Author: DecorrWorks
Author URI: https://decorrworks.online
Description: Deutsches WordPress-Theme für Innenarchitektur. Atelier in Basel — Startseite, Kollektion, Atelier, 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: decorrworks
Tags: one-page, custom-menu, featured-images, translation-ready, portfolio
*/

:root {
  --ivory: #f4efe6;
  --cream: #faf7f1;
  --ink: #1a1916;
  --forest: #24352c;
  --forest-deep: #18241e;
  --bronze: #a67c52;
  --bronze-deep: #8a6540;
  --stone: #7a7368;
  --line: rgba(26, 25, 22, 0.12);
  --white: #fffdf8;
  --header-h: 78px;
  --utility-h: 36px;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Manrope", 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(--cream);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
}

body.nav-open,
body.lightbox-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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(1180px, calc(100% - 48px));
  margin: 0 auto;
}

h1,
h2,
h3,
.logo-word,
.footer-logo {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.kicker {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bronze);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--forest);
  background: var(--forest);
  color: var(--ivory);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.btn:hover {
  background: var(--forest-deep);
  border-color: var(--forest-deep);
}

.btn-line {
  background: transparent;
  color: var(--ivory);
  border-color: rgba(244, 239, 230, 0.45);
}

.btn-line:hover {
  background: var(--ivory);
  color: var(--forest);
  border-color: var(--ivory);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--bronze-deep);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.text-link::after {
  content: "→";
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

#projects,
#about,
#service,
#contact {
  scroll-margin-top: calc(var(--header-h) + var(--utility-h) + 8px);
}

.utility-bar {
  height: var(--utility-h);
  background: var(--forest-deep);
  color: rgba(244, 239, 230, 0.78);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.utility-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: min(1180px, calc(100% - 48px));
  height: 100%;
  margin: 0 auto;
}

.utility-inner a:hover {
  color: var(--ivory);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  height: var(--header-h);
  background: rgba(250, 247, 241, 0.96);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 8px 24px rgba(26, 25, 22, 0.05);
}

.header-inner {
  position: relative;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 48px));
  height: 100%;
  margin: 0 auto;
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: 22px;
  flex: 1;
}

.nav-right {
  justify-content: flex-end;
}

.logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-left a,
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.nav-left a:hover,
.nav-links a:hover,
.nav-left a.is-active,
.nav-links a.is-active {
  color: var(--bronze-deep);
}

.nav-links {
  display: flex;
  gap: 22px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1;
}

.logo-mark {
  color: var(--forest);
  display: flex;
}

.logo-word {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.logo-word span {
  color: var(--bronze);
}

.header-cta {
  min-height: 40px;
  padding: 0 16px;
}

.header-cta-mobile {
  display: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
  justify-self: end;
}

.nav-toggle span:not(.screen-reader-text) {
  display: block;
  height: 1.5px;
  background: var(--ink);
}

.primary-nav {
  display: none;
}

.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h) - var(--utility-h));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  padding: 48px 0 0;
  color: var(--ivory);
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(24, 36, 30, 0.55) 0%, rgba(24, 36, 30, 0.12) 48%, rgba(24, 36, 30, 0.28) 100%),
    linear-gradient(180deg, rgba(24, 36, 30, 0.15) 0%, rgba(24, 36, 30, 0.55) 100%);
}

.hero-spine {
  position: absolute;
  left: 28px;
  top: 50%;
  margin: 0;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: center;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.7);
}

.hero-card {
  position: relative;
  z-index: 2;
  width: min(560px, calc(100% - 48px));
  margin: 0 auto 28px;
  margin-left: max(24px, calc((100% - 1180px) / 2));
  padding: 36px 36px 32px;
  background: rgba(24, 36, 30, 0.72);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(244, 239, 230, 0.12);
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  margin: 0 0 16px;
}

.hero-lead {
  margin: 0 0 28px;
  max-width: 42ch;
  color: rgba(244, 239, 230, 0.82);
  font-size: 16px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-facts {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  background: var(--ivory);
  color: var(--ink);
}

.hero-facts div {
  padding: 22px 28px;
  border-right: 1px solid var(--line);
}

.hero-facts div:last-child {
  border-right: 0;
}

.hero-facts span {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bronze);
}

.hero-facts strong {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
}

.preamble {
  padding: 88px 0 72px;
  background: var(--cream);
}

.preamble-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.preamble-grid span {
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--bronze);
}

.preamble-grid h2 {
  margin: 0 0 12px;
  font-size: 28px;
}

.preamble-grid p {
  margin: 0;
  color: var(--stone);
}

.collection {
  padding: 0 0 100px;
}

.section-intro {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-intro h2 {
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  margin: 0 0 14px;
}

.section-intro p:last-child {
  margin: 0;
  color: var(--stone);
}

.featured {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  min-height: 620px;
  margin-bottom: 56px;
  background: var(--forest);
  color: var(--ivory);
}

.featured-open {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
}

.featured-open img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  min-height: 620px;
  transition: transform 0.8s var(--ease);
}

.featured:hover .featured-open img {
  transform: scale(1.04);
}

.featured-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 44px;
}

.featured-copy h3 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin: 0 0 16px;
}

.featured-copy p {
  margin: 0 0 24px;
  color: rgba(244, 239, 230, 0.78);
}

.featured-copy .text-link {
  color: var(--ivory);
  align-self: flex-start;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.filter-link {
  padding: 0 0 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--stone);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.filter-link:hover,
.filter-link.is-active {
  color: var(--ink);
  border-bottom-color: var(--bronze);
}

.looks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 22px;
}

.look-card[hidden] {
  display: none !important;
}

.look-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #ddd6c8;
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.look-trigger img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.look-card:hover img {
  transform: scale(1.05);
}

.look-meta {
  padding-top: 14px;
}

.look-meta span {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bronze);
}

.look-meta strong {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  margin-top: 4px;
}

.look-meta em {
  display: block;
  font-style: normal;
  font-size: 13px;
  color: var(--stone);
  margin-top: 2px;
}

.atelier {
  padding: 100px 0;
  background: var(--ivory);
}

.atelier-layout {
  display: grid;
  grid-template-columns: 0.42fr 0.58fr;
  gap: 64px;
  align-items: start;
}

.atelier-quote {
  position: sticky;
  top: calc(var(--header-h) + 36px);
}

.atelier-quote blockquote {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 3.1rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.15;
}

.atelier-quote cite {
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bronze);
}

.atelier-photos {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  margin-bottom: 36px;
}

.atelier-photos img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.atelier-photos img:last-child {
  margin-top: 48px;
  height: 320px;
}

.atelier-copy h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin: 0 0 16px;
}

.atelier-copy p {
  margin: 0 0 14px;
  color: var(--stone);
  max-width: 54ch;
}

.process {
  padding: 100px 0 80px;
}

.process-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: none;
}

.process-step figure {
  margin: 0 0 20px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #ddd6c8;
}

.process-step img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.process-step span {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--bronze);
  margin-bottom: 6px;
}

.process-step h3 {
  margin: 0 0 10px;
  font-size: 28px;
}

.process-step p {
  margin: 0;
  color: var(--stone);
  font-size: 14px;
}

.contact {
  padding: 0 0 100px;
}

.contact-map {
  height: 360px;
  background: #d8d2c6;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.35) contrast(1.05);
}

.contact-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 0;
  margin-top: -72px;
  position: relative;
  z-index: 2;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 24px 50px rgba(26, 25, 22, 0.08);
}

.contact-details,
.contact-form {
  padding: 44px 40px;
}

.contact-details {
  background: var(--forest);
  color: var(--ivory);
}

.contact-details .kicker {
  color: #d4b48a;
}

.contact-details h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin: 0 0 28px;
}

.contact-details ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-details li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid rgba(244, 239, 230, 0.12);
}

.contact-details li:first-child {
  border-top: 0;
}

.contact-details span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #d4b48a;
}

.contact-details a:hover {
  color: #d4b48a;
}

.contact-form h3 {
  font-size: 32px;
  margin: 0 0 8px;
}

.contact-form > p {
  margin: 0 0 24px;
  color: var(--stone);
}

.contact-form label {
  display: block;
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  font-size: 15px;
  color: var(--ink);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-bottom-color: var(--bronze);
}

.contact-form textarea {
  min-height: 110px;
  resize: vertical;
}

.form-note {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--stone);
  min-height: 20px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}

.site-footer {
  background: var(--forest-deep);
  color: rgba(244, 239, 230, 0.78);
  padding: 56px 0 24px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(244, 239, 230, 0.1);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 28px;
  color: var(--ivory);
}

.footer-tagline {
  margin: 0;
  max-width: 360px;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
  padding: 36px 0;
}

.footer-label {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #d4b48a;
}

.footer-grid p,
.footer-grid nav {
  margin: 0;
  font-size: 14px;
}

.footer-grid nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-grid a:hover,
.footer-bar a:hover {
  color: #d4b48a;
}

.footer-bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid rgba(244, 239, 230, 0.1);
  font-size: 13px;
}

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  padding: 14px 24px;
  background: var(--forest);
  color: var(--ivory);
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  z-index: 220;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(18, 20, 18, 0.94);
  padding: 24px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-stage {
  margin: 0;
  max-width: min(1100px, 100%);
}

.lightbox-stage img {
  max-height: 78vh;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
}

.lightbox-stage figcaption {
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  margin-top: 12px;
  font-size: 14px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  border: 0;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  font-size: 28px;
}

.lightbox-prev,
.lightbox-next {
  width: 48px;
  height: 48px;
  font-size: 32px;
  flex-shrink: 0;
}

.error-page {
  min-height: calc(100svh - var(--header-h) - var(--utility-h));
  display: flex;
  align-items: center;
  padding: 64px 0 80px;
  background: var(--forest);
  color: var(--ivory);
}

.error-inner {
  max-width: 520px;
}

.error-page .kicker {
  color: #d4b48a;
}

.error-page h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 16px;
}

.error-page p {
  color: rgba(244, 239, 230, 0.72);
  margin: 0 0 28px;
}

.error-page .btn {
  background: var(--ivory);
  color: var(--forest);
  border-color: var(--ivory);
}

@media (max-width: 1100px) {
  .nav-left,
  .nav-right {
    display: none;
  }

  .header-inner {
    display: flex;
  }

  .logo {
    position: static;
    transform: none;
  }

  .nav-toggle {
    margin-left: auto;
  }

  .nav-toggle {
    display: flex;
  }

  .primary-nav {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 90;
    padding-top: calc(var(--utility-h) + var(--header-h));
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--cream);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
  }

  .primary-nav.is-open {
    transform: none;
  }

  .primary-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
  }

  .primary-nav a {
    display: block;
    padding: 12px 20px;
    font-family: var(--font-display);
    font-size: 32px;
  }

  .header-cta-mobile {
    display: inline-flex;
    margin-top: 24px;
  }

  .hero-spine {
    display: none;
  }

  .hero-card {
    margin-left: 24px;
    margin-right: 24px;
  }

  .preamble-grid,
  .featured,
  .looks-grid,
  .atelier-layout,
  .process-list,
  .contact-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .looks-grid {
    grid-template-columns: 1fr 1fr;
  }

  .atelier-quote {
    position: static;
  }

  .atelier-photos img,
  .atelier-photos img:last-child {
    height: 280px;
    margin-top: 0;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 70px;
  }

  .utility-inner {
    justify-content: center;
  }

  .utility-inner span,
  .utility-inner a:first-of-type {
    display: none;
  }

  .hero {
    min-height: 86svh;
    padding: 24px 16px 0;
  }

  .hero-card {
    padding: 28px 22px 24px;
  }

  .hero-facts {
    grid-template-columns: 1fr;
  }

  .hero-facts div {
    border-right: 0;
    border-top: 1px solid var(--line);
  }

  .hero-facts div:first-child {
    border-top: 0;
  }

  .looks-grid,
  .atelier-photos {
    grid-template-columns: 1fr;
  }

  .look-trigger {
    aspect-ratio: 5 / 4;
  }

  .filter-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0;
  }

  .filter-link {
    flex-shrink: 0;
  }

  .contact-details,
  .contact-form {
    padding: 28px 22px;
  }

  .footer-top,
  .footer-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .lightbox {
    flex-direction: column;
  }

  .process-step figure {
    aspect-ratio: 16 / 10;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .btn,
  .look-trigger img,
  .featured-open img,
  .primary-nav {
    transition: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
