/* ============================================================
   245 Water Street — Archival Archive CSS
   No external dependencies. System fonts only.
   ============================================================ */

/* ---- Variables ---- */
:root {
  --header-bg: #2D3939;
  --body-bg: #ffffff;
  --text: #333333;
  --text-light: #666666;
  --accent-red: #c0392b;
  --max-width: 1100px;
  --font-serif: Georgia, "Times New Roman", serif;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--body-bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* ---- Skip Link ---- */
.skip-link { position: absolute; top: -40px; left: 0; background: var(--header-bg); color: #fff; padding: 8px; z-index: 9999; }
.skip-link:focus { top: 0; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--header-bg);
  padding: 0 2rem;
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.site-title {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.site-title:hover { opacity: 0.85; }

/* Desktop Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  list-style: none;
}
.main-nav a {
  display: block;
  padding: 6px 10px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  text-decoration: none;
  transition: opacity 0.15s;
}
.main-nav a:hover { opacity: 0.75; }
.main-nav .nav-tour a {
  border: 1px solid rgba(255,255,255,0.6);
  padding: 5px 10px;
}
.main-nav .nav-tour a:hover { background: rgba(255,255,255,0.1); opacity: 1; }
.main-nav .nav-active a { border-bottom: 2px solid rgba(255,255,255,0.5); }

/* Hamburger (mobile) */
.nav-toggle-label {
  display: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  gap: 5px;
}
.nav-toggle-label span {
  display: block;
  width: 22px;
  height: 2px;
  background: #ffffff;
  transition: transform 0.2s, opacity 0.2s;
}
#nav-toggle { display: none; }

/* ============================================================
   MAIN CONTENT WRAPPER
   ============================================================ */
.page-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 2rem 4rem;
}

/* ============================================================
   HERO (Homepage)
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  min-height: 560px;
  background: var(--header-bg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}
.hero-text {
  position: relative;
  text-align: center;
  color: #ffffff;
  padding: 2rem;
}
.hero-text h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}
.hero-text p {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2.5vw, 1.8rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-style: italic;
  opacity: 0.9;
}

/* ============================================================
   TOUR PAGE BANNER
   ============================================================ */
.page-banner {
  background: var(--header-bg);
  padding: 3.5rem 2rem;
  text-align: center;
}
.page-banner h1 {
  font-family: var(--font-sans);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ffffff;
}

/* ============================================================
   HEADINGS
   ============================================================ */
h1 { font-family: var(--font-serif); font-size: 2.5rem; font-weight: 700; margin-bottom: 1.5rem; }
h2 { font-family: var(--font-serif); font-size: 1.9rem; font-weight: 700; margin-bottom: 1rem; }
h3 {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 2.5rem 0 0.75rem;
  color: var(--text);
}
.page-heading {
  text-align: center;
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 0.5rem;
  padding-top: 0.5rem;
}
.page-subheading {
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text-light);
  margin-bottom: 2.5rem;
}

/* ============================================================
   PARAGRAPH / TEXT
   ============================================================ */
p { margin-bottom: 1rem; }
ul, ol { margin: 0.5rem 0 1rem 1.5rem; }
li { margin-bottom: 0.3rem; }
hr { border: none; border-top: 1px solid #e0e0e0; margin: 2.5rem 0; }

/* ============================================================
   UNDER CONTRACT BADGE
   ============================================================ */
.under-contract {
  text-align: center;
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-red);
  margin: 2rem 0 1.5rem;
}

/* ============================================================
   FEATURES LIST (Homepage)
   ============================================================ */
.features-list {
  list-style: none;
  margin: 0 0 2.5rem;
  text-align: center;
  padding: 0;
}
.features-list li {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid #ececec;
}
.features-list li:last-child { border-bottom: none; }
.features-list li::before { content: "• "; color: var(--text-light); }

/* ============================================================
   PHOTO GALLERY GRID
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 2rem 0;
}
.gallery-grid a {
  display: block;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #111;
}
.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease, opacity 0.2s;
}
.gallery-grid a:hover img { transform: scale(1.04); opacity: 0.9; }

/* ============================================================
   SECTION IMAGE (single section photo)
   ============================================================ */
.section-img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  margin: 1rem 0 1.5rem;
  border: 1px solid #e8e8e8;
}
.section-img-wrap {
  margin: 1.5rem 0;
}
.section-img-wrap img {
  width: 100%;
  border: 1px solid #e8e8e8;
}

/* Section with image side-by-side */
.section-row {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin: 1.5rem 0;
}
.section-row .section-text { flex: 1; }
.section-row .section-photo { flex: 1; }
.section-row .section-photo img { width: 100%; border: 1px solid #e8e8e8; }

/* Two-column image row */
.img-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1rem 0 1.5rem;
}
.img-row-2 img { border: 1px solid #e8e8e8; }

/* Four drawings row */
.drawings-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 1rem 0 0.5rem;
}
.drawings-grid figure { margin: 0; }
.drawings-grid img {
  width: 100%;
  border: 1px solid #e8e8e8;
  cursor: zoom-in;
}
.drawings-grid figcaption {
  font-size: 0.7rem;
  color: var(--text-light);
  text-align: center;
  margin-top: 4px;
}
.drawings-caption {
  font-size: 0.8rem;
  color: var(--text-light);
  font-style: italic;
  margin-bottom: 2rem;
  text-align: center;
}

