/*
Theme Name:   Wilna Motel
Theme URI:    https://wilnamotel.com
Description:  Child theme of Astra for Wilna Motel — mobile-first, low-weight overrides only. Built for Bridge & Branch Studio project brief, Aug 2026.
Author:       Wilna Motel In-house IT
Template:     astra
Version:      1.0.0
Text Domain:  wilna-motel
*/

/* ==========================================================================
   Brand tokens — edit these to match the studio's brand guide, everything
   below reads from these variables so a rebrand only touches this block.
   ========================================================================== */
:root {
  --wilna-primary: #1f3b3a;      /* deep green — replace with brand colour */
  --wilna-accent:  #c98a3e;      /* warm gold accent */
  --wilna-bg:      #faf8f5;
  --wilna-text:    #24211f;
  --wilna-radius:  10px;
}

/* ==========================================================================
   Mobile-first base. Astra is already responsive; these are the deliberate
   overrides for the motel brand + faster perceived load on slow connections.
   ========================================================================== */
body {
  background: var(--wilna-bg);
  color: var(--wilna-text);
}

a { color: var(--wilna-accent); }

.site-header,
.ast-primary-header {
  background: var(--wilna-primary);
}

/* Room cards (used on the Rooms page alongside the MotoPress room list) */
.wilna-room-card {
  border-radius: var(--wilna-radius);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  background: #fff;
  margin-bottom: 1.5rem;
}
.wilna-room-card img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.wilna-room-card__body { padding: 1rem 1.25rem; }
.wilna-room-card__cta {
  display: inline-block;
  margin-top: .5rem;
  padding: .6rem 1.2rem;
  background: var(--wilna-accent);
  color: #fff;
  border-radius: var(--wilna-radius);
  text-decoration: none;
  font-weight: 600;
}

/* Sticky "Book Now" bar on mobile — keeps the CTA reachable on long room pages */
.wilna-sticky-cta {
  display: none;
}
@media (max-width: 767px) {
  .wilna-sticky-cta {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 999;
    background: var(--wilna-primary);
    padding: .75rem 1rem;
    justify-content: center;
  }
  .wilna-sticky-cta a {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
  }
  /* stop the sticky bar covering the last bit of content */
  body { padding-bottom: 56px; }
}

/* Reduce large hero images to a sane size on slow mobile connections */
.wilna-hero img {
  max-height: 60vh;
  width: 100%;
  object-fit: cover;
}
