/* =========================================================
   Alterations Plus PH - Public Base CSS
   Restores split logo + pill-shaped navbar.
   ========================================================= */

:root {
  --crimson: #8B0000;
  --red-btn: #A40E0E;
  --cream: #FFF5E6;
  --sand: #EAE6DF;
  --dark: #111111;
  --text: #1D1714;
  --muted: #756B63;
  --gray: #777777;
  --line: #E7DDD2;
  --surface: #FFFFFF;
  --page-bg: #FAF7F2;
  --shadow-soft: 0 12px 28px rgba(24, 18, 14, 0.08);
  --shadow-medium: 0 20px 48px rgba(24, 18, 14, 0.13);
  --radius-card: 28px;
  --radius-pill: 999px;
  --font-display: "Playfair Display", Georgia, serif;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-body: "Montserrat", Arial, sans-serif;
}

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

html {
  min-width: 320px;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--page-bg);
  color: var(--text);
  font-family: var(--font-body);
  text-rendering: optimizeLegibility;
}

body.public-site {
  display: flex;
  flex-direction: column;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.public-main {
  flex: 1;
  width: 100%;
  overflow-x: clip;
}

.container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 32px, 1180px);
  }
}

/* ===== SPLIT HEADER / PILL NAVBAR ===== */

.split-public-header {
  position: fixed;
  top: 18px;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding-inline: clamp(16px, 3.5vw, 52px);
  pointer-events: none;
}

.split-nav-inner {
  width: min(1420px, 100%);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  pointer-events: none;
}

.split-nav-logo-link,
.split-nav-pill,
.split-nav-toggle {
  pointer-events: auto;
}

.split-nav-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 68px;
  padding: 4px 0;
}

.split-nav-logo {
  height: clamp(54px, 5vw, 72px);
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.14));
}

.split-nav-logo-fallback {
  color: var(--crimson);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 0.9;
  text-align: center;
  text-shadow: 0 10px 18px rgba(0, 0, 0, 0.12);
}

.split-nav-logo-fallback small {
  display: block;
  color: #111;
  font-size: 0.7rem;
  letter-spacing: 0.10em;
}

.split-nav-pill {
  min-height: 60px;
  padding: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid rgba(135, 0, 0, 0.12);
  border-radius: var(--radius-pill);
  background: rgba(255, 252, 247, 0.92);
  box-shadow:
    0 20px 48px rgba(24, 18, 14, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
}

.split-nav-pill a {
  min-height: 44px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  color: #211a17;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.split-nav-pill a:hover {
  color: var(--crimson);
  background: rgba(139, 0, 0, 0.07);
}

.split-nav-pill a.active {
  color: #fff !important;
  background: linear-gradient(135deg, #d71919 0%, var(--crimson) 100%);
  box-shadow: 0 12px 22px rgba(139, 0, 0, 0.26);
}

.split-nav-toggle {
  display: none;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(139, 0, 0, 0.14);
  border-radius: 50%;
  background: rgba(255, 252, 247, 0.96);
  box-shadow: 0 16px 32px rgba(24, 18, 14, 0.14);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.split-nav-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 99px;
  background: var(--crimson);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.split-public-header.menu-open .split-nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.split-public-header.menu-open .split-nav-toggle span:nth-child(2) {
  opacity: 0;
}

.split-public-header.menu-open .split-nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== BUTTONS ===== */

.btn,
.btn-primary,
.btn-outline {
  min-height: 52px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.btn-primary,
.btn.btn-primary {
  background: linear-gradient(135deg, #d71919 0%, var(--crimson) 100%);
  color: #fff;
  box-shadow: 0 16px 28px rgba(139, 0, 0, 0.22);
}

.btn-primary:hover,
.btn.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 34px rgba(139, 0, 0, 0.28);
}

.btn-outline,
.btn.btn-outline {
  color: var(--crimson);
  background: #fff;
  border-color: rgba(139, 0, 0, 0.18);
}

.btn-outline:hover,
.btn.btn-outline:hover {
  background: rgba(139, 0, 0, 0.06);
  transform: translateY(-2px);
}

/* ===== FLASH ===== */

.public-flash-stack {
  position: fixed;
  top: 96px;
  right: 24px;
  z-index: 1200;
  display: grid;
  gap: 10px;
  width: min(420px, calc(100% - 48px));
}

.public-flash {
  padding: 14px 16px;
  border-radius: 18px;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  font-size: 0.92rem;
}

/* ===== FOOTER ===== */

.public-footer {
  width: 100%;
  background: var(--crimson);
  color: var(--cream);
  padding: 34px clamp(22px, 6vw, 80px) 22px;
}

.public-footer-inner {
  display: grid;
  grid-template-columns: 1.1fr auto 1fr;
  align-items: center;
  gap: 42px;
  width: min(1420px, 100%);
  margin-inline: auto;
}

.footer-left p {
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 0.86rem;
  line-height: 1.55;
}

.footer-follow-label {
  margin-top: 18px !important;
  opacity: 0.82;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.footer-social {
  display: flex;
  gap: 18px;
  margin-top: 12px;
}

.footer-social a {
  color: #fff;
  font-size: 1.45rem;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-social a:hover {
  opacity: 0.78;
  transform: translateY(-2px);
}

.footer-logo {
  text-align: center;
}

.footer-logo-img {
  height: 68px;
  width: auto;
  object-fit: contain;
  margin-inline: auto;
}

.footer-logo-fallback strong,
.footer-logo-fallback span {
  display: block;
  color: #fff;
  font-family: var(--font-display);
}

.footer-logo-fallback strong {
  font-size: 1.2rem;
  letter-spacing: 0.10em;
}

.footer-logo-fallback span {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.footer-nav {
  display: grid;
  justify-items: end;
  gap: 9px;
}

.footer-nav a {
  color: #fff;
  font-size: 0.95rem;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-nav a:hover {
  opacity: 0.78;
  transform: translateX(-3px);
}

.footer-copy {
  width: min(1420px, 100%);
  margin: 26px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  text-align: center;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
}

/* ===== RESPONSIVE NAV ===== */

@media (max-width: 980px) {
  .split-nav-pill a {
    padding-inline: 16px;
  }
}

@media (max-width: 860px) {
  .split-public-header {
    top: 14px;
    padding-inline: 18px;
  }

  .split-nav-inner {
    align-items: flex-start;
  }

  .split-nav-logo-link {
    min-height: 58px;
  }

  .split-nav-logo {
    height: 52px;
  }

  .split-nav-toggle {
    display: inline-flex;
  }

  .split-nav-pill {
    position: absolute;
    top: 68px;
    left: 18px;
    right: 18px;
    min-height: unset;
    padding: 12px;
    display: grid;
    gap: 8px;
    border-radius: 24px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.24s ease, transform 0.24s ease;
  }

  .split-public-header.menu-open .split-nav-pill {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .split-nav-pill a {
    min-height: 48px;
    width: 100%;
  }

  .public-footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 28px;
  }

  .footer-left p,
  .footer-social {
    justify-content: center;
  }

  .footer-nav {
    justify-items: center;
  }
}

@media (max-width: 560px) {
  .split-public-header {
    top: 10px;
    padding-inline: 14px;
  }

  .split-nav-logo {
    height: 46px;
  }

  .split-nav-toggle {
    width: 48px;
    height: 48px;
  }

  .public-flash-stack {
    top: 82px;
    right: 16px;
    width: calc(100% - 32px);
  }

  .public-footer {
    padding-inline: 18px;
  }

  .footer-left p {
    flex-wrap: wrap;
  }
}
