/* ==========================================================================
   K J Harvey Painting and Decorating — Website (5 pages)
   Refined heritage craftsman design system
   ========================================================================== */

:root {
  --plaster: #F4F0E8;
  --plaster-dim: #ECE6D9;
  --sage: #7A8B72;
  --sage-deep: #5C6B55;
  --charcoal: #2B2B28;
  --charcoal-soft: #3A3935;
  --brass: #A98C4B;
  --brass-light: #C7AD73;
  --white: #FFFFFF;
  --ink: var(--charcoal);

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container-w: 1180px;
  --radius-sm: 4px;
  --radius-md: 8px;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;

  --shadow-sm: 0 2px 10px rgba(43, 43, 40, 0.08);
  --shadow-md: 0 12px 32px rgba(43, 43, 40, 0.12);

  --reveal-duration: 400ms;
  --reveal-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------------------------------------------------------------------- */
/* Reset                                                                   */
/* ---------------------------------------------------------------------- */

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

html {
  scroll-behavior: auto;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--plaster);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.6em;
  color: var(--charcoal);
}

p {
  margin: 0 0 1em;
}

button {
  font-family: inherit;
}

/* ---------------------------------------------------------------------- */
/* Layout helpers                                                         */
/* ---------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 1rem;
  background: var(--charcoal);
  color: var(--plaster);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top 200ms ease;
  font-weight: 600;
}

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

/* ---------------------------------------------------------------------- */
/* Focus visibility                                                       */
/* ---------------------------------------------------------------------- */

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

/* ---------------------------------------------------------------------- */
/* Eyebrow / section labels                                               */
/* ---------------------------------------------------------------------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 0.9em;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--brass);
  display: inline-block;
}

.section-head {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: var(--space-lg);
}

.section-head--left {
  margin-inline: 0;
  text-align: left;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
}

.section-head p {
  font-size: 1.08rem;
  color: var(--charcoal-soft);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 44px;
  padding: 0.9rem 1.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--charcoal);
  color: var(--plaster);
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  background: var(--charcoal-soft);
  box-shadow: var(--shadow-md);
}

.btn--ghost {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--brass);
}

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

.btn--on-dark {
  background: var(--brass);
  color: var(--charcoal);
}

.btn--on-dark:hover {
  background: var(--brass-light);
}

.btn--ghost-on-dark {
  background: transparent;
  color: var(--plaster);
  border-color: rgba(244, 240, 232, 0.4);
}

.btn--ghost-on-dark:hover {
  border-color: var(--brass);
  color: var(--brass-light);
}

.btn--sm {
  padding: 0.65rem 1.2rem;
  font-size: 0.88rem;
  min-height: 40px;
}

.btn--block {
  width: 100%;
}

/* ---------------------------------------------------------------------- */
/* Header + mobile nav                                                    */
/* ---------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(244, 240, 232, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(43, 43, 40, 0.08);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
  gap: 1rem;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  font-family: var(--font-display);
}

.brand__name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: 0.01em;
}

.brand__tag {
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-top: 0.2rem;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-rating {
  display: none;
}

@media (min-width: 900px) {
  .header-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--charcoal-soft);
    white-space: nowrap;
  }
}

.header-rating svg {
  width: 15px;
  height: 15px;
  fill: var(--brass);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid rgba(43, 43, 40, 0.16);
  border-radius: var(--radius-sm);
  cursor: pointer;
  position: relative;
  z-index: 210;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--charcoal);
  transition: transform 220ms ease, opacity 220ms ease;
}

.nav-toggle span {
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

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

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

@media (max-width: 859px) {
  .header-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 84vw);
    height: 100vh;
    background: var(--plaster);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    padding: 6rem 2rem 2rem;
    box-shadow: -12px 0 32px rgba(43, 43, 40, 0.18);
    transform: translateX(100%);
    transition: transform 280ms ease;
  }

  .nav-open .header-nav {
    transform: translateX(0);
  }

  .header-nav a:not(.btn) {
    width: 100%;
    padding: 0.9rem 0;
    font-size: 1.15rem;
    border-bottom: 1px solid rgba(43, 43, 40, 0.1);
  }

  .header-nav .btn {
    margin-top: 1.5rem;
    width: 100%;
  }
}

.header-nav a:not(.btn) {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--charcoal-soft);
  padding: 0.5rem 0;
  border-bottom: 1px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
}

.header-nav a:not(.btn):hover,
.header-nav a.is-active {
  color: var(--sage-deep);
  border-color: var(--brass);
}

.nav-scrim {
  display: none;
}

@media (max-width: 859px) {
  .nav-open .nav-scrim {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(43, 43, 40, 0.4);
    z-index: 150;
  }
}

/* ---------------------------------------------------------------------- */
/* Hero (home)                                                             */
/* ---------------------------------------------------------------------- */

.hero {
  position: relative;
  padding-block: 3.5rem 4.5rem;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 10%, rgba(169, 140, 75, 0.14), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(122, 139, 114, 0.14), transparent 45%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
  }
}

