/* =============================================
   THE GATHERING — Styles
   Template 23 · Church
   Palette: Charcoal + Warm Stone + Sand Accent
   Fonts: Inter (display) + Crimson Pro (body)
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Crimson+Pro:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500&display=swap');

/* ---------- Design Tokens ---------- */
:root {
  --tg-charcoal:      #2b2b2b;
  --tg-graphite:      #4a4a4a;
  --tg-gray:          #8c8c8c;
  --tg-silver:        #c8c5c0;
  --tg-border:        #e4e1dc;
  --tg-stone:         #f4f2ef;
  --tg-white:         #ffffff;
  --tg-warm:          #b8a089;
  --tg-warm-deep:     #9c8672;
  --tg-warm-glow:     rgba(184, 160, 137, .1);

  --tg-font-display:  'Inter', -apple-system, sans-serif;
  --tg-font-body:     'Crimson Pro', Georgia, serif;

  --tg-nav-height:    68px;
  --tg-banner-height: 34px;
  --tg-radius:        8px;
  --tg-radius-lg:     14px;
  --tg-shadow:        0 2px 16px rgba(0, 0, 0, .04);
  --tg-shadow-lg:     0 8px 36px rgba(0, 0, 0, .08);
  --tg-transition:    .3s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--tg-font-body);
  color: var(--tg-charcoal);
  background: var(--tg-white);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: var(--tg-font-display);
  line-height: 1.2;
  font-weight: 600;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.tg-container {
  width: 88%;
  max-width: 1120px;
  margin: 0 auto;
}

/* ---------- Demo Banner ---------- */
.tg-demo-banner {
  background: var(--tg-charcoal);
  color: var(--tg-silver);
  text-align: center;
  padding: 8px 16px;
  font-family: var(--tg-font-display);
  font-size: .78rem;
  font-weight: 500;
  height: var(--tg-banner-height);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  letter-spacing: .3px;
}

.tg-demo-banner a {
  color: var(--tg-warm);
  text-decoration: underline;
}

/* ---------- Navigation ---------- */
.tg-nav {
  position: fixed;
  top: var(--tg-banner-height);
  left: 0;
  width: 100%;
  height: var(--tg-nav-height);
  z-index: 960;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--tg-transition);
}

.tg-nav.scrolled {
  border-color: var(--tg-border);
}

.tg-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 88%;
  max-width: 1120px;
  margin: 0 auto;
}

.tg-logo {
  font-family: var(--tg-font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--tg-charcoal);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -.3px;
}

.tg-logo-mark {
  width: 30px;
  height: 30px;
  border: 2px solid var(--tg-charcoal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: 0;
  flex-shrink: 0;
}

.tg-nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.tg-nav-links a {
  font-family: var(--tg-font-display);
  font-size: .82rem;
  font-weight: 500;
  color: var(--tg-gray);
  transition: color var(--tg-transition);
  letter-spacing: .2px;
}

.tg-nav-links a:hover { color: var(--tg-charcoal); }

.tg-nav-cta {
  color: var(--tg-charcoal) !important;
  font-weight: 600 !important;
  border: 1.5px solid var(--tg-charcoal);
  padding: 8px 22px;
  border-radius: 50px;
  transition: all var(--tg-transition) !important;
}

.tg-nav-cta:hover {
  background: var(--tg-charcoal) !important;
  color: var(--tg-white) !important;
}

/* Hamburger */
.tg-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 970;
}

.tg-hamburger span {
  width: 22px;
  height: 1.5px;
  background: var(--tg-charcoal);
  transition: var(--tg-transition);
}

.tg-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 5px); }
.tg-hamburger.active span:nth-child(2) { opacity: 0; }
.tg-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -5px); }

/* Mobile Menu */
.tg-mobile-menu {
  position: fixed;
  top: 0; right: -100%;
  width: 80%; max-width: 320px;
  height: 100vh;
  background: var(--tg-white);
  z-index: 950;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  padding: 48px 36px;
  transition: right var(--tg-transition);
  box-shadow: -4px 0 24px rgba(0, 0, 0, .06);
}

.tg-mobile-menu.open { right: 0; }

.tg-mobile-menu a {
  font-family: var(--tg-font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--tg-charcoal);
}

.tg-mobile-menu a:hover { color: var(--tg-warm-deep); }
.tg-mobile-menu hr { border: none; border-top: 1px solid var(--tg-border); }

