/* ---------------------------------------------------------
   Porter Haus B&B — style.css
   Palette: Hill Country limestone, cedar, oxblood, wheat
--------------------------------------------------------- */

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

:root{
  --limestone:      #EDE6D6;
  --limestone-deep: #E1D5BC;
  --ink:            #2A2823;
  --ink-soft:       #55503F;
  --cedar:          #5F6E52;
  --cedar-deep:     #414B39;
  --oxblood:        #8A3A2C;
  --oxblood-deep:   #6E2E22;
  --wheat:          #C79A45;
  --cream:          #FBF8F1;
  --rule:           rgba(42,40,35,0.18);
  --radius: 3px;
  --hero-overlay: linear-gradient(180deg, rgba(42,40,35,0.05) 0%, rgba(42,40,35,0.55) 100%);
}

*{ box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; text-size-adjust:100%; }
body{
  margin:0;
  background:var(--limestone);
  color:var(--ink);
  font-family:'Karla', sans-serif;
  font-size:17px;
  line-height:1.6;
  overflow-x:hidden;
}
body.nav-open{ overflow:hidden; }
h1,h2,h3,h4{
  font-family:'Fraunces', serif;
  font-weight:500;
  line-height:1.15;
  margin:0 0 0.5em;
  color:var(--ink);
}
h1{ font-size:clamp(2.4rem, 5vw, 4rem); font-weight:400; }
h2{ font-size:clamp(1.7rem, 3.4vw, 2.5rem); }
h3{ font-size:1.3rem; }
p{ margin:0 0 1em; max-width:62ch; color:var(--ink-soft); }
a{ color:var(--oxblood); }
img{ max-width:100%; display:block; }

