
:root {
  --coal: #26211d;
  --walnut: #49392f;
  --brick: #8e4339;
  --brass: #ae874f;
  --brass-light: #d9be88;
  --sage: #455b4e;
  --paper: #f4eee3;
  --cream: #fbf8f1;
  --sand: #e9decc;
  --ink: #2c2925;
  --muted: #6c6258;
  --line: #d6c4ad;
  --white: #fffdf8;
  --shadow: 0 20px 46px rgba(53, 40, 29, 0.14);
  --soft-shadow: 0 10px 28px rgba(53, 40, 29, 0.10);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.65;
  background:
    radial-gradient(circle at 12% 8%, rgba(174, 135, 79, 0.11), transparent 26%),
    radial-gradient(circle at 90% 20%, rgba(69, 91, 78, 0.09), transparent 30%),
    repeating-linear-gradient(0deg, rgba(83, 63, 42, 0.018) 0, rgba(83, 63, 42, 0.018) 1px, transparent 1px, transparent 5px),
    var(--paper);
}

img { display: block; max-width: 100%; }
a { color: var(--brick); }
a:hover { color: var(--walnut); }
button, input, textarea { font: inherit; }
.container { width: min(1140px, 92%); margin: 0 auto; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header and navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(38, 33, 29, 0.985);
  color: var(--white);
  border-top: 4px solid var(--brass);
  box-shadow: 0 5px 18px rgba(24, 19, 16, 0.24);
}
.nav-wrap {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  text-decoration: none;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.54rem;
  font-weight: 700;
  letter-spacing: 0.015em;
}
.logo-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--brass-light);
  color: var(--brass-light);
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
  line-height: 1;
}
.logo em { color: var(--brass-light); font-style: normal; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  color: #f5eee1;
  text-decoration: none;
  font-size: 0.91rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 9px 12px;
  border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.site-nav a:hover,
.site-nav a.active {
  color: var(--brass-light);
  border-color: var(--brass-light);
  background: rgba(255, 255, 255, 0.04);
}
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(217, 190, 136, 0.62);
  padding: 9px 12px;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: .04em;
}
.nav-toggle-lines { width: 18px; display: grid; gap: 4px; }
.nav-toggle-lines span { display: block; height: 1px; background: var(--brass-light); }

/* Reusable sections */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 112px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(35, 29, 24, 0.90) 0%, rgba(52, 39, 29, 0.76) 45%, rgba(52, 39, 29, 0.48) 100%),
    var(--hero-image) center / cover no-repeat;
}
.hero::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 130px;
  background: linear-gradient(transparent, var(--paper));
  pointer-events: none;
}
.index-hero { --hero-image: url('../images/midland3.jpg'); }
.directory-hero { --hero-image: url('../images/midland3.jpg'); }
.about-hero { --hero-image: url('../images/midland-postcard.jpg'); }
.history-hero { --hero-image: url('../assets/1951-new-home-office-opening.jpg'); }
.contact-hero {
  --hero-image: url('../images/midland3.jpg');
  background:
    linear-gradient(90deg, rgba(35, 29, 24, .94), rgba(70, 54, 43, .84)),
    var(--hero-image) center / cover no-repeat;
}
.hero-grid,
.hero-content { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 52px;
  align-items: center;
}
.hero-content { max-width: 810px; }
.eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  padding: 7px 11px;
  color: #392b1d;
  background: var(--brass-light);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 860px;
  margin: 0 0 21px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2.45rem, 5vw, 4.8rem);
  font-weight: 700;
  letter-spacing: -.028em;
  line-height: 1.03;
  text-shadow: 0 3px 18px rgba(0, 0, 0, .28);
}
.hero p { max-width: 710px; margin: 0 0 28px; color: #f7f0e6; font-size: 1.13rem; }
.hero-location-card {
  padding: 31px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.96);
  border: 1px solid rgba(217, 190, 136, .92);
  border-top: 5px solid var(--brass);
  box-shadow: var(--shadow);
}
.hero-location-card .small-title {
  margin: 0 0 8px;
  color: var(--brick);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.hero-location-card h2 {
  margin: 0 0 8px;
  color: var(--walnut);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 2rem;
  line-height: 1.15;
}
.hero-location-card p { margin: 0 0 18px; color: var(--muted); font-size: 1rem; }

.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 19px;
  border: 1px solid transparent;
  border-radius: 3px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .015em;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 18px rgba(43, 33, 25, .2); }
