/* ============================================================
   Gradina Service – Innenausbau & Renovierung, Büttelborn
   ============================================================ */

:root {
  --charcoal: #1c1917;
  --charcoal-soft: #2a2724;
  --terracotta: #c2703d;
  --terracotta-dark: #a15a2d;
  --cream: #f5f0e8;
  --cream-dark: #e8ded0;
  --stone: #6b6459;
  --stone-light: #a49c8e;
  --white: #fffdfa;

  --font-display: "Fraunces", "Iowan Old Style", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1240px;
  --edge: clamp(1.5rem, 5vw, 4rem);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}

/* Grain overlay — subtle organic texture across the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta-dark);
  font-weight: 600;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--terracotta);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--edge);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.95em 1.8em;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 0.4s ease, border-color 0.4s ease, transform 0.3s ease;
}
.btn span { position: relative; z-index: 1; }
.btn-primary {
  background: var(--charcoal);
  color: var(--cream);
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--terracotta);
  transform: translateY(101%);
  transition: transform 0.45s cubic-bezier(.65,0,.35,1);
  z-index: 0;
}
.btn-primary:hover::before { transform: translateY(0); }
.btn-primary:hover { transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  border-color: rgba(28,25,23,0.25);
  color: var(--charcoal);
}
.btn-outline:hover {
  border-color: var(--charcoal);
  transform: translateY(-2px);
}

/* ============================== NAV ============================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.4rem var(--edge);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: padding 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}
.nav.is-scrolled {
  padding: 0.85rem var(--edge);
  background: rgba(245, 240, 232, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 rgba(28,25,23,0.06);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}
.nav-logo .dot { color: var(--terracotta); }
.nav-links {
  display: flex;
  gap: 2.2rem;
  align-items: center;
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--charcoal);
  transition: right 0.3s ease;
}
.nav-links a:hover::after { right: 0; }
.nav-cta { display: none; }
@media (min-width: 900px) { .nav-cta { display: inline-flex; } }

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
}
@media (min-width: 900px) { .nav-toggle { display: none; } }
.nav-links { }
@media (max-width: 899px) {
  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--charcoal);
    color: var(--cream);
    flex-direction: column;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.45s cubic-bezier(.65,0,.35,1);
  }
  .nav-links.is-open { transform: translateX(0); }
  .nav-links a { color: var(--cream); font-size: 1.4rem; }
}

/* ============================== HERO ============================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 8rem var(--edge) 5rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.08);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28,25,23,0.35) 0%, rgba(28,25,23,0.15) 35%, rgba(28,25,23,0.75) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  color: var(--white);
}
.hero-content .eyebrow { color: var(--terracotta); }
.hero-content .eyebrow::before { background: var(--terracotta); }
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.02;
  margin: 0.5rem 0 1.4rem;
}
.hero h1 em {
  font-style: italic;
  color: var(--terracotta);
}
.hero p {
  font-size: 1.15rem;
  max-width: 46ch;
  color: rgba(255,253,250,0.85);
  margin-bottom: 2.2rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero .btn-outline {
  border-color: rgba(255,253,250,0.4);
  color: var(--white);
}
.hero .btn-outline:hover { border-color: var(--white); }

.hero-scroll-cue {
  position: absolute;
  right: var(--edge);
  bottom: 2.4rem;
  z-index: 1;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.8;
}
.hero-scroll-cue .line {
  width: 1px;
  height: 40px;
  background: rgba(255,253,250,0.5);
  position: relative;
  overflow: hidden;
}
.hero-scroll-cue .line::after {
  content: "";
  position: absolute;
  top: -100%; left: 0; right: 0;
  height: 100%;
  background: var(--terracotta);
  animation: scrollcue 1.8s ease-in-out infinite;
}
@keyframes scrollcue {
  0% { top: -100%; }
  60%, 100% { top: 100%; }
}

/* ============================== TOUR (scroll animation) ============================== */
.tour-section {
  position: relative;
  background: var(--charcoal);
}
.tour-intro {
  padding: 6rem var(--edge) 3rem;
  color: var(--cream);
  max-width: 700px;
}
.tour-intro .eyebrow { color: var(--terracotta); }
.tour-intro h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  margin-top: 0.6rem;
}
.tour-intro p {
  color: var(--stone-light);
  margin-top: 1rem;
  font-size: 1.05rem;
}

