/* Budget Host Inn & Suites — Cameron, TX
   Plain CSS, no build step. Colors and fonts are set once in :root below. */

:root {
  --brown-900: #2a190b;
  --brown-800: #3c240f;
  --brown-700: #573111;
  --brown-600: #6f4116;
  --gold-600: #d99a06;
  --gold-500: #f6b319;
  --gold-400: #ffc83d;
  --roof: #a5311e;
  --cream-50: #fdf9f1;
  --cream-100: #f8f0e1;
  --cream-200: #eedfc6;
  --ink: #2a2018;
  --muted: #6a594a;
  --white: #fff;

  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1160px;
  --gutter: 20px;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(42, 25, 11, .06), 0 8px 24px rgba(42, 25, 11, .08);
  --shadow-lg: 0 2px 6px rgba(42, 25, 11, .1), 0 22px 48px rgba(42, 25, 11, .2);
  --header-h: 68px;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream-50);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brown-600); text-underline-offset: 3px; }
a:hover { color: var(--roof); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--brown-900);
  margin: 0 0 .5em;
  text-wrap: balance;
}
h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--brown-900);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 8px;
}
.skip-link:focus { top: 12px; color: var(--white); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 48px;
  padding: .7em 1.4em;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }

.btn-book {
  background: var(--gold-500);
  color: var(--brown-900);
  box-shadow: 0 2px 0 var(--gold-600);
}
.btn-book:hover { background: var(--gold-400); color: var(--brown-900); }

.btn-dark { background: var(--brown-800); color: var(--white); }
.btn-dark:hover { background: var(--brown-700); color: var(--white); }

.btn-ghost { border-color: rgba(255, 255, 255, .7); color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--brown-900); }

.btn-outline { border-color: var(--brown-700); color: var(--brown-800); }
.btn-outline:hover { background: var(--brown-800); color: var(--white); }

.btn-sm { min-height: 42px; padding: .5em 1.1em; font-size: .95rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 249, 241, .96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--cream-200);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--brown-900);
  margin-right: auto;
}
.brand img { height: 44px; width: auto; border-radius: 4px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-display); font-size: 1.05rem; }
.brand-text span { font-size: .78rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  padding: 10px 11px;
  border-radius: 8px;
  color: var(--brown-800);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
}
.nav a:hover { background: var(--cream-100); color: var(--roof); }

.header-phone {
  display: none;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--brown-800);
  text-decoration: none;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--cream-200);
  border-radius: 10px;
  background: var(--white);
  color: var(--brown-800);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle .icon { width: 24px; height: 24px; }

@media (min-width: 1180px) {
  .header-phone { display: inline-flex; }
}

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 16px;
    background: var(--cream-50);
    border-bottom: 1px solid var(--cream-200);
    box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 8px; font-size: 1.05rem; border-bottom: 1px solid var(--cream-100); border-radius: 0; }
}
@media (max-width: 560px) {
  .brand-text span { display: none; }
  .brand img { height: 38px; }
  .header-inner .btn-book { display: none; } /* the bottom bar carries Book Now on phones */
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  color: var(--white);
  display: flex;
  align-items: flex-end;
  min-height: min(82vh, 780px);
  padding: 72px 0 56px;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(42, 25, 11, .28) 0%, rgba(42, 25, 11, .5) 45%, rgba(42, 25, 11, .9) 100%);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--roof);
  margin-bottom: 12px;
}
.hero .eyebrow { color: var(--gold-400); }
.hero h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 1.2rem + 4.6vw, 4.2rem);
  max-width: 14em;
  margin-bottom: .35em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}
.hero-lead {
  max-width: 40em;
  font-size: clamp(1.02rem, .95rem + .4vw, 1.2rem);
  color: rgba(255, 255, 255, .93);
  margin-bottom: 28px;
}