/* ============================================================
   FAQ (Questions page)
   ============================================================ */
.faq-intro { display: flex; gap: 2rem; align-items: flex-start; margin-bottom: 2rem; }
.faq-intro-image { flex: 0 0 50%; }
.faq-intro-image img { width: 100%; border: 1px solid #e8e8e8; }
.faq-intro-text { flex: 1; }
.faq-item { margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid #ececec; }
.faq-item:last-child { border-bottom: none; }
.faq-question {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.6rem;
  display: block;
}
.faq-item p { color: var(--text); }
.faq-image { margin: 1rem 0; max-width: 600px; }
.faq-image img { border: 1px solid #e8e8e8; }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-note { margin: 1.5rem 0 1rem; font-size: 0.95rem; }
.contact-form { max-width: 600px; }
.contact-form .form-field { margin-bottom: 1rem; }
.contact-form label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
  color: var(--text-light);
}
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid #cccccc;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  background: #fafafa;
  transition: border-color 0.15s;
}
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--header-bg); }
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form .btn-submit {
  background: var(--header-bg);
  color: #ffffff;
  border: none;
  padding: 0.65rem 2rem;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.15s;
}
.contact-form .btn-submit:hover { opacity: 0.85; }

/* ============================================================
   HISTORY PAGE
   ============================================================ */
.history-text {
  max-width: 780px;
  margin: 0 auto 3rem;
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.8;
}
.history-text p { margin-bottom: 1.1rem; }
.history-text h2, .history-text h3 { font-family: var(--font-serif); }

/* ============================================================
   MECHANICALS / STRUCTURE — section blocks
   ============================================================ */
.mechanic-section { margin-bottom: 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid #ececec; }
.mechanic-section:last-child { border-bottom: none; }

/* ============================================================
   VIDEO PLACEHOLDER
   ============================================================ */
.video-placeholder {
  background: #f5f5f5;
  border: 1px solid #ddd;
  padding: 1.5rem 2rem;
  margin: 1rem 0;
  font-style: italic;
  color: var(--text-light);
  font-size: 0.9rem;
}

/* ============================================================
   FILES SECTION
   ============================================================ */
.files-section {
  background: #f8f8f8;
  border: 1px solid #e0e0e0;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
}
.files-section h3 { margin-top: 0; }
.files-section p { margin-bottom: 0.5rem; font-size: 0.9rem; color: var(--text-light); }

/* ============================================================
   FOOTER (pre-footer CTAs + footer)
   ============================================================ */
.pre-footer {
  background: var(--header-bg);
  padding: 2.5rem 2rem;
  text-align: center;
}
.pre-footer .cta-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}
.cta-btn {
  display: inline-block;
  padding: 0.75rem 2.5rem;
  background: #1a2424;
  color: #ffffff;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.25);
  transition: background 0.15s, border-color 0.15s;
  min-width: 220px;
}
.cta-btn:hover { background: #2a3d3d; border-color: rgba(255,255,255,0.5); }

.site-footer {
  background: var(--header-bg);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1rem 2rem;
  text-align: center;
}
.back-to-top a {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
}
.back-to-top a:hover { color: rgba(255,255,255,0.8); }

/* ============================================================
   ARCHIVE NOTICE
   ============================================================ */
.archive-notice {
  background: #fffbe6;
  border-bottom: 2px solid #f0d060;
  padding: 0.6rem 2rem;
  text-align: center;
  font-size: 0.78rem;
  color: #5a4a00;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .drawings-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-intro { flex-direction: column; }
  .faq-intro-image { flex: none; width: 100%; }
  .section-row { flex-direction: column; }
}

@media (max-width: 700px) {
  /* Mobile Nav */
  .main-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--header-bg);
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0 1rem;
    z-index: 999;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .main-nav a {
    padding: 10px 2rem;
    font-size: 0.7rem;
  }
  #nav-toggle:checked ~ .site-header .main-nav,
  #nav-toggle:checked + .site-header .main-nav {
    display: flex;
  }
  .nav-toggle-label { display: flex; }

  /* JS-toggled class approach */
  .nav-open .main-nav { display: flex; }

  .site-header { position: relative; }
  .header-inner { position: relative; }

  .page-content { padding: 1.5rem 1rem 3rem; }
  .hero { min-height: 380px; }
  .hero-text h1 { font-size: 2rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .img-row-2 { grid-template-columns: 1fr; }
  .drawings-grid { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 1.8rem; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .drawings-grid { grid-template-columns: 1fr; }
  .site-title { font-size: 0.65rem; max-width: 55%; }
}
