/* Stoneland 2026 look. Loaded after bootstrap.min.css and style.css, and
   overrides both, so older internal pages pick up the new type and colour
   without template changes. */

:root {
  --carrara: #F5F6F4;   /* page: honed white marble */
  --paper: #FFFFFF;
  --vein: #D5D9D6;      /* hairlines */
  --soapstone: #232B2B; /* text, dark bands */
  --slate: #5C6664;     /* secondary text */
  --azul: #1D4F7C;      /* links, from the logo blue */
  --azul-deep: #163C5F;
  --display: "Marcellus", Georgia, "Times New Roman", serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
  --max: 1240px;
}

/* ---------- base ---------- */
html { font-size: 16px; }
body {
  background: var(--carrara);
  color: var(--soapstone);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, .h1, .h2, .h3, .h4 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0.005em;
  color: var(--soapstone);
  text-wrap: balance;
}
h1, .h1 { font-size: clamp(2.25rem, 4.6vw, 3.5rem); }
h2, .h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h3, .h3 { font-size: 1.5rem; }
p, ul, li { font-size: inherit; }
a { color: var(--azul); text-decoration: none; }
a:hover { color: var(--azul-deep); text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, .btn:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--azul);
  outline-offset: 3px;
  box-shadow: none;
}
img { max-width: 100%; }
.sl-wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- buttons (new + bootstrap) ---------- */
.sl-btn, .btn-primary, .btn-success, .btn-xl, .btn-lg.btn-primary {
  display: inline-block;
  width: auto;
  background: var(--soapstone);
  border: 1px solid var(--soapstone);
  border-radius: 2px;
  color: #fff;
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.9em 1.5em;
  cursor: pointer;
  transition: background-color .15s, color .15s;
}
.sl-btn:hover, .btn-primary:hover, .btn-success:hover,
.btn-primary:not(:disabled):not(.disabled):active {
  background: var(--azul-deep);
  border-color: var(--azul-deep);
  color: #fff;
  text-decoration: none;
}
.btn-success { background: var(--azul); border-color: var(--azul); }
.sl-btn--ghost {
  background: transparent;
  color: var(--soapstone);
}
.sl-btn--ghost:hover { background: var(--soapstone); border-color: var(--soapstone); color: #fff; }
.btn-sm { font-size: 0.875rem; padding: 0.5em 0.9em; }
.btn h2 { color: inherit; font-family: var(--body); font-size: 1rem; font-weight: 600; margin: 0; }

/* ---------- header ---------- */
.sl-nav.navbar {
  background: var(--paper) !important;
  border-bottom: 1px solid var(--vein);
  padding: 14px var(--gutter);
}
.sl-nav .navbar-brand img { max-height: 44px; border-radius: 2px; }
.sl-nav .nav-link {
  color: var(--soapstone) !important;
  font-size: 0.975rem;
  font-weight: 500;
  padding: 0.5rem 0 !important;
  margin-left: 2rem;
  border-bottom: 1px solid transparent;
}
.sl-nav .nav-link:hover, .sl-nav .nav-link[aria-current="page"] {
  border-bottom-color: var(--soapstone);
  text-decoration: none;
}
.sl-nav .nav-link.sl-nav__cta {
  border: 1px solid var(--soapstone);
  border-radius: 2px;
  padding: 0.5rem 1rem !important;
}
.sl-nav .nav-link.sl-nav__cta:hover { background: var(--soapstone); color: #fff !important; }
@media (max-width: 991px) {
  .sl-nav .nav-link { margin: 0; padding: 0.8rem 0 !important; border-bottom: 1px solid var(--vein); }
  .sl-nav .nav-link.sl-nav__cta { border-width: 0 0 1px; border-color: var(--vein); border-radius: 0; padding: 0.8rem 0 !important; }
  .sl-nav .nav-link.sl-nav__cta:hover { background: none; color: var(--soapstone) !important; }
}

/* ---------- page heads ---------- */
.sl-pagehead { padding: clamp(40px, 7vw, 88px) 0 clamp(28px, 4vw, 48px); }
.sl-pagehead h1 { margin: 0; max-width: 18ch; }
.sl-pagehead p { color: var(--slate); font-size: 1.1875rem; margin: 1rem 0 0; max-width: 58ch; }
/* legacy pages */
.bumpdowncenter { margin-top: 56px; margin-bottom: 40px; }

/* ---------- home: hero ---------- */
.sl-hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  min-height: min(78vh, 720px);
  background: var(--paper);
  border-bottom: 1px solid var(--vein);
}
.sl-hero__text {
  align-self: center;
  justify-self: end;
  width: 100%;
  max-width: calc(var(--max) * 5 / 11);
  padding: 56px clamp(24px, 4vw, 64px) 56px var(--gutter);
}
.sl-hero h1 { font-size: clamp(2.5rem, 4.4vw, 4rem); margin: 0 0 1.5rem; }
.sl-hero__lede { color: var(--slate); font-size: 1.1875rem; max-width: 40ch; margin: 0 0 2.25rem; }
.sl-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.sl-hero__photo { position: relative; overflow: hidden; min-height: 320px; }
.sl-hero__photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 38% 60%;
  animation: sl-unveil 1.1s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes sl-unveil {
  from { clip-path: inset(0 0 0 100%); transform: scale(1.06); }
  to   { clip-path: inset(0 0 0 0);    transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) { .sl-hero__photo img { animation: none; } }
@media (max-width: 860px) {
  .sl-hero { grid-template-columns: 1fr; min-height: 0; }
  .sl-hero__text { max-width: none; padding: 48px var(--gutter) 40px; }
  .sl-hero__photo { aspect-ratio: 3 / 2; }
}

/* ---------- home: the rack ---------- */
.sl-section { padding: clamp(56px, 9vw, 120px) 0; }
.sl-section__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 32px; margin-bottom: clamp(28px, 4vw, 48px); }
.sl-section__head h2 { margin: 0; }
.sl-rack {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;           /* slabs stand on one floor line */
  gap: 10px;
  border-bottom: 3px solid var(--soapstone);
  list-style: none; margin: 0; padding: 0;
}
.sl-slab {
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: var(--h, 440px);
  padding: 28px 26px 30px;
  border-radius: 2px 2px 0 0;
}
.sl-slab h3 { font-size: clamp(1.75rem, 2.4vw, 2.25rem); margin: 0 0 2rem; color: inherit; }
.sl-slab p { font-size: 0.975rem; line-height: 1.55; margin: 0; }
.sl-slab--granite   { --h: 470px; background: #34393B; color: #EEF0EE; }
.sl-slab--quartzite { --h: 430px; background: #C5D0D3; }
.sl-slab--marble    { --h: 490px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--vein); }
.sl-slab--quartz    { --h: 450px; background: #CFC8BC; }
@media (max-width: 980px) { .sl-rack { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sl-slab { --h: 340px; } }
@media (max-width: 560px) { .sl-rack { grid-template-columns: 1fr; border-bottom: 0; } .sl-slab { --h: 0px; border-radius: 2px; } }

/* ---------- home: quarry band ---------- */
.sl-band { background: var(--soapstone); color: #E6E9E7; }
.sl-band__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 6vw, 88px); align-items: center; }
.sl-band img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; }
.sl-band h2 { color: #fff; margin: 0 0 1.25rem; }
.sl-band p { max-width: 46ch; margin: 0 0 1.75rem; }
.sl-band a { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 860px) { .sl-band__grid { grid-template-columns: 1fr; } }

/* ---------- showrooms ledger ---------- */
.sl-ledger { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--soapstone); }
.sl-ledger__row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, .9fr) auto;
  gap: 8px 28px;
  align-items: baseline;
  padding: 26px 0;
  border-bottom: 1px solid var(--vein);
}
.sl-ledger__row h3 { font-size: 1.5rem; margin: 0; }
.sl-ledger__row p { margin: 0; font-size: 1rem; }
.sl-ledger__hours { color: var(--slate); }
.sl-ledger__phone a { color: var(--soapstone); font-weight: 600; white-space: nowrap; }
.sl-ledger__act { text-align: right; }
.sl-ledger__act .sl-btn { padding: 0.65em 1.1em; font-size: 0.9375rem; }
.sl-ledger__review { display: block; font-size: 0.875rem; margin-top: 6px; }
@media (max-width: 980px) {
  .sl-ledger__row { grid-template-columns: 1fr 1fr; }
  .sl-ledger__row h3 { grid-column: 1 / -1; }
  .sl-ledger__act { text-align: left; }
}
@media (max-width: 560px) { .sl-ledger__row { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.sl-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 900px) { .sl-split { grid-template-columns: 1fr; } }
.sl-form label, .sl-form legend { display: block; font-size: 0.9375rem; font-weight: 600; margin: 0 0 6px; }
.sl-form fieldset { border: 0; margin: 0 0 22px; padding: 0; }
.sl-form .sl-field { margin-bottom: 22px; }
.sl-form .sl-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sl-form input[type="text"], .sl-form input[type="email"], .sl-form textarea,
.form-control {
  width: 100%;
  background: var(--paper);
  border: 1px solid #AEB5B2;
  border-radius: 2px;
  color: var(--soapstone);
  font: inherit;
  padding: 0.7em 0.85em;
}
.form-control:focus { border-color: var(--azul); box-shadow: none; }
.sl-choices { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.sl-choices label { font-weight: 400; margin: 0; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.sl-choices input { accent-color: var(--soapstone); width: 1.05em; height: 1.05em; }
.sl-stack .sl-ledger__row { grid-template-columns: 1fr 1fr; }
.sl-stack .sl-ledger__row h3 { grid-column: 1 / -1; }
.sl-stack .sl-ledger__act { text-align: left; }
@media (max-width: 560px) { .sl-form .sl-pair, .sl-stack .sl-ledger__row { grid-template-columns: 1fr; } }

/* ---------- about / prose ---------- */
.sl-figure { margin: 0 0 clamp(32px, 5vw, 64px); }
.sl-figure img { width: 100%; border-radius: 2px; display: block; }
.sl-prose { max-width: 68ch; }
.sl-prose p { margin: 0 0 1.25em; }
.sl-prose > p:first-of-type { font-family: var(--display); font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.4; }
.sl-prose h2, .sl-prose h3 { margin: 2em 0 0.6em; }
.sl-prose img { border-radius: 2px; margin: 1.5em 0; height: auto; }
.sl-people { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--soapstone); max-width: 68ch; }
.sl-people li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 24px; padding: 18px 0; border-bottom: 1px solid var(--vein); }
.sl-people strong { font-family: var(--display); font-size: 1.375rem; font-weight: 400; }
.sl-people span { color: var(--slate); }

/* ---------- blog ---------- */
.sl-posts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--soapstone); }
.sl-post { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(20px, 4vw, 56px); padding: clamp(24px, 4vw, 44px) 0; border-bottom: 1px solid var(--vein); }
.sl-post img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 2px; display: block; }
.sl-post h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 0 0 0.4em; }
.sl-post h2 a { color: var(--soapstone); }
.sl-post time, .sl-meta { color: var(--slate); font-size: 0.9375rem; }
.sl-post__sum { margin-top: 0.9em; max-width: 62ch; }
.sl-post__sum h1, .sl-post__sum h2, .sl-post__sum h3 { font-family: var(--body); font-size: 1rem; font-weight: 600; margin: 0.8em 0 0.2em; }
@media (max-width: 700px) { .sl-post { grid-template-columns: 1fr; } }
.sl-article { max-width: 68ch; }
.sl-narrow { max-width: 700px; margin: 0 auto; }
.sl-narrow .sl-prose, .sl-narrow .sl-people { max-width: none; }
.sl-article h1 { margin: 0 0 0.5em; }
.pagination { margin-top: 32px; }
.page-link { color: var(--soapstone); border-color: var(--vein); border-radius: 0 !important; }
.page-item.active .page-link { background: var(--soapstone); border-color: var(--soapstone); }