/* Availability bar */
.booking-bar {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr .8fr .8fr auto;
  gap: 12px;
  align-items: end;
  background: var(--cream-50);
  color: var(--ink);
  padding: 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-width: 940px;
}
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field label {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input, .field select {
  width: 100%;
  min-height: 48px;
  padding: 8px 12px;
  border: 1.5px solid var(--cream-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}
.field input:focus, .field select:focus { border-color: var(--gold-600); outline: none; box-shadow: 0 0 0 3px rgba(246, 179, 25, .3); }
.booking-bar .btn { white-space: nowrap; }

.hero-alt {
  margin: 16px 0 0;
  font-size: .98rem;
  color: rgba(255, 255, 255, .9);
}
.hero-alt a { color: var(--white); font-weight: 700; }

@media (max-width: 860px) {
  .booking-bar { grid-template-columns: 1fr 1fr; }
  .booking-bar .btn { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .hero { min-height: 0; padding: 56px 0 36px; }
}

/* ---------- Highlights strip ---------- */

.highlights { background: var(--brown-800); color: var(--cream-100); }
.highlights ul {
  list-style: none;
  margin: 0;
  padding: 18px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 28px;
}
.highlights li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .98rem; }
.highlights .icon { color: var(--gold-500); width: 22px; height: 22px; }
@media (max-width: 700px) {
  .highlights ul { display: grid; grid-template-columns: 1fr 1fr; }
}

/* ---------- Sections ---------- */

.section { padding: clamp(56px, 4vw + 36px, 96px) 0; }
.section-alt { background: var(--cream-100); }
.section-head { max-width: 46em; margin-bottom: 36px; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }

/* Welcome */
.welcome { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.welcome-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.welcome-photos img { border-radius: var(--radius); box-shadow: var(--shadow); object-fit: cover; width: 100%; height: 100%; aspect-ratio: 4 / 5; }
.welcome-photos img:first-child { margin-top: 28px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
@media (max-width: 860px) {
  .welcome { grid-template-columns: 1fr; }
  .welcome-photos img { aspect-ratio: 4 / 3; }
  .welcome-photos img:first-child { margin-top: 0; }
}

/* Rooms */
.room-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.room-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.room-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.room-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.room-body h3 { margin-bottom: .3em; }
.room-body p { color: var(--muted); font-size: .98rem; }
.tags { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .8rem; font-weight: 600;
  padding: 4px 10px;
  background: var(--cream-100);
  border-radius: 999px;
  color: var(--brown-700);
}
.tags .icon { width: 14px; height: 14px; }
.room-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--brown-800);
  text-decoration: none;
}
.room-link:hover { color: var(--roof); }
.room-link .icon { transition: transform .15s; }
.room-link:hover .icon { transform: translateX(3px); }
.rooms-note {
  margin-top: 28px;
  padding: 18px 22px;
  background: var(--white);
  border-left: 4px solid var(--gold-500);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}
.rooms-note p { margin: 0; }
@media (max-width: 960px) { .room-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .room-grid { grid-template-columns: 1fr; } }

/* Amenities */
.amenity-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.amenity {
  background: var(--white);
  border: 1px solid var(--cream-200);
  border-radius: var(--radius);
  padding: 22px;
}
.amenity .icon-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--brown-800);
  color: var(--gold-500);
  margin-bottom: 14px;
}
.amenity .icon-badge .icon { width: 24px; height: 24px; }
.amenity h3 { font-size: 1.12rem; margin-bottom: .35em; }
.amenity p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.55; }
@media (max-width: 1020px) { .amenity-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .amenity-grid { grid-template-columns: 1fr; } }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.gallery-grid li { position: relative; overflow: hidden; border-radius: var(--radius-sm); background: var(--cream-200); }
.gallery-grid li.wide { grid-column: span 2; }
.gallery-grid li.tall { grid-row: span 2; }
.gallery-grid a { display: block; width: 100%; height: 100%; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery-grid a:hover img, .gallery-grid a:focus-visible img { transform: scale(1.05); }
.gallery-grid span {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 28px 12px 10px;
  color: var(--white);
  font-size: .86rem; font-weight: 600;
  background: linear-gradient(transparent, rgba(42, 25, 11, .78));
  pointer-events: none;
}
@media (max-width: 860px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .gallery-grid li.tall { grid-row: span 1; }
}

.tour-banner {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  padding: 24px 28px;
  border-radius: var(--radius);
  background: var(--brown-800);
  color: var(--cream-100);
}
.tour-banner h3 { color: var(--white); margin: 0 0 4px; }
.tour-banner p { margin: 0; color: rgba(255, 255, 255, .82); }

/* Lightbox */
.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(96vw, 1400px);
  max-height: 94vh;
  overflow: visible;
}
.lightbox::backdrop { background: rgba(20, 12, 5, .9); }
.lightbox figure { margin: 0; }
.lightbox img { max-width: 96vw; max-height: 82vh; width: auto; height: auto; margin: 0 auto; border-radius: 8px; }
.lightbox figcaption { text-align: center; color: var(--white); padding: 12px 0 0; font-weight: 600; }
.lightbox-controls { display: flex; justify-content: center; gap: 10px; margin-top: 12px; }
.lightbox button {
  min-width: 48px; min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, .6);
  background: transparent;
  color: var(--white);
  font: inherit; font-weight: 700;
  cursor: pointer;
}
.lightbox button:hover { background: var(--white); color: var(--brown-900); }

