/* ==========================================================================
   footer.css — pre-footer CTA, Instagram strip, main footer, legal bar
   ========================================================================== */

/* ---------- Instagram strip ---------- */
.ig-strip { padding-block: clamp(3rem, 6vw, 5.5rem); background: var(--bg-alt); overflow: hidden; }

.ig-strip-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1.25rem;
  max-width: var(--maxw);
  margin: 0 auto 2.5rem;
  padding-inline: var(--gutter);
}
.ig-handle {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 300;
  transition: color .35s var(--ease);
}
.ig-handle:hover { color: var(--champagne-deep); }

.ig-track {
  display: flex;
  gap: 10px;
  width: max-content;
  animation: ig-scroll 56s linear infinite;
}
.ig-strip:hover .ig-track { animation-play-state: paused; }
@keyframes ig-scroll { to { transform: translateX(-50%); } }

.ig-tile {
  position: relative;
  flex: none;
  width: clamp(150px, 17vw, 245px);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius);
}
.ig-tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease), filter .6s var(--ease);
}
.ig-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--overlay);
  opacity: 0;
  transition: opacity .45s var(--ease);
}
.ig-tile .ig-icon {
  position: absolute;
  top: 50%; left: 50%;
  translate: -50% -50%;
  z-index: 2;
  width: 26px; height: 26px;
  color: #fff;
  opacity: 0;
  scale: .7;
  transition: opacity .45s var(--ease), scale .45s var(--ease);
}
.ig-tile:hover img { transform: scale(1.09); }
.ig-tile:hover::after { opacity: 1; }
.ig-tile:hover .ig-icon { opacity: 1; scale: 1; }

/* ---------- Pre-footer CTA ---------- */
.cta-band {
  position: relative;
  isolation: isolate;
  padding-block: clamp(5.5rem, 12vw, 11rem);
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.cta-band .cta-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.cta-band .cta-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 32%;
}
/* Two layers: a directional gradient for depth, plus a flat scrim so the
   headline stays legible over a bright or busy frame. */
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(18,15,12,.55) 0%, rgba(18,15,12,.35) 50%, rgba(18,15,12,.65) 100%),
    rgba(18,15,12,.38);
}
.cta-band h2 { color: #fff; text-shadow: 0 2px 30px rgba(0,0,0,.4); }
/* the champagne accent is too dark against a photo — lift it */
.cta-band .script-accent { color: #E4D8C2; }
.cta-band .eyebrow { color: rgba(255,255,255,.72); }
.cta-band .eyebrow::before, .cta-band .eyebrow::after { background: rgba(255,255,255,.6); }
.cta-band p { color: rgba(255,255,255,.84); }
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2.75rem;
}

/* ---------- Main footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--ivory);
  padding-block: clamp(3.5rem, 7vw, 6rem) 0;
}
:root[data-theme="dark"] .site-footer { background: #0D0B0A; }

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.footer-brand img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: .92;
}
.footer-tag {
  margin-top: 1.5rem;
  max-width: 34ch;
  font-size: .9375rem;
  line-height: 1.8;
  color: rgba(245,242,236,.62);
}

.footer-col h3 {
  font-family: var(--sans);
  font-size: .625rem;
  font-weight: 400;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--champagne);
  margin-bottom: 1.5rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: .8rem; }
.footer-col a, .footer-col li {
  font-size: .875rem;
  color: rgba(245,242,236,.62);
  transition: color .3s var(--ease), transform .35s var(--ease);
}
.footer-col a { display: inline-block; }
.footer-col a:hover { color: var(--ivory); transform: translateX(4px); }

.footer-socials { display: flex; gap: 1.1rem; margin-top: 1.75rem; }
.footer-socials a {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 1px solid rgba(245,242,236,.2);
  border-radius: 50%;
  color: rgba(245,242,236,.72);
  transition: background-color .4s var(--ease), color .4s var(--ease),
              border-color .4s var(--ease), transform .4s var(--ease);
}
.footer-socials a:hover {
  background: var(--champagne);
  border-color: var(--champagne);
  color: #17140F;
  transform: translateY(-3px);
}
.footer-socials svg { width: 16px; height: 16px; }

/* newsletter */
.footer-form { margin-top: 1.5rem; }
.footer-form .field {
  display: flex;
  align-items: center;
  gap: .5rem;
  border-bottom: 1px solid rgba(245,242,236,.28);
  transition: border-color .35s var(--ease);
}
.footer-form .field:focus-within { border-color: var(--champagne); }
.footer-form input {
  flex: 1;
  padding: .7rem 0;
  font-size: .875rem;
  color: var(--ivory);
}
.footer-form input::placeholder { color: rgba(245,242,236,.4); }
.footer-form button {
  padding: .5rem;
  color: var(--champagne);
  transition: transform .35s var(--ease);
}
.footer-form button:hover { transform: translateX(4px); }
.footer-form svg { width: 18px; height: 18px; }
.footer-note { margin-top: .8rem; font-size: .75rem; color: rgba(245,242,236,.42); }

/* awards row */
.footer-awards {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1.75rem, 5vw, 4rem);
  padding-block: 2.25rem;
  border-top: 1px solid rgba(245,242,236,.11);
}
.footer-awards span {
  font-family: var(--serif);
  font-style: italic;
  font-size: .9375rem;
  color: rgba(245,242,236,.48);
  transition: color .35s var(--ease);
}
.footer-awards span:hover { color: var(--champagne); }