.tg-mobile-cta {
  border: 1.5px solid var(--tg-charcoal);
  padding: 14px 28px;
  border-radius: 50px;
  text-align: center;
  font-weight: 600 !important;
}

/* ---------- Hero — Editorial Split ---------- */
.tg-hero {
  padding-top: calc(var(--tg-banner-height) + var(--tg-nav-height));
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--tg-white);
}

.tg-hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 72px;
  align-items: center;
  padding: 60px 0;
}

.tg-hero-image {
  position: relative;
}

.tg-hero-image img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  border-radius: var(--tg-radius-lg);
}

.tg-hero-image-caption {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: var(--tg-white);
  padding: 10px 16px;
  border-radius: 6px;
  font-family: var(--tg-font-display);
  font-size: .72rem;
  font-weight: 500;
  color: var(--tg-gray);
  letter-spacing: .5px;
  box-shadow: var(--tg-shadow);
}

.tg-hero-text { max-width: 460px; }

.tg-hero-label {
  font-family: var(--tg-font-display);
  font-size: .7rem;
  font-weight: 600;
  color: var(--tg-gray);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tg-hero-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--tg-silver);
}

.tg-hero-text h1 {
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  font-weight: 700;
  color: var(--tg-charcoal);
  line-height: 1.08;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.tg-hero-text h1 em {
  font-family: var(--tg-font-body);
  font-style: italic;
  font-weight: 400;
  color: var(--tg-warm-deep);
}

.tg-hero-desc {
  font-size: 1.15rem;
  color: var(--tg-gray);
  line-height: 1.85;
  margin-bottom: 36px;
}

.tg-hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.tg-btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--tg-charcoal);
  color: var(--tg-white);
  font-family: var(--tg-font-display);
  font-size: .85rem;
  font-weight: 600;
  padding: 13px 30px;
  border-radius: 50px;
  transition: all var(--tg-transition);
  letter-spacing: .2px;
}

.tg-btn-dark:hover {
  background: var(--tg-graphite);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .12);
}

.tg-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--tg-charcoal);
  font-family: var(--tg-font-display);
  font-size: .85rem;
  font-weight: 500;
  padding: 13px 30px;
  border-radius: 50px;
  border: 1.5px solid var(--tg-border);
  transition: all var(--tg-transition);
}

.tg-btn-ghost:hover {
  border-color: var(--tg-charcoal);
  transform: translateY(-2px);
}

/* Hero mini-stats */
.tg-hero-meta {
  display: flex;
  gap: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--tg-border);
}

.tg-hero-meta-item h4 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--tg-charcoal);
  letter-spacing: -.5px;
  margin-bottom: 2px;
}

.tg-hero-meta-item p {
  font-family: var(--tg-font-display);
  font-size: .72rem;
  font-weight: 500;
  color: var(--tg-gray);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ---------- Section Defaults ---------- */
.tg-section { padding: 100px 0; }

.tg-section-header {
  text-align: center;
  margin-bottom: 60px;
}

.tg-eyebrow {
  display: inline-block;
  font-family: var(--tg-font-display);
  font-size: .7rem;
  font-weight: 600;
  color: var(--tg-gray);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 12px;
}

.tg-section-header h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: var(--tg-charcoal);
  margin-bottom: 14px;
  letter-spacing: -.5px;
}

.tg-section-header h2 em {
  font-family: var(--tg-font-body);
  font-style: italic;
  font-weight: 400;
  color: var(--tg-warm-deep);
}

.tg-section-header p {
  font-size: 1.05rem;
  color: var(--tg-gray);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ---------- About ---------- */
.tg-about {
  background: var(--tg-stone);
  border-top: 1px solid var(--tg-border);
  border-bottom: 1px solid var(--tg-border);
}

.tg-about-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.tg-thin-rule {
  width: 40px;
  height: 1px;
  background: var(--tg-silver);
  margin: 0 auto 28px;
}

.tg-about h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  color: var(--tg-charcoal);
  margin-bottom: 20px;
  letter-spacing: -.3px;
}

.tg-about p {
  font-size: 1.1rem;
  color: var(--tg-graphite);
  line-height: 1.9;
  margin-bottom: 16px;
}

.tg-about p:last-of-type { margin-bottom: 0; }

.tg-about-verse {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--tg-border);
  font-family: var(--tg-font-body);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--tg-warm-deep);
  line-height: 1.7;
}

