/**
 * Zbroy — main stylesheet
 * Centered header, stacked hero, vertical timeline, centered footer.
 */

:root {
  --charcoal: #2a2a2a;
  --steel: #8a9ba8;
  --offwhite: #ebe6df;
  --ember: #c45c26;
  --ember-hover: #a84c1f;
  --text: #2a2a2a;
  --text-muted: #5a5a5a;
  --surface: #f5f1eb;
  --line: rgba(42, 42, 42, 0.12);
  --font-display: "Archivo", "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
  --space: clamp(1rem, 2.5vw, 2rem);
  --max: 72rem;
  --header-h: 7.5rem;
  --radius: 2px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(138, 155, 168, 0.18), transparent 55%),
    linear-gradient(180deg, var(--offwhite) 0%, var(--surface) 40%, var(--offwhite) 100%);
  -webkit-font-smoothing: antialiased;
}

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

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

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

h1,
h2,
h3,
.site-logo__word,
.site-footer__brand {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.25rem);
  margin: 0 0 0.75rem;
}

h3 {
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 1rem;
}

address {
  font-style: normal;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  background: var(--charcoal);
  color: var(--offwhite);
  padding: 0.6rem 1rem;
}

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

/* ——— Centered header ——— */
.site-header {
  position: static;
  background: rgba(235, 230, 223, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem var(--space) 1.15rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  position: relative;
}

.site-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  color: var(--charcoal);
}

.site-logo img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.site-logo__word {
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  position: absolute;
  right: var(--space);
  top: 1.35rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  background: transparent;
  padding: 0.55rem;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle__bar {
  display: block;
  height: 2px;
  background: var(--charcoal);
  width: 100%;
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.35rem;
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

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

.site-nav__cta {
  color: var(--ember) !important;
  font-weight: 600;
}

@media (max-width: 760px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    width: 100%;
  }

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

  .site-nav__list {
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 0 0.25rem;
    gap: 0.75rem;
  }
}

/* ——— Layout ——— */
.site-main {
  overflow-x: clip;
}

.site-main--page {
  max-width: 44rem;
  margin: 0 auto;
  padding: 3rem var(--space) 4rem;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.5rem) var(--space);
}

.section__intro {
  max-width: 40rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.section__intro p {
  color: var(--text-muted);
}

.section__copy {
  max-width: 42rem;
  margin: 2rem auto 0;
  color: var(--text-muted);
}

.section__media {
  margin-top: 2.5rem;
}

.media-frame {
  overflow: hidden;
  background: var(--charcoal);
}

.media-frame img,
.media-frame picture {
  width: 100%;
}

.media-frame img {
  object-fit: cover;
  aspect-ratio: 16 / 10;
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.35rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn--primary {
  background: var(--ember);
  color: #fff;
}

.btn--primary:hover {
  background: var(--ember-hover);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--charcoal);
  border-color: rgba(42, 42, 42, 0.28);
}

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

.link-button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

/* ——— Stacked hero ——— */
.hero--stacked {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  max-width: none;
}

.hero__text {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--space) clamp(2rem, 4vw, 3rem);
  text-align: center;
}

.hero__eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
}

.hero__lead {
  max-width: 38rem;
  margin: 0 auto 1.75rem;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.hero__media {
  width: 100%;
  background: var(--charcoal);
}

.hero__media picture,
.hero__media img {
  width: 100%;
  display: block;
}

.hero__img {
  width: 100%;
  max-height: min(72vh, 820px);
  object-fit: cover;
  aspect-ratio: 21 / 9;
}

/* ——— Services ——— */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

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

.service {
  padding: 1.5rem 1.35rem;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--line);
}

.service p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* ——— Vertical timeline ——— */
.timeline {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 40rem;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 1.35rem;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 2px;
  background: linear-gradient(180deg, var(--steel), rgba(138, 155, 168, 0.2));
}

