/*
Theme Name: Eagle Haus
Theme URI: https://mreagle.co.za
Description: Eagle Haus — child theme of Hello Elementor. Quiet, photo-led design for a German-speaking WG in Tamboerskloof. Familie Klingelhoeffer, seit 2008.
Author: Eagle Haus
Author URI: https://mreagle.co.za
Template: hello-elementor
Version: 1.0.0
Text Domain: eagle-haus
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;500&family=Inter:wght@400;500&display=swap');

:root {
  --eh-bg:         #f7f3ec;
  --eh-bg-soft:    #efe8dc;
  --eh-ink:        #1f1c19;
  --eh-ink-soft:   #6a6259;
  --eh-rule:       #d8cfbf;
  --eh-accent:     #b56e4a;
  --eh-accent-deep:#8e5435;
  --eh-serif: 'Lora', Georgia, 'Times New Roman', serif;
  --eh-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --eh-maxw:  640px;
  --eh-wide:  1040px;
}

/* ============================================================
   BASE
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  background: var(--eh-bg);
  color: var(--eh-ink);
  font-family: var(--eh-sans);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--eh-accent-deep);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
a:hover { color: var(--eh-ink); }

h1, h2, h3, h4 {
  font-family: var(--eh-serif);
  font-weight: 500;
  color: var(--eh-ink);
  letter-spacing: -0.01em;
  margin: 0;
}
h1 { font-size: clamp(2.6rem, 8vw, 4.4rem); line-height: 1.05; font-weight: 400; }
h2 { font-size: clamp(1.8rem, 4.5vw, 2.4rem); line-height: 1.15; }
h3 { font-size: 1.35rem; line-height: 1.25; }

p { margin: 0 0 1.2em; }

/* ============================================================
   ELEMENTOR — body copy in sans, headings stay serif.
   Quotes (<blockquote>) keep serif via their inline style.
   ============================================================ */
.elementor-widget-text-editor,
.elementor-widget-text-editor p,
.elementor-widget-text-editor li {
  font-family: var(--eh-sans);
}
.elementor-widget-text-editor blockquote {
  font-family: var(--eh-serif);
}
.elementor-widget-heading h1,
.elementor-widget-heading h2,
.elementor-widget-heading h3,
.elementor-widget-heading h4,
.elementor-widget-heading h5 {
  font-family: var(--eh-serif);
}
/* Image lightbox enhancements */
.elementor-widget-image a img {
  cursor: zoom-in;
  transition: transform 220ms ease, filter 220ms ease;
}
.elementor-widget-image a:hover img {
  transform: scale(1.015);
  filter: brightness(0.96);
}

/* ============================================================
   HERO SECTION — typographic, flat linen, no image.
   Authoritative styles ship inline with the hero markup
   (see HERO_INLINE_CSS in build_onepager.py) so server-side
   pushes can iterate without a theme upload each time.
   This file only kills the legacy ::before overlay.
   ============================================================ */
section#hero::before, section#hero::after {
  content: none !important;
  display: none !important;
  background: none !important;
}

@media (max-width: 720px) {
  .eh-hero-btn { padding: 12px 22px; font-size: 0.88rem; }
}

/* ============================================================
   TOP HEADER — two modes
   - .eh-top--hero    : tall, centered, wordmark + tagline + nav.
                        On the front page only. Shrinks to compact on scroll.
   - .eh-top--compact : the standard slim sticky bar, used on sub-pages
                        and as the scrolled-state of the hero header.
   ============================================================ */

.eh-top {
  position: sticky; top: 0; z-index: 100;
  background: var(--eh-bg);
  border-bottom: 1px solid transparent;
  transition: padding 280ms ease, border-color 280ms ease, box-shadow 280ms ease;
}
.eh-top-inner {
  max-width: var(--eh-wide);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  transition: padding 280ms ease, flex-direction 0s;
}

