/* Homepage-specific rounded styling, hero refinements and trial footer treatment. */
.home-page {
  --home-radius: 22px;
  --home-radius-small: 16px;
}

/* Match Gallery-style pill actions. */
.home-page .btn {
  border-radius: 999px;
}

/* Rounded photographic frames. */
.home-page .home-hero-media,
.home-page .home-photo-panel {
  border-radius: var(--home-radius);
}

/* Rounded grouped content panels while preserving their existing internal layout. */
.home-page .home-pathways,
.home-page .home-wedding-moments {
  border-radius: var(--home-radius);
  overflow: hidden;
}

/* Smaller supporting cards use the Gallery's secondary radius. */
.home-page .home-mini-card {
  border-radius: var(--home-radius-small);
}

/* Home hero refinement: keep the opening content fully visible at desktop sizes. */
@media (min-width: 901px) {
  .home-page .home-hero-grid {
    min-height: 0;
    padding: 46px 0 50px;
    gap: 58px;
    align-items: start;
  }

  .home-page .home-hero-copy h1 {
    max-width: 620px;
    margin-bottom: 16px;
    font-size: clamp(2.5rem, 3.7vw, 3.75rem);
    line-height: 1.07;
  }

  .home-page .home-hero-lead {
    max-width: 640px;
    margin-bottom: 26px;
    font-size: 1.06rem;
    line-height: 1.62;
  }

  .home-page .home-hero-media,
  .home-page .home-hero-media img {
    min-height: 455px;
  }
}

/* Match the section-aware floating arrow used on Occasions. */
.home-page .section-scroll-next {
  position: fixed;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 9998;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(244,210,124,.72);
  border-radius: 50%;
  background: transparent;
  color: var(--gold-light);
  box-shadow: 0 2px 10px rgba(0,0,0,.18);
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity .2s ease, transform .2s ease, border-color .2s ease, background .2s ease;
}

.home-page .section-scroll-next.is-visible {
  opacity: .86;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.home-page .section-scroll-next svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.65));
  transition: transform .18s ease;
}

.home-page .section-scroll-next:hover,
.home-page .section-scroll-next:focus-visible {
  opacity: 1;
  border-color: var(--gold-light);
  background: rgba(5,5,5,.18);
  outline: none;
}

.home-page .section-scroll-next:hover svg,
.home-page .section-scroll-next:focus-visible svg {
  transform: translateY(2px);
}

@media (max-width: 640px) {
  .home-page .section-scroll-next {
    width: 42px;
    height: 42px;
    bottom: max(14px, env(safe-area-inset-bottom));
  }

  .home-page .section-scroll-next svg {
    width: 20px;
    height: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .section-scroll-next,
  .home-page .section-scroll-next svg {
    transition: none;
  }
}

/* Home section column alignment.
   Keep both sides of these desktop two-column sections on the same top line so
   section-aware scroll stops reveal the complete paired content without dead space. */
@media (min-width: 901px) {
  .home-page .home-feature-grid,
  .home-page .home-about-grid {
    align-items: start;
  }
}

/* Home-page trial of Footer Option B.
   Scoped to .home-page so the shared footer on every other page remains untouched. */
.home-page .footer-option-b {
  border-top: 1px solid rgba(210,162,58,.32);
  padding: 26px 0 18px;
  background: #000;
}

.home-page .footer-b-shell {
  overflow: hidden;
  border: 1px solid rgba(210,162,58,.46);
  border-radius: 22px;
  background: #000;
  box-shadow: 0 18px 52px rgba(0,0,0,.34);
}

.home-page .footer-b-main {
  display: grid;
  grid-template-columns: minmax(230px, 280px) 1fr;
  gap: 30px;
  align-items: center;
  padding: 24px 28px 22px;
}

.home-page .footer-b-brand {
  display: flex;
  align-items: center;
  min-height: 92px;
  padding-right: 28px;
  border-right: 1px solid rgba(210,162,58,.30);
}

.home-page .footer-b-brand img {
  width: min(100%, 252px);
  height: auto;
}

.home-page .footer-b-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}

