/* ==========================================================================
   Lodge Metalwork — design system
   Palette derived from the brand mark: dark forge ink + warm ember accent
   ========================================================================== */

:root {
  --ink: #171f26;
  --ink-soft: #3a4750;
  --ink-mute: #6b7680;
  --cream: #f8f4ec;
  --cream-dim: #efe8d8;
  --white: #ffffff;
  --ember: #b2612e;
  --ember-dark: #8f4c22;
  --line: #e1d8c3;
  --shadow-sm: 0 2px 10px rgba(23, 31, 38, 0.08);
  --shadow-md: 0 12px 32px rgba(23, 31, 38, 0.16);
  --shadow-lg: 0 24px 60px rgba(23, 31, 38, 0.28);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --container: 1180px;
  --header-h: 84px;
  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

ul {
  margin: 0;
  padding: 0;
}

button {
  font: inherit;
}

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

.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;
  left: 1rem;
  top: -100px;
  background: var(--ink);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  z-index: 200;
  transition: top 0.2s ease;
}

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

/* ---------- layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

main {
  display: block;
}

.section {
  padding-block: clamp(48px, 8vw, 96px);
}

.section--tight {
  padding-block: clamp(32px, 5vw, 56px);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: clamp(28px, 5vw, 48px);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 0.75em;
}

.section-title {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
}

.section-lede {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.95em 1.9em;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--ember);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

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

.btn-outline {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(4px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--white);
}

.btn-ink {
  background: var(--ink);
  color: var(--cream);
}

.btn-ink:hover {
  background: var(--ink-soft);
}

/* ==========================================================================
   Header / navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 244, 236, 0.9);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  z-index: 2;
}

.brand-mark {
  height: 42px;
  width: auto;
}

.brand-word {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.brand-word span {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ember);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-link {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-link:hover {
  background: var(--cream-dim);
  color: var(--ink);
}

.nav-link.is-active {
  background: var(--ink);
  color: var(--cream);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}

.nav-toggle:hover {
  background: var(--cream-dim);
}

.nav-toggle-bars {
  position: relative;
  width: 22px;
  height: 16px;
}

.nav-toggle-bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease, top 0.25s ease;
}

.nav-toggle-bars span:nth-child(1) {
  top: 0;
}

.nav-toggle-bars span:nth-child(2) {
  top: 7px;
}

.nav-toggle-bars span:nth-child(3) {
  top: 14px;
}

.nav-open .nav-toggle-bars span:nth-child(1) {
  top: 7px;
  transform: rotate(45deg);
}

.nav-open .nav-toggle-bars span:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle-bars span:nth-child(3) {
  top: 7px;
  transform: rotate(-45deg);
}

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

  .nav-links {
    position: fixed;
    inset: 0;
    top: var(--header-h);
    height: calc(100dvh - var(--header-h));
    background: var(--cream);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 40px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  }

  .nav-open .nav-links {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
  }

  .nav-link {
    text-align: center;
    padding: 18px;
    font-size: 1.15rem;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }
}

/* ==========================================================================
   Hero (homepage)
   ========================================================================== */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--white);
  text-align: center;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 65%;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(23, 31, 38, 0.55) 0%,
    rgba(23, 31, 38, 0.35) 45%,
    rgba(23, 31, 38, 0.75) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-mark {
  width: 76px;
  height: auto;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.85;
  margin-bottom: 1em;
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  margin-bottom: 0.3em;
  text-wrap: balance;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 46ch;
  color: var(--cream);
  opacity: 0.92;
  margin-bottom: 2em;
}

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

.scroll-cue {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: var(--white);
  opacity: 0.75;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: bob 2.4s ease-in-out infinite;
}

.scroll-cue svg {
  width: 18px;
  height: 18px;
}

@keyframes bob {
  0%,
  100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 8px);
  }
}

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

/* ---------- homepage feature strip ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 16px;
  color: var(--ember);
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4em;
}

.feature-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 0;
}

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

/* ---------- homepage CTA band ---------- */
.cta-band {
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 6vw, 64px);
  text-align: center;
  margin-inline: 24px;
}

.cta-band h2 {
  color: var(--white);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
}

.cta-band p {
  color: var(--cream-dim);
  max-width: 52ch;
  margin-inline: auto;
  margin-bottom: 1.75em;
}

/* ==========================================================================
   About page
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.about-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.about-photos img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.about-photos img:nth-child(2) {
  margin-top: 32px;
}

.about-copy h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.about-copy .eyebrow {
  display: block;
}

.about-copy p {
  color: var(--ink-soft);
}

.about-block + .about-block {
  margin-top: 2em;
}

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

  .about-photos {
    max-width: 420px;
    margin-inline: auto;
  }
}

/* ==========================================================================
   Products page
   ========================================================================== */
.page-intro {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(40px, 6vw, 64px);
  text-align: center;
}

.page-intro h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.page-intro p {
  color: var(--ink-soft);
  max-width: 60ch;
  margin-inline: auto;
}

.order-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--cream-dim);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  margin-top: 1.4em;
}

.order-note a {
  color: var(--ember);
  text-decoration: underline;
}

.product {
  padding-block: clamp(48px, 7vw, 88px);
  border-bottom: 1px solid var(--line);
}

.product:last-of-type {
  border-bottom: none;
}

.product-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}

.product-name {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0;
}

.product-desc {
  color: var(--ink-soft);
  max-width: 60ch;
  margin-top: 0.5em;
  margin-bottom: 0;
}

.price-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.price-chip {
  background: var(--ink);
  color: var(--cream);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.price-chip strong {
  color: var(--ember);
  font-weight: 700;
  margin-left: 4px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.gallery figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  background: var(--white);
}

.gallery img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery figure:hover img {
  transform: scale(1.05);
}

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact-wrap {
  display: flex;
  justify-content: center;
  padding-block: clamp(56px, 9vw, 110px);
}

.contact-card {
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(32px, 6vw, 52px);
  text-align: center;
}

.contact-card .brand-mark {
  height: 56px;
  width: auto;
  margin-inline: auto;
  margin-bottom: 18px;
}

.contact-card h1 {
  font-size: clamp(1.7rem, 3.5vw, 2.1rem);
}

.contact-card > p {
  color: var(--ink-soft);
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-weight: 600;
  transition: border-color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
  text-align: left;
}

.contact-link:hover {
  border-color: var(--ember);
  background: var(--white);
  transform: translateY(-2px);
}

.contact-link svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--ember);
}

.contact-link span {
  display: block;
}

.contact-link small {
  display: block;
  font-weight: 400;
  color: var(--ink-mute);
  font-size: 0.85rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--ink);
  color: var(--cream-dim);
  padding-block: 56px 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(248, 244, 236, 0.14);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  text-decoration: none;
  margin-bottom: 12px;
}

.footer-brand .brand-mark {
  height: 36px;
  filter: brightness(0) invert(1);
}

.footer-brand .brand-word {
  color: var(--white);
}

.footer-col p {
  color: var(--cream-dim);
  font-size: 0.92rem;
  max-width: 32ch;
}

.footer-heading {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 14px;
}

.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-list a {
  text-decoration: none;
  color: var(--cream-dim);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

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

.social-row {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(248, 244, 236, 0.08);
  color: var(--cream);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.social-btn:hover {
  background: var(--ember);
  color: var(--white);
  transform: translateY(-2px);
}

.social-btn svg {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--ink-mute);
}

@media (max-width: 760px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}