/* ---------- bootstrap leftovers on internal pages ---------- */
.card { border: 1px solid var(--vein); border-radius: 2px; background: var(--paper); }
.card-header { background: transparent; border-bottom: 1px solid var(--vein); }
.alert { border-radius: 2px; }
.sl-blue { color: var(--soapstone); }

/* ---------- footer ---------- */
.sl-footer {
  height: auto;
  margin-top: clamp(56px, 9vw, 120px);
  background: var(--paper);
  border-top: 1px solid var(--vein);
  padding: clamp(36px, 5vw, 64px) 0 32px;
  font-size: 0.9375rem;
}
.sl-footer__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 32px; list-style: none; margin: 0 0 40px; padding: 0; }
.sl-footer__grid strong { display: block; font-family: var(--display); font-size: 1.1875rem; font-weight: 400; margin-bottom: 4px; }
.sl-footer__grid a { color: var(--soapstone); }
.sl-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 32px; border-top: 1px solid var(--vein); padding-top: 22px; color: var(--slate); }
.sl-footer__base a { color: var(--slate); }
.sl-social { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; font-size: 1.125rem; }
.sl-social a { color: var(--soapstone); }
.sl-social a:hover { color: var(--azul); }
@media (max-width: 760px) { .sl-footer__grid { grid-template-columns: 1fr 1fr; } }
