:root {
  --navy: #0b1f3a;
  --navy-2: #102a4d;
  --ink: #0a0a0a;
  --offwhite: #f7f8fa;
  --card: #ffffff;
  --muted: #6b7280;
  --border: rgba(15, 23, 42, 0.14);
  --shadow: 0 12px 40px rgba(2, 8, 23, 0.12);
  --radius: 18px;
  --max: 1120px;
  --serif: ui-serif, Georgia, "Times New Roman", Times, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff 0%, #f3f6fb 100%);
}

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

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  background: #ffffffcc;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
}

.brand-logo {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid rgba(11, 31, 58, 0.12);
  box-shadow: 0 10px 24px rgba(2, 8, 23, 0.08);
  overflow: hidden;
  flex: 0 0 auto;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-name {
  font-weight: 700;
  letter-spacing: 0.2px;
  font-size: 18px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-links a {
  font-weight: 600;
  font-size: 14px;
  padding: 10px 10px;
  border-radius: 10px;
}

.nav-links a[aria-current="page"] {
  background: rgba(11, 31, 58, 0.08);
  text-decoration: none;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 8px 18px rgba(2, 8, 23, 0.06);
  font-weight: 700;
  font-size: 14px;
}

.icon {
  width: 18px;
  height: 18px;
  display: inline-block;
}

.hero { padding: 68px 0 34px; }

.hero-panel {
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: radial-gradient(1200px 500px at 50% 0%, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0) 60%),
              linear-gradient(135deg, #050a14 0%, var(--navy) 55%, #04070f 100%);
  color: #fff;
  padding: 56px 54px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 26px;
  align-items: center;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.05;
  margin: 0 0 10px;
}

.hero .sub {
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255,255,255,0.88);
  max-width: 62ch;
}

.hero-actions {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 800;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.10);
  color: #fff;
  text-decoration: none;
  min-width: 180px;
}
.btn:hover { text-decoration: none; background: rgba(255,255,255,0.16); }
.btn.primary {
  background: #ffffff;
  color: var(--navy);
  border-color: rgba(255,255,255,0.35);
}
.btn.primary:hover { background: rgba(255,255,255,0.92); }

.hero-shelter{ display:flex; flex-direction:column; align-items:flex-end; gap:12px; }

.sanctuary {
  width: 100%;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: 18px;
  padding: 16px 16px;
  display: block;
}


.sanctuary h3 { margin: 0; font-family: var(--serif); font-weight: 700; font-size: 22px; }
.sanctuary p { margin: 8px 0 0; color: rgba(255,255,255,0.86); line-height: 1.5; font-size: 14px; }

/* Large square logo card in the hero (matches the reference layout) */
.hero-logo-card{
  width: min(360px, 100%);
  aspect-ratio: 1 / 1;
  background: #ffffff;
  border-radius: 28px;
  border: 1px solid rgba(2,8,23,0.10);
  box-shadow: 0 22px 50px rgba(0,0,0,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px;
  overflow: hidden;
}

.hero-logo-card img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-width: 86%;
  max-height: 86%;
}

.sanctuary .round-logo {
  width: 84px;
  height: 84px;
  border-radius: 999px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.32);
  background: rgba(255,255,255,0.92);
  box-shadow: 0 16px 30px rgba(0,0,0,0.25);
}
.sanctuary .round-logo img { width: 100%; height: 100%; object-fit: cover; }

.section { padding: 44px 0; }