.eh-brand-block {
  display: flex; align-items: baseline; gap: 10px;
  transition: all 280ms ease;
}
.eh-brand {
  font-family: var(--eh-serif);
  font-size: 1.15rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--eh-ink);
  border: none;
  transition: font-size 280ms ease, letter-spacing 280ms ease;
}
.eh-brand-loc {
  font-family: var(--eh-sans);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--eh-ink-soft);
  text-transform: none;
}
.eh-tag {
  display: none;
  font-family: var(--eh-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--eh-ink-soft);
  margin: 8px 0 0;
  letter-spacing: 0;
  text-transform: none;
}

/* ---- HERO mode (front page, not scrolled) ---- */
.eh-top--hero:not(.is-scrolled) .eh-top-inner {
  flex-direction: column;
  padding: 56px 24px 28px;
  gap: 22px;
  text-align: center;
}
.eh-top--hero:not(.is-scrolled) .eh-brand-block {
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.eh-top--hero:not(.is-scrolled) .eh-brand {
  font-size: clamp(2rem, 4.5vw, 3rem);
  letter-spacing: 0.12em;
}
.eh-top--hero:not(.is-scrolled) .eh-brand-loc {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
}
.eh-top--hero:not(.is-scrolled) .eh-tag {
  display: block;
  max-width: 36em;
}
.eh-top--hero:not(.is-scrolled) .eh-nav {
  margin-top: 4px;
}

/* ---- SCROLLED + sub-page compact mode ---- */
.eh-top--hero.is-scrolled,
.eh-top--compact {
  border-bottom-color: var(--eh-rule);
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}
.eh-top--hero.is-scrolled .eh-top-inner,
.eh-top--compact .eh-top-inner {
  padding: 12px 24px;
}
.eh-top--hero.is-scrolled .eh-tag,
.eh-top--compact .eh-tag {
  display: none;
}

.eh-nav { display: flex; align-items: center; gap: 0; }
.eh-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; align-items: center; }
.eh-nav li { margin: 0; }
.eh-nav a {
  font-family: var(--eh-sans);
  font-size: 0.9rem;
  color: var(--eh-ink-soft);
  border: none;
  padding: 4px 0;
  white-space: nowrap;       /* keep "Ehemalige Mitbewohner" on one line */
  transition: color 120ms ease;
}
.eh-nav a:hover, .eh-nav .current-menu-item a { color: var(--eh-ink); }

.eh-nav-cta a {
  background: var(--eh-accent);
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 2px;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: background 150ms ease;
}
.eh-nav-cta a:hover { background: var(--eh-accent-deep); }

.eh-lang {
  color: var(--eh-ink);
  margin-left: 18px;
  padding-left: 16px;
  border-left: 1px solid var(--eh-rule);
  display: inline-flex;
  align-items: center;
}
.eh-lang ul { gap: 10px; }
.eh-lang a { color: var(--eh-ink-soft); border: none; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; }
.eh-lang a.current-lang, .eh-lang .current-lang a, .eh-lang .lang-item-current a { color: var(--eh-ink); font-weight: 500; }

@media (max-width: 880px) {
  .eh-nav-list { display: none !important; }
  .eh-lang { margin-left: 0; padding-left: 0; border: none; }
}

/* ============================================================
   HERO
   ============================================================ */

.eh-hero {
  max-width: var(--eh-wide);
  margin: 0 auto;
  padding: 64px 24px 24px;
}
.eh-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}
@media (min-width: 880px) {
  .eh-hero-grid { grid-template-columns: 5fr 6fr; gap: 64px; align-items: center; }
}
.eh-pre {
  font-family: var(--eh-sans);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--eh-ink-soft);
  margin-bottom: 24px;
}
.eh-lead {
  font-size: 1.15rem;
  color: var(--eh-ink-soft);
  max-width: 30ch;
}
.eh-hero-text h1 { margin-bottom: 28px; }
.eh-hero-cta {
  margin-top: 34px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.eh-link {
  font-family: var(--eh-sans);
  font-size: 1rem;
  color: var(--eh-ink);
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--eh-ink);
}
.eh-link:hover { color: var(--eh-accent-deep); border-bottom-color: var(--eh-accent-deep); }
.eh-link::after { content: '›'; color: var(--eh-accent); font-size: 1.2em; line-height: 1; }

