/* ============================================================
   Historic Charleston Accommodations — site stylesheet
   Jacobson Building, 19 Broad Street, Charleston SC
   Modern responsive design; palette drawn from the original site.
   ============================================================ */

:root {
  --green-dark: #186C02;
  --green-mid: #2E8B22;
  --green-soft: #639442;
  --cream: #F5F2E5;
  --cream-deep: #EDE7D2;
  --panel: #D9CDAB;
  --brown: #673A06;
  --brown-dark: #452505;
  --maroon: #800000;
  --olive: #808000;
  --ink: #2A2A2A;
  --white: #FFFFFF;
  --shadow: 0 2px 10px rgba(24, 108, 2, 0.18);
  --shadow-lg: 0 8px 28px rgba(24, 108, 2, 0.22);
  --radius: 8px;
  --serif: Georgia, "Palatino Linotype", "Book Antiqua", Palatino, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
}

img { max-width: 100%; height: auto; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--maroon);
  color: #fff;
  padding: 8px 14px;
  z-index: 200;
  border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Layout ---------- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
main { display: block; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--green-dark);
  color: #fff;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 50;
}
.header-inner { padding: 18px 20px 10px; text-align: center; }
.brand { display: inline-block; }
.brand img {
  width: auto;
  max-width: 420px;
  max-height: 66px;
}
.site-header .header-tagline {
  margin: 6px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: #D9E8CF;
}

/* ---------- Navigation ---------- */
.site-nav { background: var(--green-mid); }
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.site-nav a {
  display: block;
  padding: 13px 15px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border-bottom: 3px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.site-nav a:hover,
.site-nav a:focus {
  background: var(--green-dark);
  border-bottom-color: #fff;
}
.site-nav a[aria-current="page"] {
  background: var(--green-dark);
  border-bottom-color: #F2D06B;
}
.nav-toggle {
  display: none;
  background: none;
  border: 2px solid rgba(255,255,255,0.6);
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
}

/* ---------- Breadcrumbs ---------- */
.breadcrumb {
  font-size: 0.85rem;
  margin: 18px 0 0;
  color: var(--brown);
}
.breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}
.breadcrumb li + li::before {
  content: "›";
  margin: 0 8px;
  color: var(--green-soft);
}
.breadcrumb a { color: var(--maroon); }
.breadcrumb [aria-current="page"] { color: var(--brown); font-weight: 600; }

/* ---------- Hero (homepage) ---------- */
.hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 70%, var(--green-soft) 100%);
  color: #fff;
  padding: 56px 20px 64px;
  text-align: center;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  margin: 0 0 14px;
  line-height: 1.2;
  text-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
