/* The Pig Hill Inn */

@font-face { font-family: 'Libre Baskerville'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/libre-baskerville-400.woff2) format('woff2'); }
@font-face { font-family: 'Libre Baskerville'; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/libre-baskerville-400-italic.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 300; font-display: swap; src: url(../fonts/poppins-300.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/poppins-400.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/poppins-500.woff2) format('woff2'); }

:root {
  --green: #2f4a3a;        /* ivy green, header and footer */
  --green-dark: #22372b;
  --gold: #f2c066;         /* logo gold, used on green */
  --gold-text: #8a6214;    /* darker gold for text on cream */
  --cream: #fbf8f2;
  --paper: #ffffff;
  --ink: #2b2b2b;
  --muted: #5c5c5c;
  --line: #e4dccb;
  --radius: 10px;
  --serif: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  --sans: 'Poppins', 'Segoe UI', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 300 1.05rem/1.75 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--gold-text); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.3; color: var(--green-dark); }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 0 0 .6em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 .8em; }
h3 { font-size: 1.15rem; margin: 1.4em 0 .4em; }
p { margin: 0 0 1em; }
strong { font-weight: 500; }
:focus-visible { outline: 3px solid var(--gold-text); outline-offset: 2px; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--paper); padding: .6em 1em; z-index: 100; }
.skip-link:focus { left: 1em; top: 1em; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.demo-banner { background: #8b1e1e; color: #fff; text-align: center; font-size: .85rem; padding: .35em 1em; font-weight: 400; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: 760px; }
.section { padding: 4rem 0; }
.section-alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.center { text-align: center; }
.lead { font-size: 1.15rem; }

/* Buttons */
.btn { display: inline-block; padding: .7em 1.5em; border-radius: 999px; font: 500 .95rem/1.2 var(--sans); letter-spacing: .03em; text-decoration: none; border: 2px solid transparent; transition: background .15s, color .15s; }
.btn-gold { background: var(--gold); color: var(--green-dark); }
.btn-gold:hover { background: #ffd58a; color: var(--green-dark); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); color: #fff; }
.btn-outline { border-color: currentColor; color: var(--green); }

/* Header */
.site-header { background: var(--green); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.header-inner { max-width: 1240px; margin: 0 auto; padding: .7rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo img { width: 230px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .2rem 1.1rem; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a { color: #f4efe4; text-decoration: none; font-size: .92rem; font-weight: 400; padding: .3em 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--gold); border-bottom-color: var(--gold); }
.site-nav .nav-book a { color: var(--green-dark); border: 0; padding: .55em 1.2em; margin-left: .4rem; }
.site-nav .nav-book a:hover { color: var(--green-dark); }
.nav-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,.4); color: #fff; border-radius: 6px; padding: .45em .8em; font: 400 .9rem var(--sans); cursor: pointer; align-items: center; gap: .5em; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: #fff; position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ''; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

@media (max-width: 1000px) {
  .logo img { width: 190px; }
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--green-dark); padding: 1rem 1.5rem 1.5rem; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: .4rem; }
  .site-nav a { font-size: 1.05rem; }
  .site-nav .nav-book a { margin: .6rem 0 0; }
}

/* Full-width page tops and bottoms (no rounded corners) */
.hero { position: relative; min-height: 62vh; display: flex; align-items: flex-end; background: var(--green-dark); }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,30,24,.78) 0%, rgba(20,30,24,.25) 45%, rgba(20,30,24,0) 70%); }
.hero-text { position: relative; z-index: 1; color: #fff; padding: 3rem 1.5rem; max-width: 1100px; margin: 0 auto; width: 100%; }
.hero-text h1 { color: #fff; margin-bottom: .3em; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.hero-text p { font-size: 1.15rem; max-width: 40em; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.page-banner { position: relative; height: clamp(200px, 30vw, 360px); background: var(--green-dark); }
.page-banner img { width: 100%; height: 100%; object-fit: cover; }
.page-head { padding: 3rem 0 1rem; }
.closing-banner { position: relative; min-height: 340px; display: flex; align-items: center; justify-content: center; text-align: center; background: var(--green-dark); }
.closing-banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.closing-banner::after { content: ''; position: absolute; inset: 0; background: rgba(20,30,24,.45); }
.closing-banner div { position: relative; z-index: 1; color: #fff; padding: 2rem 1.5rem; }
.closing-banner h2 { color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.5); }

/* Mid-page images: rounded */
.rounded, .card img, .room-photo img, .place img, .split img { border-radius: var(--radius); }

/* Cards on the home page */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2rem; }
.card { background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.06); display: flex; flex-direction: column; }
.card img { border-radius: 0; aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.card-body { padding: 1.3rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-top: 0; }
.card-body p:last-child { margin-top: auto; margin-bottom: 0; }

/* Two-column text and photo */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split + .split { margin-top: 3.5rem; }
.split.reverse > :first-child { order: 2; }
.split img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* Before You Arrive */
.arrival-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 3rem; }
.arrival-grid h3:first-child { margin-top: 0; }
.arrival-grid > div { padding-bottom: 1rem; }

/* Rooms */
.room-notes { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.6rem; margin: 0 0 3rem; }
.room-notes ul { margin: 0; padding-left: 1.2em; }
.room { display: grid; grid-template-columns: 3fr 2fr; gap: 2.5rem; padding: 2.5rem 0; border-top: 1px solid var(--line); align-items: start; }
.room h2 { margin-bottom: .2em; }
.room .floor { color: var(--gold-text); font-weight: 500; font-size: .9rem; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 1rem; }
.room ul.features { margin: 0 0 1.4rem; padding-left: 1.2em; }
.room-photo > a { display: block; }
.room-photo > a img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; margin-top: .5rem; }
.thumbs img { border-radius: 6px; aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.thumbs a:hover img, .room-photo > a:hover img { opacity: .85; }

/* Explore */
.place-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.place img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: .9rem; }
.place h3 { margin-top: 0; }
.place p { font-size: .95rem; color: var(--muted); }
.link-list { columns: 2; padding-left: 1.2em; }
.link-list li { break-inside: avoid; margin-bottom: .3em; }

