/* Hotel Pentagon South — stylesheet
   Single file, no build step, no external dependencies. */

:root {
  /* Anchors — deep enough to carry white type */
  --forest:       #123526;
  --forest-2:     #1c4a34;
  --green:        #2a6448;
  --green-hi:     #38805c;

  /* Accents. Brass for numerals and eyebrows; clay picks up the warm
     tones in the existing room photography so the palette agrees with it. */
  --brass:        #c8952f;   /* decorative only — rules, borders, large numerals */
  --brass-hi:     #e0ae47;   /* on dark backgrounds only */
  --brass-text:   #7f5c1e;   /* text-safe on cream/white/sand: >=5.0:1 */
  --clay:         #b5502f;

  /* Neutrals */
  --sand:         #f2e8d5;
  --cream:        #faf7f0;
  --white:        #ffffff;
  --ink:          #161a17;
  --ink-soft:     #55605a;
  --line:         #e2dccb;
  --line-dark:    rgba(255,255,255,.16);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1200px;
  --gap: 28px;
  --radius: 6px;
  --shadow: 0 3px 18px rgba(18,53,38,.10);
  --shadow-lg: 0 16px 50px rgba(18,53,38,.20);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 17px/1.62 var(--sans);
  -webkit-font-smoothing: antialiased;
}
/* height:auto is load-bearing — without it the width/height attributes set a
   fixed pixel height while max-width shrinks the width, stretching any inline
   image that isn't sized by its own rule. */
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.022em; }
h1 { font-size: clamp(42px, 6.4vw, 76px); }
h2 { font-size: clamp(31px, 4vw, 46px); }
h3 { font-size: clamp(21px, 2.3vw, 26px); }
p  { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.15em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }
.center { text-align: center; }

/* Eyebrow with a rule, so section openings read as deliberate */
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font: 700 12px/1 var(--sans);
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--brass-text); margin: 0 0 16px;
}
.eyebrow::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .35; max-width: 90px; }
.center .eyebrow { justify-content: center; }
.center .eyebrow::after { display: none; }