.tg-about-verse cite {
  display: block;
  font-style: normal;
  font-family: var(--tg-font-display);
  font-size: .78rem;
  font-weight: 600;
  color: var(--tg-gray);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 10px;
}

/* ---------- Services ---------- */
.tg-services {
  background: var(--tg-white);
}

.tg-services-list {
  display: flex;
  flex-direction: column;
  max-width: 800px;
  margin: 0 auto;
}

.tg-service-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 36px 0;
  border-bottom: 1px solid var(--tg-border);
  transition: all var(--tg-transition);
}

.tg-service-item:first-child { border-top: 1px solid var(--tg-border); }

.tg-service-item:hover { padding-left: 8px; }

.tg-service-day {
  font-family: var(--tg-font-display);
  font-size: .72rem;
  font-weight: 600;
  color: var(--tg-gray);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.tg-service-info h3 {
  font-size: 1.15rem;
  color: var(--tg-charcoal);
  margin-bottom: 4px;
  font-weight: 600;
}

.tg-service-info p {
  font-size: .92rem;
  color: var(--tg-gray);
  line-height: 1.6;
}

.tg-service-time {
  font-family: var(--tg-font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--tg-charcoal);
  letter-spacing: -.5px;
  white-space: nowrap;
}

/* ---------- Community (Photo Grid) ---------- */
.tg-community {
  background: var(--tg-stone);
  border-top: 1px solid var(--tg-border);
  border-bottom: 1px solid var(--tg-border);
}

.tg-community-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.tg-community-item {
  position: relative;
  border-radius: var(--tg-radius);
  overflow: hidden;
  aspect-ratio: 1;
}

.tg-community-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.tg-community-item:hover img { transform: scale(1.06); }

.tg-community-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(43, 43, 43, .7) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity var(--tg-transition);
}

.tg-community-item:hover .tg-community-overlay { opacity: 1; }

.tg-community-overlay p {
  font-family: var(--tg-font-display);
  font-size: .82rem;
  font-weight: 500;
  color: var(--tg-white);
  letter-spacing: .3px;
}

/* ---------- Beliefs ---------- */
.tg-beliefs {
  background: var(--tg-white);
}

.tg-beliefs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 960px;
  margin: 0 auto;
}

.tg-belief-card {
  padding: 36px 28px;
  border: 1px solid var(--tg-border);
  border-radius: var(--tg-radius-lg);
  transition: all var(--tg-transition);
}

.tg-belief-card:hover {
  border-color: var(--tg-silver);
  box-shadow: var(--tg-shadow-lg);
  transform: translateY(-3px);
}

.tg-belief-num {
  font-family: var(--tg-font-display);
  font-size: .68rem;
  font-weight: 700;
  color: var(--tg-silver);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.tg-belief-card h3 {
  font-size: 1.05rem;
  color: var(--tg-charcoal);
  margin-bottom: 10px;
  font-weight: 600;
}

.tg-belief-card p {
  font-size: .92rem;
  color: var(--tg-gray);
  line-height: 1.7;
}

/* ---------- Give ---------- */
.tg-give {
  background: var(--tg-stone);
  border-top: 1px solid var(--tg-border);
  border-bottom: 1px solid var(--tg-border);
}

.tg-give-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
}

.tg-give-text .tg-eyebrow { display: block; text-align: left; }

.tg-give-text h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  color: var(--tg-charcoal);
  margin-bottom: 16px;
  letter-spacing: -.3px;
}

.tg-give-text p {
  font-size: 1.05rem;
  color: var(--tg-gray);
  line-height: 1.85;
  margin-bottom: 28px;
}

.tg-give-options {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tg-give-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  background: var(--tg-white);
  border: 1px solid var(--tg-border);
  border-radius: var(--tg-radius);
  transition: all var(--tg-transition);
  cursor: pointer;
}

.tg-give-option:hover {
  border-color: var(--tg-charcoal);
  transform: translateX(4px);
}

.tg-give-option-icon {
  width: 40px;
  height: 40px;
  background: var(--tg-warm-glow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tg-warm-deep);
  flex-shrink: 0;
}

.tg-give-option h4 {
  font-size: .9rem;
  color: var(--tg-charcoal);
  margin-bottom: 2px;
}

