/* =========================================================
   NO CASTE NO RELIGION MATRIMONY
   Single-page responsive website
   ========================================================= */

:root {
  --burgundy: #7d102c;
  --burgundy-dark: #4d071c;
  --gold: #c99a25;
  --gold-light: #e8c86b;
  --cream: #fffaf0;
  --ivory: #fffdf8;
  --ink: #201820;
  --muted: #706770;
  --line: rgba(125, 16, 44, .13);
  --shadow: 0 20px 55px rgba(65, 18, 29, .12);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Montserrat", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  font-family: var(--sans);
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.container {
  width: min(1160px, calc(100% - 40px));
  margin: auto;
}
.narrow { max-width: 820px; }
.center { text-align: center; }

.section { padding: 105px 0; }
.eyebrow {
  color: var(--gold);
  font-size: .78rem;
  letter-spacing: .24em;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
}
h1, h2, h3 {
  font-family: var(--serif);
  line-height: 1.05;
  margin: 0 0 20px;
}
h2 { font-size: clamp(2.5rem, 5vw, 4.2rem); }
h3 { font-size: 1.8rem; }
p { margin: 0 0 18px; color: var(--muted); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 27px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: .25s ease;
  cursor: pointer;
}
.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--burgundy), #9b1739);
  box-shadow: 0 12px 28px rgba(125, 16, 44, .25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 35px rgba(125, 16, 44, .32); }
.btn-light {
  color: white;
  border-color: rgba(255,255,255,.6);
  background: rgba(255,255,255,.09);
  backdrop-filter: blur(8px);
}
.btn-light:hover { background: white; color: var(--burgundy); }
.full { width: 100%; }

/* HEADER */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(255,253,248,.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.nav-wrap {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 54px; height: 54px; object-fit: contain; }
.brand-text {
  display: flex;
  flex-direction: column;
  color: var(--burgundy);
  line-height: 1;
}
.brand-text strong {
  font-family: var(--serif);
  font-size: 1.5rem;
}
.brand-text small {
  margin-top: 5px;
  color: var(--gold);
  letter-spacing: .28em;
  font-size: .55rem;
  font-weight: 700;
}
.main-nav { display: flex; gap: 34px; align-items: center; }
.main-nav a {
  position: relative;
  padding: 28px 0;
  color: #3f3339;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.main-nav a::after {
  content: "";
  position: absolute;
  bottom: 19px; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: .25s;
}
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.menu-toggle { display: none; border: 0; background: none; padding: 10px; }
.menu-toggle span { display: block; width: 25px; height: 2px; background: var(--burgundy); margin: 5px; }

/* HERO */
.hero {
  min-height: 760px;
  position: relative;
  overflow: hidden;
  display: grid;
  align-items: center;
  color: white;
  background: #30111b;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: heroFade 18s infinite;
  transform: scale(1.03);
}
.slide-1 {
  background-image: url("https://images.unsplash.com/photo-1519741497674-611481863552?auto=format&fit=crop&w=2200&q=90");
  animation-delay: 0s;
}
.slide-2 {
  background-image: url("https://images.unsplash.com/photo-1606800052052-a08af7148866?auto=format&fit=crop&w=2200&q=90");
  animation-delay: 6s;
}
.slide-3 {
  background-image: url("https://images.unsplash.com/photo-1511285560929-80b456fea0bc?auto=format&fit=crop&w=2200&q=90");
  animation-delay: 12s;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(45,4,18,.88) 0%, rgba(65,7,24,.64) 44%, rgba(45,4,18,.22) 100%),
    linear-gradient(0deg, rgba(20,3,10,.55), transparent 55%);
}
.hero-content { position: relative; z-index: 2; padding-top: 80px; max-width: 850px; margin-left: max(20px, calc((100% - 1160px)/2)); }
.hero-badge {
  display: inline-block;
  padding: 7px 15px;
  border: 1px solid rgba(232,200,107,.65);
  border-radius: 999px;
  color: var(--gold-light);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.hero h1 { font-size: clamp(4rem, 8vw, 7.5rem); margin-bottom: 14px; }
.hero h1 span { color: var(--gold-light); }
.hero-slogan {
  color: white;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.3vw, 1.8rem);
  letter-spacing: .05em;
  text-transform: capitalize;
  margin-bottom: 10px;
}
.hero-copy { color: rgba(255,255,255,.82); max-width: 650px; font-size: 1rem; }
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero-dots {
  position: absolute;
  z-index: 3;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(255,255,255,.45);
  cursor: pointer;
}
.dot.active { background: var(--gold-light); width: 26px; border-radius: 10px; }

