/*
Theme Name: Gathering Place Template
Theme URI: https://internetoutreachexperts.com/templates/gathering-place/
Author: Internet Outreach Experts
Author URI: https://internetoutreachexperts.com
Description: Coffeehouse-style church template — amber + charcoal, industrial-warm atmospheric. Built for coffeehouse-style churches, young-adult plants, and community gathering ministries with a strong place-based identity.
Version: 1.0.0
License: Proprietary — IOE customer use only
Text Domain: cozycoffee-template
*/

/* ========== DESIGN TOKENS ========== */
:root {
	--bg:        hsl(40 25% 92%);   /* warm cream paper */
	--bg-soft:   hsl(40 30% 88%);   /* very pale tan */
	--bg-deep:   hsl(40 20% 82%);
	--ink:       hsl(25 20% 15%);   /* dark espresso */
	--ink-soft:  hsl(25 18% 28%);
	--ink-muted: hsl(25 15% 45%);
	--rule:      hsl(35 18% 78%);
	--amber:     hsl(38 70% 45%);   /* primary */
	--amber-bright: hsl(38 80% 55%);
	--amber-glow:hsla(38 70% 55% / 0.18);
	--clay:      hsl(25 75% 55%);   /* accent / warm orange */
	--clay-deep: hsl(20 70% 42%);
	--charcoal:  hsl(25 12% 8%);    /* dark mode bg */
	--charcoal-soft: hsl(25 15% 14%);
	--cream:     hsl(40 30% 95%);

	--font-display: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
	--font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	--font-mono:    'JetBrains Mono', ui-monospace, monospace;

	--page-max: 1200px;
	--gutter:   clamp(1.25rem, 4vw, 3rem);
	--ease:     cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.65;
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='2' seed='5'/><feColorMatrix values='0 0 0 0 0.20  0 0 0 0 0.15  0 0 0 0 0.10  0 0 0 0.025 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
	background-attachment: fixed;
}
img, svg { max-width: 100%; height: auto; display: block; }
button { font: inherit; border: 0; background: none; cursor: pointer; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }
a { color: var(--clay-deep); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--ink); }
::selection { background: var(--amber-bright); color: var(--ink); }

/* ========== TYPE ========== */
h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -0.015em;
	color: var(--ink);
	margin: 0 0 .4em;
}
h1 { font-size: clamp(2.6rem, 1.8rem + 4vw, 5.5rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 1.4rem + 2.5vw, 3.4rem); }
h3 { font-size: clamp(1.3rem, 1.1rem + 0.6vw, 1.8rem); }
h4 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.005em; }
h1 em, h2 em, h3 em { font-style: italic; font-weight: 400; color: var(--clay-deep); }

p { margin: 0 0 1.1em; max-width: 64ch; }
p.lead { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); line-height: 1.55; color: var(--ink-soft); max-width: 50ch; }

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: .55rem;
	font-family: var(--font-mono);
	font-size: 0.78rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--clay-deep);
	font-weight: 500;
}
.eyebrow::before {
	content: '';
	width: 24px;
	height: 1.5px;
	background: var(--clay);
}