.eh-photo {
  background: var(--eh-bg-soft);
  position: relative;
  overflow: hidden;
}
.eh-photo.aspect-5-6 { aspect-ratio: 5 / 6; }
.eh-photo.aspect-4-3 { aspect-ratio: 4 / 3; }
.eh-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.eh-photo .cap {
  position: absolute;
  bottom: 14px;
  left: 14px;
  color: #fff;
  font-size: 0.8rem;
  background: rgba(31, 28, 25, 0.55);
  padding: 6px 10px;
  letter-spacing: 0.06em;
}
.eh-photo[data-placeholder]:empty::after,
.eh-photo[data-placeholder] img[src=""]::after,
.eh-photo[data-placeholder]::after {
  content: attr(data-placeholder);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--eh-ink-soft);
  font-size: 0.85rem;
  background: var(--eh-bg-soft);
  border: 1px dashed var(--eh-rule);
  font-family: var(--eh-sans);
  text-align: center;
  padding: 8px;
}
.eh-photo img { position: relative; z-index: 1; }

/* ============================================================
   BANDS
   ============================================================ */

.eh-band {
  padding: 72px 24px;
  border-top: 1px solid var(--eh-rule);
}
.eh-band:first-of-type { border-top: 0; padding-top: 24px; }
.eh-band > .inner {
  max-width: var(--eh-maxw);
  margin: 0 auto;
}
.eh-band.wide > .inner { max-width: var(--eh-wide); }
.eh-band h2 { margin-bottom: 24px; }
.eh-band p { color: var(--eh-ink); }
.eh-band p.note { color: var(--eh-ink-soft); }
.eh-band.center { text-align: center; }
.eh-band.center > .inner > p { margin-left: auto; margin-right: auto; max-width: 50ch; }

/* ============================================================
   HOUSE GRID
   ============================================================ */

