/* ==========================================================================
   Mabgate Business Centre — static site
   Palette: ink (steel), brick (mill brick), oak (beams), stone (plaster)
   Type: Fraunces (display) / Archivo (body)
   ========================================================================== */

:root {
  --ink: #26221e;
  --ink-soft: #55504a;
  --brick: #8a382e;
  --brick-dark: #6e2c24;
  --oak: #a87f42;
  --stone: #f1ede6;
  --paper: #fffdf9;
  --white: #ffffff;
  --max: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: "Archivo", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 1.0625rem;
}

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

a { color: var(--brick); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--oak);
  outline-offset: 2px;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

/* --- Signature: beam rule (oak beam over steel line) -------------------- */
.beam {
  border: none;
  height: 6px;
  width: 72px;
  background: var(--oak);
  border-bottom: 2px solid var(--ink);
  margin: 0.9rem 0 1.6rem;
}
.beam.center { margin-left: auto; margin-right: auto; }

/* --- Header -------------------------------------------------------------- */
.topline {
  background: var(--ink);
  color: var(--stone);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.topline .wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}
.topline a { color: var(--stone); text-decoration: none; }

header.site {
  background: var(--white);
  border-bottom: 1px solid #e4ddd2;
  position: sticky;
  top: 0;
  z-index: 10;
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  flex-wrap: wrap;
}
.brand { text-decoration: none; color: var(--ink); line-height: 1.15; }
.brand .name {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 1.35rem;
  display: block;
}
.brand .est {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brick);
}

nav.main ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem; }
nav.main a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.45rem 0.7rem;
  border-radius: 3px;
}
nav.main a:hover { color: var(--brick); background: var(--stone); }
nav.main a[aria-current="page"] {
  color: var(--brick-dark);
  box-shadow: inset 0 -3px 0 var(--oak);
}

/* --- Hero ----------------------------------------------------------------- */
.hero {
  background: var(--ink);
  color: var(--stone);
  position: relative;
  overflow: hidden;
}
.hero .photo {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.38;
}
.hero .wrap {
  position: relative;
  padding-top: 5rem;
  padding-bottom: 5rem;
  max-width: 820px;
}
.hero .eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--oak);
  font-weight: 600;
}
.hero h1 {
  font-family: "Fraunces", serif;
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.12;
  margin: 0.6rem 0 1rem;
  color: var(--white);
}
.hero p { max-width: 34em; font-size: 1.1rem; }
.hero .actions { margin-top: 1.8rem; display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* Page hero (inner pages) */
.hero.slim .wrap { padding-top: 3rem; padding-bottom: 3rem; }

/* --- Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.4rem;
  border-radius: 3px;
  border: 2px solid transparent;
}
.btn.primary { background: var(--brick); color: var(--white); }
.btn.primary:hover { background: var(--brick-dark); }
.btn.ghost { border-color: var(--stone); color: var(--stone); }
.btn.ghost:hover { border-color: var(--oak); color: var(--white); }
.btn.dark { background: var(--ink); color: var(--white); }
.btn.dark:hover { background: #000; }

/* --- Sections --------------------------------------------------------------- */
section { padding: 3.5rem 0; }
section.alt { background: var(--stone); }

h2 {
  font-family: "Fraunces", serif;
  font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.2;
}
h3 {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}
.lede { font-size: 1.15rem; max-width: 42em; color: var(--ink-soft); }

/* --- Service cards ------------------------------------------------------------ */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
}
.card {
  background: var(--white);
  border: 1px solid #e4ddd2;
  border-top: 4px solid var(--oak);
  padding: 1.5rem 1.4rem 1.6rem;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(38, 34, 30, 0.12);
  border-top-color: var(--brick);
}
.card .price {
  margin-top: auto;
  padding-top: 0.8rem;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brick);
  font-weight: 600;
}
.card p { color: var(--ink-soft); font-size: 0.97rem; }

/* --- Two-column feature ------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }
.split img { border: 1px solid #e4ddd2; }

/* --- Checklists ------------------------------------------------------------ */
ul.check { list-style: none; margin-top: 1rem; }
ul.check li {
  padding: 0.45rem 0 0.45rem 1.9rem;
  position: relative;
  border-bottom: 1px solid #e7e1d6;
}
ul.check li::before {
  content: "";
  position: absolute;
  left: 0.2rem; top: 1rem;
  width: 14px; height: 6px;
  background: var(--oak);
  border-bottom: 2px solid var(--ink);
}
.note { font-size: 0.88rem; color: var(--ink-soft); margin-top: 0.8rem; }

/* --- Quotes -------------------------------------------------------------- */
blockquote {
  background: var(--white);
  border-left: 5px solid var(--oak);
  padding: 1.4rem 1.6rem;
  font-family: "Fraunces", serif;
  font-size: 1.12rem;
  line-height: 1.5;
}
blockquote footer {
  font-family: "Archivo", sans-serif;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 0.7rem;
}
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem; margin-top: 2rem; }