/* ========== LAYOUT ========== */
.wrap { max-width: var(--page-max); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 720px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(3.5rem, 2.5rem + 4vw, 6.5rem) 0; }
.section-tight { padding: clamp(2rem, 1.5rem + 2.5vw, 4rem) 0; }
.section--cream { background: var(--bg-soft); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section--dark { background: var(--charcoal); color: var(--cream); }
.section--dark h2, .section--dark h3, .section--dark h4 { color: var(--cream); }
.section--dark h2 em { color: var(--amber-bright); }
.section--dark p { color: hsl(40 15% 80%); }
.section--dark .eyebrow { color: var(--amber-bright); }
.section--dark .eyebrow::before { background: var(--amber); }

/* ========== BUTTONS ========== */
.btn {
	display: inline-flex;
	align-items: center;
	gap: .5em;
	padding: 0.95em 1.6em;
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 0.98rem;
	background: var(--amber);
	color: var(--ink);
	border: 0;
	border-radius: 6px;
	text-decoration: none;
	transition: background .2s var(--ease), transform .15s var(--ease), box-shadow .2s;
	cursor: pointer;
}
.btn:hover { background: var(--amber-bright); color: var(--ink); transform: translateY(-1px); box-shadow: 0 8px 20px -8px hsla(38 70% 45% / 0.5); }
.btn .caret { display: inline-block; transition: transform .2s var(--ease); }
.btn:hover .caret { transform: translateX(3px); }

.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.btn-on-dark { background: var(--amber); color: var(--charcoal); }
.btn-on-dark:hover { background: var(--amber-bright); color: var(--charcoal); }
.btn-on-dark.btn-ghost { background: transparent; color: var(--cream); border: 1.5px solid var(--cream); }
.btn-on-dark.btn-ghost:hover { background: var(--cream); color: var(--charcoal); }

.btn-lg { padding: 1.1em 1.9em; font-size: 1rem; }
.btn-sm { padding: .7em 1.2em; font-size: 0.85rem; }

/* ========== HEADER ========== */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: hsla(40 25% 92% / 0.85);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--rule);
}
.header-inner {
	max-width: var(--page-max);
	margin: 0 auto;
	padding: 1rem var(--gutter);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
}
.brand {
	display: inline-flex;
	align-items: center;
	gap: .6rem;
	color: var(--ink);
	text-decoration: none;
	font-family: var(--font-display);
	font-size: 1.35rem;
	font-weight: 700;
	letter-spacing: -0.01em;
}
.brand-mark {
	width: 32px; height: 32px;
	background: var(--amber);
	border-radius: 50%;
	position: relative;
}
.brand-mark::after {
	content: '';
	position: absolute;
	left: 50%; top: 50%;
	width: 14px; height: 14px;
	background: var(--charcoal);
	border-radius: 50%;
	transform: translate(-50%, -50%);
}
.primary-menu { display: flex; gap: .25rem; align-items: center; }
.primary-menu a {
	display: inline-block;
	padding: .55rem 1rem;
	font-weight: 500;
	font-size: 0.95rem;
	color: var(--ink-soft);
	border-radius: 4px;
	transition: color .15s var(--ease), background .15s var(--ease);
}
.primary-menu a:hover, .primary-menu a.current { color: var(--ink); background: var(--bg-soft); }

.nav-cta { margin-left: .5rem; }
.menu-toggle {
	display: none;
	width: 40px; height: 40px;
	border: 1px solid var(--rule);
	border-radius: 6px;
	color: var(--ink);
	align-items: center; justify-content: center;
}
@media (max-width: 880px) {
	.header-inner { flex-wrap: wrap; }
	.menu-toggle { display: inline-flex; }
	.primary-menu {
		order: 3; width: 100%;
		flex-direction: column; align-items: stretch;
		padding-top: 1rem;
		margin-top: 1rem;
		border-top: 1px solid var(--rule);
		display: none;
	}
	.primary-menu.is-open { display: flex; }
	.primary-menu a { padding: .85rem 0; border-bottom: 1px solid var(--rule); border-radius: 0; }
	.nav-cta { display: none; }
}

/* ========== HERO ========== */
.hero {
	position: relative;
	padding: clamp(4rem, 3rem + 6vw, 9rem) 0 clamp(3rem, 2rem + 4vw, 6rem);
	overflow: hidden;
	background: var(--charcoal);
	color: var(--cream);
}
.hero::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 0;
	background-image:
		linear-gradient(115deg, hsla(25 12% 8% / 0.95) 0%, hsla(25 12% 8% / 0.85) 45%, hsla(25 12% 8% / 0.55) 100%),
		var(--hero-photo, none);
	background-size: cover;
	background-position: center;
}
.hero::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 0;
	background:
		radial-gradient(ellipse 700px 400px at 80% 30%, var(--amber-glow), transparent 55%);
	pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: var(--page-max); margin: 0 auto; padding: 0 var(--gutter); }
