/* =========================================================
   KOTTIWORX – Prototype A: "Split-Screen Layout"
   Styles specific to index.html only.
   Relies on CSS variables & base classes from base.css —
   does not redefine them.
   ========================================================= */

/* #landing itself keeps the standard .view padding-top (nav offset)
   from base.css; everything below flows inside it. */

/* ---------- Logo: image-only (no duplicate text label), larger size ---------- */
/* Taller nav bar to give the logo more room (overrides base.css --nav-height,
   which also drives the .view padding-top offset, so both stay in sync). */

:root {
  --nav-height: 120px;
}

.site-nav .logo-link img {
  height: 110px;
}

/* ---------- Nav "/ Coworking" · "\ Event space" slash accents ---------- */

.nav-slash {
  color: var(--color-orange);
  font-weight: 800;
  margin-right: 4px;
}

#landing .tagline {
  text-align: center;
  padding: 20px 24px 4px;
  color: var(--color-grey);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* ---------- Split hero ---------- */

.split-hero {
  position: relative;
  display: flex;
  min-height: 640px;
  overflow: hidden;
}

.split-half {
  flex: 1 1 50%;
  display: flex;
  align-items: center;
  padding: 56px 48px;
  position: relative;
  overflow: hidden; /* enlarged hover photos never cross into the other half */
}

.split-content {
  max-width: 460px;
  width: 100%;
}

.split-half h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

/* Day / Coworking half */

.split-day {
  background: var(--color-grey-light);
  color: var(--color-black);
  justify-content: flex-end;
}

.split-day .split-content {
  margin-left: auto;
}

/* Night / Event space half */

.split-night {
  background: var(--color-black);
  color: var(--color-white);
  justify-content: flex-start;
}

.split-night p {
  color: rgba(255, 255, 255, 0.78);
}

.split-night .eyebrow {
  color: var(--color-orange);
}

/* Orange diagonal divider between the two halves */

.split-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 10px;
  margin-left: -5px;
  background: linear-gradient(var(--color-orange), var(--color-orange-dark));
  transform: skewX(-6deg);
  z-index: 2;
  pointer-events: none;
}

/* Teaser images inside each half */

.split-teasers {
  display: flex;
  gap: 12px;
  margin: 24px 0 28px;
}

.split-teasers img {
  flex: 1 1 0;
  min-width: 0;
  height: auto;
  aspect-ratio: 3 / 2; /* same shape as the former 2-photo layout */
  object-fit: cover;
  border-radius: var(--radius);
}

/* Day-lit photos standing in for evening/event mood.
   placeholder – replace with real night-mode photography */
.night-photo {
  filter: brightness(0.55) saturate(1.1);
}

/* Solid orange-on-black CTA for the night half */

.btn-night {
  background: var(--color-orange);
  color: var(--color-black);
  border-color: var(--color-orange);
}

.btn-night:hover {
  background: var(--color-orange-dark);
}

/* ---------- Event space gallery: darken day photos to read as evening ---------- */

.dark .gallery img {
  filter: brightness(0.55) saturate(1.1);
}

/* ---------- Photo hover effect (landing teasers + all galleries) ---------- */
/* Photos lift slightly with a soft shadow; evening-filtered photos also
   brighten to their natural look. Only on devices that support hover. */

.split-teasers img,
.gallery img {
  position: relative;
  transition: transform 0.4s ease, box-shadow var(--transition-fast), filter var(--transition-fast);
}

@media (hover: hover) {
  .split-teasers img:hover,
  .gallery img:hover {
    transform: scale(3); /* grows to 300% of its size */
    z-index: 3;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  }

  /* Keep enlarged teaser photos inside their own half of the split screen:
     the outer photos grow inward, the middle one grows from its center.
     At 3x the photo is never wider than its column, and .split-half clips
     anything that could still reach over. */
  .split-teasers img:first-child:hover {
    transform-origin: left center;
  }

  .split-teasers img:last-child:hover {
    transform-origin: right center;
  }

  .night-photo:hover,
  .dark .gallery img:hover {
    filter: brightness(1) saturate(1.1);
  }
}

/* ---------- About teaser (full width, below split) ---------- */

