/* Niagara Luxury Apartments — shared stylesheet
   Palette: mist, river water, slate stone, brass fittings. */

:root {
  --ink: #1e2a32;
  --ink-soft: #52626c;
  --mist: #f3f6f8;
  --water: #d6e4eb;
  --water-deep: #b9cfda;
  --slate: #22485c;
  --slate-dark: #17323f;
  --brass: #a9895b;
  --line: #d9e2e7;
  --white: #ffffff;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;

  --wrap: 1180px;
  --measure: 66ch;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--mist);
}

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

figure {
  margin: 0;
}

a {
  color: var(--slate);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
}

h3 {
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
}

p {
  margin: 0 0 1em;
  max-width: var(--measure);
}

ul,
ol {
  max-width: var(--measure);
}

.wrap {
  width: min(var(--wrap), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--slate);
  color: var(--white);
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding: 1.1rem 0;
}

.brand {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.1;
}

.brand small {
  display: block;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  margin-top: 0.2rem;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  max-width: none;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  color: var(--brass);
}

.site-nav a[aria-current="page"] {
  border-bottom-color: var(--brass);
}

/* Hero / page intro */
.page-intro {
  background: linear-gradient(180deg, var(--white) 0%, var(--mist) 100%);
  padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(2rem, 5vw, 3.5rem);
}

.page-intro .lead {
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 58ch;
}

.page-intro .rule {
  width: 4rem;
  height: 2px;
  background: var(--brass);
  margin: 1.25rem 0 1.5rem;
}

.hero-figure {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--water);
}

.hero-figure figcaption,
figure figcaption {
  font-size: 0.9rem;
  color: var(--ink-soft);
  padding: 0.5rem 0.75rem;
  background: var(--white);
  border-top: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: end;
}

/* Sections */
.section {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-head {
  margin-bottom: 2rem;
}

.section-head p {
  color: var(--ink-soft);
}

/* On this page list */
.on-page {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.25rem 1.5rem;
  max-width: 34rem;
}

.on-page h2 {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

.on-page ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.on-page li + li {
  border-top: 1px solid var(--line);
}

.on-page a {
  display: block;
  padding: 0.5rem 0;
  text-decoration: none;
  font-weight: 600;
}

/* Entries (apartments, amenities, places) */
.entry {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding: clamp(2rem, 5vw, 3.5rem) 0;
  border-top: 1px solid var(--line);
}

.entry:first-of-type {
  border-top: 0;
}

.entry figure,
.columns figure {
  align-self: start;
  border: 1px solid var(--line);
  background: var(--water);
}

.entry .place {
  color: var(--ink-soft);
  font-size: 0.98rem;
  margin: -0.25rem 0 1rem;
}

.entry h4 {
  margin-top: 1.5rem;
}

.meta {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.35rem 1.5rem;
  margin: 1.75rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  max-width: var(--measure);
  font-size: 0.98rem;
}

.meta dt {
  color: var(--ink-soft);
}

.meta dd {
  margin: 0;
}

/* Cards on the home page */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.card figure {
  margin: 0;
  background: var(--water);
}

.card .card-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
}

.card .place {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.card p:last-child {
  margin-bottom: 0;
}

/* Fact strip */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 1.5rem 2rem;
  list-style: none;
  padding: 1.5rem 0;
  margin: 0;
  max-width: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.facts li strong {
  display: block;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.facts li span {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Note / disclaimer */
.note {
  background: var(--white);
  border-left: 3px solid var(--brass);
  padding: 1.25rem 1.5rem;
  max-width: 48rem;
  font-size: 0.98rem;
  color: var(--ink-soft);
}

.note p:last-child {
  margin-bottom: 0;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: none;
}

.gallery figure {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--water);
}

/* Simple two-column text */
.columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 2rem 3rem;
}

/* Buttons */
.button {
  display: inline-block;
  background: var(--slate);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  padding: 0.7rem 1.4rem;
  border: 1px solid var(--slate);
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
}

.button:hover {
  background: var(--slate-dark);
  color: var(--white);
}

.button.secondary {
  background: transparent;
  color: var(--slate);
}

.button.secondary:hover {
  background: var(--water);
}

/* Forms */
.form {
  display: grid;
  gap: 1rem;
  max-width: 34rem;
}

.form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  font: inherit;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--water-deep);
  background: var(--white);
  color: var(--ink);
}

.form textarea {
  min-height: 8rem;
  resize: vertical;
}

.form .hint {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0.25rem 0 0;
}

/* Contact details */
.contact-details {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.5rem 1.5rem;
  margin: 0;
}

.contact-details dt {
  color: var(--ink-soft);
}

.contact-details dd {
  margin: 0;
}

/* Footer */
.site-footer {
  background: var(--slate-dark);
  color: var(--water);
  margin-top: clamp(2rem, 5vw, 4rem);
  padding: clamp(2.5rem, 5vw, 4rem) 0 2rem;
}

.site-footer a {
  color: var(--white);
}

.site-footer a:hover {
  color: var(--brass);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem 3rem;
}

.site-footer .brand {
  color: var(--white);
}

.site-footer .brand small {
  color: var(--water);
}

.site-footer p {
  font-size: 0.98rem;
}

.site-footer h4 {
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.4rem;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
}

/* Legal pages */
.legal h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
}

/* Responsive */
@media (max-width: 800px) {
  .hero-grid,
  .entry {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .site-header .wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .meta,
  .contact-details {
    grid-template-columns: 1fr;
    gap: 0.15rem 0;
  }

  .meta dt,
  .contact-details dt {
    margin-top: 0.6rem;
  }
}

/* Date fields side by side inside the form */
.form .columns {
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 420px) {
  .form .columns {
    grid-template-columns: 1fr;
  }
}