.btn-primary { color: #fffaf0; background: var(--brick); border-color: var(--brick); }
.btn-primary:hover { color: #fffaf0; background: #73352e; }
.btn-secondary { color: #fffaf0; background: rgba(255, 255, 255, .09); border-color: rgba(255, 253, 248, .72); }
.btn-secondary:hover { color: #fffaf0; background: rgba(255, 255, 255, .18); }
.btn-dark { color: #fffaf0; background: var(--coal); border-color: var(--coal); }

.section { padding: 82px 0; }
.section-title { max-width: 780px; margin: 0 auto 38px; text-align: center; }
.section-title h2,
.content-card h2,
.contact-card h2,
.history-feature h2 {
  margin: 0 0 11px;
  color: var(--walnut);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.95rem, 3vw, 2.75rem);
  line-height: 1.15;
}
.section-title p { margin: 0; color: var(--muted); font-size: 1.05rem; }

.quick-info {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: -46px;
}
.info-card,
.feature,
.floor-section,
.content-card,
.contact-card,
.history-feature,
.history-entry,
.article-card,
.source-card {
  background: rgba(255, 253, 248, .96);
  border: 1px solid var(--line);
  box-shadow: var(--soft-shadow);
}
.info-card {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  padding: 27px;
  border-top: 5px solid var(--brass);
}
.info-card h3,
.feature h3,
.source-card h3 { margin: 0 0 9px; color: var(--walnut); font-family: Georgia, 'Times New Roman', serif; font-size: 1.25rem; }
.info-card p,
.feature p { margin: 0; color: var(--muted); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { min-height: 100%; padding: 28px; border-radius: var(--radius); }
.feature::before { content: '◆'; display: block; margin-bottom: 12px; color: var(--brass); font-size: .84rem; }

.dark-section {
  position: relative;
  overflow: hidden;
  color: #fff9ed;
  background:
    radial-gradient(circle at 92% 0, rgba(174, 135, 79, .21), transparent 28%),
    linear-gradient(135deg, #2c2622, #3c3028);
  border-top: 4px solid var(--brass);
  border-bottom: 4px solid var(--brass);
}
.dark-section h2 { color: #fff9ed; font-family: Georgia, 'Times New Roman', serif; font-size: 2.25rem; line-height: 1.15; }
.dark-section p { color: #efe4d2; }
.directory-grid,
.two-column { display: grid; grid-template-columns: .93fr 1.07fr; gap: 38px; align-items: start; }
.suite-list { display: grid; gap: 13px; }
.suite-item {
  padding: 15px 17px;
  background: rgba(255, 250, 241, .08);
  border: 1px solid rgba(220, 199, 163, .28);
  border-left: 4px solid var(--brass-light);
}
.suite-item strong { color: var(--brass-light); }

.floor-section { margin-bottom: 23px; padding: 29px; border-radius: var(--radius); }
.floor-section h2 { margin: 0 0 17px; color: var(--walnut); font-family: Georgia, 'Times New Roman', serif; font-size: 1.74rem; }
.directory-list { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.directory-list li { padding: 13px 15px; color: var(--ink); background: #f7f1e7; border-left: 4px solid var(--brass); }
.directory-list strong { color: var(--walnut); }

.content-card { padding: 33px; border-radius: var(--radius); }
.content-card p { color: var(--muted); }
.image-card { overflow: hidden; background: var(--white); border: 1px solid var(--line); box-shadow: var(--soft-shadow); }
.image-card img { width: 100%; }
.image-card.contain-image { padding: 13px; }
.about-images { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.caption { margin: 12px 13px 13px; color: var(--muted); font-size: .92rem; }

.history-preview { display: grid; grid-template-columns: .88fr 1.12fr; gap: 42px; align-items: center; }
.history-preview .image-card { border-top: 5px solid var(--brass); }
.history-preview .image-card img { max-height: 390px; object-fit: cover; object-position: top; }
.history-copy h2 { margin: 0 0 13px; color: var(--walnut); font-family: Georgia, 'Times New Roman', serif; font-size: clamp(1.95rem, 3vw, 2.75rem); line-height: 1.15; }
.history-copy p { color: var(--muted); }

/* History page */
.history-page .hero { padding-bottom: 100px; }
.history-intro {
  max-width: 860px;
  margin: 0 auto 36px;
  color: var(--muted);
  font-size: 1.08rem;
}
.history-note {
  max-width: 860px;
  margin: 0 auto 46px;
  padding: 15px 18px;
  color: #5a4733;
  background: #fbf4e6;
  border-left: 4px solid var(--brass);
}
.history-timeline { position: relative; max-width: 920px; margin: 0 auto 58px; padding-left: 38px; }
.history-timeline::before { content: ''; position: absolute; top: 0; bottom: 0; left: 8px; width: 2px; background: var(--brass); }
.history-entry { position: relative; margin: 0 0 20px; padding: 22px 24px; border-radius: 12px; }
.history-entry::before { content: ''; position: absolute; top: 25px; left: -37px; width: 15px; height: 15px; background: var(--brick); border: 4px solid var(--paper); border-radius: 50%; }
.history-year { display: block; margin-bottom: 3px; color: var(--brick); font-size: .88rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.history-entry h3 { margin: 0 0 7px; color: var(--walnut); font-family: Georgia, 'Times New Roman', serif; font-size: 1.31rem; }
.history-entry p { margin: 0 0 10px; color: var(--muted); }
.history-entry p:last-child { margin-bottom: 0; }
.history-feature { max-width: 920px; margin: 0 auto 58px; padding: 30px; border-radius: var(--radius); background: #f9f1e4; }
.history-feature p { color: var(--muted); }
.article-card { display: grid; grid-template-columns: 1.1fr .9fr; gap: 23px; max-width: 1050px; margin: 0 auto 58px; padding: 22px; border-radius: var(--radius); }
.article-card h3 { margin: 0 0 12px; color: var(--walnut); font-family: Georgia, 'Times New Roman', serif; font-size: 2rem; line-height: 1.15; }
.article-card p { color: var(--muted); }
.article-card img { width: 100%; border: 1px solid var(--line); }
.source-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 1050px; margin: 0 auto 58px; }
.source-card { padding: 17px; border-radius: 12px; }
.source-card p { color: var(--muted); }
.source-card img { width: 100%; border: 1px solid var(--line); }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 1140px; margin: 0 auto; }
.gallery figure { margin: 0; overflow: hidden; background: var(--white); border: 1px solid var(--line); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .25s ease; }
.gallery figure:hover img { transform: scale(1.035); }
.gallery figcaption { padding: 11px 12px 13px; color: var(--muted); font-size: .88rem; }

/* Contact form */
.contact-card { grid-template-columns: .86fr 1.14fr; gap: 36px; align-items: start; padding: 38px; border-radius: var(--radius); }
.contact-card p { color: var(--muted); }
.contact-details { display: grid; gap: 11px; }
.contact-details p { margin: 0; padding: 12px 14px; background: #f8f1e6; border-left: 4px solid var(--brass); }
.contact-details strong { color: var(--walnut); }
.contact-form { display: grid; gap: 15px; }
.contact-form label { display: grid; gap: 6px; color: var(--walnut); font-weight: 800; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 13px;
  color: var(--ink);
  background: #fffdf8;
  border: 1px solid #cbb99e;
  border-radius: 3px;
}
.contact-form textarea { min-height: 154px; resize: vertical; }
.contact-form input:focus,
.contact-form textarea:focus { outline: 3px solid rgba(174, 135, 79, .3); border-color: var(--brass); }
.contact-form .form-note { margin: -2px 0 0; color: var(--muted); font-size: .9rem; }

/* Footer */
.site-footer { color: #efe6d8; background: #211d1a; border-top: 4px solid var(--brass); }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; padding: 39px 0 26px; text-align: left; }
.footer-brand { margin: 0 0 8px; color: var(--white); font-family: Georgia, 'Times New Roman', serif; font-size: 1.35rem; }
.footer-copy { margin: 0; color: #cabba8; max-width: 540px; }
.footer-links { display: flex; flex-wrap: wrap; align-content: start; gap: 8px 18px; }
.footer-links a { color: #f1dfbc; text-decoration: none; font-weight: 700; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { margin: 0; padding: 16px 0 22px; color: #c9b8a4; border-top: 1px solid rgba(217, 190, 136, .2); font-size: .9rem; }

@media (max-width: 900px) {
  .hero-grid,
  .directory-grid,
  .two-column,
  .history-preview,
  .article-card,
  .contact-card { grid-template-columns: 1fr; }
  .quick-info,
  .features,
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-wrap { position: relative; min-height: 70px; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    background: var(--coal);
    border-bottom: 0 solid var(--brass);
    box-shadow: 0 12px 18px rgba(24, 19, 16, .18);
    transition: max-height .25s ease, border-width .25s ease;
  }
  .site-nav.is-open { max-height: 360px; border-bottom-width: 3px; }
  .site-nav a { padding: 13px 4%; border-bottom: 1px solid rgba(217, 190, 136, .15); }
  .hero { padding: 62px 0 80px; }
  .section { padding: 60px 0; }
  .quick-info { margin-top: 25px; }
  .history-timeline { padding-left: 31px; }
  .history-entry::before { left: -30px; }
}

@media (max-width: 560px) {
  .quick-info,
  .features,
  .about-images,
  .source-grid,
  .gallery { grid-template-columns: 1fr; }
  .button-row,
  .button-row .btn { width: 100%; }
  .hero h1 { font-size: 2.45rem; }
  .hero-location-card,
  .content-card,
  .floor-section,
  .contact-card,
  .history-feature { padding: 23px; }
  .article-card { padding: 14px; }
}
