﻿/* =====================================================================
   humanist-officiants.com  -- custom styles (layered on Bootstrap 5)
   ===================================================================== */

:root {
	--hu-teal:      #1f6f78;   /* primary */
	--hu-teal-dark: #14535a;
	--hu-gold:      #e0a53d;   /* warm accent */
	--hu-gold-dark: #c98a20;
	--hu-cream:     #fbf7ef;   /* page background warmth */
	--hu-ink:       #23302f;   /* body text */
	--hu-muted:     #5d6b6a;
	--hu-line:      #e7e0d4;
}

body {
	font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
	color: var(--hu-ink);
	background: var(--hu-cream);
}

h1, h2, h3, h4, .display-title {
	font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
	letter-spacing: -0.01em;
}

.text-teal { color: var(--hu-teal) !important; }

/* ---- Buttons ---- */
.btn-primary {
	--bs-btn-bg: var(--hu-teal);
	--bs-btn-border-color: var(--hu-teal);
	--bs-btn-hover-bg: var(--hu-teal-dark);
	--bs-btn-hover-border-color: var(--hu-teal-dark);
	--bs-btn-active-bg: var(--hu-teal-dark);
	--bs-btn-active-border-color: var(--hu-teal-dark);
	--bs-btn-disabled-bg: var(--hu-teal);
	--bs-btn-disabled-border-color: var(--hu-teal);
	font-weight: 600;
}
.btn-gold {
	--bs-btn-color: #3a2c05;
	--bs-btn-bg: var(--hu-gold);
	--bs-btn-border-color: var(--hu-gold);
	--bs-btn-hover-color: #3a2c05;
	--bs-btn-hover-bg: var(--hu-gold-dark);
	--bs-btn-hover-border-color: var(--hu-gold-dark);
	font-weight: 600;
}
.btn-outline-teal {
	--bs-btn-color: var(--hu-teal);
	--bs-btn-border-color: var(--hu-teal);
	--bs-btn-hover-bg: var(--hu-teal);
	--bs-btn-hover-border-color: var(--hu-teal);
	--bs-btn-hover-color: #fff;
	font-weight: 600;
}