/* legal bar */
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.75rem;
  border-top: 1px solid rgba(245,242,236,.11);
  font-size: .75rem;
  color: rgba(245,242,236,.42);
}
.footer-legal a { transition: color .3s var(--ease); }
.footer-legal a:hover { color: var(--champagne); }
.footer-legal .legal-links { display: flex; flex-wrap: wrap; gap: 1.5rem; }

/* back to top */
.to-top {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .625rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(245,242,236,.62);
  transition: color .3s var(--ease);
}
.to-top:hover { color: var(--champagne); }
.to-top svg { width: 14px; height: 14px; transition: transform .4s var(--ease); }
.to-top:hover svg { transform: translateY(-4px); }

/* ---------- Footer responsive ---------- */
@media (max-width: 980px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .footer-brand { grid-column: 1 / -1; }
}

/* The footer stacked into one very long column on a phone. Keeping the three
   link groups two-up, tightening the rhythm and dropping the tagline cuts its
   height by roughly half without losing anything you would actually tap. */
@media (max-width: 560px) {
  .site-footer { padding-block: 2.5rem 0; }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem 1.25rem;
    padding-bottom: 1.75rem;
  }

  .footer-brand { grid-column: 1 / -1; }
  .footer-brand img { height: 30px; }
  .footer-tag { display: none; }
  .footer-socials { margin-top: 1.1rem; gap: .75rem; }
  .footer-socials a { width: 36px; height: 36px; }

  .footer-col h3 { margin-bottom: .7rem; font-size: .5625rem; }
  .footer-col ul { gap: .45rem; }
  .footer-col a, .footer-col li { font-size: .8125rem; line-height: 1.5; }

  /* Enquire spans the width, so its links read as a row rather than a third
     tall column — that alone removes a couple of hundred pixels. */
  .footer-col:last-child { grid-column: 1 / -1; }
  .footer-col:last-child ul {
    flex-direction: row;
    flex-wrap: wrap;
    gap: .55rem 1.35rem;
  }
  .footer-col a:hover { transform: none; }
  .footer-form { margin-top: .9rem; }
  .footer-note { margin-top: .55rem; font-size: .6875rem; }

  .footer-awards {
    gap: .5rem 1.25rem;
    padding-block: 1.25rem;
  }
  .footer-awards span { font-size: .8125rem; }

  .footer-legal {
    flex-direction: column;
    align-items: flex-start;
    gap: .75rem;
    padding-block: 1.25rem;
    /* clears the floating consultation button, which otherwise sits on this row */
    padding-bottom: 3.25rem;
    font-size: .6875rem;
  }
  /* a flex child defaults to min-width:auto, so the copyright line refused to
     wrap and ran off the edge behind the overflow clip */
  .footer-legal > * { min-width: 0; }
  .footer-legal p { max-width: 100%; }
  .footer-legal .legal-links { gap: 1.1rem; }

  .ig-strip { padding-block: 2.25rem; }
  .ig-strip-head { flex-direction: column; align-items: flex-start; gap: .75rem; margin-bottom: 1.5rem; }
  .cta-band { padding-block: clamp(3.5rem, 12vw, 5rem); }
}
