/*
Theme Name: Bachhof Würenlingen
Theme URI: https://bachhof-wuerenlingen.ch
Description: Vintage Americana / Rostlook — Familienbetrieb Schneider, Würenlingen. Benötigt das Hello Elementor Theme als Parent.
Author: Familie Schneider
Author URI: https://bachhof-wuerenlingen.ch
Template: hello-elementor
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: Private
Text Domain: bachhof-wuerenlingen
*/

/* ── Google Fonts ───────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Rye&family=Special+Elite&family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&family=IM+Fell+English+SC&display=swap');

/* ── CSS Variables ──────────────────────────────────────────────────────── */
:root {
  --bh-coal:      #14100c;
  --bh-coal2:     #1e1712;
  --bh-rust-d:    #4a1e0d;
  --bh-rust:      #8b3a1c;
  --bh-rust-w:    #c8693a;
  --bh-rust-g:    #d88a4c;
  --bh-paper:     #f0e6d2;
  --bh-cream:     #f5efe1;
  --bh-tan:       #c9a97a;
  --bh-ink:       #0a0706;
  --bh-bone:      #d8cfbc;
}

/* ── Page base ──────────────────────────────────────────────────────────── */
body {
  background-color: var(--bh-coal);
  color: var(--bh-paper);
  -webkit-font-smoothing: antialiased;
}

/* Hide Hello Elementor's default site header and footer — we use custom ones */
.site-header,
.site-footer {
  display: none !important;
}

/* ── Custom Header ──────────────────────────────────────────────────────── */
.bh-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: rgba(10, 7, 6, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(200, 105, 58, 0.22);
}

.bh-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 13px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Brand */
.bh-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--bh-paper);
  flex-shrink: 0;
  line-height: 1;
}
.bh-brand svg { flex-shrink: 0; }
.bh-brand-name {
  display: block;
  font-family: 'Rye', serif;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  color: var(--bh-paper);
}
.bh-brand-sub {
  display: block;
  font-family: 'Special Elite', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  color: var(--bh-rust-w);
  text-transform: uppercase;
  margin-top: 3px;
}

/* Nav */
.bh-nav { display: flex; align-items: center; gap: 2rem; }
.bh-nav ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  gap: 2rem;
  align-items: center;
}
.bh-nav a {
  font-family: 'IM Fell English SC', serif;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  color: var(--bh-paper);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}
.bh-nav a:hover,
.bh-nav .current-menu-item > a,
.bh-nav .current_page_item > a { color: var(--bh-rust-g); }

/* Phone CTA */
.bh-phone {
  font-family: 'Special Elite', monospace;
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  color: var(--bh-rust-w);
  text-decoration: none;
  border: 1px solid rgba(200, 105, 58, 0.4);
  padding: 8px 16px;
  white-space: nowrap;
  transition: all 0.2s;
  flex-shrink: 0;
}
.bh-phone:hover {
  background: var(--bh-rust);
  color: var(--bh-cream);
  border-color: var(--bh-rust);
}

/* Burger */
.bh-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
}
.bh-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--bh-paper);
  transition: all 0.25s;
}

/* ── Custom Footer ──────────────────────────────────────────────────────── */
.bh-footer {
  background: #0b0706;
  border-top: 2px solid var(--bh-rust-d);
  padding: 52px 40px 40px;
  text-align: center;
  position: relative;
}
.bh-footer::before {
  content: "";
  position: absolute;
  top: -2px; left: 50%;
  transform: translateX(-50%);
  width: 80px; height: 4px;
  background: var(--bh-rust-w);
}
.bh-footer-brand {
  font-family: 'Rye', serif;
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  color: var(--bh-cream);
  margin-bottom: 10px;
}
.bh-footer-meta {
  font-family: 'Special Elite', monospace;
  font-size: 0.82rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bh-tan);
  margin-bottom: 28px;
}
.bh-footer-meta a {
  color: var(--bh-rust-w);
  text-decoration: none;
}
.bh-footer-nav ul {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 20px;
}
.bh-footer-nav a {
  font-family: 'IM Fell English SC', serif;
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--bh-paper);
  text-decoration: none;
  transition: color 0.2s;
}
.bh-footer-nav a:hover { color: var(--bh-rust-w); }
.bh-footer-legal {
  font-family: 'Special Elite', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: rgba(200, 105, 58, 0.45);
}

/* ── Elementor global overrides ─────────────────────────────────────────── */
.elementor-section.elementor-section-full_width > .elementor-container { max-width: 100%; }
.elementor-widget-wrap { padding: 0 !important; }
.elementor-section { position: relative; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .bh-header-inner { padding: 12px 24px; }
  .bh-phone { display: none; }
}

@media (max-width: 767px) {
  .bh-header-inner { padding: 10px 16px; }
  .bh-burger { display: flex; }
  .bh-nav {
    position: fixed;
    top: 56px; right: 0; bottom: 0;
    width: min(280px, 80vw);
    background: rgba(10, 7, 6, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 2rem 1.5rem;
    gap: 0;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    border-left: 1px solid rgba(200, 105, 58, 0.25);
  }
  .bh-nav.open { transform: translateX(0); }
  .bh-nav ul { flex-direction: column; gap: 0; }
  .bh-nav li { width: 100%; border-bottom: 1px solid rgba(200,105,58,0.15); }
  .bh-nav a { display: block; padding: 14px 0; font-size: 1.15rem; }
  .bh-brand-name { font-size: 0.95rem; }
  .bh-brand-sub { font-size: 0.58rem; letter-spacing: 0.25em; }
  .bh-footer { padding: 36px 16px 28px; }
  .bh-footer-meta { letter-spacing: 0.08em; }
}