.tour-pin {
  height: 100vh;
  position: relative;
  overflow: hidden;
}
.tour-room {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s linear;
}
.tour-room.is-active { opacity: 1; visibility: visible; }

.tour-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tour-img--before {
  filter: grayscale(80%) contrast(1.05) brightness(0.78) blur(0.5px);
}
.tour-img--after {
  clip-path: inset(0 100% 0 0);
  will-change: clip-path;
}

.tour-wipe {
  position: absolute;
  top: 0; bottom: 0;
  width: 3px;
  left: 0;
  background: var(--white);
  box-shadow: 0 0 24px 2px rgba(255,253,250,0.7);
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.tour-wipe.is-visible { opacity: 1; }
.tour-wipe::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--white);
  transform: translate(-50%, -50%);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
.tour-wipe::after {
  content: "⟷";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -55%);
  color: var(--charcoal);
  font-size: 15px;
}

.tour-room::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28,25,23,0.55) 0%, rgba(28,25,23,0.05) 30%, rgba(28,25,23,0.65) 100%);
  pointer-events: none;
}

.tour-tag {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.55em 1em;
  background: rgba(245,240,232,0.92);
  color: var(--charcoal);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(10px) scale(0.9);
  transition: opacity 0.5s ease, transform 0.5s ease;
  z-index: 2;
  white-space: nowrap;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.tour-tag::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--terracotta);
  flex-shrink: 0;
}
.tour-tag.is-visible { opacity: 1; transform: translateY(0) scale(1); }

.tour-hud {
  position: absolute;
  left: var(--edge);
  right: var(--edge);
  top: 2rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  color: var(--white);
}
.tour-hud-room {
  font-family: var(--font-display);
  font-size: 1.1rem;
  min-width: 8ch;
}
.tour-progress-track {
  flex: 1;
  height: 2px;
  background: rgba(255,253,250,0.25);
  position: relative;
}
.tour-progress-bar {
  position: absolute;
  inset: 0;
  width: 0%;
  background: var(--terracotta);
  transform-origin: left;
}
.tour-hud-pct {
  font-variant-numeric: tabular-nums;
  font-size: 0.85rem;
  min-width: 4ch;
  text-align: right;
  color: var(--stone-light);
}

.tour-caption {
  position: absolute;
  left: var(--edge);
  bottom: 2.6rem;
  z-index: 3;
  color: var(--white);
  max-width: 420px;
}
.tour-caption .stage {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}
.tour-caption h3 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  color: var(--white);
}
.tour-dots {
  position: absolute;
  right: var(--edge);
  bottom: 2.8rem;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.tour-dots span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,253,250,0.35);
  transition: background 0.3s ease, transform 0.3s ease;
}
.tour-dots span.is-active {
  background: var(--terracotta);
  transform: scale(1.3);
}

@media (max-width: 720px) {
  .tour-pin { height: auto; }
  .tour-room {
    position: relative;
    opacity: 1;
    visibility: visible;
    height: 78vh;
    margin-bottom: 1px;
  }
  .tour-img--before { display: none; }
  .tour-img--after { clip-path: none; opacity: 1; }
  .tour-hud { display: none; }
  .tour-caption { position: absolute; bottom: 1.6rem; }
  .tour-dots { display: none; }
  .tour-tag { display: none; }
  .tour-wipe { display: none; }
}

/* ============================== SERVICES ============================== */
.services {
  padding: 7rem 0 6rem;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}
.section-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-top: 0.6rem;
  max-width: 16ch;
}
.section-head p {
  max-width: 40ch;
  color: var(--stone);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}
.service-card {
  grid-column: span 6;
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: 18px;
  padding: 2.4rem;
  position: relative;
  transition: transform 0.4s cubic-bezier(.2,.7,.3,1), box-shadow 0.4s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -20px rgba(28,25,23,0.18);
}
.service-card:nth-child(1) { grid-column: span 7; }
.service-card:nth-child(2) { grid-column: span 5; }
.service-card:nth-child(3) { grid-column: span 5; }
.service-card:nth-child(4) { grid-column: span 7; }

.service-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.6rem;
  color: var(--terracotta-dark);
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.7rem;
}
.service-card p {
  color: var(--stone);
  font-size: 0.98rem;
  margin: 0;
}
.service-index {
  position: absolute;
  top: 2.2rem; right: 2.2rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--stone-light);
}

