/*
Theme Name: HomeeVista
Theme URI: https://homeevista.online
Author: HomeeVista
Author URI: https://homeevista.online
Description: Deutsches WordPress-Theme für Innenarchitektur. Studio in Hüttlingen — Startseite, Projekte, Über uns, Leistungen, Kontakt.
Version: 4.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: homeeglow
Tags: one-page, custom-menu, featured-images, translation-ready, portfolio
*/

:root {
  --snow: #eef1f3;
  --paper: #f8f6f3;
  --ink: #121417;
  --espresso: #1b1714;
  --clay: #c24e2d;
  --clay-deep: #9e3b1f;
  --mist: #6f7378;
  --line: rgba(18, 20, 23, 0.1);
  --white: #ffffff;
  --header-h: 84px;
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 22px;
  --shadow: 0 24px 60px rgba(18, 20, 23, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background: var(--snow);
  color: var(--ink);
  line-height: 1.65;
  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% - 40px));
  margin: 0 auto;
}

h1,
h2,
h3,
.logo-name,
.footer-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border: none;
  background: var(--clay);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  border-radius: 999px;
  transition: background 0.3s ease, transform 0.3s var(--ease), box-shadow 0.3s ease;
}

.btn:hover {
  background: var(--clay-deep);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(194, 78, 45, 0.28);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  background: var(--white);
  color: var(--ink);
  box-shadow: none;
}

.btn-full {
  width: 100%;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--clay);
}

.text-link::after {
  content: "→";
}

.logo-accent {
  color: var(--clay);
}

.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) + 12px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(248, 246, 243, 0.97);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: var(--paper);
  box-shadow: 0 10px 30px rgba(18, 20, 23, 0.04);
}

.header-inner {
  position: relative;
  z-index: 111;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 40px));
  height: 100%;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-mark {
  position: relative;
  width: 40px;
  height: 40px;
}

.logo-frame {
  position: absolute;
  inset: 0;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
}

.logo-horizon {
  position: absolute;
  inset: 8px;
  border: 1.5px solid var(--clay);
  border-radius: 3px;
  height: auto;
}

.logo-horizon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1.5px;
  background: var(--clay);
  transform: translateX(-50%);
}

.logo-name {
  display: block;
  font-size: 22px;
  font-weight: 800;
}

.logo-tag {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist);
}

.primary-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.primary-nav ul {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav a {
  display: block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  border-radius: 999px;
}

.primary-nav a:hover,
.primary-nav a.is-active {
  background: var(--white);
  color: var(--clay-deep);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-phone {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.header-phone:hover {
  color: var(--clay);
}

.header-cta {
  min-height: 44px;
  padding: 0 18px;
}

.header-cta-mobile {
  display: none !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span:not(.screen-reader-text) {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) 1.08fr;
  min-height: calc(100svh - var(--header-h));
}

.hero-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 48px 48px;
  background: var(--espresso);
  color: var(--paper);
}

.hero-kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clay);
  margin: 0 0 18px;
}

.hero h1 {
  font-size: clamp(2.6rem, 5.8vw, 4.6rem);
  margin: 0 0 20px;
  max-width: 8ch;
}

.hero-lead {
  font-size: 17px;
  color: rgba(248, 246, 243, 0.78);
  margin: 0 0 28px;
  max-width: 38ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-panel .btn-ghost {
  color: var(--paper);
  border-color: rgba(248, 246, 243, 0.28);
}

.hero-panel .btn-ghost:hover {
  background: rgba(248, 246, 243, 0.08);
  color: #fff;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(248, 246, 243, 0.12);
}

.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
}

.hero-stat span {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(248, 246, 243, 0.55);
}

.hero-media {
  position: relative;
  min-height: 420px;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.marquee {
  overflow: hidden;
  background: var(--paper);
  border-block: 1px solid var(--line);
  padding: 16px 0;
}

.marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.marquee-track span {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mist);
}

.marquee-track span::before {
  content: "·";
  margin-right: 48px;
  color: var(--clay);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.projects {
  padding: 96px 0 80px;
}

.section-head {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: end;
  margin-bottom: 36px;
}

.section-head h2 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  margin: 0;
}

.section-lead {
  margin: 0;
  color: var(--mist);
  font-size: 16px;
  max-width: 42ch;
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.filter-chip {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink);
}

.filter-chip:hover,
.filter-chip.is-active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 210px;
  gap: 14px;
}

.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #d8d4ce;
}

.gallery-card[hidden] {
  display: none !important;
}

.gallery-card.is-featured {
  grid-row: span 2;
}

.gallery-card:nth-child(1) {
  grid-column: span 2;
}

.gallery-card:nth-child(7) {
  grid-column: span 2;
}

