/* V4-07 · The Western
 * Burnt sienna + dark brown + aged parchment + forest green.
 * DM Serif Display italic for all headlines. */

:root {
  --sienna: #8b3a2a;
  --brown: #2c1a0e;
  --parchment: #f0e4cc;
  --forest: #2d4a30;
  --ink: #2c1a0e;
  --font-display: "DM Serif Display", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
  --radius: 0px;
  --max: 1240px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section: clamp(4rem, 8vw, 7rem);
}

/* ---------- Reset & base ---------- */

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--parchment);
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  margin: 0;
  line-height: 1.1;
}

p {
  margin: 0;
}

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

.container {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brown);
  color: var(--parchment);
  padding: 0.75rem 1rem;
  z-index: 100;
}

.skip-link:focus-visible {
  left: 0;
}

:focus-visible {
  outline: 2px solid var(--sienna);
  outline-offset: 3px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.btn--primary {
  background: var(--sienna);
  color: var(--parchment);
}

.btn--primary:hover {
  background: var(--brown);
}

.btn--ghost-light {
  background: transparent;
  color: var(--parchment);
  border-color: var(--parchment);
}

.btn--ghost-light:hover {
  background: rgba(240, 228, 204, 0.12);
}

.btn--phone {
  background: var(--sienna);
  color: var(--parchment);
  padding: 0.65rem 1.15rem;
  font-size: 0.9rem;
}

.btn--phone:hover {
  background: var(--brown);
}

/* ---------- Nav ---------- */

.nav {
  background: var(--parchment);
  border-bottom: 1px solid rgba(44, 26, 14, 0.1);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
  padding-block: 0.75rem;
  flex-wrap: wrap;
}

.nav__wordmark {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--brown);
  text-decoration: none;
  line-height: 1;
}

.nav__links {
  display: flex;
  gap: clamp(0.75rem, 2.5vw, 1.75rem);
  flex-wrap: wrap;
}

.nav__links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: rgba(44, 26, 14, 0.7);
  text-decoration: none;
  padding: 0.5rem 0.25rem;
}

.nav__links a:hover {
  color: var(--brown);
}

@media (max-width: 720px) {
  .nav__links {
    order: 3;
    width: 100%;
    justify-content: flex-start;
  }
}

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

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background-color: var(--brown);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(44, 26, 14, 0.35) 0%, rgba(44, 26, 14, 0.72) 100%),
    url("https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?w=1800&auto=format&fit=crop&q=85");
  background-size: cover;
  background-position: center;
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-block: clamp(4rem, 12vw, 8rem);
  max-width: 820px;
  color: var(--parchment);
  opacity: 0;
  transform: translateY(14px);
  animation: hero-in 500ms ease-out 120ms forwards;
}

@keyframes hero-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--parchment);
  opacity: 0.85;
  margin-bottom: 1rem;
}

.hero__title {
  font-size: clamp(2.75rem, 6.5vw, 5.5rem);
  color: #ffffff;
  margin-bottom: 1.25rem;
  max-width: 14ch;
}

.hero__sub {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.6;
  max-width: 52ch;
  color: var(--parchment);
  margin-bottom: 2rem;
}

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

/* ---------- Credentials / stamps ---------- */

.credentials {
  background: var(--parchment);
  color: var(--brown);
  padding-block: clamp(1.5rem, 3vw, 2.25rem);
  border-bottom: 1px solid rgba(44, 26, 14, 0.1);
}

.credentials__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(0.75rem, 3vw, 2rem);
}

.stamp {
  display: inline-block;
  border: 1px solid var(--brown);
  padding: 0.5rem 1rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--brown);
}

/* ---------- Services ---------- */

.services {
  background: var(--parchment);
  padding-block: var(--section);
}