.section-title { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; }
.section-title h2 { margin: 0; font-family: var(--serif); font-size: 34px; }
.section-title .badge {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--navy);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 22px rgba(2,8,23,0.18);
}
.badge svg { width: 20px; height: 20px; fill: #fff; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(2, 8, 23, 0.06);
  padding: 18px;
}
.card h3 { margin: 0 0 10px; font-family: var(--serif); font-size: 22px; }
.card p { margin: 0; color: #374151; line-height: 1.6; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }

.panel {
  background: rgba(11,31,58,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.panel h3 { margin: 0 0 10px; font-family: var(--serif); font-size: 30px; }
.panel p { margin: 0; line-height: 1.7; color: #243041; }

.panel.placeholder {
  min-height: 230px;
  background:
    linear-gradient(180deg, rgba(11,31,58,0.06) 0%, rgba(11,31,58,0.04) 100%),
    radial-gradient(800px 260px at 10% 0%, rgba(255,255,255,0.65) 0%, rgba(255,255,255,0) 60%);
}

.accordion { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: #fff; }
.acc-item + .acc-item { border-top: 1px solid var(--border); }
.acc-btn {
  width: 100%;
  text-align: left;
  padding: 18px 18px;
  background: rgba(11,31,58,0.03);
  border: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}
.acc-btn span { font-family: var(--serif); font-size: 22px; font-weight: 700; }
.acc-btn .chev { transition: transform .2s ease; }
.acc-content { display: none; padding: 16px 18px 22px; background: #fff; }
.acc-content p, .acc-content li { color: #2b3648; line-height: 1.7; }
.acc-item.open .acc-content { display: block; }
.acc-item.open .acc-btn .chev { transform: rotate(180deg); }

.form-wrap {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(2,8,23,0.08);
  padding: 22px;
}
.form-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.tabbtn {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(11,31,58,0.04);
  font-weight: 800;
  cursor: pointer;
}
.tabbtn.active { background: var(--navy); color: #fff; border-color: rgba(255,255,255,0.35); }

form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
label { font-weight: 700; font-size: 13px; }
input, textarea, select {
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,0.18);
  font-family: var(--sans);
  font-size: 14px;
}
textarea { min-height: 110px; resize: vertical; }
.full { grid-column: 1 / -1; }
.form-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.submit {
  background: var(--navy);
  color: #fff;
  border: 1px solid rgba(11,31,58,0.35);
  font-weight: 900;
  padding: 12px 16px;
  border-radius: 12px;
  cursor: pointer;
}
.submit:hover { filter: brightness(1.05); }
.mini-note { margin-top: 10px; color: var(--muted); font-size: 13px; line-height: 1.5; }

.footer {
  margin-top: 40px;
  background: linear-gradient(135deg, #050a14 0%, var(--navy) 60%, #04070f 100%);
  color: rgba(255,255,255,0.92);
  padding: 34px 0;
}
.footer-grid { display: grid; grid-template-columns: 1.2fr 0.8fr 1fr; gap: 18px; align-items: start; }
.footer-logo { display: flex; align-items: center; gap: 12px; }
.footer-logo .brand-logo { width: 58px; height: 58px; border-color: rgba(255,255,255,0.22); }
.footer h4 { margin: 0 0 10px; font-family: var(--serif); font-size: 20px; }
.footer a { color: rgba(255,255,255,0.92); }
.footer small { color: rgba(255,255,255,0.70); }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.post-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,0.12);
}
.post-meta { color: var(--muted); font-size: 12px; margin-top: 8px; }
.post-card h3 { font-family: var(--serif); margin: 10px 0 8px; font-size: 22px; }
.post-card p { margin: 0; color: #364152; line-height: 1.6; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-shelter { align-items: center; }
  .hero-logo-card { width: min(340px, 92vw); }
  .cards { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  form { grid-template-columns: 1fr; }
  .brand { min-width: auto; }
}

/* Footer pills should be readable (not blank white bars) */
.footer .pill, .footer .pill:visited {
  color: var(--navy);
  background: rgba(255,255,255,0.95);
  border-color: rgba(255,255,255,0.55);
}
.footer .pill svg, .footer .pill .icon {
  color: var(--navy);
}

/* Make secondary buttons match the "Book Now" light style */
.btn.secondary {
  background: rgba(255,255,255,0.92);
  color: var(--navy);
  border: 1px solid rgba(255,255,255,0.55);
}
.btn.secondary:hover { filter: brightness(0.98); }


/* Hero sanctuary logo sizing */
.sanctuary-logo{
  width: 74px;
  height: 74px;
  border-radius: 999px;
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(255,255,255,0.35);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}

.sanctuary-logo img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

/* Chips */
.chips{ display:flex; gap:10px; flex-wrap:wrap; margin-top:12px; }
.chip{
  display:inline-flex;
  padding:8px 10px;
  border-radius:999px;
  background: rgba(11,31,58,0.08);
  border: 1px solid var(--border);
  font-weight:700;
  font-size:13px;
}

/* Simple list cards */
.list{ display:grid; gap:12px; margin-top:12px; }
.list-item{ display:grid; gap:4px; padding:12px; border-radius:16px; border:1px solid var(--border); background: rgba(255,255,255,0.72); }
.list-item span{ color: var(--muted); font-size:14px; }


/* About page fillers */
.bullets{ margin: 12px 0 0; padding-left: 18px; display:grid; gap:8px; color: var(--muted); font-size: 15px;}
.quote-panel{ background: rgba(255,255,255,0.78); }
.mini-cards{ display:grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap:10px; margin-top:14px; }
.mini-card{ padding:12px; border-radius:14px; border:1px solid var(--border); background: rgba(11,31,58,0.05); display:grid; gap:4px; }
.mini-card span{ color: var(--muted); font-size: 13px; }
@media (max-width: 820px){ .mini-cards{ grid-template-columns:1fr; } }

/* 3-column cards helper */
.cards.cards-3{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 980px){ .cards.cards-3{ grid-template-columns: 1fr; } }


/* --- Hero layout overrides (logo + copy) --- */
.hero{ padding:28px 0 14px; }
.hero-panel{ padding:28px; }
.hero-grid{ align-items:center; gap:28px; }
.hero-copy{ max-width: 560px; }
.hero-lead{
  margin-top: 12px;
  font-size: 18px;
  line-height: 1.5;
  color: rgba(255,255,255,0.92);
}
.hero-copy .sub{
  margin-top: 10px;
  color: rgba(255,255,255,0.82);
  max-width: 54ch;
}
.hero-actions{ margin-top: 18px; display:flex; gap:12px; flex-wrap:wrap; }

.hero-logo-wrap{ display:flex; justify-content:flex-end; }
.hero-logo-card{
  width: 360px;
  max-width: 92%;
  aspect-ratio: 1 / 1;
  background: #fff;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0,0,0,0.25);
  display:flex;
  align-items:center;
  justify-content:center;
}
.hero-logo-card img{
  width:100%;
  height:100%;
  object-fit: contain;
  object-position: center;
  padding: 0;
  transform: scale(1.08);
}

@media (max-width: 860px){
  .hero-logo-wrap{ width:100%; justify-content:center; }
  .hero-copy{ max-width: none; }
}


/* ---------- Mobile nav (hamburger) ---------- */
.nav { position: relative; }

.nav-toggle{
  display:none;
  width:48px;
  height:48px;
  border:1px solid rgba(13, 34, 62, 0.18);
  background: rgba(255, 255, 255, 0.88);
  border-radius:14px;
  cursor:pointer;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:6px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
    position: relative;
    z-index: 1200;
}
.nav-toggle span{
  display:block;
  width:26px;
  height:4px;
  background: #0b1f3b;
  border-radius:4px;
}

@media (max-width: 900px){
  .topbar{ padding:12px 14px; }
  .nav{ gap:10px; }
  .nav-toggle{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(13, 34, 62, 0.14);
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
    position: relative;
    z-index: 1200;
  }
  .nav-links{
    display:none;
    position:absolute;
    top:64px;
    left:12px;
    right:12px;
    flex-direction:column;
    align-items:stretch;
    gap:10px;
    padding:14px;
    border-radius:18px;
    background: rgba(255,255,255,0.98);
    border: 1px solid rgba(15,23,42,0.10);
    box-shadow: 0 12px 30px rgba(15,23,42,0.12);
    z-index: 1001;
  }
  .nav-links.open{ display:flex; }
  .nav-links a{ padding:10px 12px; border-radius:12px; }
  .nav-links a.pill{ justify-content:center; }
  .topbar .phone-pill{ white-space:nowrap; }
}

/* Mobile nav hamburger sizing */
@media (max-width: 900px) {
  .hamburger{ display:flex; flex-direction:column; gap:5px; }
  .hamburger span{ width:24px; height:4px; border-radius:6px; background:#0b1f3b; display:block; }
}

/* Center hero logo on mobile */
@media (max-width: 900px) {
  .hero-logo-card,
  .hero-logo {
    margin-left: auto !important;
    margin-right: auto !important;
    display: block;
  }
}

/* === FINAL MOBILE HERO + NAV FIX === */
@media (max-width: 768px) {

  .hero,
  .hero-inner,
  .hero-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .hero-logo-wrapper,
  .hero-logo-card {
    margin: 0 auto !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
  }

  .hero-logo-card {
    width: 88%;
    max-width: 320px;
    padding: 20px;
  }

  .hero-logo-card img {
    display: block;
    margin: 0 auto !important;
  }

  /* Mobile hamburger box */
  .hamburger {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
  }

  .hamburger span {
    height: 3px;
    width: 24px;
  }
}