.hero h1 { color: var(--cream); margin: 1rem 0 1.4rem; max-width: 18ch; text-shadow: 0 2px 24px hsla(25 12% 8% / 0.6); }
.hero h1 em { color: var(--amber-bright); }
.hero-lead { color: hsl(40 18% 88%); max-width: 46ch; text-shadow: 0 1px 12px hsla(25 12% 8% / 0.7); }
.hero .eyebrow { color: var(--amber-bright); }
.hero .eyebrow::before { background: var(--amber); }
.hero-pill {
	display: inline-block;
	padding: .45rem 1rem;
	background: hsla(38 70% 55% / 0.15);
	border: 1px solid hsla(38 70% 55% / 0.4);
	border-radius: 100px;
	font-family: var(--font-mono);
	font-size: 0.78rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--amber-bright);
	margin-bottom: 1.5rem;
}
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 2rem; }
.hero-meta {
	display: grid;
	gap: 1rem;
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid hsla(40 15% 80% / 0.2);
	color: hsl(40 15% 75%);
	font-style: italic;
}

/* ========== FEATURE CARDS ========== */
.feature-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
	margin-top: 3rem;
}
@media (min-width: 720px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }

.feature-card {
	background: var(--cream);
	border: 1px solid var(--rule);
	border-radius: 12px;
	padding: 1.75rem 1.5rem;
	transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
	display: flex;
	flex-direction: column;
	gap: 1rem;
}
.feature-card:hover { border-color: var(--amber); transform: translateY(-3px); box-shadow: 0 12px 28px -16px hsla(25 30% 30% / 0.25); }
.feature-card-icon {
	width: 56px; height: 56px;
	background: var(--amber-glow);
	color: var(--amber);
	border-radius: 50%;
	display: grid;
	place-items: center;
}
.feature-card-image {
	aspect-ratio: 16/10;
	background: var(--bg-deep) center / cover;
	border-radius: 8px;
	margin: -1.75rem -1.5rem 0;
	border-bottom: 1px solid var(--rule);
}
.feature-card h3 { margin: 0; }
.feature-card p { margin: 0; color: var(--ink-soft); font-size: 0.97rem; }
.feature-card-link {
	margin-top: auto;
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--clay-deep);
	display: inline-flex;
	align-items: center;
	gap: .35rem;
}
.feature-card-link::after { content: '→'; transition: transform .2s var(--ease); }
.feature-card:hover .feature-card-link::after { transform: translateX(3px); }

/* ========== ABOUT GRID ========== */
.about-stats {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: 1fr;
	margin-top: 3rem;
}
@media (min-width: 720px) { .about-stats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .about-stats { grid-template-columns: repeat(4, 1fr); } }
.about-stat {
	padding: 1.5rem;
	background: var(--cream);
	border: 1px solid var(--rule);
	border-radius: 10px;
	text-align: center;
}
.about-stat h4 { color: var(--amber); font-size: 1.05rem; margin-bottom: .35rem; font-family: var(--font-display); }
.about-stat p { font-size: 0.9rem; color: var(--ink-soft); margin: 0; }

/* ========== TIMELINE ========== */
.timeline {
	display: grid;
	gap: 1rem;
	max-width: 720px;
	margin: 3rem auto 0;
}
.timeline-item {
	display: grid;
	grid-template-columns: 5rem 1fr;
	gap: 1.5rem;
	padding: 1rem 1.25rem;
	background: var(--cream);
	border: 1px solid var(--rule);
	border-radius: 8px;
	align-items: center;
}
.timeline-year {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.6rem;
	color: var(--amber);
	line-height: 1;
}
.timeline-text { color: var(--ink-soft); font-size: 1rem; }

/* ========== VISIT INFO ========== */
.visit-grid {
	display: grid;
	gap: 1.5rem;
	margin-top: 3rem;
	grid-template-columns: 1fr;
}
@media (min-width: 820px) { .visit-grid { grid-template-columns: repeat(3, 1fr); } }
.visit-card {
	background: var(--cream);
	border: 1px solid var(--rule);
	border-radius: 12px;
	padding: 1.75rem;
}
.visit-card h3 { margin: 0 0 1rem; font-size: 1.3rem; }
.visit-card .row { display: flex; justify-content: space-between; padding: .55rem 0; border-bottom: 1px solid var(--rule); font-size: 0.95rem; }
.visit-card .row:last-child { border-bottom: 0; }
.visit-card .row span:first-child { color: var(--ink); font-weight: 500; }
.visit-card .row span:last-child { color: var(--ink-muted); text-align: right; }