/* Cameron */
.cameron { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.cameron-story p { color: #43352a; }
.dining {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 26px 10px;
}
.dining h3 { margin-bottom: .2em; }
.dining > p { color: var(--muted); font-size: .95rem; }
.dining ul { list-style: none; margin: 0; padding: 0; }
.dining li { padding: 12px 0; border-top: 1px solid var(--cream-100); }
.dining li strong { display: block; color: var(--brown-900); }
.dining li small { display: block; color: var(--muted); font-size: .88rem; line-height: 1.5; }
.dining li a { white-space: nowrap; }
@media (max-width: 860px) { .cameron { grid-template-columns: 1fr; } }

/* Policies */
.policy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.policy {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--cream-200);
  border-radius: var(--radius);
  padding: 20px;
}
.policy .icon { width: 26px; height: 26px; color: var(--roof); margin-top: 2px; }
.policy h3 { font-family: var(--font-body); font-size: .78rem; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin: 0 0 2px; font-weight: 700; }
.policy p { margin: 0; font-weight: 600; color: var(--brown-900); line-height: 1.45; }
.policy p small { display: block; font-weight: 400; color: var(--muted); font-size: .88rem; margin-top: 2px; }
.doc-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
@media (max-width: 900px) { .policy-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .policy-grid { grid-template-columns: 1fr; } }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(24px, 4vw, 48px); align-items: stretch; }
.contact-list { list-style: none; padding: 0; margin: 0 0 24px; }
.contact-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--cream-200); }
.contact-list .icon { width: 24px; height: 24px; color: var(--roof); margin-top: 3px; }
.contact-list span { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.contact-list a, .contact-list address { font-style: normal; font-weight: 600; font-size: 1.08rem; color: var(--brown-900); text-decoration: none; }
.contact-list a:hover { color: var(--roof); text-decoration: underline; }
.map {
  min-height: 380px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--cream-200);
}
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

/* Closing call to action */
.cta-band { background: var(--brown-900); color: var(--cream-100); text-align: center; padding: 64px 0; }
.cta-band h2 { color: var(--white); }
.cta-band p { max-width: 36em; margin: 0 auto 26px; color: rgba(255, 255, 255, .85); }
.cta-band .cta-row { justify-content: center; margin-top: 0; }

/* Footer */
.site-footer { background: #1f1208; color: rgba(255, 255, 255, .72); padding: 40px 0 28px; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h2 { font-family: var(--font-body); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-500); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: rgba(255, 255, 255, .88); text-decoration: none; }
.site-footer a:hover { color: var(--gold-400); text-decoration: underline; }
.footer-brand img { height: 48px; width: auto; border-radius: 4px; margin-bottom: 14px; }
.footer-legal { margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .84rem; color: rgba(255, 255, 255, .55); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }

/* Phone bottom bar: Call + Book Now always within reach */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: 72px; }
  .mobile-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 110;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 10px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: var(--cream-50);
    border-top: 1px solid var(--cream-200);
    box-shadow: 0 -6px 20px rgba(42, 25, 11, .12);
  }
  .mobile-bar .btn { min-height: 50px; padding-inline: .8em; }
  .mobile-bar .btn-outline { background: var(--white); }
}

/* Simple pages (404, reservation hand-off) */
.simple-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px var(--gutter);
  background: var(--cream-100);
}
.simple-card {
  max-width: 560px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 32px;
}
.simple-card img { height: 56px; width: auto; margin: 0 auto 22px; border-radius: 4px; }
.simple-card .cta-row { justify-content: center; }

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

@media print {
  .site-header, .mobile-bar, .booking-bar, .map, .cta-band, .tour-banner { display: none !important; }
  body { padding: 0; background: #fff; }
  .hero { min-height: 0; color: #000; padding: 0; }
  .hero-media, .hero::after { display: none; }
  .hero h1 { color: #000; text-shadow: none; }
}