.gallery-trigger {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: inherit;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.gallery-card:hover img {
  transform: scale(1.06);
}

.gallery-meta {
  position: absolute;
  inset: auto 0 0 0;
  padding: 18px 18px 16px;
  background: linear-gradient(to top, rgba(18, 20, 23, 0.82), transparent);
  color: #fff;
  text-align: left;
}

.gallery-meta span {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #f0b09a;
}

.gallery-meta strong {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  margin-top: 4px;
}

.gallery-meta em {
  display: block;
  font-style: normal;
  font-size: 13px;
  opacity: 0.75;
  margin-top: 2px;
}

.about {
  padding: 100px 0;
  background: var(--espresso);
  color: var(--paper);
}

.about .eyebrow {
  color: #f0b09a;
}

.about-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.about-visuals {
  position: relative;
  min-height: 560px;
}

.about-photo {
  border-radius: 28px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.about-photo-main {
  width: 78%;
  height: 560px;
}

.about-photo-inset {
  position: absolute;
  right: 0;
  bottom: 28px;
  width: 54%;
  height: 220px;
  border: 8px solid var(--espresso);
}

.about-copy h2 {
  font-size: clamp(2rem, 3.8vw, 3rem);
  margin: 0 0 20px;
  max-width: 16ch;
}

.about-copy > p {
  margin: 0 0 16px;
  color: rgba(248, 246, 243, 0.76);
  max-width: 52ch;
}

.about-principles {
  display: grid;
  gap: 14px;
  margin-top: 32px;
}

.principle-card {
  padding: 18px 20px;
  background: rgba(248, 246, 243, 0.05);
  border: 1px solid rgba(248, 246, 243, 0.08);
  border-radius: 18px;
}

.principle-card span {
  font-family: var(--font-display);
  color: #f0b09a;
  font-size: 13px;
  font-weight: 700;
}

.principle-card h3 {
  margin: 6px 0 8px;
  font-size: 20px;
}

.principle-card p {
  margin: 0;
  color: rgba(248, 246, 243, 0.68);
  font-size: 14px;
}

.services {
  padding: 96px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.service-card {
  padding: 32px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.service-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--espresso);
  color: #f0b09a;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
}

.service-card h3 {
  margin: 0 0 10px;
  font-size: 28px;
}

.service-card p {
  margin: 0 0 18px;
  color: var(--mist);
}

.service-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.service-card li {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--snow);
  color: var(--ink);
}

.services-note {
  margin-top: 28px;
  padding: 36px 40px;
  background: var(--paper);
  border-radius: var(--radius);
}

.services-note p {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  margin: 0 0 12px;
}

.services-note cite {
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay);
}

.contact {
  padding: 0 0 100px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 16px;
}

.contact-card,
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.contact-card {
  padding: 0;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 32px 32px 8px;
}

.contact-list li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.contact-list li:first-child {
  border-top: 0;
}

.contact-list span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clay);
}

.contact-list a:hover {
  color: var(--clay);
}

.contact-map {
  height: 250px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.4) contrast(1.05);
}

.contact-form-wrap {
  padding: 36px 36px 28px;
}

.contact-form h3 {
  font-size: 30px;
  margin: 0 0 8px;
}

.form-lead {
  color: var(--mist);
  margin: 0 0 24px;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--snow);
  font-size: 15px;
  border-radius: 14px;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--clay);
  background: #fff;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.form-note {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--mist);
  min-height: 20px;
}

.site-footer {
  background: var(--espresso);
  color: rgba(248, 246, 243, 0.78);
  padding: 64px 0 28px;
}

.footer-wordmark {
  display: block;
  font-size: clamp(2.8rem, 9vw, 7rem);
  color: #fff;
  margin-bottom: 36px;
  line-height: 0.9;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr 0.9fr;
  gap: 32px;
  padding-bottom: 40px;
}

.footer-brand p {
  margin: 0;
  max-width: 320px;
  font-size: 15px;
}

.footer-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f0b09a;
  margin: 0 0 14px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav a:hover,
.footer-contact-block a:hover,
.footer-bar a:hover {
  color: #f0b09a;
}

.footer-contact-block p,
.footer-hours p {
  margin: 0 0 12px;
  font-size: 14px;
}

.footer-bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(248, 246, 243, 0.12);
  font-size: 13px;
}

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  padding: 14px 24px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  border-radius: 999px;
  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(12, 12, 12, 0.92);
  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;
  border-radius: 16px;
}

.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;
  border-radius: 50%;
}

.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));
  display: flex;
  align-items: center;
  padding: 64px 0 80px;
  background: var(--espresso);
  color: var(--paper);
}

.error-inner {
  max-width: 520px;
}

.error-page .eyebrow {
  color: #f0b09a;
}

.error-page h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 16px;
}

.error-page p {
  color: rgba(248, 246, 243, 0.7);
  margin: 0 0 28px;
}

@media (max-width: 1100px) {
  .primary-nav {
    position: fixed;
    inset: 0;
    z-index: 105;
    padding-top: var(--header-h);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--paper);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
  }

  .primary-nav.is-open {
    transform: none;
  }

  .primary-nav ul {
    flex-direction: column;
    align-items: center;
  }

  .primary-nav a {
    font-size: 22px;
    padding: 12px 20px;
  }

  .header-cta-mobile {
    display: inline-flex !important;
    margin-top: 24px;
  }

  .header-actions {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-media {
    min-height: 52vw;
    order: -1;
  }

  .hero h1 {
    max-width: none;
  }

  .section-head,
  .about-layout,
  .contact-layout,
  .footer-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 220px;
  }

  .gallery-card.is-featured,
  .gallery-card:nth-child(1),
  .gallery-card:nth-child(7) {
    grid-column: span 1;
    grid-row: span 1;
  }

  .gallery-card:nth-child(1),
  .gallery-card:nth-child(5) {
    grid-column: span 2;
    min-height: 280px;
  }

  .about-visuals {
    min-height: 480px;
  }

  .about-photo-main {
    height: 480px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 72px;
  }

  .gallery-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .filter-chip {
    flex-shrink: 0;
  }

  .hero-panel {
    padding: 36px 24px 32px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-media {
    min-height: 280px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 260px;
  }

  .gallery-card:nth-child(1),
  .gallery-card:nth-child(5),
  .gallery-card.is-featured {
    grid-column: auto;
  }

  .about-visuals {
    min-height: 420px;
  }

  .about-photo-main {
    width: 88%;
    height: 380px;
  }

  .about-photo-inset {
    width: 62%;
    height: 160px;
  }

  .contact-form-wrap,
  .contact-list {
    padding: 24px;
  }

  .lightbox {
    flex-direction: column;
  }

  .footer-bar {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .btn,
  .gallery-card img,
  .primary-nav,
  .marquee-track {
    transition: none;
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