/* --- Contact ---------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2.5rem; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
address { font-style: normal; line-height: 1.9; }
.map { border: 1px solid #e4ddd2; width: 100%; height: 320px; }

form .field { margin-bottom: 1rem; }
form label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.3rem; }
form input, form textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  font: inherit;
  border: 1px solid #cfc6b8;
  border-radius: 3px;
  background: var(--white);
}
form input:focus, form textarea:focus { outline: 3px solid var(--oak); outline-offset: 1px; }

/* --- CTA band ------------------------------------------------------------- */
.cta-band { background: var(--brick); color: var(--white); text-align: center; }
.cta-band h2 { color: var(--white); }
.cta-band p { opacity: 0.9; max-width: 38em; margin: 0.6rem auto 1.4rem; }

/* --- Footer --------------------------------------------------------------- */
footer.site {
  background: var(--ink);
  color: #c9c2b8;
  font-size: 0.92rem;
  padding: 2.5rem 0 2rem;
}
footer.site .wrap {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 700px) { footer.site .wrap { grid-template-columns: 1fr; } }
footer.site h4 {
  color: var(--white);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}
footer.site ul { list-style: none; }
footer.site a { color: #c9c2b8; text-decoration: none; }
footer.site a:hover { color: var(--white); }
.footer-mark {
  font-family: "Fraunces", serif;
  color: var(--white);
  font-size: 1.2rem;
}
.copyright {
  border-top: 1px solid #3d3831;
  margin-top: 2rem;
  padding-top: 1rem;
  text-align: center;
  font-size: 0.8rem;
  color: #8f887d;
}

/* --- Gallery ---------------------------------------------------------------- */
.gallery-grid {
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}
.gallery-item {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  cursor: pointer;
  overflow: hidden;
  background: var(--ink);
  border-radius: 2px;
  aspect-ratio: 3 / 2;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, opacity 0.3s ease;
  opacity: 0.96;
}
.gallery-item:hover img,
.gallery-item:focus-visible img { transform: scale(1.05); opacity: 1; }
.gallery-item .cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.4rem 0.85rem 0.6rem;
  font-family: 'Archivo', sans-serif;
  font-size: 0.82rem;
  color: var(--white);
  text-align: left;
  background: linear-gradient(to top, rgba(20,17,14,0.82), rgba(20,17,14,0));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-item:hover .cap,
.gallery-item:focus-visible .cap { opacity: 1; }
.gallery-item:focus-visible { outline: 3px solid var(--oak); outline-offset: 2px; }

@media (max-width: 720px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
  .gallery-item .cap { opacity: 1; font-size: 0.75rem; padding-top: 1.1rem; }
}
@media (max-width: 440px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

/* --- Lightbox --------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 17, 14, 0.94);
  padding: 2rem;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  border-radius: 2px;
}
.lightbox-close {
  position: absolute;
  top: 1rem; right: 1.4rem;
  background: none; border: 0;
  color: var(--stone);
  font-size: 2.6rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none; border: 0;
  color: var(--stone);
  font-size: 3.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 1rem;
  opacity: 0.75;
}
.lightbox-nav:hover { opacity: 1; }
.lightbox-nav.prev { left: 0.5rem; }
.lightbox-nav.next { right: 0.5rem; }
.lightbox-close:focus-visible,
.lightbox-nav:focus-visible { outline: 3px solid var(--oak); }
@media (max-width: 560px) {
  .lightbox-nav { font-size: 2.4rem; }
  .lightbox-close { font-size: 2.2rem; }
}

/* --- Contact form: captcha, honeypot, status ------------------------------- */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}
.cf-turnstile { margin: 0.2rem 0 1.1rem; }
.form-status {
  margin-top: 1rem;
  font-family: 'Archivo', sans-serif;
  font-size: 0.95rem;
  min-height: 1.2em;
}
.form-status.ok  { color: #2f6b34; }
.form-status.err { color: var(--brick-dark); }


/* --- Booking (rooms + CTA) -------------------------------------------------- */
.rooms {
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.room-card {
  border: 1px solid #e4ddd2;
  border-left: 3px solid var(--oak);
  background: var(--white);
  padding: 1.4rem 1.5rem;
  border-radius: 2px;
}
.room-card h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
  color: var(--ink);
}
.room-card p { color: var(--ink-soft); font-size: 0.98rem; }
.booking-cta {
  margin-top: 1.8rem;
  padding: 1.8rem;
  background: var(--stone);
  border-radius: 2px;
  text-align: center;
}
.booking-cta .note { margin-top: 0.9rem; }
@media (max-width: 640px) {
  .rooms { grid-template-columns: 1fr; }
}
