/* ============================================
   IVORYSERVE — SHARED STYLES
   ============================================ */

:root {
  --ivory: #FEFEFE;
  --ivory-2: #F5F7FA;
  --ivory-3: #EAEEF3;
  --ink: #0B2545;
  --ink-2: #14335C;
  --ink-3: #1D3E6A;
  --brass: #4A6FA5;
  --brass-2: #74A9F8;
  --brass-3: #2C4E82;
  --sage: #5C7396;
  --sage-2: #8FA3BF;
  --stone: #6E7B8F;
  --stone-2: #A0AAB8;
  --hairline: #DDE3EB;
  --success: #4A8A5A;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--ivory);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
}

::selection { background: var(--brass); color: var(--ivory); }
a { color: inherit; text-decoration: none; }

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(254, 254, 254, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
  z-index: 100;
}
.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 22px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.brand {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  font-size: 22px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  display: inline-block;
  width: 32px; height: 32px;
  border: 1.5px solid var(--brass);
  position: relative;
  transform: rotate(45deg);
}
.brand-mark::after {
  content: '';
  position: absolute;
  inset: 4px;
  background: var(--brass);
}
.brand span { font-style: italic; color: var(--brass-3); font-weight: 400; }

.nav-tabs {
  display: flex;
  gap: 36px;
  list-style: none;
  font-size: 14px;
  font-weight: 500;
}
.nav-tabs a {
  color: var(--ink-2);
  padding: 8px 0;
  position: relative;
  transition: color 0.2s;
  letter-spacing: 0.01em;
}
.nav-tabs a:hover { color: var(--brass); }
.nav-tabs a.active {
  color: var(--ink);
}
.nav-tabs a.active::after {
  content: '';
  position: absolute;
  bottom: -22px;
  left: 0; right: 0;
  height: 2px;
  background: var(--brass);
}

.nav-cta {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 12px 22px;
  background: var(--ink);
  color: var(--ivory);
  border-radius: 2px;
  transition: background 0.2s;
  letter-spacing: 0.02em;
}
.nav-cta:hover { background: var(--brass-3); }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--ink); }

/* ============ PAGE HEADER ============ */
.page-header {
  padding: 160px 40px 100px;
  max-width: 1400px;
  margin: 0 auto;
  border-bottom: 1px solid var(--hairline);
}
.page-eyebrow {
  font-size: 12px;
  color: var(--brass-3);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 500;
  margin-bottom: 32px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.page-eyebrow::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--brass);
}
.page-header h1 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(48px, 6.5vw, 92px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 32px;
  max-width: 1100px;
}
.page-header h1 em {
  font-style: italic;
  color: var(--brass-3);
  font-weight: 300;
}
.page-lede {
  font-size: 19px;
  color: var(--ink-2);
  max-width: 720px;
  line-height: 1.55;
  font-weight: 400;
}

/* ============ SECTIONS ============ */
section { padding: 100px 40px; max-width: 1400px; margin: 0 auto; }
.section-inner { max-width: 1400px; margin: 0 auto; }

.section-header {
  margin-bottom: 60px;
  max-width: 900px;
}
.section-eyebrow {
  font-size: 11px;
  color: var(--brass-3);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 500;
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.section-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--brass);
}
.section-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.section-title em {
  font-style: italic;
  color: var(--brass-3);
  font-weight: 300;
}
.section-sub {
  font-size: 17px;
  color: var(--ink-2);
  max-width: 720px;
  margin-top: 24px;
  line-height: 1.6;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 2px;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 0.01em;
}
.btn-primary {
  background: var(--ink);
  color: var(--ivory);
}
.btn-primary:hover { background: var(--brass-3); }
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-secondary:hover {
  background: var(--ink);
  color: var(--ivory);
}
.btn-brass {
  background: var(--brass);
  color: var(--ink);
}
.btn-brass:hover { background: var(--brass-2); }
.btn .arrow { transition: transform 0.2s; font-family: serif; font-size: 18px; }
.btn:hover .arrow { transform: translateX(4px); }

/* ============ FACILITY REGISTER (SIGNATURE) ============ */
.facility-card {
  background: var(--ivory-2);
  border: 1px solid var(--hairline);
  padding: 44px 40px;
  border-radius: 2px;
  position: relative;
}
.facility-card::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 40px;
  width: 40px;
  height: 1px;
  background: var(--brass);
}
.facility-eyebrow {
  padding-top: 32px;
  font-size: 11px;
  color: var(--brass-3);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 500;
  margin-bottom: 32px;
}
.facility-name {
  font-family: 'Fraunces', serif;
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 8px;
  font-style: italic;
}
.facility-sub {
  font-size: 13px;
  color: var(--stone);
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--hairline);
}
.facility-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  padding: 12px 0;
  gap: 20px;
  align-items: baseline;
}
.facility-row .label {
  font-size: 11px;
  color: var(--stone);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 500;
}
.facility-row .value {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.5;
}
.facility-list {
  padding: 12px 0;
}
.facility-list li {
  font-size: 14px;
  color: var(--ink-2);
  padding: 4px 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.facility-list li::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--brass);
  border-radius: 50%;
  display: inline-block;
}

/* ============ FOOTER ============ */
footer {
  background: var(--ink);
  color: var(--stone-2);
  padding: 80px 40px 40px;
  font-size: 14px;
}
.footer-inner { max-width: 1400px; margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(160, 170, 184, 0.2);
}
.footer-brand .brand {
  color: var(--ivory);
  margin-bottom: 24px;
}
.footer-brand p {
  line-height: 1.7;
  max-width: 340px;
  color: var(--stone-2);
}
.footer-col h4 {
  font-family: 'Fraunces', serif;
  font-size: 15px;
  font-weight: 500;
  font-style: italic;
  color: var(--brass-2);
  margin-bottom: 24px;
}
.footer-col a {
  display: block;
  padding: 7px 0;
  color: var(--stone-2);
  transition: color 0.2s;
  font-size: 14px;
}
.footer-col a:hover { color: var(--brass-2); }
.footer-bottom {
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--stone);
}

/* ============ INLINE CTA STRIP ============ */
.cta-strip {
  background: var(--ink);
  color: var(--ivory);
  padding: 100px 40px;
  margin: 0;
  max-width: 100%;
}
.cta-strip-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: center;
}
.cta-strip h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(36px, 4.5vw, 60px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ivory);
  margin-bottom: 20px;
}
.cta-strip h2 em {
  font-style: italic;
  color: var(--brass-2);
  font-weight: 300;
}
.cta-strip p {
  color: var(--stone-2);
  font-size: 17px;
  line-height: 1.6;
  max-width: 480px;
}
.cta-strip-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.btn-outline-light {
  background: transparent;
  color: var(--ivory);
  border: 1px solid rgba(254, 254, 254, 0.35);
}
.btn-outline-light:hover {
  background: var(--ivory);
  color: var(--ink);
  border-color: var(--ivory);
}

/* ============ FADE IN ============ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .nav-inner { padding: 18px 20px; gap: 20px; }
  .nav-tabs { display: none; }
  .nav-cta { display: none; }
  .menu-toggle { display: block; }

  section { padding: 70px 20px; }
  .page-header { padding: 120px 20px 60px; }
  .page-header h1 { font-size: 44px; }

  .cta-strip { padding: 70px 20px; }
  .cta-strip-inner { grid-template-columns: 1fr; gap: 30px; }
  .cta-strip-actions { justify-content: flex-start; }

  .facility-card { padding: 32px 24px; }
  .facility-row { grid-template-columns: 110px 1fr; gap: 16px; }

  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; }
}
