/* ============================================================
   Royal Building Maintenance — shared styles.
   Colors and type live here. Company details are in the HTML.
   Gold values are sampled from the logo.
   ============================================================ */

:root {
  --ink: #141414;
  --charcoal: #33322f;
  --stone: #eeeeec;
  --paper: #ffffff;
  --gold: #c6a24a;
  --gold-deep: #9c7524;
  --gold-light: #e2c87f;
  --line: #dad8d4;

  --measure: 1080px;
  --gutter: 1.5rem;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Archivo, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.3rem, 6.5vw, 3.9rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); }
h3 { font-size: 1.12rem; font-family: Archivo, sans-serif; font-weight: 600; letter-spacing: -0.01em; }

p { margin: 0 0 1.1em; max-width: 66ch; }

a { color: inherit; }

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

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Header ---------- */

.masthead {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.masthead-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.75rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  margin-right: auto;
}

.brand img { height: 42px; width: auto; display: block; }

.brand-name {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}

.brand-sub {
  display: block;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-top: 0.32rem;
}

.nav { display: flex; gap: 1.5rem; }

.nav-link {
  font-size: 0.97rem;
  font-weight: 500;
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

.nav-link:hover { border-bottom-color: var(--line); }

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

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background-color: var(--ink);
  background-image:
    linear-gradient(
      to bottom,
      rgba(9, 11, 18, 0.90) 0%,
      rgba(9, 11, 18, 0.74) 45%,
      rgba(9, 11, 18, 0.82) 100%
    ),
    url("skyline-small.jpg");
  background-position: center top, center bottom;
  background-size: cover, cover;
  background-repeat: no-repeat, no-repeat;
  color: var(--paper);
  padding: clamp(3.5rem, 9vw, 6rem) 0 0;
}

/* Serve the full-resolution skyline only where it can be seen. */
@media (min-width: 801px) {
  .hero { background-image:
    linear-gradient(
      to bottom,
      rgba(9, 11, 18, 0.90) 0%,
      rgba(9, 11, 18, 0.74) 45%,
      rgba(9, 11, 18, 0.82) 100%
    ),
    url("skyline.jpg");
  }
}

/* Enough height on every page for the skyline to actually read. */
@media (min-width: 641px) {
  .hero { min-height: clamp(400px, 56vh, 600px); }
}

/* Gold hairline where the hero meets the page. */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--gold);
}

.hero-crown {
  height: 62px;
  width: auto;
  display: block;
  margin-bottom: 1.4rem;
}

.hero h1 {
  max-width: 16ch;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
}

.hero-lede {
  color: #dcd8ce;
  font-size: 1.13rem;
  max-width: 52ch;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.6);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.8rem 0 clamp(2.5rem, 6vw, 3.8rem);
}

/* Schedule strip: what this business sells is a dependable cadence,
   so it leads the page. */
.schedule {
  border-top: 1px solid rgba(198, 162, 74, 0.45);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: linear-gradient(to bottom, rgba(9, 11, 18, 0) 0%, rgba(9, 11, 18, 0.55) 100%);
}

.schedule-item {
  padding: 1.25rem 1.25rem 1.6rem 0;
  border-right: 1px solid rgba(255, 255, 255, 0.13);
}

.schedule-item:last-child { border-right: 0; }

.schedule-cell {
  display: block;
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold-light);
  margin-bottom: 0.35rem;
}

.schedule-item p {
  margin: 0;
  font-size: 0.96rem;
  color: #cec9c0;
  line-height: 1.45;
}

@media (max-width: 640px) {
  .schedule { grid-template-columns: 1fr; }
  .schedule-item {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
    padding: 1rem 0 1.1rem;
  }
  .schedule-item:last-child { border-bottom: 0; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: Archivo, sans-serif;
  font-size: 0.97rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.8rem 1.45rem;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary { background: var(--gold); color: var(--ink); }

.btn-primary:hover { background: var(--gold-light); }

.btn-quiet {
  border-color: rgba(226, 200, 127, 0.55);
  color: var(--gold-light);
  background: transparent;
}

.btn-quiet:hover { border-color: var(--gold-light); }

/* ---------- Sections ---------- */

.band { padding: clamp(3rem, 7vw, 5rem) 0; }

.band-grey { background: var(--stone); }

.band-head { max-width: 58ch; margin-bottom: 2.25rem; }

.band-head p { color: var(--charcoal); margin-bottom: 0; }

/* Origin story: longer measure, no heading, one line pulled out. */
.story p { font-size: 1.09rem; max-width: 64ch; }

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

.story-pull {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 3.4vw, 2.05rem);
  line-height: 1.15;
  border-left: 3px solid var(--gold);
  padding-left: 1.15rem;
  margin: 2.1rem 0;
}

/* Service list, set like a spec sheet rather than cards */
.services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 3rem;
}

.service {
  border-top: 1px solid var(--line);
  padding: 1.4rem 0;
}

.service h3 { margin-bottom: 0.4rem; }

.service p { margin: 0; color: var(--charcoal); font-size: 0.99rem; }

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

/* Two-column prose + aside */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}

@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; gap: 2rem; }
}

.aside {
  background: var(--paper);
  border-top: 4px solid var(--gold);
  padding: 1.5rem;
}

.aside h3 { margin-bottom: 0.75rem; }

.facts { margin: 0; }

.facts div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.96rem;
}

.facts div:last-child { border-bottom: 0; }

.facts dt { color: var(--charcoal); }

.facts dd { margin: 0; font-weight: 600; text-align: right; min-width: 0; overflow-wrap: anywhere; }

/* ---------- Call to action ---------- */

.cta {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(3rem, 7vw, 4.5rem) 0;
}

.cta h2 { max-width: 20ch; }

.cta p { color: #cbc7bd; }

/* ---------- Contact form ---------- */

.form { margin-top: 0.5rem; }

/* Spam honeypot: hidden from people, left empty, filled in by bots. */
.hp-field { position: absolute; left: -9999px; }

.field { margin-bottom: 1.1rem; }

.field label {
  display: block;
  font-size: 0.89rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--charcoal);
  background: var(--paper);
  border-radius: 0;
}

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

.form-note { font-size: 0.92rem; color: var(--charcoal); max-width: 48ch; }

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 2.4rem 0 2.6rem;
  font-size: 0.94rem;
  color: var(--charcoal);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2rem;
  justify-content: space-between;
}

.footer img { height: 82px; width: auto; display: block; }

.footer a { text-decoration: none; border-bottom: 1px solid var(--line); }

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