.hero .lede {
  max-width: 760px;
  margin: 0 auto 26px;
  font-size: 1.12rem;
  color: #EAF3E4;
}
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-meta {
  margin-top: 26px;
  font-size: 0.95rem;
  color: #D9E8CF;
}
.hero-meta a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,0,0,0.25); }
.btn-light { background: #fff; color: var(--green-dark); }
.btn-outline { background: transparent; color: #fff; border-color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-solid { background: var(--maroon); color: #fff; }
.btn-solid:hover { background: #9A1A1A; }
.btn-green { background: var(--green-mid); color: #fff; }
.btn-green:hover { background: var(--green-dark); }

/* ---------- Sections ---------- */
.section { padding: 44px 20px; }
.section-alt { background: var(--cream-deep); }
.section-panel { background: #fff; }
.section h2 {
  font-family: var(--serif);
  color: var(--green-dark);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin: 0 0 8px;
}
.section .subhead {
  color: var(--brown);
  font-style: italic;
  margin: 0 0 24px;
  font-family: var(--serif);
}
.section h3 { font-family: var(--serif); color: var(--brown-dark); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  color: #fff;
  padding: 40px 20px 42px;
  text-align: center;
}
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  margin: 0 0 8px;
}
.page-hero p { margin: 0 auto; max-width: 720px; color: #EAF3E4; }

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card img { display: block; width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 18px 20px 22px; flex: 1; }
.card-body h3 { margin: 0 0 6px; font-size: 1.25rem; }
.card-body h3 a { color: var(--brown-dark); text-decoration: none; }
.card-body h3 a:hover { color: var(--maroon); text-decoration: underline; }
.card .meta { font-size: 0.88rem; color: var(--green-soft); font-weight: 600; margin: 0 0 8px; }
.card .price { font-family: var(--serif); color: var(--maroon); font-weight: 700; }
.card .card-link { margin-top: 14px; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Feature list ---------- */
.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 26px;
}
.features li { position: relative; padding-left: 28px; }
.features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green-mid);
  font-weight: 700;
}
.features li strong { color: var(--brown-dark); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
.rates-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.96rem;
}
.rates-table th {
  background: var(--green-dark);
  color: #fff;
  text-align: left;
  padding: 12px 14px;
  font-family: var(--serif);
  letter-spacing: 0.02em;
}
.rates-table td {
  padding: 11px 14px;
  border-top: 1px solid var(--cream-deep);
  vertical-align: top;
}
.rates-table tr:nth-child(even) td { background: #FBF9F0; }
.rates-table td.num { text-align: right; white-space: nowrap; }
.rates-table a { color: var(--maroon); font-weight: 600; }
.rates-table .unit-name { font-weight: 700; color: var(--brown-dark); }

/* ---------- Panels / notes ---------- */
.note {
  background: #FFF9E6;
  border: 1px solid #E6D9A8;
  border-left: 5px solid var(--olive);
  border-radius: 6px;
  padding: 14px 18px;
  font-size: 0.95rem;
}
.note strong { color: var(--brown-dark); }
.panel {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 22px 26px;
}
.panel h3 { margin-top: 0; }

/* ---------- Contact facts ---------- */
.contact-facts {
  list-style: none;
  margin: 0;
  padding: 0;
}
.contact-facts li {
  padding: 10px 0 10px 34px;
  position: relative;
  border-bottom: 1px dashed var(--panel);
}
.contact-facts li:last-child { border-bottom: 0; }
.contact-facts .ico {
  position: absolute;
  left: 0;
  top: 12px;
  width: 24px;
  text-align: center;
  font-size: 1.1rem;
}
.contact-facts a { color: var(--maroon); font-weight: 600; }
.contact-facts .label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--green-soft); font-weight: 700; display: block; }

/* ---------- Forms ---------- */
.form-card {
  background: #fff;
  border: 1px solid var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 28px;
}
.form-row { margin-bottom: 16px; }
.form-row label {
  display: block;
  font-weight: 700;
  color: var(--brown-dark);
  margin-bottom: 5px;
  font-size: 0.92rem;
}
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row input[type="date"],
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #C9BC97;
  border-radius: 6px;
  font: inherit;
  background: #FFFDF6;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: 2px solid var(--green-soft);
  border-color: var(--green-soft);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.form-note { font-size: 0.85rem; color: #6B6B6B; margin-top: 10px; }
.form-feedback { display: none; margin-top: 14px; padding: 12px 16px; background: #EAF6E4; border: 1px solid #B9DDA8; border-radius: 6px; }
.form-feedback.visible { display: block; }

/* ---------- Image figure ---------- */
figure {
  margin: 0;
}
figure img { border-radius: var(--radius); box-shadow: var(--shadow); }
figcaption {
  font-size: 0.88rem;
  color: var(--brown);
  font-style: italic;
  margin-top: 8px;
  text-align: center;
}
.img-frame { border: 1px solid var(--panel); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }

/* ---------- Call to action band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--maroon), #9A3B1F);
  color: #fff;
  text-align: center;
  padding: 40px 20px;
}
.cta-band h2 { font-family: var(--serif); margin: 0 0 8px; font-size: 1.7rem; }
.cta-band p { margin: 0 auto 20px; max-width: 640px; }
.cta-band a.btn { background: #fff; color: var(--maroon); }
.cta-band a.btn:hover { background: #F5EFE4; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-dark);
  color: #DCE9D2;
  font-size: 0.92rem;
  margin-top: 0;
}
.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px 26px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 34px;
}
.site-footer h2 {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: #fff;
  margin: 0 0 12px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 7px; }
.site-footer a { color: #CBE3BD; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.18);
  text-align: center;
  padding: 16px 20px;
  font-size: 0.85rem;
  color: #B9D3A9;
}

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 70px 20px; }
.notfound .code {
  font-family: var(--serif);
  font-size: clamp(4rem, 12vw, 7rem);
  color: var(--green-soft);
  line-height: 1;
  margin: 0;
}

/* ---------- Sitemap list ---------- */
.sitemap-list { columns: 2; column-gap: 40px; }
.sitemap-list ul { break-inside: avoid; list-style: none; margin: 0 0 22px; padding: 0; }
.sitemap-list a { color: var(--maroon); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .nav-toggle { display: block; }
  .site-nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 6px 0 12px;
  }
  .nav-open .site-nav ul { display: flex; }
  .site-nav a { text-align: center; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .sitemap-list { columns: 1; }
  .hero { padding: 44px 16px 50px; }
  .brand img { max-height: 52px; }
  .section { padding: 34px 16px; }
}

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