/*
Theme Name: 1803 College
Theme URI: https://example.com/
Author: 1803 College
Description: Custom direct-booking theme for the 1803 College rental home in Cedar Falls, Iowa. Pairs with the "1803 College Booking" plugin for the availability calendar and booking-request form.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: college-house
*/
/* ============================================================
   1803 College — Cedar Falls, Iowa
   Warm, historic-home aesthetic
   ============================================================ */

:root {
  --ink: #22301f;
  --green: #2e4a3b;
  --green-dark: #223829;
  --cream: #faf6ef;
  --cream-dark: #f1e9dc;
  --brass: #a97f3c;
  --brass-text: #8a6425;
  --brass-light: #c9a464;
  --white: #fffdf9;
  --red: #a8433a;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(34, 48, 31, 0.10);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; color: var(--green-dark); }

a { color: var(--brass-text); }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 239, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--cream-dark);
}
header.site .inner {
  max-width: 1080px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { font-family: var(--font-display); font-size: 1.35rem; color: var(--green-dark); text-decoration: none; letter-spacing: 0.01em; }
.brand span { color: var(--brass); }
nav.main { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: flex-end; align-items: center; }
nav.main a {
  text-decoration: none; color: var(--ink);
  font-size: 0.95rem; font-weight: 500;
}
nav.main a:hover { color: var(--brass); }
nav.main a.btn-book {
  background: var(--green); color: var(--white);
  padding: 9px 20px; border-radius: 100px;
}
nav.main a.btn-book:hover { background: var(--green-dark); color: var(--white); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 78vh;
  display: flex; align-items: flex-end;
  background-size: cover; background-position: center;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,30,20,0.05) 30%, rgba(20,30,20,0.72) 100%);
}
.hero .content {
  position: relative; z-index: 2; color: var(--white);
  max-width: 1080px; margin: 0 auto; padding: 0 24px 64px; width: 100%;
}
.hero .kicker {
  text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.78rem;
  color: var(--brass-light); font-weight: 600; margin-bottom: 14px;
}
.hero h1 { color: var(--white); font-size: clamp(2.4rem, 6vw, 4.2rem); max-width: 16ch; }
.hero p.sub { margin-top: 16px; font-size: 1.15rem; max-width: 52ch; color: #f2ecdf; }
.hero .cta-row { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block; text-decoration: none; font-weight: 600;
  padding: 14px 30px; border-radius: 100px; font-size: 1rem;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: #8a6425; color: var(--white); }
.btn-primary:hover { background: #6f4f1d; }
.btn-ghost { border: 1.5px solid rgba(255,255,255,0.75); color: var(--white); }
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: var(--green-dark); }

/* ---------- Stats bar ---------- */
.statbar { background: var(--green-dark); color: var(--cream); }
.statbar .inner {
  max-width: 1080px; margin: 0 auto; padding: 22px 24px;
  display: flex; flex-wrap: wrap; gap: 12px 48px; justify-content: center;
}
.statbar .stat { text-align: center; }
.statbar .stat b { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--brass-light); }
.statbar .stat small { font-size: 0.82rem; opacity: 0.85; letter-spacing: 0.04em; }

/* ---------- Sections ---------- */
section.block { padding: 76px 0; }
section.block.alt { background: var(--white); }
.section-kicker {
  text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.75rem;
  color: var(--brass-text); font-weight: 700; margin-bottom: 10px;
}
section.block h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: 18px; }
.lede { font-size: 1.12rem; max-width: 62ch; }

