/* ============================================================
   JIMCH — Layout: header, nav, footer, mobile sticky bar
   ============================================================ */

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(251, 248, 241, 0.85);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(11, 77, 60, 0.08);
  transition: height 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--grad-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-300);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--emerald-900);
  font-weight: 700;
}

.brand-text span {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--gold-700);
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .brand-text span {
    display: none;
  }
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  position: relative;
  padding: 10px 16px;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--ink-700);
  border-radius: var(--radius-full);
  transition: color 0.25s, background 0.25s;
}

.main-nav a:hover {
  color: var(--emerald-800);
  background: var(--emerald-50);
}

.main-nav a.active {
  color: var(--emerald-800);
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 4px;
  height: 2px;
  background: var(--grad-gold);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.lang-toggle {
  display: flex;
  align-items: center;
  background: var(--emerald-100);
  border-radius: var(--radius-full);
  padding: 4px;
  gap: 2px;
}

.lang-toggle button {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--emerald-700);
  transition: background 0.25s, color 0.25s;
}

.lang-toggle button.active {
  background: var(--grad-emerald);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.header-call {
  display: none;
}

@media (min-width: 861px) {
  .header-call {
    display: inline-flex;
  }
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  align-items: center;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--emerald-900);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.is-open span:nth-child(2) {
  opacity: 0;
}
.hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    background: var(--cream-50);
    flex-direction: column;
    align-items: stretch;
    padding: calc(var(--header-h-mobile) + 18px) 20px 120px;
    gap: 4px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    z-index: 999;
  }

  .main-nav.is-open {
    transform: translateX(0);
  }

  .main-nav a {
    padding: 16px 18px;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(11, 77, 60, 0.08);
    border-radius: var(--radius-sm);
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .main-nav .lang-toggle-mobile {
    margin-top: 18px;
    justify-content: center;
  }

  .hamburger {
    display: flex;
  }

  .site-header {
    height: var(--header-h-mobile);
  }
}

@media (min-width: 861px) {
  .lang-toggle-mobile { display: none; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--grad-hero);
  color: rgba(255, 255, 255, 0.82);
  padding: 72px 0 28px;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 160, 23, 0.18), transparent 70%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-brand strong {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1.15rem;
}

.footer-tagline {
  color: var(--gold-300);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-top: 2px;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.92rem;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.68);
  transition: color 0.25s, padding-left 0.25s;
}

.footer-col a:hover {
  color: var(--gold-300);
  padding-left: 4px;
}

.footer-contact li {
  display: flex;
  gap: 10px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  align-items: flex-start;
}

.footer-contact svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--gold-300);
}

.footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  position: relative;
  z-index: 1;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px 24px;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ---------- Mobile sticky action bar ---------- */
.mobile-action-bar {
  display: none;
}

@media (max-width: 860px) {
  .mobile-action-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 998;
    background: var(--white);
    box-shadow: 0 -8px 24px rgba(6, 35, 26, 0.14);
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    gap: 10px;
  }

  .mobile-action-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.92rem;
  }

  .mobile-action-bar .call-now {
    background: var(--grad-emerald);
    color: var(--white);
  }

  .mobile-action-bar .directions {
    background: var(--gold-100);
    color: var(--gold-700);
    border: 1.5px solid var(--gold-300);
  }

  body {
    padding-bottom: 76px;
  }
}