.hero__h1 {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  margin-bottom: 0.5em;
}

.hero__h1 em {
  font-style: italic;
  color: var(--sage-deep);
}

.hero__lede {
  font-size: 1.15rem;
  color: var(--charcoal-soft);
  max-width: 46ch;
  margin-bottom: 1.75rem;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2.25rem;
}

.trust-ticks {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.trust-ticks li {
  display: flex;
  align-items: center;
  gap: 0.55em;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--charcoal-soft);
}

.trust-ticks svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--sage-deep);
  stroke-width: 2.2;
  flex-shrink: 0;
}

.hero__media {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 5;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__media-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem 1.25rem;
  background: linear-gradient(0deg, rgba(43, 43, 40, 0.78), transparent);
  color: var(--plaster);
  font-size: 0.85rem;
  font-weight: 500;
}

/* ---------------------------------------------------------------------- */
/* Page hero (inner pages)                                                 */
/* ---------------------------------------------------------------------- */

.page-hero {
  position: relative;
  padding-block: 3rem 3.5rem;
  overflow: hidden;
  border-bottom: 1px solid rgba(43, 43, 40, 0.08);
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 0%, rgba(169, 140, 75, 0.12), transparent 50%);
  pointer-events: none;
}

.page-hero__inner {
  position: relative;
  max-width: 720px;
}

.page-hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3rem);
}

.page-hero p {
  font-size: 1.1rem;
  color: var(--charcoal-soft);
  max-width: 56ch;
}

/* ---------------------------------------------------------------------- */
/* Services — swatch cards                                                */
/* ---------------------------------------------------------------------- */

.services {
  padding-block: var(--space-xl);
}

.services + .services {
  padding-top: 0;
}

.swatch-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .swatch-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.swatch-grid--two {
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .swatch-grid--two {
    grid-template-columns: repeat(2, 1fr);
  }
}

.swatch-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 220ms ease, transform 220ms ease;
  height: 100%;
}

.swatch-card:hover {
  box-shadow: var(--shadow-md);
}

.swatch-card__chip {
  height: 10px;
}

.swatch-card--interior .swatch-card__chip { background: var(--sage); }
.swatch-card--exterior .swatch-card__chip { background: var(--brass); }
.swatch-card--wallpaper .swatch-card__chip { background: var(--charcoal); }
.swatch-card--commercial .swatch-card__chip { background: linear-gradient(90deg, var(--sage), var(--brass)); }

.swatch-card__body {
  padding: 1.9rem 1.75rem 2.1rem;
}

.swatch-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--plaster-dim);
  margin-bottom: 1.1rem;
}

.swatch-card__icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--sage-deep);
  fill: none;
  stroke-width: 1.7;
}

.swatch-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5em;
}

.swatch-card p {
  color: var(--charcoal-soft);
  font-size: 0.98rem;
  margin-bottom: 0.9em;
}

.swatch-card__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.swatch-card__list li {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--charcoal-soft);
  background: var(--plaster-dim);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
}

/* ---------------------------------------------------------------------- */
/* Stats band                                                              */
/* ---------------------------------------------------------------------- */

.stats-band {
  background: var(--charcoal);
  color: var(--plaster);
  padding-block: var(--space-lg);
  position: relative;
}

.stats-band::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--brass), transparent);
}

.stats-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  text-align: center;
}

@media (min-width: 700px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stat {
  padding-inline: 1rem;
}

.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--brass-light);
  line-height: 1;
  margin-bottom: 0.3em;
}

.stat__label {
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  color: rgba(244, 240, 232, 0.82);
}

/* ---------------------------------------------------------------------- */
/* Gallery                                                                 */
/* ---------------------------------------------------------------------- */

.gallery {
  padding-block: var(--space-xl);
}

.gallery-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 700px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 10px;
  }
  .gallery-grid .gallery-item--tall { grid-row: span 30; }
  .gallery-grid .gallery-item--short { grid-row: span 20; }
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 699px) {
  .gallery-item { aspect-ratio: 3 / 4; }
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 380ms ease;
}

.gallery-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.75rem 0.9rem;
  background: linear-gradient(0deg, rgba(43, 43, 40, 0.82), transparent);
  color: var(--plaster);
  font-size: 0.78rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 220ms ease, transform 220ms ease;
}

@media (hover: hover) {
  .gallery-item:hover img { transform: scale(1.03); }
  .gallery-item:hover figcaption { opacity: 1; transform: translateY(0); }
}

.gallery-cta {
  margin-top: 2.5rem;
  text-align: center;
}

/* ---------------------------------------------------------------------- */
/* Reviews                                                                  */
/* ---------------------------------------------------------------------- */

.reviews {
  padding-block: var(--space-xl);
  background: var(--plaster-dim);
}

.ratings-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.75rem;
  margin-bottom: 3rem;
  padding: 1.5rem 2rem;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  max-width: 720px;
  margin-inline: auto;
}