.two-col { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.two-col .photo img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Rooms / amenities grids ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; margin-top: 36px; }
.card {
  background: var(--white); border: 1px solid var(--cream-dark);
  border-radius: var(--radius); padding: 26px;
}
section.block.alt .card { background: var(--cream); }
.card .icon { font-size: 1.6rem; margin-bottom: 10px; }
.card h3 { font-size: 1.12rem; margin-bottom: 6px; }
.card p { font-size: 0.94rem; color: #4a5546; }

.amenities { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px 28px; margin-top: 30px; }
.amenities li { list-style: none; padding-left: 26px; position: relative; font-size: 0.98rem; }
.amenities li::before { content: "✓"; position: absolute; left: 0; color: var(--brass-text); font-weight: 700; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 36px; }
.gallery a { display: block; overflow: hidden; border-radius: 12px; }
.gallery img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; transition: transform 0.3s ease; }
.gallery a:hover img { transform: scale(1.04); }
.gallery a.wide { grid-column: span 2; }
.gallery a.wide img { aspect-ratio: 8.15 / 3; }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 36px; }
.review {
  background: var(--white); border-radius: var(--radius); padding: 28px;
  border: 1px solid var(--cream-dark); font-size: 0.98rem;
}
.review .stars { color: var(--brass); letter-spacing: 2px; margin-bottom: 10px; }
.review .who { margin-top: 14px; font-weight: 600; font-size: 0.88rem; color: var(--green); }

/* ---------- Save-direct banner ---------- */
.save-banner {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: var(--cream); border-radius: var(--radius); padding: 44px;
  display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
}
.save-banner h2 { color: var(--white); margin-bottom: 8px; }
.save-banner p { max-width: 50ch; }

/* ---------- Booking page ---------- */
.book-layout { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: start; margin-top: 30px; }