.tg-give-option p {
  font-size: .82rem;
  color: var(--tg-gray);
  font-family: var(--tg-font-display);
  margin-bottom: 0;
}

.tg-give-image {
  border-radius: var(--tg-radius-lg);
  overflow: hidden;
}

.tg-give-image img {
  width: 100%;
  height: 440px;
  object-fit: cover;
}

/* ---------- CTA ---------- */
.tg-cta {
  background: var(--tg-charcoal);
  padding: 90px 0;
  text-align: center;
}

.tg-cta h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--tg-white);
  margin-bottom: 14px;
  letter-spacing: -.5px;
}

.tg-cta h2 em {
  font-family: var(--tg-font-body);
  font-style: italic;
  font-weight: 400;
  color: var(--tg-warm);
}

.tg-cta p {
  font-size: 1.05rem;
  color: var(--tg-gray);
  max-width: 460px;
  margin: 0 auto 36px;
  line-height: 1.8;
}

.tg-btn-warm {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--tg-warm);
  color: var(--tg-white);
  font-family: var(--tg-font-display);
  font-size: .88rem;
  font-weight: 600;
  padding: 14px 34px;
  border-radius: 50px;
  transition: all var(--tg-transition);
  letter-spacing: .2px;
}

.tg-btn-warm:hover {
  background: var(--tg-warm-deep);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(184, 160, 137, .3);
}

/* ---------- Footer ---------- */
.tg-footer {
  background: var(--tg-stone);
  padding: 64px 0 24px;
  border-top: 1px solid var(--tg-border);
}

.tg-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 44px;
  margin-bottom: 48px;
}

.tg-footer-brand .tg-logo { margin-bottom: 14px; }

.tg-footer-brand p {
  font-size: .9rem;
  color: var(--tg-gray);
  line-height: 1.7;
  max-width: 260px;
}

.tg-footer-col h4 {
  font-family: var(--tg-font-display);
  font-size: .68rem;
  font-weight: 700;
  color: var(--tg-gray);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-bottom: 18px;
}

.tg-footer-col ul li { margin-bottom: 10px; }

.tg-footer-col ul li a {
  font-family: var(--tg-font-display);
  font-size: .85rem;
  font-weight: 400;
  color: var(--tg-gray);
  transition: color var(--tg-transition);
}

.tg-footer-col ul li a:hover { color: var(--tg-charcoal); }

.tg-footer-social {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.tg-footer-social a {
  width: 32px;
  height: 32px;
  border: 1px solid var(--tg-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tg-gray);
  transition: all var(--tg-transition);
}

.tg-footer-social a:hover {
  border-color: var(--tg-charcoal);
  color: var(--tg-charcoal);
}

.tg-footer-bottom {
  border-top: 1px solid var(--tg-border);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--tg-font-display);
  font-size: .76rem;
  color: var(--tg-silver);
  letter-spacing: .3px;
}

.tg-footer-bottom a {
  color: var(--tg-silver);
  transition: color var(--tg-transition);
}

.tg-footer-bottom a:hover { color: var(--tg-charcoal); }

/* ---------- Scroll Reveal ---------- */
.tg-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .55s ease, transform .55s ease;
}

.tg-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .tg-hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .tg-hero-text { max-width: none; text-align: center; }
  .tg-hero-label { justify-content: center; }
  .tg-hero-actions { justify-content: center; }
  .tg-hero-meta { justify-content: center; }
  .tg-hero-image img { height: 420px; }
  .tg-give-inner { grid-template-columns: 1fr; gap: 48px; }
  .tg-give-text .tg-eyebrow { text-align: center; }
  .tg-give-text h2,
  .tg-give-text p { text-align: center; }
  .tg-footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .tg-hamburger { display: flex; }
  .tg-nav-links { display: none; }
  .tg-community-grid { grid-template-columns: repeat(2, 1fr); }
  .tg-beliefs-grid { grid-template-columns: 1fr; max-width: 440px; }
  .tg-service-item { grid-template-columns: 1fr; gap: 8px; padding: 24px 0; }
  .tg-service-day { order: -1; }
  .tg-service-time { justify-self: start; }
  .tg-footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .tg-footer-bottom { flex-direction: column; gap: 6px; text-align: center; }
}

@media (max-width: 480px) {
  .tg-section { padding: 70px 0; }
  .tg-hero-meta { flex-direction: column; gap: 16px; align-items: center; }
}
