/* ==========================================================================
   WBA Billiards — shared stylesheet
   Palette: felt green / walnut / brass — evokes the table itself, not a
   generic corporate look.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Work+Sans:wght@400;500;600&display=swap');

:root{
  --felt: #1F4B3F;
  --felt-dark: #143028;
  --walnut: #362018;
  --walnut-dark: #241309;
  --brass: #B8873B;
  --brass-light: #D9B15C;
  --stone: #F4F1E8;
  --stone-dim: #E9E3D3;
  --ink: #241E1A;
  --ink-soft: #55493E;
  --white: #FFFFFF;

  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max: 1120px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--stone);
  line-height: 1.6;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
h1,h2,h3{
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--walnut-dark);
}
h1{ font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 700; }
h2{ font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3{ font-size: 1.2rem; }
p{ margin: 0 0 1em; max-width: 68ch; color: var(--ink-soft); }
.container{ max-width: var(--max); margin: 0 auto; padding: 0 24px; }
section{ padding: 64px 0; }
section.tight{ padding: 40px 0; }
.bg-white{ background: var(--white); }
.bg-stone-dim{ background: var(--stone-dim); }

/* Buttons */
.btn{
  display: inline-block;
  padding: 13px 28px;
  border-radius: 3px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn-brass{ background: var(--brass); color: var(--walnut-dark); }
.btn-brass:hover{ background: var(--brass-light); transform: translateY(-1px); }
.btn-outline{ border: 1.5px solid var(--white); color: var(--white); }
.btn-outline:hover{ background: rgba(255,255,255,0.1); }

/* ---------------- Header / nav ---------------- */
header.site-header{
  background: var(--felt);
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.nav-inner{
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max); margin: 0 auto;
}
.logo{
  font-family: var(--serif); font-weight: 700; font-size: 1.35rem;
  color: var(--white); letter-spacing: 0.01em;
  display: flex; align-items: center;
}
.logo img{ height: 54px; width: auto; display: block; }
.logo span{ color: var(--brass-light); }
nav.primary-nav ul{
  list-style: none; display: flex; gap: 28px; margin: 0; padding: 0;
}
nav.primary-nav a{
  color: var(--stone); font-size: 0.95rem; font-weight: 500;
  padding: 6px 2px; border-bottom: 2px solid transparent;
}
nav.primary-nav a:hover, nav.primary-nav a.active{ border-bottom-color: var(--brass); color: var(--white); }
.nav-phone{
  color: var(--brass-light); font-weight: 600; white-space: nowrap;
}
.nav-toggle{ display: none; }

@media (max-width: 820px){
  nav.primary-nav{
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--felt-dark); padding: 12px 24px 20px;
  }
  nav.primary-nav.open{ display: block; }
  nav.primary-nav ul{ flex-direction: column; gap: 14px; }
  .nav-toggle{
    display: inline-block; background: none; border: none;
    color: var(--white); font-size: 1.6rem; cursor: pointer;
  }
  .nav-phone{ display: none; }
}