.calendar-shell { background: var(--white); border: 1px solid var(--cream-dark); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.calendar-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.calendar-nav button {
  border: 1px solid var(--cream-dark); background: var(--cream);
  border-radius: 8px; width: 38px; height: 38px; font-size: 1.05rem; cursor: pointer;
}
.calendar-nav button:hover { background: var(--cream-dark); }
.cal-months { display: grid; gap: 26px; }
.cal-month h3 { text-align: center; font-size: 1.08rem; margin-bottom: 12px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-grid .dow { text-align: center; font-size: 0.72rem; font-weight: 700; color: #8a9384; text-transform: uppercase; padding-bottom: 4px; }
.cal-day {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  border-radius: 9px; font-size: 0.9rem; cursor: pointer; border: 1px solid transparent;
  background: var(--cream); user-select: none;
  font-family: var(--font-body); color: var(--ink); padding: 0; appearance: none; width: 100%;
}
.cal-day:focus-visible { outline: 2px solid var(--green); outline-offset: 1px; }
.cal-day:disabled { cursor: not-allowed; }
.cal-day:hover:not(.booked):not(.past):not(.empty) { border-color: var(--brass); }
.cal-day.empty { background: transparent; cursor: default; }
.cal-day.past, .cal-day.booked { color: #b9beb3; cursor: not-allowed; background: transparent; text-decoration: line-through; }
.cal-day.booked { background: #f3e3e0; color: #c08a83; text-decoration: line-through; }
.cal-day.selected { background: var(--green); color: var(--white); font-weight: 600; }
.cal-day.inrange { background: #dce7dd; }
.cal-legend { display: flex; gap: 20px; margin-top: 16px; font-size: 0.8rem; color: #667061; flex-wrap: wrap; }
.cal-legend span::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 6px; vertical-align: -1px; }
.cal-legend .lg-open::before { background: var(--cream); border: 1px solid var(--cream-dark); }
.cal-legend .lg-booked::before { background: #f3e3e0; }
.cal-legend .lg-sel::before { background: var(--green); }
.cal-note { margin-top: 14px; font-size: 0.85rem; color: #667061; }
.cal-status { margin-top: 10px; font-size: 0.9rem; font-weight: 600; color: var(--green); min-height: 1.4em; }
.cal-status.warn { color: var(--red); }

/* ---------- Form ---------- */
form.booking { background: var(--white); border: 1px solid var(--cream-dark); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
form.booking h2 { font-size: 1.5rem; margin-bottom: 4px; }
form.booking .formsub { font-size: 0.92rem; color: #667061; margin-bottom: 20px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--green-dark); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--cream-dark);
  border-radius: 10px; font-family: var(--font-body); font-size: 0.98rem;
  background: var(--cream); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brass); background: var(--white); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
form.booking button[type="submit"] {
  width: 100%; border: none; cursor: pointer; margin-top: 6px;
  background: #8a6425; color: var(--white); font-weight: 700;
  padding: 15px; border-radius: 100px; font-size: 1.05rem; font-family: var(--font-body);
}
form.booking button[type="submit"]:hover { background: #6f4f1d; }
.fineprint { font-size: 0.8rem; color: #8a9384; margin-top: 14px; text-align: center; }

/* ---------- Guest guide ---------- */
.guide-card { background: var(--white); border: 1px solid var(--cream-dark); border-radius: var(--radius); padding: 30px; margin-top: 24px; }
.guide-card h3 { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; margin-bottom: 12px; }
.guide-card table { width: 100%; border-collapse: collapse; }
.guide-card td { padding: 8px 0; border-bottom: 1px solid var(--cream-dark); font-size: 0.97rem; vertical-align: top; }
.guide-card td:first-child { font-weight: 600; color: var(--green-dark); width: 38%; padding-right: 16px; }
.guide-card ul { padding-left: 22px; }
.guide-card li { margin-bottom: 8px; }
.tag-note { display: inline-block; background: var(--cream-dark); border-radius: 6px; padding: 2px 10px; font-size: 0.78rem; font-weight: 600; color: var(--green); }

/* ---------- Footer ---------- */
footer.site {
  background: var(--green-dark); color: #cfd8cc; padding: 54px 0 34px; margin-top: 0;
}
footer.site .inner { max-width: 1080px; margin: 0 auto; padding: 0 24px; display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; }
footer.site h3 { color: var(--white); font-size: 1.2rem; margin-bottom: 8px; }
footer.site a { color: var(--brass-light); text-decoration: none; }
footer.site .fineprint { color: #8fa08c; text-align: left; margin-top: 26px; font-size: 0.78rem; }

/* ---------- Responsive ---------- */
.book-layout > * { min-width: 0; }
.calendar-shell, form.booking { min-width: 0; }

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--green-dark); color: var(--white); padding: 10px 18px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

@media (max-width: 860px) {
  .two-col, .book-layout { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery a.wide { grid-column: span 2; }
  .hero { min-height: 64vh; }
}
@media (min-width: 861px) {
  .cal-months { grid-template-columns: 1fr 1fr; }
}

/* ---------- WordPress-specific ---------- */
body.admin-bar header.site { top: 32px; }
@media (max-width: 782px) { body.admin-bar header.site { top: 46px; } }

@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
  header.site .inner { flex-wrap: wrap; justify-content: center; gap: 8px; padding: 10px 14px; }
  .brand { font-size: 1.15rem; }
  nav.main { justify-content: center; gap: 6px 14px; }
  nav.main a { font-size: 0.85rem; }
  nav.main a.btn-book { padding: 7px 14px; }
  .container { padding: 0 16px; }
  .calendar-shell, form.booking { padding: 18px 14px; }
  .cal-grid { gap: 2px; }
  .hero .content { padding-bottom: 44px; }
  section.block { padding: 54px 0; }
}

.cb-hp { position: absolute !important; left: -9999px !important; height: 0; overflow: hidden; }
.cb-soft { font-weight: 400; color: #8a9384; }

.cb-notice { border-radius: 12px; padding: 16px 20px; margin-bottom: 18px; font-size: 0.97rem; }
.cb-notice-success { background: #e3eee4; border: 1px solid #b9d4bc; color: #2e4a3b; }
.cb-notice-error { background: #f6e2df; border: 1px solid #e3b8b2; color: #7c352d; }

/* Styled wrapper for editor-driven pages (guest guide etc.) */
.entry-content h2 { font-size: 1.6rem; margin: 34px 0 12px; }
.entry-content h3 { font-size: 1.25rem; margin: 26px 0 10px; }
.entry-content p { margin-bottom: 14px; }
.entry-content ul, .entry-content ol { padding-left: 24px; margin-bottom: 16px; }
.entry-content li { margin-bottom: 8px; }
.entry-content table { width: 100%; border-collapse: collapse; margin-bottom: 20px; background: var(--white); border-radius: var(--radius); }
.entry-content td, .entry-content th { padding: 10px 12px; border-bottom: 1px solid var(--cream-dark); text-align: left; vertical-align: top; }
.entry-content td:first-child { font-weight: 600; color: var(--green-dark); width: 38%; }
.entry-content img { border-radius: var(--radius); }

/* screen-reader-text (WP a11y convention) */
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