.ratings-bar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  text-align: center;
}

.ratings-bar__stars {
  color: var(--brass);
  letter-spacing: 0.1em;
  font-size: 1.1rem;
}

.ratings-bar__big {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--charcoal);
}

.ratings-bar__label {
  font-size: 0.82rem;
  color: var(--charcoal-soft);
}

.ratings-bar__divider {
  width: 1px;
  align-self: stretch;
  background: rgba(43, 43, 40, 0.12);
}

.reviews-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.review-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2rem 1.9rem;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--brass);
}

.review-card__stars {
  color: var(--brass);
  font-size: 0.95rem;
  margin-bottom: 0.9rem;
  letter-spacing: 0.08em;
}

.review-card blockquote {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--charcoal);
  line-height: 1.45;
}

.review-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--charcoal-soft);
}

.review-card__meta strong {
  color: var(--charcoal);
  font-weight: 600;
}

.reviews-cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* ---------------------------------------------------------------------- */
/* About page                                                               */
/* ---------------------------------------------------------------------- */

.about-split {
  padding-block: var(--space-xl);
}

.about-split__grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .about-split__grid {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 3.5rem;
  }
  .about-split__grid--reverse {
    grid-template-columns: 1.05fr 0.95fr;
  }
  .about-split__grid--reverse .about-split__media { order: 2; }
}

.about-split__media {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 5;
}

.about-split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-split__body h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
}

.about-split__body p {
  color: var(--charcoal-soft);
  font-size: 1.05rem;
}

.values-list {
  display: grid;
  gap: 1.1rem;
  margin-top: 1.5rem;
}

.values-list li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.values-list svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  stroke: var(--sage-deep);
  fill: none;
  stroke-width: 2;
  margin-top: 3px;
}

.values-list strong {
  display: block;
  color: var(--charcoal);
  font-weight: 600;
}

.values-list span {
  color: var(--charcoal-soft);
  font-size: 0.95rem;
}

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

.contact-cta {
  padding-block: var(--space-xl);
}

.contact-panel {
  background: var(--charcoal);
  color: var(--plaster);
  border-radius: var(--radius-md);
  padding: 3rem 2.25rem;
  display: grid;
  gap: 2.5rem;
  position: relative;
  overflow: hidden;
}

.contact-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 0%, rgba(169, 140, 75, 0.18), transparent 55%);
  pointer-events: none;
}

@media (min-width: 860px) {
  .contact-panel {
    grid-template-columns: 1.1fr 0.9fr;
    padding: 3.5rem 3.5rem;
  }
}

.contact-panel h2 {
  color: var(--plaster);
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  margin-bottom: 0.5em;
}

.contact-panel p {
  color: rgba(244, 240, 232, 0.82);
  max-width: 48ch;
}

.contact-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.contact-details {
  position: relative;
  background: rgba(244, 240, 232, 0.06);
  border: 1px solid rgba(244, 240, 232, 0.14);
  border-radius: var(--radius-md);
  padding: 1.75rem;
}

.contact-details dt {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass-light);
  margin-bottom: 0.3em;
}

.contact-details dd {
  margin: 0 0 1.35rem;
  font-size: 1.02rem;
}

.contact-details dd:last-child {
  margin-bottom: 0;
}

.placeholder-text {
  color: rgba(244, 240, 232, 0.55);
  font-style: italic;
}

.notice-box {
  background: var(--plaster-dim);
  border-left: 3px solid var(--brass);
  border-radius: var(--radius-sm);
  padding: 1.5rem 1.75rem;
  margin-bottom: 2rem;
}

.notice-box p {
  margin-bottom: 0;
  color: var(--charcoal-soft);
}

.notice-box strong {
  color: var(--charcoal);
}

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

.site-footer {
  background: var(--charcoal);
  color: rgba(244, 240, 232, 0.75);
  padding-block: 2.75rem;
  border-top: 1px solid rgba(244, 240, 232, 0.1);
}

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

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--plaster);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.88rem;
}

.footer-links a:hover {
  color: var(--brass-light);
}

.footer-fine {
  font-size: 0.8rem;
  margin-top: 1.5rem;
  color: rgba(244, 240, 232, 0.45);
}

/* ---------------------------------------------------------------------- */
/* Reveal animation system (JS-gated + reduced-motion-gated)              */
/* ---------------------------------------------------------------------- */

.reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  html.js .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity var(--reveal-duration) var(--reveal-ease),
                transform var(--reveal-duration) var(--reveal-ease);
    transition-delay: var(--reveal-delay, 0ms);
  }

  html.js .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------------------------------------------------------------------- */
/* Utilities                                                                */
/* ---------------------------------------------------------------------- */

.thin-rule {
  width: 60px;
  height: 2px;
  background: var(--brass);
  margin: 0 auto 1.25rem;
}

.thin-rule--left {
  margin-inline: 0;
}