.about-teaser {
  background: var(--color-white);
  text-align: center;
  padding: 72px 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.about-teaser h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.about-teaser p {
  max-width: 620px;
  margin: 0 auto 24px;
  color: var(--color-grey);
  font-size: 1.05rem;
}

/* ---------- Google Maps: static image (offline-friendly) + link (landing "About" teaser + About sub-tab) ---------- */

.map-embed {
  position: relative;
  width: 100%;
  max-width: 640px;
  aspect-ratio: 16 / 9;
  margin: 8px auto 12px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.map-embed a {
  display: block;
  width: 100%;
  height: 100%;
}

.map-embed img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-fast);
}

.map-embed a:hover img {
  transform: scale(1.03);
}

/* Landing page: space between the (clickable) map and the "more about" button */
.about-teaser .map-embed {
  margin-bottom: 28px;
}

.map-link {
  display: inline-block;
  margin-bottom: 24px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-orange-dark);
  text-decoration: underline;
}

.map-link:hover {
  color: var(--color-orange);
}

/* ---------- About sub-tab: two-column location layout (address left, map right) ---------- */

.about-location {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  margin: 24px 0 40px;
}

.about-location-text p {
  margin: 0 0 8px;
}

/* Brand line above the address (same look as the footer brand line) */
.about-brand .footer-x {
  color: var(--color-orange);
}

.about-brand strong {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--color-black);
}

.about-location .map-embed {
  margin: 0;
  max-width: none;
}

.about-location-text .btn {
  margin-top: 8px; /* orange "open in google maps..." button below the address */
}

@media (max-width: 720px) {
  .about-location {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ---------- Footer: address/contact line + Impressum link ---------- */

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-inner p {
  margin: 0;
  font-size: 0.7rem;
}

.footer-inner a {
  text-decoration: underline;
}

/* Brand line on top of the footer (same footer on every page) */
.footer-inner .footer-brand {
  font-size: 0.85rem;
}

/* The brand line is a button that leads back to the landing page,
   but looks exactly like plain text. */
.footer-brand-link {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  font-size: 0.85rem;
  line-height: inherit;
  letter-spacing: inherit;
  color: inherit;
  text-align: center;
  cursor: pointer;
}

.footer-brand .footer-x {
  color: var(--color-orange); /* the "X" in the same orange as buttons and nav accents */
}

.footer-brand strong {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--color-black);
}

.footer-link {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.65rem;
  color: var(--color-grey);
  text-decoration: underline;
  padding: 0;
}

.footer-link:hover {
  color: var(--color-orange);
}

/* ---------- Responsive: stack the split on narrow viewports ---------- */

@media (max-width: 800px) {
  .split-hero {
    flex-direction: column;
    min-height: 0;
  }

  .split-half {
    padding: 48px 24px;
    justify-content: center !important;
  }

  .split-day .split-content,
  .split-night .split-content {
    margin-left: 0;
    max-width: none;
  }

  .split-divider {
    top: 50%;
    left: 0;
    right: 0;
    bottom: auto;
    width: auto;
    height: 8px;
    margin-left: 0;
    margin-top: -4px;
    transform: skewY(-2deg);
  }
}

/* ---------- Mobile navigation (hamburger menu) ---------- */
/* Hidden on desktop; base.css already shrinks .nav-link padding/font
   below 720px, but below 760px here we switch to a full dropdown panel
   instead, since logo + 4 links no longer fit comfortably in one row. */

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: none;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-black);
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

body.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 760px) {
  .site-nav .logo-link img {
    height: 79px;
  }

  :root {
    --nav-height: 90px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav nav {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--color-white);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
  }

  body.nav-open .site-nav nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    width: 100%;
    padding: 16px 24px;
    font-size: 1rem;
    text-align: left;
    border-radius: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }
}

/* Enlarged photos near the viewport edge must never cause sideways scrolling */
body {
  overflow-x: clip;
}

/* Coworking AND Event space pages: gallery photos grow to 150% of their size
   on hover (scale 1.5). Only the landing page teasers keep the larger effect
   above (scale 3). */
@media (hover: hover) {
  #coworking .gallery img:hover,
  #event-space .gallery img:hover {
    transform: scale(1.5);
  }
}

/* All bullet points (Coworking, Event space, About) end with "..."
   Try-out: delete this rule to remove the dots again. */
.feature-list li::after {
  content: "...";
}

/* Call-to-action line at the bottom of the Coworking and Event space pages:
   text and button with generous horizontal space; wraps cleanly on phones. */
.cta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 22px;
}

/* Menu texts in lower case (desktop menu and mobile dropdown).
   Try-out: delete this rule to get the capitals back. */
.nav-link {
  text-transform: lowercase;
}
