/* Mane Attractions split-portal homepage */
:root {
  --portal-cream: #f7efe0;
  --portal-ink: #1a1210;
  --portal-maroon: #6e1a1f;
  --portal-red: #c41218;
  --portal-coral: #ff6f61;
  --portal-wellness: #3d4f4a;
  --portal-muted: #5c4f48;
  --portal-hair-deep: #2a0f12;
}

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

html,
body.portal-body {
  margin: 0;
  min-height: 100%;
  background: var(--portal-cream);
  color: var(--portal-ink);
  font-family: Lato, "Segoe UI", sans-serif;
}

.portal {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr;
}

.portal-header {
  position: relative;
  z-index: 2;
  padding: clamp(18px, 3.2vw, 36px) clamp(20px, 4vw, 48px) clamp(14px, 2vw, 22px);
  text-align: center;
  background:
    linear-gradient(180deg, #fff8ec 0%, var(--portal-cream) 100%);
  border-bottom: 1px solid rgba(110, 26, 31, 0.12);
}

.portal-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  animation: portal-fade-down 0.9s ease both;
}

.portal-brand img {
  width: min(92px, 18vw);
  height: auto;
  display: block;
}

.portal-brand-name {
  margin: 0;
  font-family: "El Messiri", Georgia, serif;
  font-weight: 500;
  font-size: clamp(2rem, 5.4vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: var(--portal-maroon);
}

.portal-brand-name span {
  display: inline-block;
  font-style: italic;
  font-weight: 400;
  color: var(--portal-red);
}

.portal-tagline {
  margin: 6px 0 0;
  font-size: clamp(0.78rem, 1.5vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--portal-muted);
  animation: portal-fade-down 0.9s ease 0.12s both;
}

.portal-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 0;
}

.portal-panel {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 0;
  text-decoration: none;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  animation: portal-rise 1s ease both;
}

.portal-panel-hair {
  animation-delay: 0.15s;
}

.portal-panel-wellness {
  animation-delay: 0.28s;
}

.portal-panel-media {
  position: relative;
  min-height: 280px;
  overflow: hidden;
}

.portal-panel-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  transform: scale(1.03);
  transition: transform 0.7s ease;
}

.portal-panel-hair .portal-panel-media {
  background: var(--portal-hair-deep);
}

.portal-panel-wellness .portal-panel-media {
  background: var(--portal-wellness);
}

.portal-panel-wellness .portal-panel-media img {
  object-position: center center;
}

.portal-panel:hover .portal-panel-media img,
.portal-panel:focus-visible .portal-panel-media img {
  transform: scale(1.08);
}

.portal-panel-copy {
  position: relative;
  padding: clamp(22px, 3.5vw, 36px) clamp(20px, 3vw, 40px) clamp(26px, 4vw, 42px);
  display: grid;
  gap: 10px;
  justify-items: start;
  transition: background 0.35s ease;
}

.portal-panel-hair .portal-panel-copy {
  background: linear-gradient(160deg, #4a1015 0%, #8b1c24 55%, #c41218 100%);
}

.portal-panel-wellness .portal-panel-copy {
  background: linear-gradient(160deg, #2d3d39 0%, #4a6a62 55%, #6b8f84 100%);
}

.portal-panel:hover .portal-panel-copy,
.portal-panel:focus-visible .portal-panel-copy {
  filter: brightness(1.06);
}

.portal-panel-kicker {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.85;
}

.portal-panel-title {
  margin: 0;
  font-family: "El Messiri", Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  line-height: 1.1;
}

.portal-panel-text {
  margin: 0;
  max-width: 32ch;
  font-weight: 300;
  font-size: clamp(0.98rem, 1.5vw, 1.125rem);
  line-height: 1.5;
  opacity: 0.95;
}

.portal-panel-cta {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.portal-panel-cta::after {
  content: "";
  width: 34px;
  height: 1.5px;
  background: currentColor;
  transition: width 0.3s ease;
}

.portal-panel:hover .portal-panel-cta::after,
.portal-panel:focus-visible .portal-panel-cta::after {
  width: 52px;
}

.portal-panel:focus-visible {
  outline: 3px solid #fff;
  outline-offset: -3px;
  z-index: 1;
}

.portal-divider {
  display: none;
}

@keyframes portal-fade-down {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes portal-rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 820px) {
  .portal {
    grid-template-rows: auto auto;
  }

  .portal-split {
    grid-template-columns: 1fr;
  }

  .portal-panel-media {
    min-height: 42vh;
    min-height: 42dvh;
  }

  .portal-brand-name {
    font-size: clamp(1.85rem, 8vw, 2.6rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .portal-brand,
  .portal-tagline,
  .portal-panel,
  .portal-panel-media img,
  .portal-panel-cta::after {
    animation: none !important;
    transition: none !important;
  }
}
