@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&family=Noto+Serif+KR:wght@400;700&display=swap');

:root {
  --primary: #c18d5d;
  /* Terracotta Gold */
  --primary-light: #f4efeb;
  --secondary: #506266;
  /* mist teal */
  --bg: #fdfaf6;
  /* warm pearl */
  --surface: #ffffff;
  --text: #2d2a26;
  --text-muted: #6b635b;
  --line: rgba(45, 42, 38, 0.08);
  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 15px 45px rgba(193, 141, 93, 0.12);
  --glass: rgba(255, 255, 255, 0.85);
  --max: 1200px;
  --radius: 24px;
  --transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans KR', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}

h1,
h2,
h3 {
  font-family: 'Noto Serif KR', serif;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.04em;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

/* --- Layout --- */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 10rem 0;
}

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: var(--transition);
}

.site-header.scrolled {
  background: var(--glass);
  backdrop-filter: blur(15px);
  padding: 1rem 0;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.brand-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.menu {
  display: flex;
  gap: 3rem;
}

.menu a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}

.menu a:hover {
  color: var(--primary);
}

/* --- Hero --- */
.hero {
  position: relative;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background-color: #f0f0f0;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('./hero.png');
  background-size: cover;
  background-position: center;
  filter: brightness(0.9);
  z-index: 1;
  transition: var(--transition);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(253, 250, 246, 0.4) 0%, rgba(253, 250, 246, 0.8) 100%);
  z-index: 2;
}

.hero .container {
  position: relative;
  z-index: 3;
}

.hero-tag {
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  display: block;
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 5rem);
  color: #1a1a1a;
  margin-bottom: 2rem;
}

.hero .lead {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto;
  font-weight: 400;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  padding: 1.2rem 2.8rem;
  background: var(--primary);
  color: white;
  border-radius: 100px;
  font-weight: 600;
  font-size: 1rem;
  margin-top: 3rem;
  box-shadow: 0 10px 25px rgba(193, 141, 93, 0.3);
}

.btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(193, 141, 93, 0.4);
}

/* --- Service Highlight --- */
.service-wrap {
  background: #fff;
  border-radius: var(--radius);
  padding: 4rem;
  margin-top: -6rem;
  position: relative;
  z-index: 10;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
}

.service-item h3 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  color: var(--primary);
}

.service-time {
  font-size: 1.8rem;
  font-weight: 700;
  font-family: 'Noto Serif KR', serif;
}

/* --- Invitation --- */
.about-section {
  background-color: #fff;
}

.invitation-box {
  max-width: 850px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.invitation-box blockquote {
  position: relative;
  margin-top: 5rem;
  /* Added margin to prevent overlap with title */
  margin-bottom: 3.5rem;
}

.invitation-box blockquote p {
  font-size: 1.6rem;
  line-height: 2;
  color: var(--text);
  font-weight: 300;
  font-family: 'Noto Serif KR', serif;
  position: relative;
  z-index: 2;
}

.invitation-box blockquote::before {
  content: "“";
  position: absolute;
  top: -35px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Noto Serif KR', serif;
  font-size: 4.8rem;
  color: #d8c8b8;
  line-height: 1;
  z-index: 1;
  opacity: 0.9;
}

.invitation-box blockquote::after {
  content: "”";
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Noto Serif KR', serif;
  font-size: 4.8rem;
  color: #d8c8b8;
  line-height: 1;
  z-index: 1;
  opacity: 0.9;
}

.pastor-signature {
  margin-top: 5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pastor-name {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
}

.pastor-title {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* --- Location --- */
.location-title {
  text-align: center;
  margin-bottom: 5rem;
}

.address-main {
  font-size: 2.2rem;
  color: var(--text);
  margin-bottom: 1rem;
}

.address-main b {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 8px;
}

.map-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

.map-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.map-frame {
  height: 500px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.map-btn {
  display: block;
  text-align: center;
  padding: 1rem;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}

.map-btn:hover {
  background: var(--primary);
  color: white;
}

/* --- Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* --- Footer --- */
footer {
  padding: 6rem 0;
  background-color: #2d2a26;
  color: #fff;
}

.footer-nav {
  display: flex;
  gap: 3rem;
  margin-bottom: 3rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.copyright {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 3rem;
  text-align: center;
}

/* Support Polish */
.support-wrap {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.support-block {
  margin-top: 4rem;
  background: var(--surface);
  padding: 4rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  text-align: left;
}

.support-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.support-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.support-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.support-label {
  font-weight: 700;
  color: var(--secondary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.support-value {
  color: var(--primary);
  font-weight: 700;
  font-family: 'Noto Serif KR', serif;
  font-size: 1.25rem;
}

/* Contact Polish */
.contact-block {
  margin-top: 4rem;
  display: inline-flex;
  flex-direction: column;
  gap: 2rem;
  padding: 3rem 4rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.contact-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.contact-phone {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  transition: var(--transition);
}

.contact-phone:hover {
  color: var(--primary);
}

.contact-email {
  font-size: 1.15rem;
  color: var(--text-muted);
  font-weight: 400;
  transition: var(--transition);
}

.contact-email:hover {
  color: var(--text);
}

@media (max-width: 900px) {
  .invitation-grid {
    grid-template-columns: 1fr;
  }

  .menu {
    display: none;
  }

  .service-wrap {
    margin-top: 0;
    border-radius: 0;
    padding: 2rem;
  }

  .address-main {
    font-size: 1.6rem;
  }
}