/* ── Footer — bottom half of the shared photo card (or its own card on other pages) ── */
#footer {
  background: var(--bg);
  position: relative;
}

.footer-photo-frame {
  position: relative;
  margin: 3rem;
  border-radius: 22px;
  overflow: hidden;
  background-color: var(--charcoal);
  background-image:
    linear-gradient(to bottom, rgba(44, 40, 36, 0.45) 0%, rgba(44, 40, 36, 0.62) 45%, rgba(44, 40, 36, 0.8) 100%),
    url("/images/uploads/contact-footer-bg.webp");
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  box-shadow: 0 26px 50px -22px rgba(44, 40, 36, 0.4);
}

/* ── Decorative background SVGs ── */
.footer-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}


.fd-arc {
  position: absolute;
  right: -4%;
  top: 50%;
  transform: translateY(-50%);
  width: 320px;
  height: 320px;
  opacity: 0.18;
}

.fd-diamond {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  opacity: 0.2;
}

.footer-inner,
.footer-bottom {
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* Brand column */
.footer-brand { display: flex; flex-direction: column; }
.footer-brand .nav-logo {
  color: var(--cream);
  margin-bottom: 0.6rem;
  display: block;
}
.footer-brand p {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  line-height: 1.9;
  color: var(--stone);
}
.footer-cert {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--warm);
  border: 1px solid rgba(139, 111, 94, 0.4);
  padding: 0.35rem 0.85rem;
  border-radius: 2px;
  align-self: flex-start;
}

/* Nav column */
.footer-col-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 1rem;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-nav a {
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--cream);
  transition: color 0.2s ease, padding-left 0.2s ease;
  display: block;
}
.footer-nav a:hover { color: var(--warm); padding-left: 0.4rem; }

/* Contact column */
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.footer-contact a {
  font-size: 0.8rem;
  color: var(--cream);
  transition: color 0.25s ease;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.footer-contact a:hover { color: var(--warm); }
.footer-contact svg {
  width: 14px;
  height: 14px;
  stroke: var(--warm);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* Bottom bar */
.footer-bottom {
  border-top: 1px solid rgba(253, 250, 247, 0.15);
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  color: var(--stone);
  max-width: 100%;
}

/* ── Compact variant — standalone footer card (non-home pages) ──
   Scoped under .footer-photo-frame so the home page's merged
   contact+footer card (contact.css / .footer-merged-half) is untouched:
   its .footer-inner never carries this ancestor class. Two columns:
   left = brand + nav (merged, inline row), right = contact. ── */
.footer-photo-frame .footer-inner {
  padding: 2.25rem 2rem 1.75rem;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: auto auto;
  column-gap: 3rem;
  row-gap: 1.1rem;
}
.footer-photo-frame .footer-brand { grid-column: 1; grid-row: 1; }
.footer-photo-frame .footer-brand .nav-logo { margin-bottom: 0.4rem; }
.footer-photo-frame .footer-brand p { line-height: 1.55; }

.footer-photo-frame .footer-nav {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.45rem 1.25rem;
}
.footer-photo-frame .footer-nav .footer-col-label { display: none; }

.footer-photo-frame .footer-contact {
  grid-column: 2;
  grid-row: 1 / span 2;
  gap: 0.6rem;
}

.footer-photo-frame .footer-bottom { padding: 0.9rem 2rem; }

/* Copyright bar: divider stays full-width, text lines up with the content column above */
#footer .footer-bottom { padding-inline: max(2rem, calc((100% - var(--max-w)) / 2 + 2rem)); }

/* ── Responsive ── */
.footer-bottom a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.footer-bottom a:hover { color: var(--cream); }

@media (max-width: 768px) {
  .footer-photo-frame { margin: 1.5rem 1.25rem; border-radius: 16px; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-cert { align-self: flex-start; }
  .footer-bottom { flex-direction: column; gap: 0.4rem; text-align: center; }

  /* Compact variant stays two columns on mobile: brand+nav | contact. */
  .footer-photo-frame .footer-inner {
    grid-template-columns: 1fr 1fr;
    column-gap: 1rem;
    row-gap: 1rem;
    padding: 1.75rem 1.5rem 1.5rem;
  }
  .footer-photo-frame .footer-nav { gap: 0.4rem 0.85rem; }
  .footer-photo-frame .footer-contact { gap: 0.55rem; }
  .footer-photo-frame .footer-bottom {
    padding: 0.85rem 1.5rem;
    gap: 0.3rem;
    font-size: 0.66rem;
  }

  /* Home page's merged contact+footer card: same compact layout as the footer on other pages */
  .footer-merged-half .footer-inner {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    column-gap: 1rem;
    row-gap: 1rem;
    padding: 1.75rem 1.5rem 1.5rem;
  }
  .footer-merged-half .footer-brand { grid-column: 1; grid-row: 1; }
  .footer-merged-half .footer-brand .nav-logo { margin-bottom: 0.4rem; }
  .footer-merged-half .footer-brand p { line-height: 1.55; }
  .footer-merged-half .footer-nav {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.4rem 0.85rem;
  }
  .footer-merged-half .footer-nav .footer-col-label { display: none; }
  .footer-merged-half .footer-contact { grid-column: 2; grid-row: 1 / span 2; gap: 0.55rem; }
  .footer-merged-half .footer-bottom { padding-block: 0.85rem; gap: 0.3rem; font-size: 0.66rem; }
}