.services__heading {
  font-size: clamp(1.75rem, 4vw, 3rem);
  color: var(--brown);
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.svc-card {
  background: var(--parchment);
  padding: 1.5rem;
  border-top: 6px solid var(--sienna);
  box-shadow: 0 2px 8px rgba(44, 26, 14, 0.1);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  opacity: 1;
  transform: translateY(0);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.svc-card:nth-child(even) {
  border-top-color: var(--forest);
}

.svc-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(44, 26, 14, 0.16);
}

.svc-card__media {
  margin: 0;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: rgba(44, 26, 14, 0.08);
}

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

.svc-card__title {
  font-size: 1.25rem;
  color: var(--brown);
}

.svc-card__body {
  font-size: 0.975rem;
  line-height: 1.65;
  color: rgba(44, 26, 14, 0.82);
}

/* Scroll reveal for service cards */
.svc-card[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 450ms ease-out, transform 450ms ease-out, box-shadow 220ms ease;
}

.svc-card[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .svc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ---------- Welcoming split ---------- */

.welcoming {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
  background: var(--forest);
}

.welcoming__photo {
  position: relative;
  overflow: hidden;
  border-left: 6px solid var(--sienna);
  order: 2;
  min-height: 100%;
}

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

.welcoming__text {
  order: 1;
  background: var(--parchment);
  color: var(--brown);
  padding: clamp(2rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
}

.welcoming__heading {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  color: var(--brown);
  max-width: 16ch;
}

.welcoming__body {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: rgba(44, 26, 14, 0.82);
  max-width: 52ch;
}

.welcoming__text .btn {
  align-self: flex-start;
  margin-top: 0.5rem;
}

@media (max-width: 900px) {
  .welcoming {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .welcoming__photo {
    order: 1;
    height: 340px;
    min-height: 340px;
    border-left: none;
    border-top: 6px solid var(--sienna);
  }

  .welcoming__text {
    order: 2;
  }
}

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

.reviews {
  background: var(--brown);
  color: var(--parchment);
  padding-block: var(--section);
}

.reviews__heading {
  font-size: clamp(1.75rem, 4vw, 3rem);
  color: var(--parchment);
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 2.5rem);
}

.review {
  margin: 0;
  position: relative;
  padding-top: 2.5rem;
  opacity: 1;
}

.review::before {
  content: "\201C";
  position: absolute;
  top: -1rem;
  left: -0.25rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(4rem, 6vw, 5rem);
  line-height: 1;
  color: var(--sienna);
  opacity: 0.9;
}

.review__quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  line-height: 1.45;
  color: var(--parchment);
  margin: 0 0 1rem;
}

.review__name {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sienna);
}

.review[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 500ms ease-out, transform 500ms ease-out;
}

.review[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .reviews__grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin-inline: auto;
  }
}

/* ---------- Location ---------- */

.location {
  background: var(--parchment);
  padding-block: var(--section);
}

.location__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.location__heading {
  font-size: clamp(1.75rem, 4vw, 3rem);
  color: var(--brown);
  margin-bottom: 1.25rem;
}

.location__address {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.3;
  color: var(--brown);
  margin-bottom: 1.5rem;
}

.location__hours {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1.5rem;
  margin: 0 0 1.75rem;
  font-size: 1rem;
  color: rgba(44, 26, 14, 0.85);
}

.location__hours dt {
  font-weight: 600;
}

.location__hours dd {
  margin: 0;
}

.location__map {
  border: 1px solid rgba(44, 26, 14, 0.2);
}

.map {
  display: block;
  width: 100%;
  height: auto;
}

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

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

.contact {
  background: var(--forest);
  color: var(--parchment);
  padding-block: var(--section);
  text-align: center;
}

.contact__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  max-width: 640px;
}

.contact__heading {
  font-size: clamp(1.75rem, 4vw, 3rem);
  color: var(--parchment);
}

.contact__body {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: rgba(240, 228, 204, 0.75);
}

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

.footer {
  background: var(--brown);
  color: var(--parchment);
  padding-top: clamp(3rem, 6vw, 4.5rem);
}

.footer__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 4vw, 2.5rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

.footer__title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--parchment);
  margin: 0 0 0.75rem;
}

.footer__text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(240, 228, 204, 0.8);
  margin: 0 0 0.5rem;
}

.footer__text a {
  color: var(--parchment);
  text-decoration: none;
}

.footer__text a:hover {
  color: var(--sienna);
}

.footer__list,
.footer__social {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer__social {
  margin-top: 0.75rem;
}

.footer__list a,
.footer__social a {
  font-size: 0.95rem;
  color: rgba(240, 228, 204, 0.8);
  text-decoration: none;
}

.footer__list a:hover,
.footer__social a:hover {
  color: var(--sienna);
}

.footer__bottom {
  background: rgba(0, 0, 0, 0.25);
  padding-block: 1.5rem;
  border-top: 1px solid rgba(240, 228, 204, 0.12);
}

.footer__bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(240, 228, 204, 0.7);
}

.footer__ffl-num {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.04em;
  color: var(--parchment);
}

.footer__disclaimer {
  font-size: 0.82rem;
  line-height: 1.55;
  color: rgba(240, 228, 204, 0.65);
  max-width: 72ch;
}

.footer__copy {
  font-size: 0.82rem;
  color: rgba(240, 228, 204, 0.55);
}

@media (max-width: 900px) {
  .footer__inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
  }

  .hero__content {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .svc-card[data-reveal],
  .review[data-reveal] {
    opacity: 1;
    transform: none;
  }

  .svc-card:hover {
    transform: none;
  }
}