.wrap{ max-width:1180px; margin:0 auto; padding:0 28px; }
@media (max-width:480px){ .wrap{ padding:0 20px; } }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  line-height:1.1;
  font-family:'Karla', sans-serif;
  font-weight:700;
  font-size:0.95rem;
  letter-spacing:0.02em;
  text-decoration:none;
  padding:0.85em 1.6em;
  min-height:44px;
  border-radius:var(--radius);
  border:1px solid transparent;
  cursor:pointer;
  transition:background .15s ease, color .15s ease, border-color .15s ease;
}
@media (max-width:480px){
  .cta-row{ flex-direction:column; align-items:stretch; }
  .cta-row .btn{ width:100%; }
}
.btn-primary{ background:var(--oxblood); color:#FFFFFF; }
.btn-primary:hover{ background:var(--oxblood-deep); }
.btn-ghost{ background:transparent; color:var(--ink); border-color:var(--ink); }
.btn-ghost:hover{ background:var(--ink); color:var(--limestone); }
.btn-ghost-light{ background:transparent; color:var(--cream); border-color:var(--cream); }
.btn-ghost-light:hover{ background:var(--cream); color:var(--ink); }

/* ---------- Header / nav ---------- */
header.site{
  position:sticky; top:0; z-index:50;
  background:var(--limestone);
  border-bottom:1px solid var(--rule);
  padding-top:env(safe-area-inset-top);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:18px 0;
}
.brand{
  font-family:'Fraunces', serif;
  font-size:1.35rem;
  color:var(--ink);
  text-decoration:none;
  display:flex; align-items:center; gap:12px;
}
.brand-logo{ height:80px; width:auto; display:block; }
.brand-text{ display:flex; flex-direction:column; line-height:1.05; }
.brand small{
  font-family:'Karla', sans-serif;
  font-size:0.62rem;
  font-weight:700;
  letter-spacing:0.12em;
  color:var(--cedar-deep);
  margin-top:3px;
}
.navlinks{ display:flex; align-items:center; gap:30px; }
.navlinks a{
  color:var(--ink); text-decoration:none; font-size:0.98rem;
  padding-bottom:3px; border-bottom:2px solid transparent;
}
.navlinks a:hover, .navlinks a.active{ border-color:var(--wheat); }
.navlinks a.btn-primary{ color:#FFFFFF; border-bottom:none; padding-bottom:0.85em; }
.navlinks a.btn-primary:hover{ color:#FFFFFF; }
.nav-cta{ margin-left:6px; }

.menu-btn{
  display:none;
  align-items:center; justify-content:center;
  width:44px; height:44px;
  background:none; border:none; border-radius:var(--radius);
  cursor:pointer; color:var(--ink);
  -webkit-tap-highlight-color:transparent;
}
.menu-btn:focus-visible{ outline:2px solid var(--wheat); outline-offset:2px; }
.menu-btn svg{ width:26px; height:26px; display:block; }
.menu-btn .icon-close{ display:none; }
.menu-btn[aria-expanded="true"] .icon-open{ display:none; }
.menu-btn[aria-expanded="true"] .icon-close{ display:block; }

@media (max-width:820px){
  .brand-logo{ height:52px; }
  .nav{ padding:12px 0; }
  .navlinks{
    position:absolute; top:100%; left:0; right:0;
    background:var(--cream);
    flex-direction:column; align-items:stretch;
    padding:10px 20px 26px;
    gap:2px;
    border-top:1px solid var(--rule);
    max-height:calc(100vh - 100%);
    max-height:calc(100dvh - 100%);
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
    display:none;
  }
  .navlinks.open{ display:flex; }
  .navlinks a{
    padding:15px 4px;
    border-bottom:1px solid var(--rule);
    font-size:1.05rem;
    width:100%;
  }
  .navlinks a:hover, .navlinks a.active{ border-bottom-color:var(--rule); color:var(--oxblood); }
  .navlinks a.btn-primary{
    justify-content:center;
    margin-top:14px;
    border-bottom:none;
    width:100%;
  }
  .nav-cta{ margin-left:0; }
  .menu-btn{ display:inline-flex; }
}

/* ---------- Hero ---------- */
.hero{
  position:relative;
  min-height:86vh;
  min-height:86svh;
  display:flex; align-items:flex-end;
  background-image: var(--hero-overlay), linear-gradient(135deg, #7C8A6C 0%, #C9B98B 55%, #E7D9B6 100%);
  background-size:cover;
  background-position:center;
  background-attachment:scroll;
  color:var(--cream);
}
.hero .wrap{ padding-bottom:64px; padding-top:64px; }
@media (max-width:600px){
  .hero{ min-height:72vh; min-height:72svh; }
  .hero .wrap{ padding-bottom:40px; padding-top:40px; }
}

/* Use this modifier when a hero photo is taller/narrower than the
   banner and getting cropped top/bottom is a problem. It shows the
   whole photo (letterboxed) instead of cropping it to fill the box. */
.hero.contain{
  background-size: cover, contain;
  background-repeat: no-repeat, no-repeat;
  background-color: var(--limestone-deep);
}
.hero-inner{ max-width:640px; }
.hero h1{ color:var(--cream); }
.hero p.lede{ color:rgba(251,248,241,0.92); font-size:1.15rem; max-width:46ch; }
.hero .cta-row{ display:flex; gap:14px; margin-top:22px; flex-wrap:wrap; }

/* Small page hero (interior pages) */
.hero.small{ min-height:46vh; min-height:46svh; }
@media (max-width:600px){ .hero.small{ min-height:52vh; min-height:52svh; } }

/* ---------- Photos ---------- */
.photo{
  width:100%;
  aspect-ratio: 4 / 3;
  border-radius:var(--radius);
  object-fit:cover;
  background:var(--limestone-deep); /* shows while loading / if a file is missing */
}
.photo.wide{ aspect-ratio: 16/9; }
.photo.tall{ aspect-ratio: 3/4; }
.photo.square{ aspect-ratio: 1/1; }
.photo.contain{ object-fit:contain; background:transparent; }

/* ---------- Story sections (alternating) ---------- */
.story{
  padding:88px 0;
  border-bottom:1px solid var(--rule);
}
.story .wrap{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:64px;
  align-items:center;
}
.story.flip .wrap{ direction:rtl; }
.story.flip .wrap > *{ direction:ltr; }
.story .eyebrow{ display:none; } /* intentionally unused, see design notes */
.story ul.checks{ list-style:none; padding:0; margin:1.2em 0; }
.story ul.checks li{
  padding-left:22px; position:relative; margin-bottom:0.5em; color:var(--ink-soft);
}
.story ul.checks li::before{
  content:"·"; position:absolute; left:0; top:-4px; font-size:1.6rem; color:var(--wheat);
}
@media (max-width:820px){
  .story .wrap{ grid-template-columns:1fr; gap:28px; }
  .story.flip .wrap{ direction:ltr; }
}

.section-tint{ background:var(--limestone-deep); }

/* ---------- Rooms ---------- */
.rooms-grid{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:40px 48px;
  margin-top:40px;
}
.room-card h3{ margin-bottom:0.2em; }
.room-card .room-note{
  font-size:0.85rem; color:var(--cedar-deep); font-weight:700; letter-spacing:0.02em;
  margin-bottom:0.6em; display:block;
}
.room-card p{ margin-bottom:0.8em; }
@media (max-width:720px){ .rooms-grid{ grid-template-columns:1fr; gap:36px; } }

/* ---------- Guest book / reviews ---------- */
.guestbook{ padding:88px 0; }
.guestbook-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  align-items:start;
  gap:28px;
  margin-top:40px;
}
.gb-entry{
  background:var(--cream);
  border:1px solid var(--rule);
  border-radius:var(--radius);
  padding:26px 24px;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
}
.gb-entry:nth-child(2){ transform: translateY(18px); }
.gb-entry p.quote{
  font-family:'Fraunces', serif;
  font-size:1.15rem;
  font-weight:400;
  color:var(--ink);
  margin-bottom:0.9em;
}
.gb-entry .attrib{ font-size:0.82rem; color:var(--ink-soft); margin:0; }
@media (max-width:900px){
  .guestbook-grid{ grid-template-columns:1fr; }
  .gb-entry:nth-child(2){ transform:none; }
}

/* ---------- Info strip (policies / practical) ---------- */
.info-strip{
  background:var(--cedar-deep);
  color:var(--cream);
  padding:56px 0;
}
.info-strip h2{ color:var(--cream); }
.info-grid{
  display:grid; grid-template-columns:repeat(4,1fr); gap:32px; margin-top:28px;
}
.info-grid div h4{ color:var(--wheat); font-family:'Karla',sans-serif; font-size:0.78rem; letter-spacing:0.06em; margin-bottom:0.4em; }
.info-grid div p{ color:rgba(251,248,241,0.88); margin:0; font-size:0.95rem; }
@media (max-width:820px){ .info-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:520px){ .info-grid{ grid-template-columns:1fr; } }

/* ---------- Final CTA ---------- */
.final-cta{
  padding:96px 0;
  text-align:left;
  background: linear-gradient(150deg, #7C8A6C 0%, #C9B98B 60%, #E7D9B6 100%);
}
.final-cta .wrap{ max-width:640px; }
.final-cta .cta-row{ display:flex; gap:14px; margin-top:20px; flex-wrap:wrap; }

/* ---------- Footer ---------- */
footer.site{
  background:var(--ink);
  color:rgba(251,248,241,0.82);
  padding:56px 0 calc(30px + env(safe-area-inset-bottom));
}
footer.site a{ color:var(--cream); }
.foot-grid{
  display:grid; grid-template-columns:2fr 1fr 1fr; gap:40px;
}
footer.site h4{
  color:var(--cream); font-family:'Karla',sans-serif; font-size:0.78rem;
  letter-spacing:0.06em; margin-bottom:0.8em;
}
footer.site .brand{ color:var(--cream); flex-direction:column; align-items:flex-start; gap:0; }
footer.site .brand small{ color:var(--wheat); }
footer.site p{ color:rgba(251,248,241,0.72); font-size:0.92rem; }
footer.site ul{ list-style:none; padding:0; margin:0; }
footer.site li{ margin-bottom:0.55em; font-size:0.92rem; }
.foot-bottom{
  margin-top:44px; padding-top:22px; border-top:1px solid rgba(251,248,241,0.14);
  font-size:0.8rem; color:rgba(251,248,241,0.55);
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px;
}
@media (max-width:720px){ .foot-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:480px){ .foot-grid{ grid-template-columns:1fr; gap:32px; } }

/* ---------- Utility ---------- */
.center{ text-align:center; }
.mt-0{ margin-top:0; }
.kicker-block{ max-width:640px; margin:0 auto 8px; }
.section-head{ max-width:640px; margin-bottom:8px; }
.two-col-text{ display:grid; grid-template-columns:1fr 1fr; gap:48px; margin-top:24px; }
@media (max-width:820px){ .two-col-text{ grid-template-columns:1fr; } }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *{ transition:none !important; }
}