@media (max-width: 800px) {
  .service-card,
  .service-card:nth-child(1),
  .service-card:nth-child(2),
  .service-card:nth-child(3),
  .service-card:nth-child(4) { grid-column: span 12; }
}

/* ============================== PROCESS ============================== */
.process {
  background: var(--cream-dark);
  padding: 6rem 0;
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.process-step {
  position: relative;
  padding-top: 2rem;
  border-top: 1px solid rgba(28,25,23,0.15);
}
.process-step .num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--terracotta);
  display: block;
  margin-bottom: 1rem;
}
.process-step h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}
.process-step p {
  color: var(--stone);
  font-size: 0.92rem;
  margin: 0;
}
@media (max-width: 800px) {
  .process-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .process-grid { grid-template-columns: 1fr; }
}

/* ============================== GALLERY (bento) ============================== */
.gallery {
  padding: 7rem 0;
}
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 130px;
  gap: 1.1rem;
  margin-top: 3rem;
}
.bento-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
}
.bento-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(.2,.7,.3,1), filter 0.5s ease;
}
.bento-item:hover img { transform: scale(1.08); }
.bento-item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(28,25,23,0) 55%, rgba(28,25,23,0.55) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.bento-item:hover::after { opacity: 1; }
.bento-item span {
  position: absolute;
  left: 1.1rem; bottom: 1rem;
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 1;
}
.bento-item:hover span { opacity: 1; transform: translateY(0); }

.bento-item.a { grid-column: span 3; grid-row: span 2; }
.bento-item.b { grid-column: span 3; grid-row: span 1; }
.bento-item.c { grid-column: span 3; grid-row: span 1; }
.bento-item.d { grid-column: span 2; grid-row: span 2; }
.bento-item.e { grid-column: span 2; grid-row: span 2; }
.bento-item.f { grid-column: span 2; grid-row: span 2; }

@media (max-width: 800px) {
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .bento-item.a, .bento-item.b, .bento-item.c,
  .bento-item.d, .bento-item.e, .bento-item.f { grid-column: span 1; grid-row: span 1; }
}

/* ============================== TESTIMONIAL / CTA STRIP ============================== */
.cta-strip {
  background: var(--charcoal);
  color: var(--white);
  padding: 6rem var(--edge);
  text-align: center;
}
.cta-strip .eyebrow { color: var(--terracotta); justify-content: center; }
.cta-strip .eyebrow::before { display: none; }
.cta-strip h2 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  max-width: 18ch;
  margin: 0.8rem auto 2rem;
}
.cta-strip .btn-primary { background: var(--terracotta); }
.cta-strip .btn-primary::before { background: var(--white); }
.cta-strip .btn-primary:hover { color: var(--charcoal); }

/* ============================== CONTACT ============================== */
.contact {
  padding: 7rem 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
}
.contact-info dl {
  margin: 2rem 0 0;
}
.contact-info dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--stone);
  margin-top: 1.6rem;
}
.contact-info dd {
  margin: 0.3rem 0 0;
  font-size: 1.15rem;
  font-family: var(--font-display);
}
.contact-form {
  display: grid;
  gap: 1.1rem;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.field label {
  font-size: 0.82rem;
  color: var(--stone);
}
.field input, .field textarea {
  border: none;
  border-bottom: 1px solid rgba(28,25,23,0.2);
  background: transparent;
  padding: 0.7em 0.2em;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--charcoal);
  transition: border-color 0.3s ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--terracotta);
}
.contact-form .btn { margin-top: 0.6rem; justify-self: start; }
.form-note {
  font-size: 0.82rem;
  color: var(--stone-light);
  margin-top: 0.4rem;
}

@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ============================== FOOTER ============================== */
.site-footer {
  background: var(--cream-dark);
  padding: 3.5rem var(--edge) 2rem;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(28,25,23,0.12);
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
}
.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--stone);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.4rem;
  font-size: 0.8rem;
  color: var(--stone);
}

/* reveal-on-scroll utility */
.reveal {
  opacity: 0;
  transform: translateY(28px);
}
.reveal.is-revealed {
  animation: revealUp 0.8s cubic-bezier(.2,.7,.3,1) forwards;
}
@keyframes revealUp {
  to { opacity: 1; transform: translateY(0); }
}