/* Getting here and contact */
.map { width: 100%; height: 380px; border: 0; border-radius: var(--radius); }
.info-box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.8rem; }
.info-box h2, .info-box h3:first-child { margin-top: 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }

/* Policies */
.policy-list { padding-left: 1.2em; }
.policy-list li { margin-bottom: .5em; }

/* Footer */
.site-footer { background: var(--green-dark); color: #e9e4d8; padding: 3rem 0 1.5rem; font-size: .95rem; }
.site-footer a { color: #f4efe4; }
.site-footer a:hover { color: var(--gold); }
.site-footer .btn-gold { color: var(--green-dark); }
.footer-inner { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; }
.footer-logo { width: 200px; margin-bottom: 1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: .35em; }
.copyright a { color: #d9d3c5; }
.copyright { text-align: center; font-size: .82rem; color: #b9b3a5; margin: 2.5rem 0 0; padding: 0 1.5rem; }

/* Photo viewer */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(0,0,0,.85); }
.lightbox img { max-width: 94vw; max-height: 92vh; width: auto; border-radius: 6px; }
.lightbox-close { position: fixed; top: 1rem; right: 1.2rem; background: rgba(0,0,0,.5); color: #fff; border: 0; font-size: 2rem; line-height: 1; width: 2.6rem; height: 2.6rem; border-radius: 50%; cursor: pointer; }

/* Narrow screens */
@media (max-width: 860px) {
  .card-grid, .place-grid { grid-template-columns: 1fr 1fr; }
  .split, .room, .contact-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .split.reverse > :first-child { order: 0; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .section { padding: 2.8rem 0; }
  .card-grid, .place-grid, .arrival-grid, .footer-inner { grid-template-columns: 1fr; }
  .link-list { columns: 1; }
  .hero { min-height: 70vh; }
  .thumbs { grid-template-columns: repeat(4, 1fr); }
}