.home-page .footer-b-nav-group {
  min-width: 0;
}

.home-page .footer-b-nav-toggle {
  width: 100%;
  margin: 0 0 11px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--gold-light);
  font: 900 .72rem/1.2 Lato, Arial, sans-serif;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: .18em;
  cursor: default;
}

.home-page .footer-b-chevron {
  display: none;
}

.home-page .footer-b-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 17px;
}

.home-page .footer-b-links a {
  position: relative;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.4;
  transition: color .18s ease;
}

.home-page .footer-b-links a:hover,
.home-page .footer-b-links a:focus-visible {
  color: var(--cream);
  outline: none;
}

.home-page .footer-b-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 1px;
  background: var(--gold-light);
  transition: right .18s ease;
}

.home-page .footer-b-links a:hover::after,
.home-page .footer-b-links a:focus-visible::after {
  right: 0;
}

.home-page .footer-b-contact-row {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 15px 28px;
  border-top: 1px solid rgba(210,162,58,.25);
  background: #000;
}

.home-page .footer-b-contact-actions {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 9px;
  min-width: 0;
}

.home-page .footer-b-contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid rgba(210,162,58,.34);
  border-radius: 999px;
  background: rgba(255,255,255,.025);
  color: var(--cream);
  font-size: .77rem;
  line-height: 1.2;
  white-space: nowrap;
  transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}

.home-page .footer-b-contact-pill svg {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  padding: 4px;
  border-radius: 50%;
  fill: none;
  stroke: var(--footer-contact-icon, var(--gold-light));
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  background: var(--footer-contact-icon-bg, rgba(210,162,58,.09));
}

.home-page .footer-b-contact-pill--phone {
  --footer-contact-icon: #55d66b;
  --footer-contact-icon-bg: rgba(85,214,107,.12);
}

.home-page .footer-b-contact-pill--email {
  --footer-contact-icon: #ef6b63;
  --footer-contact-icon-bg: rgba(239,107,99,.12);
}

.home-page .footer-b-contact-pill--web {
  --footer-contact-icon: #58aaf8;
  --footer-contact-icon-bg: rgba(88,170,248,.12);
}

.home-page .footer-b-contact-pill:hover,
.home-page .footer-b-contact-pill:focus-visible,
.home-page .footer-b-social:hover,
.home-page .footer-b-social:focus-visible {
  border-color: rgba(244,210,124,.78);
  background: rgba(210,162,58,.08);
  color: var(--gold-light);
  transform: translateY(-1px);
  outline: none;
}

.home-page .footer-b-socials {
  display: flex;
  gap: 9px;
  flex: 0 0 auto;
}

.home-page .footer-b-social {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(210,162,58,.42);
  border-radius: 50%;
  background: rgba(255,255,255,.025);
  color: var(--gold-light);
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.home-page .footer-b-social svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-page .footer-b-social:last-child svg {
  fill: currentColor;
  stroke: none;
}

.home-page .footer-b-social--instagram {
  color: #e85ba5;
  border-color: rgba(232,91,165,.52);
  background: rgba(232,91,165,.07);
}

.home-page .footer-b-social--facebook {
  color: #5b9df9;
  border-color: rgba(91,157,249,.52);
  background: rgba(91,157,249,.07);
}

.home-page .footer-b-social--instagram:hover,
.home-page .footer-b-social--instagram:focus-visible {
  color: #f079ba;
  border-color: rgba(240,121,186,.78);
  background: rgba(232,91,165,.12);
}

.home-page .footer-b-social--facebook:hover,
.home-page .footer-b-social--facebook:focus-visible {
  color: #78affb;
  border-color: rgba(120,175,251,.78);
  background: rgba(91,157,249,.12);
}

.home-page .footer-b-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 20px;
  border-top: 1px solid rgba(210,162,58,.18);
  color: #948a7b;
  font-size: .72rem;
  line-height: 1.35;
  letter-spacing: .015em;
  text-align: center;
}

