/* preservation.css */

:root {
  --bg: #f5f0e8;
  --bg-alt: #eee5d9;
  --cream: #f3e8d8;
  --text: #4f3928;
  --text-dark: #3d3a36;
  --text-soft: #6a5140;
  --accent: #c6a383;
  --accent-dark: #ab8463;
  --accent-deep: #8f6a4e;
  --line: rgba(79, 57, 40, 0.14);
  --white: #ffffff;
  --soft-white: #fffaf4;
  --max-width: 1180px;
  --radius: 18px;
  --shadow: 0 16px 38px rgba(0, 0, 0, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "EB Garamond", Georgia, serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
ul {
  margin: 0 0 1.2rem;
}

h1,
h2,
h3 {
  margin: 0 0 1rem;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

body,
p,
li,
a {
  font-size: 1.28rem;
}

h1 {
  font-size: clamp(3rem, 6vw, 5.3rem);
}

h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
}

h3 {
  font-size: clamp(1.45rem, 2.5vw, 2rem);
}

.container {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.narrow {
  max-width: 860px;
}

.kicker {
  margin-bottom: 0.75rem;
  color: var(--accent-deep);
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Header */

.site-header {
  background: rgba(243, 238, 229, 0.96);
  border-bottom: 1px solid rgba(75, 60, 50, 0.1);
}

.branding {
  display: flex;
  justify-content: center;
  padding: 2rem 0 1.35rem;
}

.brand img {
  width: clamp(220px, 22vw, 340px);
}

.main-nav {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.main-nav .container {
  width: min(calc(100% - 1rem), 1320px);
}

.nav-wrap {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.75rem 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.nav-pill {
  flex: 0 0 auto;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 1rem;
  line-height: 1.2;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-pill:hover,
.nav-pill:focus-visible {
  background: rgba(198, 163, 131, 0.14);
  transform: translateY(-1px);
  outline: none;
}

.nav-pill.active,
.nav-pill[aria-current="page"] {
  background: var(--accent);
}

/* Hero */

.preservation-hero {
  padding: 7rem 0;
  background:
    linear-gradient(90deg, rgba(36, 25, 18, 0.74), rgba(36, 25, 18, 0.42)),
    url("assets/hero-collage.jpg") center/cover no-repeat;
  color: #f5efe3;
}

.preservation-hero-inner {
  max-width: 840px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.preservation-hero h1,
.preservation-hero p,
.preservation-hero a {
  color: #f5efe3;
}

.preservation-hero h1 {
  margin-bottom: 2rem;
}

.preservation-hero p {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
}

.hero-lead {
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  line-height: 1.45;
}

.hero-tagline {
  margin-top: 1.8rem;
  font-weight: 600;
}

/* Buttons */

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.9rem 1.45rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 1.1rem;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.btn-primary {
  background: var(--accent);
  color: #2f241c;
  border-color: var(--accent-dark);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--accent-dark);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.72);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.18);
}

/* Sections */

.section {
  padding: 5.5rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-heading {
  max-width: 860px;
  margin: 0 auto 2.4rem;
  text-align: center;
}

.section-heading p {
  color: var(--text-soft);
}

.intro-card {
  background: var(--soft-white);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 3rem;
  box-shadow: var(--shadow);
}

.intro-card p,
.section p,
.risk-list li {
  color: var(--text-soft);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.info-card {
  background: var(--soft-white);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.info-card h3 {
  color: var(--text-dark);
}

.info-card p {
  margin-bottom: 0;
  font-size: 1.08rem;
  line-height: 1.6;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.image-panel {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.image-panel img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.risk-list {
  padding-left: 1.3rem;
}

.risk-list li {
  margin-bottom: 0.9rem;
}

/* CTA */

.cta-section {
  padding: 5.5rem 0;
  background: var(--text-dark);
  color: var(--cream);
  text-align: center;
}

.cta-section h2,
.cta-section p {
  color: var(--cream);
}

.cta-section p {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */

.site-footer {
  background: var(--accent);
  padding: 90px 20px 70px;
  text-align: center;
}

.footer-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0 0 38px;
}

.footer-logo img {
  width: 220px;
  max-width: 70vw;
  height: auto;
}

.footer-phone,
.footer-email {
  margin: 0 0 18px;
  line-height: 1.2;
  text-align: center;
}

.footer-email {
  margin-bottom: 24px;
}

.footer-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 0;
}

.footer-social a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  line-height: 0;
  overflow: hidden;
}

.footer-social img {
  display: block;
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  max-width: 24px;
  max-height: 24px;
  object-fit: contain;
}

.subfooter {
  width: 100%;
  background: var(--bg);
  padding: 18px 20px 22px;
  display: grid;
  place-items: center;
  text-align: center;
}

.subfooter p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
}

.subfooter a {
  text-decoration: none;
}

/* Responsive */

@media (max-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .nav-wrap {
    justify-content: flex-start;
    padding-inline: 0.25rem;
  }

  .nav-pill {
    font-size: 0.96rem;
  }
}

@media (max-width: 640px) {
  body,
  p,
  li,
  a {
    font-size: 1.16rem;
  }

  .branding {
    padding: 1.6rem 0 1rem;
  }

  .brand img {
    width: clamp(200px, 58vw, 280px);
  }

  .preservation-hero {
    padding: 5rem 0;
  }

  .section,
  .cta-section {
    padding: 4rem 0;
  }

  .intro-card {
    padding: 2rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .site-footer {
    padding: 70px 20px 55px;
  }

  .footer-logo img {
    width: 180px;
  }

  .footer-social a {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }

  .footer-social img {
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
    max-width: 22px;
    max-height: 22px;
  }
}

.etsy-button {
    display: inline-block;
    margin-top: 20px;
    padding: 14px 28px;
    background: #7A746C;
    color: #F3E8D8;
    text-decoration: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.etsy-button:hover {
    background: #3D3A36;
    transform: translateY(-2px);
}

.resource-cta {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 0;
}

.etsy-button {
    display: inline-block;
    padding: 14px 28px;
    background: #7A746C;
    color: #F3E8D8;
    text-decoration: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.etsy-button:hover {
    background: #3D3A36;
    transform: translateY(-2px);
}