@keyframes heroFade {
  0%, 27% { opacity: 1; }
  33%, 94% { opacity: 0; }
  100% { opacity: 1; }
}

/* INTRO */
.intro { background: var(--cream); }
.intro h2 { color: var(--burgundy); }
.intro p { font-size: 1.05rem; }

/* ABOUT */
.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 75px;
  align-items: center;
}
.image-frame { position: relative; }
.image-frame img {
  width: 100%;
  height: 590px;
  object-fit: cover;
  border-radius: 4px 70px 4px 70px;
  box-shadow: var(--shadow);
}
.image-frame::before {
  content: "";
  position: absolute;
  inset: -16px 16px 16px -16px;
  border: 1px solid var(--gold);
  border-radius: 4px 70px 4px 70px;
  z-index: -1;
}
.image-caption {
  position: absolute;
  bottom: 25px;
  left: 25px;
  right: 25px;
  padding: 16px 20px;
  background: rgba(255,253,248,.93);
  color: var(--burgundy);
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 3px;
}
.image-caption span { font-family: var(--serif); font-size: 2rem; color: var(--gold); }
.image-caption strong { font-family: var(--serif); font-size: 1.35rem; }

.about-copy h2 { color: var(--burgundy); }
.values { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 30px; }
.value { border-top: 1px solid var(--line); padding-top: 12px; }
.value span { color: var(--gold); font-size: .7rem; font-weight: 700; }
.value b { display: block; font-family: var(--serif); font-size: 1.3rem; color: var(--burgundy); }
.value small { color: var(--muted); font-size: .7rem; line-height: 1.4; }

/* SERVICES */
.services { background: var(--cream); }
.services h2 { color: var(--burgundy); }
.section-lead { max-width: 650px; margin: 0 auto 45px; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 22px;
  text-align: left;
}
.service-card {
  padding: 42px 32px;
  background: var(--ivory);
  border: 1px solid var(--line);
  transition: .3s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-card.featured {
  background: var(--burgundy);
  color: white;
  transform: translateY(-14px);
  box-shadow: var(--shadow);
}
.service-card.featured p { color: rgba(255,255,255,.75); }
.service-card.featured h3 { color: white; }
.service-icon {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 20px;
}
.service-card h3 { color: var(--burgundy); }
.service-card p { font-size: .9rem; }

/* QUOTE BANNER */
.quote-banner {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
  color: white;
  text-align: center;
  background: url("https://images.unsplash.com/photo-1511285560929-80b456fea0bc?auto=format&fit=crop&w=2200&q=90") center/cover fixed;
}
.quote-overlay {
  position: absolute; inset: 0;
  background: rgba(67,5,24,.72);
}
.quote-content { position: relative; z-index: 1; }
.quote-mark { font-family: Georgia,serif; color: var(--gold-light); font-size: 6rem; height: 80px; }
.quote-content h2 { font-size: clamp(2.8rem, 5vw, 5rem); }
.quote-content p { color: rgba(255,255,255,.82); }

/* PROCESS */
.steps {
  max-width: 900px;
  margin: 45px auto 0;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  border-top: 1px solid var(--line);
}
.step { padding: 30px 25px; text-align: left; border-right: 1px solid var(--line); }
.step:last-child { border-right: 0; }
.step > span { color: var(--gold); font-weight: 700; font-size: .75rem; }
.step h3 { color: var(--burgundy); font-size: 1.5rem; margin-top: 12px; }
.step p { font-size: .82rem; }

/* CONTACT */
.contact { background: var(--cream); }
.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 75px;
  align-items: start;
}
.contact-copy h2 { color: var(--burgundy); }
.contact-details { margin-top: 35px; display: grid; gap: 14px; }
.contact-details a, .contact-details div {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--burgundy);
  font-weight: 600;
  font-size: .85rem;
}
.contact-details a:hover { color: var(--gold); }
.contact-form {
  background: var(--ivory);
  padding: 38px;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--gold);
}
.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--burgundy);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
input, select, textarea {
  width: 100%;
  border: 1px solid #ded6d2;
  background: white;
  padding: 13px 14px;
  border-radius: 2px;
  outline: 0;
  color: var(--ink);
  font-size: .85rem;
  text-transform: none;
  letter-spacing: normal;
}
input:focus, select:focus, textarea:focus { border-color: var(--gold); }
textarea { resize: vertical; }
.form-note { font-size: .68rem; margin: 10px 0 0; text-align: center; }