.home-page .footer-b-bottom-separator {
  color: rgba(210,162,58,.62);
}

.home-page .footer-b-legal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0 7px;
}

.home-page .footer-b-legal a {
  color: #aaa091;
  transition: color .18s ease;
}

.home-page .footer-b-legal a:hover,
.home-page .footer-b-legal a:focus-visible {
  color: var(--gold-light);
  outline: none;
}

.home-page .footer-b-legal span {
  color: rgba(210,162,58,.55);
}

@media (max-width: 980px) {
  .home-page .footer-b-main {
    grid-template-columns: 210px 1fr;
    gap: 24px;
    padding-inline: 24px;
  }

  .home-page .footer-b-brand {
    padding-right: 24px;
  }

  .home-page .footer-b-nav {
    gap: 20px;
  }

  .home-page .footer-b-contact-row {
    align-items: flex-end;
    padding-inline: 24px;
  }

  .home-page .footer-b-contact-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, max-content));
  }

  .home-page .footer-b-contact-pill:last-child {
    grid-column: 1 / -1;
    width: max-content;
  }
}

@media (max-width: 700px) {
  .home-page .footer-option-b {
    padding: 18px 0 14px;
  }

  .home-page .footer-b-shell {
    border-radius: 18px;
  }

  .home-page .footer-b-main {
    display: block;
    padding: 20px 18px 11px;
  }

  .home-page .footer-b-brand {
    min-height: 0;
    justify-content: center;
    padding: 0 0 18px;
    border-right: 0;
    border-bottom: 1px solid rgba(210,162,58,.25);
  }

  .home-page .footer-b-brand img {
    width: min(100%, 236px);
  }

  .home-page .footer-b-nav {
    display: block;
    padding-top: 8px;
  }

  .home-page .footer-b-nav-group {
    border-bottom: 1px solid rgba(210,162,58,.18);
  }

  .home-page .footer-b-nav-group:last-child {
    border-bottom: 0;
  }

  .home-page .footer-b-nav-toggle {
    min-height: 46px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: var(--gold-light);
    cursor: pointer;
  }

  .home-page .footer-b-chevron {
    width: 18px;
    height: 18px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .18s ease;
  }

  .home-page .footer-b-nav-toggle[aria-expanded="true"] .footer-b-chevron {
    transform: rotate(180deg);
  }

  .home-page .footer-b-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 18px;
    padding: 0 0 13px;
  }

  .home-page .footer-b-links a {
    padding: 7px 0;
    font-size: .84rem;
  }

  .home-page .footer-b-nav-group.is-collapsed .footer-b-links {
    display: none;
  }

  .home-page .footer-b-contact-row {
    display: block;
    padding: 15px 18px 16px;
  }

  .home-page .footer-b-contact-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .home-page .footer-b-contact-pill,
  .home-page .footer-b-contact-pill:last-child {
    width: 100%;
    min-height: 42px;
    justify-content: flex-start;
    grid-column: auto;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .home-page .footer-b-socials {
    justify-content: center;
    margin-top: 13px;
  }

  .home-page .footer-b-social {
    width: 40px;
    height: 40px;
  }

  .home-page .footer-b-bottom {
    flex-direction: column;
    gap: 2px;
    min-height: 0;
    padding: 11px 16px 13px;
  }

  .home-page .footer-b-bottom-separator {
    display: none;
  }

  .home-page .footer-b-legal {
    margin: 3px 0;
    row-gap: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .footer-b-links a::after,
  .home-page .footer-b-contact-pill,
  .home-page .footer-b-social,
  .home-page .footer-b-chevron {
    transition: none;
  }
}