/* ---------------- Hero / slider ---------------- */
.hero-slider{
  position: relative; overflow: hidden;
  height: 520px;
  background: linear-gradient(135deg, var(--felt-dark), var(--felt));
}
.slide{
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: translateX(36px);
  transition: transform 0.6s ease, opacity 0.6s ease;
  background-size: cover; background-position: center;
  z-index: 1;
}
.slide.is-active{ opacity: 1; transform: translateX(0); z-index: 2; }
.slide.is-prev{ opacity: 0; transform: translateX(-36px); z-index: 2; }
.slide::after{
  content: ""; position: absolute; inset: 0;
  background: rgba(17,38,32,0.65);
}
.slide-content{
  position: relative; z-index: 2; padding: 90px 24px;
  max-width: 620px; margin: 0 auto; width: 100%;
  text-align: center;
}
.slide-eyebrow{
  color: var(--brass-light); font-weight: 600; margin-bottom: 14px;
  display: inline-block; padding-bottom: 8px;
  border-bottom: 2px solid rgba(255,255,255,0.6);
}
.slide-content h1{ color: var(--white); }
.slide-content p{ color: var(--stone); font-size: 1.05rem; margin-left: auto; margin-right: auto; }
.hero-cta{ margin-top: 18px; display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.slider-dots{
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 9px; z-index: 3;
}
.slider-dots button{
  width: 10px; height: 10px; border-radius: 50%; border: none;
  background: rgba(255,255,255,0.4); cursor: pointer; padding: 0;
}
.slider-dots button.is-active{ background: var(--brass-light); }

/* ---------------- Page header (non-home pages) ---------------- */
.page-header{
  background: linear-gradient(135deg, var(--felt-dark), var(--felt));
  padding: 56px 0 44px;
}
.page-header h1{ color: var(--white); margin-bottom: 6px; }
.page-header p{ color: var(--stone); margin: 0; }

/* ---------------- Feature / service cards ---------------- */
.grid-3{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2{ display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (max-width: 820px){ .grid-3, .grid-2{ grid-template-columns: 1fr; } }

.card{
  background: var(--white); padding: 30px; border-radius: 4px;
  border-top: 3px solid var(--brass);
}
.card h3{ margin-bottom: 10px; }
.card p{ font-size: 0.95rem; }

/* ---------------- Intro / two-col sections ---------------- */
.intro-row{
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center;
}
@media (max-width: 820px){ .intro-row{ grid-template-columns: 1fr; } }
@media (max-width: 820px){
  .hero-slider{ height: 640px; }
  .slide-content{ padding: 40px 24px; }
}
.placeholder-img{
  background: repeating-linear-gradient(45deg, #ded6c2, #ded6c2 10px, #e7e0cf 10px, #e7e0cf 20px);
  border: 1px dashed var(--brass);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft); font-size: 0.85rem; text-align: center;
  padding: 20px; min-height: 220px;
}

/* ---------------- Gallery ---------------- */
.gallery-grid{
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
@media (max-width: 820px){ .gallery-grid{ grid-template-columns: repeat(3, 1fr); gap: 8px; } }
@media (max-width: 480px){ .gallery-grid{ grid-template-columns: repeat(2, 1fr); gap: 8px; } }
.gallery-grid a{
  display: block; aspect-ratio: 1 / 1; overflow: hidden;
  border-radius: 6px; position: relative;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.gallery-grid img{
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.35s ease;
}
.gallery-grid a:hover img{ transform: scale(1.08); }
.gallery-grid a::after{
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(rgba(0,0,0,0) 60%, rgba(0,0,0,0.35));
  opacity: 0; transition: opacity 0.35s ease;
}
.gallery-grid a:hover::after{ opacity: 1; }

/* Lightbox */
.lightbox-overlay{
  position: fixed; inset: 0; z-index: 999;
  background: rgba(15,25,20,0.92);
  display: none; align-items: center; justify-content: center;
  padding: 40px 20px;
}
.lightbox-overlay.is-open{ display: flex; }
.lightbox-overlay img{
  max-width: 100%; max-height: 100%;
  border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.lightbox-close{
  position: absolute; top: 18px; right: 24px;
  background: none; border: none; color: var(--white);
  font-size: 2rem; line-height: 1; cursor: pointer; padding: 6px 10px;
}

/* ---------------- Testimonials ---------------- */
.testimonial{
  background: var(--white); border-radius: 4px; padding: 26px;
  border-left: 3px solid var(--brass);
}
.testimonial p{ font-style: italic; font-size: 0.95rem; }
.testimonial cite{ font-style: normal; font-weight: 600; color: var(--walnut); display: block; margin-top: 10px; }

/* ---------------- Forms ---------------- */
.form-wrap{
  background: var(--white); padding: 34px; border-radius: 4px; max-width: 640px;
}
label{ display: block; font-weight: 600; margin: 16px 0 6px; font-size: 0.9rem; }
input, textarea{
  width: 100%; padding: 11px 13px; border: 1px solid #d8d0bd;
  border-radius: 3px; font-family: var(--sans); font-size: 0.95rem;
  background: var(--stone);
}
textarea{ min-height: 130px; resize: vertical; }
.hp-field{ position: absolute; left: -9999px; top: -9999px; }
.form-note{ font-size: 0.82rem; color: var(--ink-soft); margin-top: 14px; }
#form-status{ margin-top: 14px; font-weight: 600; }

/* ---------------- Tables (room size chart) ---------------- */
table.sizes{ width: 100%; border-collapse: collapse; background: var(--white); }
table.sizes th, table.sizes td{
  text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--stone-dim);
  font-size: 0.95rem;
}
table.sizes th{ background: var(--felt); color: var(--white); font-family: var(--serif); font-weight: 600; }
table.sizes tr:nth-child(even){ background: var(--stone); }

/* ---------------- Listings (for sale / advice) ---------------- */
.listing{
  background: var(--white); border-radius: 4px; padding: 26px; margin-bottom: 20px;
  border-top: 3px solid var(--brass);
}
.listing h3{ margin-bottom: 6px; }
.listing .meta{ font-size: 0.82rem; color: var(--brass); font-weight: 600; margin-bottom: 10px; }

/* ---------------- Footer ---------------- */
footer.site-footer{
  background: var(--walnut-dark); color: var(--stone-dim); padding: 48px 0 26px;
  margin-top: 40px;
}
footer.site-footer h3{ color: var(--white); font-size: 1.1rem; }
footer.site-footer a:hover{ color: var(--brass-light); }
.footer-grid{ display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 820px){ .footer-grid{ grid-template-columns: 1fr; } }
.footer-grid ul{ list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 0.92rem; }
.footer-bottom{
  border-top: 1px solid rgba(255,255,255,0.1); margin-top: 34px; padding-top: 20px;
  font-size: 0.82rem; color: #a99d8c; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}

/* ---------------- CTA band ---------------- */
.cta-band{
  background: var(--felt); color: var(--white); padding: 46px 0; text-align: center;
}
.cta-band h2{ color: var(--white); }
.cta-band p{ color: var(--stone); margin-left: auto; margin-right: auto; }