.eh-house-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 24px;
}
@media (min-width: 760px) {
  .eh-house-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
}
.eh-house-card { display: flex; flex-direction: column; gap: 14px; }
.eh-house-card h3 { font-family: var(--eh-serif); font-size: 1.4rem; margin-bottom: 0; }
.eh-house-card .meta {
  font-size: 0.88rem;
  color: var(--eh-ink-soft);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ============================================================
   VOICES (Stimmen)
   ============================================================ */

.eh-voices {
  background: var(--eh-bg-soft);
  padding: 80px 24px;
}
.eh-voices .inner { max-width: var(--eh-maxw); margin: 0 auto; }
.eh-voices h2 { margin-bottom: 32px; }
.eh-voices blockquote {
  font-family: var(--eh-serif);
  font-size: 1.35rem;
  line-height: 1.5;
  color: var(--eh-ink);
  font-style: italic;
  margin: 0 0 48px;
  position: relative;
  padding-left: 24px;
}
.eh-voices blockquote:last-of-type { margin-bottom: 18px; }
.eh-voices blockquote::before {
  content: '»';
  position: absolute;
  left: 0;
  top: -6px;
  color: var(--eh-accent);
  font-size: 2rem;
  font-style: normal;
  line-height: 1;
  font-family: var(--eh-serif);
}
.eh-voices cite {
  display: block;
  font-family: var(--eh-sans);
  font-style: normal;
  font-size: 0.9rem;
  color: var(--eh-ink-soft);
  margin-top: 14px;
}

/* ============================================================
   ZIMMER LIST (8 apartments stacked)
   ============================================================ */

.eh-room {
  max-width: var(--eh-wide);
  margin: 0 auto;
  padding: 64px 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  border-bottom: 1px solid var(--eh-rule);
}
@media (min-width: 760px) {
  .eh-room { grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
  .eh-room:nth-child(even) .eh-photo-block { order: 2; }
}
.eh-room h3 { font-family: var(--eh-serif); font-size: 1.8rem; margin-bottom: 8px; }
.eh-room .meta {
  font-size: 0.88rem;
  color: var(--eh-ink-soft);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.eh-room p { color: var(--eh-ink); margin-bottom: 18px; }

/* ============================================================
   CTA BLOCK
   ============================================================ */

.eh-cta {
  padding: 80px 24px;
  text-align: center;
  border-top: 1px solid var(--eh-rule);
}
.eh-cta h2 { margin-bottom: 16px; }
.eh-cta p { color: var(--eh-ink-soft); max-width: 38ch; margin: 0 auto 32px; }

.eh-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--eh-ink);
  color: var(--eh-bg) !important;
  font-family: var(--eh-sans);
  font-size: 1rem;
  padding: 16px 28px;
  border: 1px solid var(--eh-ink);
  border-bottom: 1px solid var(--eh-ink) !important;
  letter-spacing: 0.06em;
  cursor: pointer;
}
.eh-btn:hover { background: var(--eh-accent-deep); border-color: var(--eh-accent-deep); color: #fff !important; }
.eh-btn::after { content: '→'; font-size: 1.1em; }

.eh-alt-contacts {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 0.9rem;
}
.eh-alt-contacts a { color: var(--eh-ink-soft); border-bottom-color: var(--eh-rule); }
.eh-alt-contacts a:hover { color: var(--eh-ink); border-bottom-color: var(--eh-ink); }

/* ============================================================
   FOOTER
   ============================================================ */

.eh-footer {
  padding: 48px 24px 24px;
  border-top: 1px solid var(--eh-rule);
  font-size: 0.85rem;
  color: var(--eh-ink-soft);
}
.eh-footer .inner {
  max-width: var(--eh-wide);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.eh-footer .brand-label {
  font-family: var(--eh-serif);
  color: var(--eh-ink);
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.eh-footer a { color: var(--eh-ink-soft); border-bottom-color: transparent; }
.eh-footer a:hover { color: var(--eh-ink); border-bottom-color: var(--eh-ink); }

/* ============================================================
   ANFRAGEN — CF7 styling
   ============================================================ */

.wpcf7 { max-width: 560px; margin: 0 auto; }
.wpcf7 p { margin-bottom: 16px; }
.wpcf7 label { display: block; font-size: 0.9rem; color: var(--eh-ink-soft); margin-bottom: 6px; }
.wpcf7 input[type=text], .wpcf7 input[type=email], .wpcf7 input[type=tel], .wpcf7 input[type=date], .wpcf7 input[type=number], .wpcf7 textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  background: #fff;
  border: 1px solid var(--eh-rule);
  border-radius: 0;
}
.wpcf7 textarea { min-height: 140px; }
.wpcf7 input:focus, .wpcf7 textarea:focus { outline: 2px solid var(--eh-accent); outline-offset: 1px; border-color: var(--eh-accent); }
.wpcf7 input[type=submit] {
  background: var(--eh-ink);
  color: var(--eh-bg);
  border: 1px solid var(--eh-ink);
  padding: 14px 28px;
  font-family: var(--eh-sans);
  font-size: 1rem;
  letter-spacing: 0.06em;
  cursor: pointer;
}
.wpcf7 input[type=submit]:hover { background: var(--eh-accent-deep); border-color: var(--eh-accent-deep); }

/* ============================================================
   GALLERY GRID
   ============================================================ */

.eh-gallery-section {
  padding: 40px 24px 80px;
  max-width: 1280px;
  margin: 0 auto;
}
.eh-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
@media (min-width: 768px) {
  .eh-gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
  }
}
.eh-gallery-item {
  display: block;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--eh-bg-soft);
  border: none;
  transition: opacity 0.2s ease;
}
.eh-gallery-item:hover {
  opacity: 0.85;
}
.eh-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.eh-gallery-item:hover img {
  transform: scale(1.03);
}

/* ============================================================
   ELEMENTOR WIDGET CONSISTENCY (Pixel polish pass)
   Standardize sizes, spacing and image proportions across all
   Elementor-built pages so they feel like one site.
   ============================================================ */

/* ---- Section padding rhythm ---- */
.elementor-section.elementor-top-section {
  padding-top: 56px;
  padding-bottom: 56px;
}
@media (min-width: 768px) {
  .elementor-section.elementor-top-section {
    padding-top: 80px;
    padding-bottom: 80px;
  }
}
/* Tighter padding for stacked content sections */
.elementor-section.elementor-top-section + .elementor-section.elementor-top-section {
  padding-top: 0;
}

/* ---- Container max-width for reading width ---- */
.elementor-section.elementor-section-boxed > .elementor-container {
  max-width: 1080px;
}

/* ---- Headings ---- */
.elementor-widget-heading h1.elementor-heading-title {
  font-family: var(--eh-serif) !important;
  font-weight: 400 !important;
  font-size: clamp(2.4rem, 6vw, 3.6rem) !important;
  line-height: 1.08 !important;
  letter-spacing: -0.015em !important;
  color: var(--eh-ink) !important;
  margin-bottom: 0.3em !important;
}
.elementor-widget-heading h2.elementor-heading-title {
  font-family: var(--eh-serif) !important;
  font-weight: 500 !important;
  font-size: clamp(1.7rem, 3.6vw, 2.2rem) !important;
  line-height: 1.2 !important;
  letter-spacing: -0.01em !important;
  color: var(--eh-ink) !important;
  margin-bottom: 0.6em !important;
}
.elementor-widget-heading h3.elementor-heading-title {
  font-family: var(--eh-serif) !important;
  font-weight: 500 !important;
  font-size: 1.35rem !important;
  line-height: 1.3 !important;
  color: var(--eh-ink) !important;
  margin-bottom: 0.4em !important;
}

/* ---- Body text in Text Editor widget ---- */
.elementor-widget-text-editor {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--eh-ink);
}
.elementor-widget-text-editor p { margin-bottom: 1.1em; }
.elementor-widget-text-editor p:last-child { margin-bottom: 0; }
.elementor-widget-text-editor strong { font-weight: 500; color: var(--eh-ink); }

