/* Select Stone — site styles. Mobile first; breakpoints at 768px and 1024px. */

:root {
  --red: #dd3333;
  --red-dark: #b82424;
  --logo-red: #fb0006;
  --logo-text: #000;
  --charcoal: #1d1d1d;
  --charcoal-2: #262626;
  --text: #444;
  --muted: #666;
  --line: #e4e4e4;
  --alt: #f4f4f4;
  --white: #fff;
  --radius: 6px;
  --container: 1120px;
  --font-body: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Raleway", "Lato", system-ui, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
}

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

a {
  color: var(--red);
}

a:hover {
  color: var(--red-dark);
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  color: var(--charcoal);
  line-height: 1.2;
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 8px 16px;
  background: var(--red);
  color: var(--white);
}

.skip-link:focus {
  left: 16px;
}

/* ---------- Navigation ---------- */

.nav-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--charcoal);
}

.site-header {
  display: contents;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
}

.brand {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--logo-text);
  background: var(--logo-red);
  padding: 10px 14px;
}

.brand:hover {
  color: var(--logo-text);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--charcoal-2);
  border-top: 1px solid #333;
}

.site-nav.is-open {
  display: block;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}

.site-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  color: #ccc;
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--white);
}

.site-nav a[aria-current="page"] {
  box-shadow: inset 3px 0 0 var(--red);
}

.nav-facebook svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

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

.hero {
  position: relative;
  background: var(--charcoal) url("/images/header.jpg") center / cover no-repeat;
  color: var(--white);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.7) 100%
  );
}

.hero-inner {
  position: relative;
  padding-top: 56px;
  padding-bottom: 56px;
  text-align: center;
}

/* The original Select Stone logo: black Raleway capitals on a bright red box. */
.hero-logo {
  display: inline-block;
  margin: 0 0 24px;
  padding: 20px;
  background: var(--logo-red);
  color: var(--logo-text);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.25rem, 6vw, 1.96875rem);
  line-height: 1;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.hero-title {
  color: var(--white);
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 0.4em;
}

.hero-sub {
  max-width: 38em;
  margin: 0 auto 28px;
  font-size: 1.0625rem;
  color: #eee;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

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

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--red-dark);
  color: var(--white);
}

.btn-ghost {
  border-color: var(--white);
  color: var(--white);
}

.btn-ghost:hover {
  background: var(--white);
  color: var(--charcoal);
}

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

.section {
  padding: 56px 0;
}

.section-alt {
  background: var(--alt);
}

.section-title {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
}

.section-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  margin-top: 12px;
  background: var(--red);
}

.lead {
  font-size: 1.1875rem;
  color: var(--charcoal);
}

.subhead {
  margin-top: 40px;
  font-size: 1.125rem;
}

.split {
  display: grid;
  gap: 32px;
  align-items: center;
}

.photo img {
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

figure {
  margin: 0;
}

.map img {
  margin: 0 auto;
  width: 100%;
  max-width: 320px;
}

/* ---------- Cards and tags ---------- */

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  border-radius: var(--radius);
  padding: 24px;
}

.card h3 {
  margin-bottom: 0.3em;
  font-size: 1.1875rem;
}

.cards .card h3 {
  color: var(--red);
  font-size: 1.375rem;
  font-weight: 800;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tags li {
  padding: 8px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--charcoal);
}

/* ---------- Accreditations ---------- */

.accreditations {
  border-top: 1px solid var(--line);
  padding: 32px 0;
}

.accreditations-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 32px;
}

.accreditations p {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.accreditations img {
  width: 200px;
}

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

.site-footer {
  background: var(--charcoal);
  color: #bbb;
  padding: 40px 0 24px;
  font-size: 0.9375rem;
}

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

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

.footer-grid {
  display: grid;
  gap: 16px;
}

.footer-brand {
  margin-bottom: 8px;
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
}

address {
  font-style: normal;
  margin-bottom: 1.25em;
}

.copyright {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #333;
  font-size: 0.8125rem;
  color: #888;
}

/* ---------- Inner page banner ---------- */

.hero-page .hero-inner {
  padding-top: 40px;
  padding-bottom: 40px;
}

.hero-page .hero-logo {
  font-size: clamp(1rem, 4.5vw, 1.375rem);
  padding: 14px 18px;
  margin-bottom: 16px;
}

.hero-page .hero-title {
  margin-bottom: 0.25em;
}

.hero-page .hero-sub {
  margin-bottom: 0;
}

/* ---------- Spec lists ---------- */

.spec-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.spec-list li {
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  color: var(--charcoal);
}

.spec-list li:last-child {
  border-bottom: 0;
}

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

.cta-band {
  background: var(--charcoal-2);
  border-top: 4px solid var(--red);
  color: #ddd;
  padding: 48px 0;
}

.cta-band h2 {
  color: var(--white);
  font-size: clamp(1.375rem, 3vw, 1.75rem);
}

.cta-band p {
  margin-bottom: 20px;
}

.cta-band a:not(.btn) {
  color: var(--white);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Photo grid ---------- */

.photo-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.photo-grid a {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--line);
}

.photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.photo-grid a:hover img,
.photo-grid a:focus-visible img {
  transform: scale(1.05);
}

.photo-grid a:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

/* ---------- Lightbox ---------- */

.lightbox {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.92);
  color: var(--white);
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.6);
}

.lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  padding: 56px 16px 24px;
}

.lightbox img {
  max-width: min(100%, 1400px);
  max-height: calc(100dvh - 140px);
  width: auto;
  height: auto;
  object-fit: contain;
  touch-action: pan-y;
  user-select: none;
}

.lightbox figcaption {
  font-size: 0.9375rem;
  color: #ccc;
  text-align: center;
}

.lightbox button {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox button:hover,
.lightbox button:focus-visible {
  background: var(--red);
}

.lightbox-close {
  top: 12px;
  right: 12px;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 12px;
}

.lightbox-next {
  right: 12px;
}

.lightbox-count {
  position: absolute;
  top: 24px;
  left: 16px;
  font-size: 0.875rem;
  color: #aaa;
}

body.lightbox-open {
  overflow: hidden;
}

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

.contact-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.contact-cards .card h3 {
  font-size: 1.0625rem;
}

.contact-cards .card p {
  color: var(--text);
}

.contact-big {
  display: inline-block;
  margin-bottom: 4px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.375rem;
  text-decoration: none;
  word-break: break-word;
}

.map-embed {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Tablet and up ---------- */

@media (min-width: 768px) {
  .hero-inner {
    padding-top: 96px;
    padding-bottom: 96px;
  }

  .hero-logo {
    padding: 30px;
  }

  .section {
    padding: 80px 0;
  }

  .split {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }

  .split-reverse > :first-child {
    order: 2;
  }

  .cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-page .hero-inner {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .photo-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .contact-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .lightbox-prev {
    left: 24px;
  }

  .lightbox-next {
    right: 24px;
  }
}

@media (min-width: 1024px) {
  .photo-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- Desktop nav ---------- */

@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: block;
    position: static;
    background: none;
    border: 0;
  }

  .site-nav ul {
    display: flex;
    align-items: center;
    padding: 0;
  }

  .site-nav a {
    padding: 20px 14px;
  }

  .site-nav a[aria-current="page"] {
    box-shadow: inset 0 -3px 0 var(--red);
  }

  .nav-facebook-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
}