.lede { font-size: 19.5px; color: var(--ink-soft); }
section { padding: 92px 0; }
section.tight { padding: 60px 0; }
.bg-white { background: var(--white); }
.bg-sand  { background: var(--sand); }
.bg-forest { background: var(--forest); color: #dbe7e0; }
.bg-forest h2, .bg-forest h3, .bg-forest h4 { color: #fff; }
.bg-forest .lede { color: #b9cec3; }
.bg-forest .eyebrow { color: var(--brass-hi); }

/* Visible to screen readers, not on screen. Used on <caption> elements so
   tables are announced with a name without printing a redundant heading. */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ---------- skip link ---------- */
.skip { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--forest); color: #fff; padding: 12px 18px; }
.skip:focus { left: 12px; top: 12px; }

/* ---------- keyboard focus ----------
   Every interactive element needs a visible focus ring. :focus-visible keeps it
   off mouse clicks. The dark ring works on light backgrounds; the light variant
   is for controls sitting on forest/hero. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--forest);
  outline-offset: 3px;
  border-radius: 2px;
}
.bg-forest a:focus-visible,
.hero a:focus-visible,
.callout a:focus-visible,
.site-footer a:focus-visible,
.btn-accent:focus-visible,
.btn-on-dark:focus-visible {
  outline-color: #ffd479;
}
/* Buttons already carry their own shape, so keep the ring tight to it. */
.btn:focus-visible { outline-offset: 4px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; border: 0; cursor: pointer;
  font: 700 15px/1 var(--sans); letter-spacing: .01em;
  padding: 16px 28px; border-radius: var(--radius);
  background: var(--green); color: #fff; text-decoration: none;
  box-shadow: 0 2px 0 rgba(18,53,38,.28);
  transition: background .15s ease, transform .12s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--green-hi); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(18,53,38,.28); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn-accent { background: var(--brass); color: #2a1c00; box-shadow: 0 2px 0 rgba(120,86,14,.4); }
.btn-accent:hover { background: var(--brass-hi); }
.btn-ghost { background: transparent; color: var(--green); box-shadow: inset 0 0 0 2px var(--green); }
.btn-ghost:hover { background: var(--green); color: #fff; box-shadow: inset 0 0 0 2px var(--green); }
.btn-light { background: #fff; color: var(--forest); }
.btn-light:hover { background: var(--sand); }
.btn-on-dark { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.55); }
.btn-on-dark:hover { background: #fff; color: var(--forest); box-shadow: inset 0 0 0 2px #fff; }
.btn-wide { width: 100%; text-align: center; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,247,240,.93);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.brand { font-family: var(--serif); font-size: 21px; font-weight: 700; color: var(--forest); text-decoration: none; letter-spacing: -.02em; line-height: 1.1; }
.brand span { display: block; font: 700 9.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--brass-text); margin-top: 5px; }
.nav { display: flex; gap: 28px; margin-left: 38px; }
.nav a { font: 600 15px/1 var(--sans); color: var(--ink); text-decoration: none; padding: 7px 0; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2.5px; background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform .18s ease; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.tel { font: 700 15.5px/1 var(--sans); color: var(--forest); text-decoration: none; white-space: nowrap; }
.tel:hover { color: var(--green-hi); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; color: var(--ink); }
.nav-toggle svg { width: 24px; height: 24px; }

/* ---------- hero ----------
   Full-bleed image behind a deep scrim. The available exterior photo is a flat
   grey winter shot; used as an atmospheric backdrop rather than the subject it
   carries the page, and white display type on dark gives the contrast the old
   cream-on-cream split lacked. */
.hero { position: relative; padding: 0; background: var(--forest); overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(18,53,38,.96) 0%, rgba(18,53,38,.86) 38%, rgba(18,53,38,.45) 68%, rgba(18,53,38,.30) 100%),
    linear-gradient(to top, rgba(18,53,38,.85) 0%, rgba(18,53,38,0) 45%);
}
.hero-inner { position: relative; z-index: 2; padding: 120px 0 150px; }
.hero-copy { max-width: 660px; }
.hero-copy .eyebrow { color: var(--brass-hi); }
.hero-copy h1 { color: #fff; margin-bottom: .28em; text-shadow: 0 2px 24px rgba(0,0,0,.28); }
.hero-copy .lede { color: #d5e3da; max-width: 46ch; font-size: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* ---------- booking bar ---------- */
.booking-bar { background: var(--white); box-shadow: var(--shadow-lg); border-radius: var(--radius); border-top: 4px solid var(--brass); }
.booking-bar.floating { margin-top: -54px; position: relative; z-index: 5; }
.booking-form { display: grid; grid-template-columns: repeat(4, 1fr) auto; align-items: stretch; }
.booking-form .field { padding: 18px 22px; border-right: 1px solid var(--line); }
.booking-form .field:last-of-type { border-right: 0; }
.booking-form label { display: block; font: 700 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--green); margin-bottom: 8px; }
.booking-form input, .booking-form select { width: 100%; border: 0; background: transparent; padding: 0; font: 600 16px/1.3 var(--sans); color: var(--ink); }
.booking-form input:focus, .booking-form select:focus { outline: 2px solid var(--brass); outline-offset: 4px; }
.booking-form .submit { padding: 11px; display: flex; align-items: center; }
.booking-form .submit .btn { height: 100%; display: flex; align-items: center; }
.booking-note { font-size: 14px; color: var(--ink-soft); padding: 0 22px 16px; margin: 0; }

/* ---------- guest score ----------
   Third-party rating, always shown with its source. Deliberately NOT mirrored
   into schema.org aggregateRating: marking up another platform's reviews as
   your own breaches Google's structured-data policy and risks a manual action. */
.score-band { display: grid; grid-template-columns: auto 1fr auto; gap: 30px; align-items: center; }
.score-badge {
  background: var(--forest); color: #fff; border-radius: var(--radius);
  padding: 18px 22px; text-align: center; min-width: 118px;
}
.score-badge .val { font-family: var(--serif); font-size: 44px; font-weight: 700; line-height: 1; color: var(--brass-hi); }
.score-badge .out { font-size: 12.5px; color: #b9cec3; margin-top: 6px; letter-spacing: .04em; }
.score-copy h2 { font-size: clamp(21px, 2.3vw, 26px); margin-bottom: .25em; color: var(--forest); }
.score-copy p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }
.score-copy .src { font-size: 13.5px; margin-top: 8px; }
@media (max-width: 780px) {
  .score-band { grid-template-columns: auto 1fr; gap: 20px; }
  .score-band > :last-child { grid-column: 1 / -1; }
}

/* ---------- stats band ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat { text-align: center; padding: 10px 14px; border-right: 1px solid var(--line-dark); }
.stat:last-child { border-right: 0; }
.stat .num { font-family: var(--serif); font-weight: 700; font-size: clamp(46px, 5.6vw, 68px); color: var(--brass-hi); line-height: 1; letter-spacing: -.03em; }
.stat .cap { font-size: 14.5px; color: #b9cec3; margin-top: 12px; letter-spacing: .02em; }

/* ---------- generic grids ---------- */
.grid { display: grid; gap: var(--gap); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.wide-left { grid-template-columns: 1.12fr 1fr; }

/* ---------- cards ---------- */
.card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
/* As a flex item the media box defaults to min-height:auto, which lets the
   image's own proportions expand it and quietly override aspect-ratio — so
   images in a row stop lining up whenever their source ratios differ. min-height:0
   makes the declared ratio win; flex:0 0 auto stops longer body copy squashing it. */
.card .media {
  aspect-ratio: 4/3; background: var(--sand); position: relative;
  flex: 0 0 auto; min-height: 0; overflow: hidden;
}
.card .media img { width: 100%; height: 100%; object-fit: cover; }
/* Interior shots taken from standing height carry a lot of ceiling. Bias the
   crop downward so the room, not the light fittings, fills the card. */
.card .media img.crop-low { object-position: center 70%; }
.card .badge {
  position: absolute; left: 14px; top: 14px; z-index: 2;
  background: var(--forest); color: #fff;
  font: 700 11.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  padding: 8px 12px; border-radius: 100px;
}
.card .badge.accent { background: var(--brass); color: #2a1c00; }
.card .body { padding: 26px; flex: 1; display: flex; flex-direction: column; }
.card h3 { margin-bottom: .3em; color: var(--forest); }
.card .meta { font: 700 13.5px/1 var(--sans); color: var(--clay); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 14px; }
.card p { font-size: 15.5px; color: var(--ink-soft); }
.card .card-foot { margin-top: auto; padding-top: 18px; }

/* placeholder for photography not yet shot */
.placeholder {
  background: repeating-linear-gradient(45deg, #e8dfc9 0 10px, #f1eadb 10px 20px);
  display: flex; align-items: center; justify-content: center;
  color: #978a63;
  font: 700 11px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  text-align: center; padding: 16px;
}

/* ---------- amenity cards ---------- */
.amenities { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.amenity {
  background: var(--white); padding: 30px 28px; border-radius: var(--radius);
  box-shadow: var(--shadow); border-top: 3px solid var(--brass);
  transition: transform .2s ease, box-shadow .2s ease;
}
.amenity:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.amenity .ico-wrap {
  width: 50px; height: 50px; border-radius: 12px;
  background: var(--forest); color: var(--brass-hi);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.amenity .ico { width: 26px; height: 26px; }
.amenity h3 { font-size: 20px; margin-bottom: .3em; color: var(--forest); }
.amenity p { font-size: 15px; color: var(--ink-soft); margin: 0; }

/* ---------- room rows ---------- */
.room-row { display: grid; grid-template-columns: 1.08fr 1fr; gap: 60px; align-items: center; margin-bottom: 96px; }
.room-row:last-child { margin-bottom: 0; }
.room-row.flip .room-media { order: 2; }
.room-media img, .room-media .placeholder { border-radius: var(--radius); aspect-ratio: 3/2; object-fit: cover; width: 100%; box-shadow: var(--shadow-lg); }
.room-row h2 { color: var(--forest); }
.room-specs { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 9px; }
.room-specs li { font: 700 13.5px/1 var(--sans); background: var(--forest); color: #fff; padding: 10px 15px; border-radius: 100px; }
.room-specs li:nth-child(2) { background: var(--green); }
.room-specs li:nth-child(3) { background: var(--clay); }
.feature-list { list-style: none; padding: 0; margin: 0 0 26px; columns: 2; column-gap: 26px; }
.feature-list li { font-size: 15.5px; color: var(--ink-soft); padding: 5px 0 5px 24px; position: relative; break-inside: avoid; }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 12px;
  width: 9px; height: 9px; border-radius: 2px; background: var(--brass); transform: rotate(45deg);
}

/* ---------- table ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; min-width: 640px; background: var(--white); }
th, td { text-align: left; padding: 17px 22px; border-bottom: 1px solid var(--line); font-size: 15.5px; }
thead th { font: 700 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #fff; background: var(--forest); }
tbody th { font-weight: 700; color: var(--forest); }
tbody tr:nth-child(even) { background: #fbf9f4; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }

/* ---------- forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font: 700 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--green); margin-bottom: 9px; }
.form-field input, .form-field select, .form-field textarea {
  font: 400 16px/1.5 var(--sans); color: var(--ink);
  padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--radius);
  background: var(--white); width: 100%;
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: 0; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(200,149,47,.22);
}
.req { color: var(--clay); }
.form-status { margin-top: 16px; font-size: 15px; padding: 15px 17px; border-radius: var(--radius); display: none; }
.form-status.show { display: block; }
.form-status.ok { background: #e6f0e9; color: var(--forest); border-left: 4px solid var(--green); }
.form-status.err { background: #fbeae5; color: #8c2b2b; border-left: 4px solid var(--clay); }

/* Honeypot field — visually gone, still in the DOM for bots to fill. Not
   display:none, which some bots detect and skip. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- info blocks ---------- */
.info-card { background: var(--white); padding: 32px; border-radius: var(--radius); box-shadow: var(--shadow); border-top: 3px solid var(--green); }
.info-card h3 { color: var(--forest); }
.info-row { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.info-row:last-child { border-bottom: 0; }
.info-row dt { font-weight: 700; min-width: 118px; margin: 0; color: var(--forest); }
.info-row dd { margin: 0; color: var(--ink-soft); }

/* ---------- map ---------- */
.map-embed { width: 100%; aspect-ratio: 16/7; border: 0; display: block; background: var(--sand); border-radius: var(--radius); }
.map-embed.tall { aspect-ratio: 4/3; }

/* ---------- callout ---------- */
.callout {
  background: linear-gradient(115deg, var(--forest) 0%, var(--forest-2) 60%, var(--green) 100%);
  color: #dbe7e0; border-radius: var(--radius); padding: 52px 56px;
  display: grid; grid-template-columns: 1.4fr auto; gap: 36px; align-items: center;
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.callout::before {
  content: ""; position: absolute; right: -60px; top: -60px;
  width: 260px; height: 260px; border-radius: 50%;
  background: rgba(200,149,47,.14);
}
.callout > * { position: relative; z-index: 1; }
.callout h2 { margin-bottom: .35em; color: #fff; }
.callout .eyebrow { color: var(--brass-hi); }
.callout p { margin: 0; color: #c6d8ce; }

/* ---------- footer ---------- */
.site-footer { background: var(--forest); color: #adc2b6; padding: 68px 0 0; font-size: 15px; }
.site-footer a { color: #adc2b6; text-decoration: none; }
.site-footer a:hover { color: var(--brass-hi); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 44px; }
.site-footer h4 { color: var(--brass-hi); font-family: var(--sans); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.footer-brand { font-family: var(--serif); font-size: 23px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.footer-bottom { margin-top: 56px; border-top: 1px solid var(--line-dark); padding: 24px 0; display: flex; justify-content: space-between; gap: 16px; font-size: 13.5px; color: #8ba497; flex-wrap: wrap; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .nav, .header-actions .tel { display: none; }
  .nav-toggle { display: block; }
  .site-header.open .nav {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    margin: 0; padding: 8px 24px 18px;
  }
  .site-header.open .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .hero-inner { padding: 88px 0 120px; }
  .hero-scrim { background: linear-gradient(to top, rgba(18,53,38,.96) 30%, rgba(18,53,38,.72) 70%, rgba(18,53,38,.55) 100%); }
  .booking-form { grid-template-columns: 1fr 1fr; }
  .booking-form .field { border-bottom: 1px solid var(--line); }
  .booking-form .field:nth-child(2) { border-right: 0; }
  .booking-form .submit { grid-column: 1 / -1; }
  .split, .room-row, .callout { grid-template-columns: 1fr; gap: 36px; }
  .room-row.flip .room-media { order: 0; }
  .g4, .amenities { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 28px 0; }
  .stat:nth-child(2) { border-right: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  /* Keep the header to one compact row: the brand and the booking button both
     wrap badly at this width otherwise. */
  .site-header .wrap { min-height: 62px; gap: 10px; padding: 0 16px; }
  .brand { font-size: 16px; }
  .brand span { font-size: 8.5px; letter-spacing: .15em; margin-top: 3px; }
  .header-actions { gap: 6px; }
  .header-actions .btn { white-space: nowrap; padding: 12px 15px; font-size: 13.5px; }
  .nav-toggle { padding: 6px; }
  section { padding: 62px 0; }
  .hero-inner { padding: 64px 0 92px; }
  .g2, .g3, .g4, .amenities, .form-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { border-right: 0; }
  .booking-form { grid-template-columns: 1fr; }
  .booking-form .field { border-right: 0; }
  .booking-bar.floating { margin-top: -30px; }
  .feature-list { columns: 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .callout { padding: 36px 26px; }
}

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