/* ---- Image widget — consistent rounded edges + cover behaviour ---- */
.elementor-widget-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
}
/* Force 4:3 on card-style images (in columns) for visual rhythm */
.elementor-column .elementor-widget-image:not(.eh-hero-img) img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ---- Buttons — quiet, intentional ---- */
.elementor-widget-button .elementor-button {
  font-family: var(--eh-sans) !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.04em !important;
  padding: 14px 28px !important;
  border-radius: 0 !important;
  background-color: var(--eh-ink) !important;
  color: var(--eh-bg) !important;
  border: 1px solid var(--eh-ink) !important;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.elementor-widget-button .elementor-button:hover {
  background-color: var(--eh-accent-deep) !important;
  border-color: var(--eh-accent-deep) !important;
}
/* Stack buttons vertically when there are multiple in a column */
.elementor-widget-button + .elementor-widget-button { margin-top: 12px !important; }

/* ---- Column gap consistency ---- */
.elementor-section .elementor-row,
.elementor-section .elementor-container {
  gap: 0;
}
.elementor-column .elementor-element-populated {
  padding: 0 16px !important;
}
@media (min-width: 768px) {
  .elementor-column .elementor-element-populated { padding: 0 24px !important; }
}
/* In hero/card sections give more breathing room */
.elementor-section[data-element_type="section"] > .elementor-container > .elementor-column {
  margin-bottom: 16px;
}
@media (min-width: 768px) {
  .elementor-section[data-element_type="section"] > .elementor-container > .elementor-column {
    margin-bottom: 0;
  }
}

/* ---- Hero pattern (first section on a page) — image + text in 2 cols ---- */
.elementor-section.elementor-top-section:first-of-type {
  padding-top: 32px;
  padding-bottom: 64px;
}

/* ---- Page title hidden but ensure no leftover spacing ---- */
.entry-title { display: none !important; }
.page .entry-content { padding-top: 0; margin-top: 0; }

/* ---- Site header (eagle-haus chrome) ---- */
#site-header.site-header {
  display: none !important;  /* hide Hello Elementor's own header */
}

/* ---- Footer (Hello Elementor default footer, hide; ours wins) ---- */
#colophon { display: none !important; }

/* ============================================================
   UTILITY
   ============================================================ */

.eh-center { text-align: center; }
.eh-mt-24 { margin-top: 24px; }
.eh-mt-48 { margin-top: 48px; }
.eh-mt-80 { margin-top: 80px; }

/* Hide Hello Elementor's default header/footer rendering — we use our own */
#site-header.site-header { display: none !important; }
#colophon.site-footer { display: none !important; }