/* ========== PHOTO BAND ========== */
.photo-band {
	width: 100%;
	margin: 0;
	background: var(--charcoal);
	overflow: hidden;
}
.photo-band img {
	width: 100%;
	display: block;
	max-height: clamp(280px, 32vw, 540px);
	object-fit: cover;
	object-position: center;
}

/* ========== PAGE BANNER ========== */
.page-banner {
	padding: clamp(3.5rem, 2.5rem + 3vw, 6rem) 0 clamp(2rem, 1.5rem + 1.5vw, 3rem);
	background: var(--bg-soft);
	border-bottom: 1px solid var(--rule);
}
.page-banner-inner { max-width: var(--page-max); margin: 0 auto; padding: 0 var(--gutter); }
.page-banner h1 { margin: .8rem 0 .8rem; max-width: 20ch; }
.page-banner .lead { max-width: 56ch; }

.prose {
	max-width: 660px;
	margin: 0 auto;
	padding: clamp(2rem, 1.5rem + 2.5vw, 3.5rem) var(--gutter);
	font-size: 1.05rem;
	line-height: 1.75;
	color: var(--ink-soft);
}
.prose p { margin: 0 0 1.2em; max-width: 100%; }
.prose strong { color: var(--ink); }
.prose h2 { margin: 2em 0 .5em; }
.prose h3 { margin: 1.5em 0 .4em; }
.prose ul, .prose ol { padding-left: 1.25em; margin: 1em 0 1.5em; }
.prose ul li::marker { color: var(--amber); }
.prose ul li { margin-bottom: .35em; }

/* ========== CTA BAND ========== */
.cta-band {
	background: var(--charcoal);
	color: var(--cream);
	padding: clamp(3rem, 2rem + 4vw, 5rem) 0;
	text-align: center;
}
.cta-band h2 { color: var(--cream); margin-bottom: 1rem; }
.cta-band h2 em { color: var(--amber-bright); }
.cta-band p { color: hsl(40 15% 80%); max-width: 50ch; margin: 0 auto 2rem; }
.cta-band .hero-actions { justify-content: center; margin-top: 0; }

/* ========== FOOTER ========== */
.site-footer {
	background: var(--charcoal);
	color: hsl(40 15% 70%);
	padding: clamp(3rem, 2rem + 3vw, 5rem) 0 1.5rem;
	border-top: 4px solid var(--amber);
}
.footer-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
	max-width: var(--page-max);
	margin: 0 auto;
	padding: 0 var(--gutter);
}
@media (min-width: 780px) { .footer-grid { grid-template-columns: 1.6fr repeat(3, 1fr); } }
.footer-brand .brand { color: var(--cream); }
.footer-brand p { color: hsl(40 15% 70%); max-width: 36ch; margin-top: 1rem; font-size: 0.95rem; }
.footer-col h5 {
	font-family: var(--font-mono);
	font-size: 0.72rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--amber-bright);
	margin: 0 0 1rem;
	font-weight: 500;
}
.footer-col ul { display: flex; flex-direction: column; gap: .5rem; }
.footer-col a { color: hsl(40 15% 70%); font-size: 0.95rem; }
.footer-col a:hover { color: var(--cream); }
.footer-bottom {
	margin-top: 3rem;
	padding: 1.5rem var(--gutter) 0;
	max-width: var(--page-max);
	margin-left: auto; margin-right: auto;
	border-top: 1px solid hsla(40 15% 70% / 0.15);
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
	font-family: var(--font-mono);
	font-size: 0.78rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: hsl(40 12% 55%);
}

/* ========== MOTION ========== */
@media (prefers-reduced-motion: no-preference) {
	.hero > * > *:nth-child(1) { animation: cc-rise 0.7s var(--ease) both; }
	.hero > * > *:nth-child(2) { animation: cc-rise 0.7s 0.1s var(--ease) both; }
	.hero > * > *:nth-child(3) { animation: cc-rise 0.7s 0.2s var(--ease) both; }
	.hero > * > *:nth-child(4) { animation: cc-rise 0.7s 0.3s var(--ease) both; }
}
@keyframes cc-rise {
	from { opacity: 0; transform: translateY(16px); }
	to   { opacity: 1; transform: none; }
}