.timeline__item {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
  position: relative;
}

.timeline__item:last-child {
  margin-bottom: 0;
}

.timeline__marker {
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 50%;
  background: var(--charcoal);
  color: var(--offwhite);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.timeline__body h3 {
  margin-top: 0.35rem;
}

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

/* ——— About ——— */
.about-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.about-layout__copy p {
  color: var(--text-muted);
}

.about-tools {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2rem;
  align-items: center;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}

.about-tools__copy p {
  color: var(--text-muted);
}

@media (max-width: 860px) {
  .about-layout,
  .about-tools {
    grid-template-columns: 1fr;
  }
}

/* ——— Gallery ——— */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

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

.gallery-item {
  margin: 0;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid var(--line);
  overflow: hidden;
}

.gallery-item img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.gallery-item figcaption {
  padding: 0.75rem 1rem 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ——— FAQ ——— */
.faq-list {
  max-width: 42rem;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 0.35rem 0;
}

.faq-item summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  padding: 1rem 0;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--steel);
  font-weight: 500;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  margin: 0 0 1.1rem;
  color: var(--text-muted);
  padding-right: 1.5rem;
}

/* ——— Contact ——— */
.contact-block {
  max-width: 36rem;
  margin: 0 auto;
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid var(--line);
}

.contact-block p {
  color: var(--text-muted);
}

.contact-block__address {
  margin: 1.5rem 0;
  line-height: 1.7;
}

.contact-block__list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-block__label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.contact-block__list a {
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--charcoal);
}

.contact-block__list a:hover {
  color: var(--ember);
}

.contact-block__note {
  font-size: 0.95rem;
}

.contact-block__media {
  margin-top: 1.75rem;
}

/* ——— Content pages ——— */
.content-page__header {
  margin-bottom: 1.5rem;
}

.content-page__body.prose :where(h2, h3) {
  margin-top: 1.75rem;
}

.content-page__body.prose :where(ul, ol) {
  padding-left: 1.25rem;
}

.error-404 {
  text-align: center;
  padding: 2rem 0;
}

.error-404 .hero__actions {
  margin-top: 1.5rem;
}

/* ——— Centered charcoal footer ——— */
.site-footer {
  background: var(--charcoal);
  color: rgba(235, 230, 223, 0.82);
  padding: clamp(3rem, 6vw, 4.5rem) var(--space);
  text-align: center;
}

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

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.site-footer__inner {
  max-width: 36rem;
  margin: 0 auto;
}

.site-footer__brand {
  display: inline-block;
  font-size: 1.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--offwhite);
  text-decoration: none;
  margin-bottom: 0.75rem;
}

.site-footer__tag {
  margin: 0 0 1.25rem;
  color: rgba(235, 230, 223, 0.7);
}

.site-footer__address {
  margin: 0 0 0.75rem;
  line-height: 1.7;
}

.site-footer__contact {
  margin: 0 0 1.75rem;
}

.site-footer__contact a {
  font-weight: 500;
}

.site-footer__list {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem 1.25rem;
}

.site-footer__list .link-button {
  color: var(--offwhite);
}

.site-footer__list .link-button:hover {
  color: #fff;
}

.site-footer__copy {
  margin: 0;
  font-size: 0.875rem;
  color: rgba(235, 230, 223, 0.55);
}

/* ——— Cookie banner ——— */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 900;
  max-width: 28rem;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(42, 42, 42, 0.18);
  padding: 1.25rem;
}

.cookie-banner__title {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}

.cookie-banner__text {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-settings {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.cookie-settings__row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.65rem;
  font-size: 0.92rem;
}

/* ——— Animations ——— */
.reveal {
  opacity: 0;
  transform: translateY(1.1rem);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.lift {
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(42, 42, 42, 0.1);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .lift,
  .lift:hover,
  .btn {
    transition: none;
    transform: none;
    box-shadow: none;
  }
}