/* ---- Navbar / brand ---- */
.site-nav {
	border-bottom: 1px solid var(--hu-line);
	box-shadow: 0 1px 12px rgba(20,50,50,.04);
}
.brand-mark {
	display: inline-flex; align-items: center; justify-content: center;
	width: 34px; height: 34px; border-radius: 10px;
	background: var(--hu-teal); color: #fff; margin-right: .55rem;
	font-size: 1.05rem;
}
.brand-text {
	font-family: 'Fraunces', serif; font-weight: 600;
	font-size: 1.2rem; color: var(--hu-ink);
}
.brand-dot { color: var(--hu-gold); }
.navbar .nav-link { font-weight: 500; color: var(--hu-ink); }
.navbar .nav-link.active,
.navbar .nav-link:hover { color: var(--hu-teal); }
.btn-find.active { color: #fff; }

/* ---- Hero ---- */
.hero {
	position: relative;
	background:
		radial-gradient(1100px 500px at 85% -10%, rgba(224,165,61,.18), transparent 60%),
		linear-gradient(180deg, #ffffff 0%, var(--hu-cream) 100%);
	padding: 4.5rem 0 3.5rem;
	overflow: hidden;
}
.hero .eyebrow {
	display: inline-flex; align-items: center; gap: .5rem;
	background: rgba(31,111,120,.08); color: var(--hu-teal);
	border-radius: 999px; padding: .35rem .9rem;
	font-weight: 600; font-size: .82rem; letter-spacing: .02em;
	text-transform: uppercase;
}
.hero h1 {
	font-size: clamp(2.1rem, 5vw, 3.5rem);
	line-height: 1.08; margin: 1rem 0 1rem;
}
.hero .lead { color: var(--hu-muted); font-size: 1.15rem; max-width: 34rem; }
.hero-figure {
	background: linear-gradient(160deg, var(--hu-teal), var(--hu-teal-dark));
	border-radius: 24px; min-height: 340px;
	display: flex; align-items: center; justify-content: center;
	color: #fff; box-shadow: 0 24px 60px rgba(20,83,90,.25);
	position: relative;
	overflow: hidden;
}
.hero-figure .bi { font-size: 6rem; opacity: .9; }

/* ---- Hero image slider (CSS-only crossfade) ---- */
.hero-slider {
	position: absolute; inset: 0;
	border-radius: 24px; overflow: hidden;
}
.hero-slider .hero-slide {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	object-fit: cover;
	opacity: 0;
	animation: heroSlideFade 30s infinite;
}
/* 6 slides, 5s apart — delays must span one full 30s cycle */
.hero-slider .hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slider .hero-slide:nth-child(2) { animation-delay: 5s; }
.hero-slider .hero-slide:nth-child(3) { animation-delay: 10s; }
.hero-slider .hero-slide:nth-child(4) { animation-delay: 15s; }
.hero-slider .hero-slide:nth-child(5) { animation-delay: 20s; }
.hero-slider .hero-slide:nth-child(6) { animation-delay: 25s; }

@keyframes heroSlideFade {
	0%     { opacity: 0; }
	5%     { opacity: 1; }   /* fade in (1.5s) */
	16.67% { opacity: 1; }   /* hold for its 5s slot */
	21.67% { opacity: 0; }   /* fade out as the next slide fades in */
	100%   { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.hero-slider .hero-slide { animation: none; }
	.hero-slider .hero-slide:nth-child(1) { opacity: 1; }
}
.hero-figure .figure-caption-card {
	position: absolute; bottom: -22px; left: 50%; transform: translateX(-50%);
	background: #fff; color: var(--hu-ink); border-radius: 14px;
	padding: .8rem 1.1rem; box-shadow: 0 12px 30px rgba(20,50,50,.15);
	display: flex; align-items: center; gap: .6rem; white-space: nowrap;
	font-weight: 600; font-size: .95rem;
}
.hero-figure .figure-caption-card .bi { font-size: 1.2rem; opacity: 1; }

/* ---- Section framing ---- */
.section { padding: 3.75rem 0; }
.section-eyebrow {
	color: var(--hu-gold-dark); font-weight: 600; letter-spacing: .04em;
	text-transform: uppercase; font-size: .82rem;
}
.section-title { font-size: clamp(1.6rem, 3.5vw, 2.35rem); margin: .4rem 0 .75rem; }
.section-sub { color: var(--hu-muted); max-width: 44rem; }

/* ---- Value cards ---- */
.value-card {
	background: #fff; border: 1px solid var(--hu-line); border-radius: 18px;
	padding: 1.6rem; height: 100%;
	transition: transform .15s ease, box-shadow .15s ease;
}
.value-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(20,50,50,.08); }
.value-icon {
	width: 48px; height: 48px; border-radius: 12px; display: inline-flex;
	align-items: center; justify-content: center; font-size: 1.4rem;
	background: rgba(31,111,120,.1); color: var(--hu-teal); margin-bottom: 1rem;
}

/* ---- Ceremony tiles (driven by the CeremonyType table) ---- */
.ceremony-tile {
	display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
	text-align: center; width: 100%; height: 100%;
	background: #fff; border: 1px solid var(--hu-line); border-radius: 18px;
	padding: 1.5rem 1rem 1.35rem;
	text-decoration: none; color: var(--hu-ink);
	transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.ceremony-tile:hover {
	transform: translateY(-4px); box-shadow: 0 16px 40px rgba(20,50,50,.1);
	border-color: var(--hu-teal); color: var(--hu-teal);
}
.ceremony-tile .value-icon { margin-bottom: .8rem; }
.ceremony-tile h3 { font-family: 'Inter', system-ui, sans-serif; font-weight: 600; line-height: 1.35; }

/* ---- Search panel ---- */
.search-section { background: var(--hu-teal); background-image: linear-gradient(160deg, var(--hu-teal), var(--hu-teal-dark)); }
.search-section .section-title, .search-section .section-sub { color: #fff; }
.search-section .section-eyebrow { color: #ffe9c2; }
.search-card {
	background: #fff; border-radius: 22px; padding: 1.75rem;
	box-shadow: 0 24px 60px rgba(10,40,40,.28);
}
.search-card label { font-weight: 600; font-size: .9rem; color: var(--hu-ink); }
.search-card .form-control, .search-card .form-select { border-radius: 12px; padding: .7rem .85rem; }
.search-card .form-control:focus, .search-card .form-select:focus {
	border-color: var(--hu-teal); box-shadow: 0 0 0 .2rem rgba(31,111,120,.15);
}
.field-hint { color: var(--hu-muted); font-size: .8rem; }

/* ---- How it works ---- */
.step-num {
	width: 40px; height: 40px; border-radius: 50%; background: var(--hu-gold);
	color: #3a2c05; font-weight: 700; display: inline-flex;
	align-items: center; justify-content: center; margin-bottom: .75rem;
}

/* ---- Officiant result cards ---- */
.officiant-card {
	background: #fff; border: 1px solid var(--hu-line); border-radius: 18px;
	overflow: hidden; height: 100%; display: flex; flex-direction: column;
	transition: transform .15s ease, box-shadow .15s ease;
}
.officiant-card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(20,50,50,.1); }
.officiant-photo {
	width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #eef1ef;
}
.officiant-photo-placeholder {
	width: 100%; aspect-ratio: 1 / 1; display: flex; align-items: center;
	justify-content: center; font-family: 'Fraunces', serif; font-weight: 600;
	font-size: 2.6rem; color: #fff;
	background: linear-gradient(150deg, var(--hu-teal), var(--hu-teal-dark));
}
.officiant-body { padding: 1.15rem 1.15rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.officiant-name { font-size: 1.2rem; margin-bottom: .15rem; }
.officiant-loc { color: var(--hu-muted); font-size: .9rem; }
.distance-badge {
	background: rgba(31,111,120,.1); color: var(--hu-teal);
	border-radius: 999px; padding: .2rem .6rem; font-size: .78rem; font-weight: 600;
}
.pill {
	display: inline-block; background: var(--hu-cream); border: 1px solid var(--hu-line);
	color: var(--hu-muted); border-radius: 999px; padding: .15rem .6rem;
	font-size: .76rem; margin: 0 .25rem .35rem 0;
}
.pill.ceremony { background: rgba(224,165,61,.12); border-color: rgba(224,165,61,.35); color: var(--hu-gold-dark); }
.sabbatical-note { font-size: .8rem; color: var(--hu-gold-dark); }

/* ---- Profile page ---- */
.profile-hero { background: linear-gradient(160deg, var(--hu-teal), var(--hu-teal-dark)); color: #fff; padding: 2.75rem 0; }
.profile-photo, .profile-photo-placeholder {
	width: 160px; height: 160px; border-radius: 20px; object-fit: cover;
	border: 4px solid rgba(255,255,255,.35); background: #fff;
}
.profile-photo-placeholder {
	display: flex; align-items: center; justify-content: center;
	font-family: 'Fraunces', serif; font-weight: 600; font-size: 3rem;
	color: var(--hu-teal);
}
.bio-content { line-height: 1.75; font-size: 1.05rem; }
.bio-content p { margin-bottom: 1rem; }
.contact-card { background: #fff; border: 1px solid var(--hu-line); border-radius: 18px; padding: 1.4rem; }
.contact-card a { color: var(--hu-teal); text-decoration: none; word-break: break-word; }
.contact-card a:hover { text-decoration: underline; }

/* ---- Footer ---- */
.site-footer { background: #16211f; color: #d8ded9; padding: 3rem 0 1.75rem; margin-top: 2rem; }
.site-footer .brand-text { color: #fff; }
.footer-blurb { color: #a9b4b0; max-width: 26rem; }
.footer-head { color: #fff; font-weight: 600; margin-bottom: .8rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { color: #b9c2bd; text-decoration: none; }
.footer-links a:hover { color: var(--hu-gold); }
.footer-rule { border-color: rgba(255,255,255,.12); margin: 2rem 0 1.25rem; }

/* ---- Officiant portal ---- */
.portal-nav .nav-link { color: var(--hu-teal); font-weight: 600; }
.portal-nav .nav-link.active { background: var(--hu-teal); color: #fff; }
.portal-nav .nav-link:hover:not(.active) { background: rgba(31,111,120,.08); }

/* CKEditor (biography field) */
.ck-editor__editable_inline { min-height: 220px; }
.ck.ck-editor { --ck-color-focus-border: var(--hu-teal); }

/* ---- Utility ---- */
.anchor-offset { scroll-margin-top: 90px; }