/* FOOTER */
.footer { background: #2b0713; color: white; padding-top: 55px; }
.footer-top {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  align-items: center;
  gap: 25px;
  padding-bottom: 40px;
}
.footer-logo { width: 92px; }
.footer h3 { margin: 0 0 5px; color: white; font-size: 1.6rem; }
.footer p { color: rgba(255,255,255,.62); font-size: .78rem; }
.footer-links { display: flex; gap: 20px; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }
.footer-links a:hover { color: var(--gold-light); }
.copyright {
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.45);
  font-size: .65rem;
  text-align: center;
}

/* MOBILE */
@media (max-width: 850px) {
  .container { width: min(100% - 28px, 650px); }
  .nav-wrap { min-height: 70px; }
  .brand img { width: 46px; height: 46px; }
  .brand-text strong { font-size: 1.25rem; }
  .menu-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: var(--ivory);
    padding: 10px 20px 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    box-shadow: 0 20px 35px rgba(0,0,0,.1);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 5px; }
  .main-nav a::after { bottom: 7px; }
  .hero { min-height: 720px; }
  .hero-content { padding-top: 90px; margin-left: auto; margin-right: auto; }
  .hero h1 { font-size: clamp(3.5rem, 14vw, 5.5rem); }
  .two-column, .contact-grid { grid-template-columns: 1fr; gap: 45px; }
  .image-frame img { height: 430px; }
  .service-grid, .steps { grid-template-columns: 1fr; }
  .service-card.featured { transform: none; }
  .step { border-right: 0; border-bottom: 1px solid var(--line); }
  .step:last-child { border-bottom: 0; }
  .footer-top { grid-template-columns: 80px 1fr; }
  .footer-links { grid-column: 1 / -1; flex-wrap: wrap; }
}

@media (max-width: 520px) {
  .section { padding: 75px 0; }
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .hero-buttons .btn { width: 100%; }
  .values, .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 25px 18px; }
  .quote-banner { min-height: 430px; background-attachment: scroll; }
}

/* WHATSAPP */
.whatsapp-submit {
  width: 100%;
  min-height: 52px;
  margin-top: 12px;
  border: 1px solid #2f9e57;
  border-radius: 999px;
  background: white;
  color: #237b43;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: .25s ease;
}
.whatsapp-submit:hover {
  background: #f1fff5;
  transform: translateY(-2px);
}
.whatsapp-icon {
  width: 25px;
  height: 25px;
  display: inline-flex;
  flex: 0 0 25px;
}
.whatsapp-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  background: #25d366;
  box-shadow: 0 12px 30px rgba(0,0,0,.22);
  transition: .25s ease;
}
.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.04);
}
.whatsapp-float .whatsapp-icon {
  width: 32px;
  height: 32px;
  flex-basis: 32px;
}

/* PROFILE DIRECTORY */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.profiles-page, .profile-page { padding-top: 82px; min-height: 60vh; }
.directory-hero {
  min-height: 400px;
  display: grid;
  place-items: center;
  color: white;
  text-align: center;
  background:
    linear-gradient(115deg, rgba(58, 4, 22, .91), rgba(112, 12, 44, .71)),
    url("https://images.unsplash.com/photo-1522673607200-164d1b6ce486?auto=format&fit=crop&w=2000&q=90") center/cover;
}
.directory-hero h1 { font-size: clamp(3.2rem, 7vw, 6rem); margin-bottom: 16px; }
.directory-hero h1 span { color: var(--gold-light); }
.directory-hero p { max-width: 650px; color: rgba(255,255,255,.82); margin: auto; }
.directory { min-height: 520px; }
.directory-toolbar {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 14px;
  padding: 18px;
  background: var(--cream);
  border: 1px solid var(--line);
  align-items: end;
}
.directory-toolbar label { display: grid; gap: 5px; color: var(--burgundy); font-size: .65rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.directory-toolbar input, .directory-toolbar select { min-height: 48px; }
.search-field { position: relative; }
.search-field::before { content: "⌕"; position: absolute; z-index: 1; left: 14px; bottom: 10px; color: var(--gold); font-size: 1.3rem; }
.search-field input { padding-left: 40px; }
.directory-count { margin: 24px 0 18px; color: var(--burgundy); font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.profiles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.profile-card { background: white; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(65, 18, 29, .06); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.profile-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.profile-image { position: relative; display: block; height: 330px; background: #f0e6e2; overflow: hidden; }
.profile-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.profile-card:hover .profile-image img { transform: scale(1.04); }
.profile-placeholder, .detail-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--gold); background: linear-gradient(135deg, #f6e9e3, #fffaf0); font-family: var(--serif); font-size: 6rem; }
.profile-card-body { padding: 22px 22px 24px; }
.profile-card-top, .profile-title-line { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.profile-card h2 { color: var(--burgundy); font-size: 2rem; margin: 0; }
.profile-gender { color: var(--gold); font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.profile-meta, .profile-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0 12px; color: var(--muted); font-size: .72rem; }
.profile-meta span, .profile-facts span { color: var(--gold); }
.profile-headline { min-height: 50px; font-size: .84rem; line-height: 1.65; }
.text-link { display: inline-flex; gap: 7px; align-items: center; color: var(--burgundy); font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.text-link span { color: var(--gold); font-size: 1.1rem; transition: transform .2s; }
.text-link:hover span { transform: translateX(3px); }
.empty-state { grid-column: 1 / -1; padding: 65px 25px; text-align: center; border: 1px dashed rgba(125, 16, 44, .22); background: var(--cream); }
.empty-state > span { display: block; color: var(--gold); font-family: var(--serif); font-size: 3.6rem; line-height: 1; }
.empty-state h2 { color: var(--burgundy); font-size: 2.2rem; margin: 12px 0 8px; }
.empty-state p { max-width: 470px; margin: auto; font-size: .85rem; }

/* PROFILE DETAIL */
.profile-detail { padding: 42px 0 95px; }
.back-link { display: inline-flex; margin-bottom: 28px; color: var(--burgundy); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.back-link:hover { color: var(--gold); }
.profile-detail-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(340px, 1.05fr); gap: clamp(45px, 7vw, 100px); align-items: start; }
.profile-gallery { position: sticky; top: 110px; }
.gallery-main { width: 100%; height: 560px; padding: 0; border: 0; background: #f1e8e3; cursor: zoom-in; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 9px; margin-top: 11px; overflow-x: auto; padding-bottom: 4px; }
.gallery-thumb { width: 65px; height: 65px; padding: 0; flex: 0 0 65px; border: 2px solid transparent; background: none; cursor: pointer; overflow: hidden; }
.gallery-thumb.selected { border-color: var(--gold); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.detail-placeholder { height: 560px; }
.profile-summary { padding-top: 25px; }
.profile-summary h1 { color: var(--burgundy); font-family: var(--serif); font-size: clamp(3.8rem, 6vw, 5.7rem); line-height: .9; margin: 0; }
.profile-summary .profile-facts { margin: 15px 0 26px; font-size: .78rem; }
.profile-tagline { color: var(--burgundy); font-family: var(--serif); font-size: 1.65rem; line-height: 1.3; }
.profile-details { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); margin-top: 28px; }
.detail-item { min-height: 80px; display: grid; align-content: center; gap: 3px; border-bottom: 1px solid var(--line); }
.detail-item:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 20px; }
.detail-item:nth-child(even) { padding-left: 20px; }
.detail-item span, .looking-for > span { color: var(--gold); font-size: .62rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.detail-item strong { color: var(--burgundy); font-family: var(--serif); font-size: 1.25rem; line-height: 1.2; }
.profile-story { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; margin-top: 100px; padding: 55px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.profile-story h2 { color: var(--burgundy); font-size: clamp(2.5rem, 4vw, 3.5rem); }
.profile-story p { white-space: pre-line; }
.profile-story strong { color: var(--burgundy); }
.looking-for { margin-top: 28px; padding: 20px 22px; background: var(--cream); border-left: 3px solid var(--gold); }
.looking-for p { margin: 7px 0 0; }
.profile-enquiry { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: 55px 0 0; }
.profile-enquiry h2 { color: var(--burgundy); font-size: 2.8rem; margin-bottom: 10px; }
.profile-enquiry p { max-width: 600px; font-size: .88rem; }
.not-found { padding: 140px 0; }
.not-found h1 { color: var(--burgundy); font-size: clamp(3.2rem, 7vw, 5rem); }
.not-found p { max-width: 550px; margin: 0 auto 30px; }

/* ADMIN */
.admin-body { background: var(--cream); }
.admin-home-link { color: var(--burgundy); font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.admin-home-link:hover { color: var(--gold); }
.admin-page { padding-top: 82px; min-height: 100vh; }
.admin-intro { color: white; background: linear-gradient(120deg, #4a071c, #871733); }
.admin-intro .container { min-height: 250px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.admin-intro h1 { font-size: clamp(3rem, 6vw, 5.2rem); margin: 0 0 10px; }
.admin-intro p { max-width: 600px; color: rgba(255,255,255,.75); }
.admin-intro-mark { color: var(--gold-light); font-family: var(--serif); font-size: 11rem; line-height: .8; }
.admin-shell { padding: 54px 0 90px; }
.setup-card, .admin-login { max-width: 590px; margin: 0 auto; background: var(--ivory); box-shadow: var(--shadow); border-top: 3px solid var(--gold); }
.setup-card { display: grid; grid-template-columns: 90px 1fr; gap: 25px; padding: 40px; }
.setup-card h2, .admin-login h2 { color: var(--burgundy); font-size: 2.7rem; }
.setup-card p { font-size: .85rem; }
.setup-icon { color: var(--gold); font-family: var(--serif); font-size: 4rem; text-align: center; }
.admin-login { padding: 43px; }
.admin-login > p { font-size: .85rem; }
.admin-login form { margin-top: 28px; }
.admin-login label, .profile-form label { display: grid; gap: 6px; margin-bottom: 17px; color: var(--burgundy); font-size: .65rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.admin-login input, .profile-form input, .profile-form textarea, .profile-form select { min-height: 48px; }
.admin-login input, .profile-form input, .profile-form textarea { text-transform: none; }
.form-status { min-height: 1.4em; margin: 12px 0 0; font-size: .75rem; color: var(--muted); }
.form-status.error { color: #a41435; }
.form-status.success { color: #157646; }
.admin-session { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; margin-bottom: 28px; background: #fff; border: 1px solid var(--line); }
.session-label { display: block; color: var(--gold); font-size: .6rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.admin-session strong { color: var(--burgundy); font-size: .82rem; }
.text-button { padding: 0; border: 0; color: var(--burgundy); background: none; cursor: pointer; font-size: .66rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.text-button:hover { color: var(--gold); }
.text-button.danger { color: #9d1635; }
.admin-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 30px; align-items: start; }
.admin-form-wrap, .admin-list-wrap { background: var(--ivory); border: 1px solid var(--line); }
.admin-form-heading, .admin-list-heading { display: flex; justify-content: space-between; align-items: start; gap: 15px; padding: 32px 34px 22px; border-bottom: 1px solid var(--line); }
.admin-form-heading h2, .admin-list-heading h2 { color: var(--burgundy); font-size: 2.5rem; margin: 0; }
.profile-form { padding: 30px 34px 36px; }
.form-grid { display: grid; gap: 15px; }
.form-grid.two { grid-template-columns: 1fr 1fr; }
.form-grid.three { grid-template-columns: repeat(3, 1fr); }
.profile-form small { color: var(--muted); font-size: .61rem; font-weight: 500; letter-spacing: 0; text-transform: none; }
.photo-fieldset { margin: 8px 0 21px; padding: 18px; border: 1px solid var(--line); }
.photo-fieldset legend { padding: 0 7px; color: var(--burgundy); font-size: .65rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.photo-fieldset p { margin: 0 0 13px; font-size: .75rem; line-height: 1.55; }
.photo-fieldset input[type="file"] { min-height: auto; padding: 8px 0; border: 0; background: none; font-size: .76rem; }
.upload-note { margin-top: 4px; color: var(--gold); font-size: .68rem; font-weight: 600; }
.photo-preview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 15px; }
.photo-tile { position: relative; margin: 0; aspect-ratio: 1; overflow: hidden; background: #f0e6e2; }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; }
.photo-tile figcaption { position: absolute; bottom: 0; left: 0; right: 0; padding: 4px 6px; color: white; background: rgba(43, 7, 19, .75); font-size: .54rem; text-align: center; }
.remove-photo { position: absolute; top: 5px; right: 5px; width: 25px; height: 25px; border: 0; border-radius: 50%; color: var(--burgundy); background: white; cursor: pointer; font-size: 1.2rem; line-height: 1; }
.publish-toggle { display: flex !important; grid-template-columns: 20px 1fr; align-items: start; gap: 10px; padding: 14px 15px; background: var(--cream); }
.publish-toggle input { width: 17px; min-height: 17px; margin-top: 3px; accent-color: var(--burgundy); }
.publish-toggle strong { display: block; color: var(--burgundy); font-size: .72rem; }
.publish-toggle small { display: block; margin-top: 2px; }
.profile-form button[type="submit"] { margin-top: 20px; }
.count-pill { min-width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: var(--burgundy); background: #f9e8b5; font-size: .7rem; font-weight: 700; }
.admin-profiles { padding: 18px; }
.admin-profile-card { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.admin-profile-card:last-child { border-bottom: 0; }
.admin-profile-image { width: 72px; height: 78px; display: grid; place-items: center; overflow: hidden; color: var(--gold); background: #f4e9e5; font-family: var(--serif); font-size: 2rem; }
.admin-profile-image img { width: 100%; height: 100%; object-fit: cover; }
.admin-profile-copy { min-width: 0; }
.admin-profile-copy > div:first-child { display: flex; justify-content: space-between; gap: 10px; }
.admin-profile-copy h3 { overflow: hidden; color: var(--burgundy); font-size: 1.35rem; line-height: 1; margin: 0; text-overflow: ellipsis; white-space: nowrap; }
.admin-profile-copy p { margin: 5px 0 7px; font-size: .65rem; }
.status-badge { display: inline-block; padding: 2px 6px; font-size: .55rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.status-badge.published { color: #157646; background: #e7f6eb; }
.status-badge.draft { color: #896213; background: #fff4d9; }
.admin-card-actions { display: flex; gap: 15px; }
.admin-empty { padding: 45px 18px; color: var(--muted); text-align: center; font-size: .8rem; }
.admin-empty span { display: block; color: var(--gold); font-family: var(--serif); font-size: 3rem; }

@media (max-width: 850px) {
  .profiles-page, .profile-page, .admin-page { padding-top: 70px; }
  .directory-toolbar, .profiles-grid { grid-template-columns: 1fr 1fr; }
  .directory-toolbar .search-field { grid-column: 1 / -1; }
  .profile-detail-grid, .profile-story, .admin-layout { grid-template-columns: 1fr; gap: 42px; }
  .profile-gallery { position: static; }
  .profile-story { margin-top: 65px; }
  .admin-list-wrap { order: -1; }
  .admin-intro .container { min-height: 215px; }
}

@media (max-width: 560px) {
  .directory-hero { min-height: 350px; }
  .directory-toolbar, .profiles-grid, .form-grid.two, .form-grid.three { grid-template-columns: 1fr; }
  .profile-image { height: 370px; }
  .gallery-main, .detail-placeholder { height: 430px; }
  .profile-details { grid-template-columns: 1fr; }
  .detail-item:nth-child(odd) { border-right: 0; padding-right: 0; }
  .detail-item:nth-child(even) { padding-left: 0; }
  .profile-enquiry, .admin-session { align-items: start; flex-direction: column; }
  .profile-enquiry .btn { width: 100%; }
  .admin-intro .container { min-height: 190px; }
  .admin-intro-mark { display: none; }
  .setup-card { grid-template-columns: 1fr; padding: 30px 22px; }
  .setup-icon { text-align: left; }
  .admin-login, .profile-form { padding: 28px 20px; }
  .admin-form-heading, .admin-list-heading { padding: 28px 20px 20px; }
  .photo-preview { grid-template-columns: 1fr 1fr; }
}
