:root {
  --bg-cream: #faf5e8;
  --bg-warm: #f0e4cd;
  --ink: #1f1d1a;
  --ink-soft: #474238;
  --accent: #1d5f5a;
  --accent-soft: #2f8a83;
  --card: #fffdfa;
  --border: #d9ccb5;
  --shadow: 0 12px 24px rgba(31, 29, 26, 0.09);
  --nav-height: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 1.2rem);
}

body {
  margin: 0;
  font-family: "Outfit", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, #fff7e7 0%, transparent 40%),
    radial-gradient(circle at 85% 25%, #e6f3ef 0%, transparent 35%),
    linear-gradient(180deg, var(--bg-cream), var(--bg-warm));
  line-height: 1.6;
  scroll-snap-type: y proximity;
}

#logo {
  width: 100px;
  height: 68px;
  border-radius: 0%;
  object-fit: cover;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  border-bottom: none;
  backdrop-filter: none;
  padding: 0.9rem 0 0;
}

.navbar {
  position: relative;
  width: min(100%, 1440px);
  min-height: var(--nav-height);
  margin: 0 auto;
  padding: 0.35rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.85rem;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 0 0 auto;
  margin-left: -0.2rem;
}

.brand {
  font-family: "Gowun Batang", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font: inherit;
}

.nav-actions {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid rgba(217, 204, 181, 0.9);
  background: rgba(255, 253, 250, 0.9);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(31, 29, 26, 0.08);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.lang-option {
  color: var(--ink-soft);
  transition: color 180ms ease;
}

.lang-option.active {
  color: var(--accent);
}

.lang-divider {
  color: rgba(71, 66, 56, 0.55);
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: max-content;
  background: rgba(255, 253, 250, 0.82);
  border: 1px solid rgba(217, 204, 181, 0.55);
  border-radius: 999px;
  padding: 0.35rem 0.45rem;
  box-shadow: 0 10px 28px rgba(31, 29, 26, 0.08);
  backdrop-filter: blur(10px);
}

.nav-link {
  display: inline-block;
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.nav-link:hover {
  color: var(--ink);
  background: rgba(47, 138, 131, 0.13);
  transform: translateY(-1px);
}

.nav-link.active {
  color: #ffffff;
  background: linear-gradient(120deg, var(--accent), var(--accent-soft));
}

.section {
  min-height: 100vh;
  padding: calc(var(--nav-height) + 1.6rem) 1.25rem 2rem;
  display: grid;
  align-items: start;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  opacity: 0.82;
  transform: translateY(16px);
  filter: saturate(0.94);
  transition: opacity 420ms ease, transform 420ms ease, filter 420ms ease;
}

.section:not(.hero) {
  min-height: 100vh;
  width: 100%;
  margin: 0;
}

.section.active-section {
  opacity: 1;
  transform: translateY(0);
  filter: saturate(1);
}

.hero {
  min-height: 100vh;
  align-items: center;
  background:
    linear-gradient(rgba(250, 245, 232, 0.64), rgba(250, 245, 232, 0.64)),
    url("../images/cornerstone_church.jpg") center / cover no-repeat;
}

.section-inner {
  width: min(960px, 100%);
  max-width: 960px;
  margin: 0 auto;
  justify-self: center;
  text-align: center;
  padding: 2rem;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  animation: reveal 600ms ease both;
}

.hero .section-inner {
  text-align: center;
  background: transparent;
}

.korean-title {
  margin: 0;
  color: var(--accent);
  letter-spacing: 0.18em;
  font-weight: 600;
}

h1,
h2,
h3 {
  font-family: "Gowun Batang", Georgia, serif;
  line-height: 1.25;
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  margin-bottom: 0.8rem;
}

.cta {
  display: inline-block;
  margin-top: 1rem;
  text-decoration: none;
  background: var(--accent);
  color: #fff;
  padding: 0.7rem 1.1rem;
  border-radius: 12px;
  font-weight: 600;
  transition: transform 180ms ease, background-color 180ms ease;
}

.cta:hover {
  background: #194b47;
  transform: translateY(-1px);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.gatherings h2 {
  margin-bottom: 1.8rem;
}

.info-grid article {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
}

.info-icon {
  display: block;
  width: 42px;
  height: 42px;
  margin: 0.35rem auto 0.55rem;
  object-fit: contain;
}

.sermon-video-wrap {
  width: min(760px, 100%);
  margin: 1rem auto 1.2rem;
  border: 1px solid rgba(217, 204, 181, 0.65);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(31, 29, 26, 0.08);
  background: #000;
}

.sermon-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.contact-form {
  width: min(560px, 100%);
  margin: 1.2rem auto 0;
  display: grid;
  gap: 0.85rem;
  text-align: left;
}

.form-field {
  display: grid;
  gap: 0.35rem;
  color: var(--ink);
  font-weight: 600;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid rgba(217, 204, 181, 0.9);
  border-radius: 10px;
  background: rgba(255, 253, 250, 0.95);
  color: var(--ink);
  font: inherit;
  padding: 0.65rem 0.75rem;
}

.form-field textarea {
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid rgba(47, 138, 131, 0.35);
  outline-offset: 1px;
}

.contact-submit {
  justify-self: start;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  padding: 0.65rem 1rem;
  cursor: pointer;
  transition: background-color 180ms ease, transform 180ms ease;
}

.contact-submit:hover {
  background: #194b47;
  transform: translateY(-1px);
}

.announcements-list {
  width: 100%;
  max-width: 800px;
  margin: 2rem auto 0;
  display: grid;
  gap: 2.5rem;
}

.announcement-item {
  text-align: left;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(217, 204, 181, 0.5);
}

.announcement-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.announcement-item h3 {
  margin: 0 0 0.8rem 0;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  color: var(--ink);
}

.announcement-item p {
  margin: 0 0 1rem 0;
  color: var(--ink-soft);
  line-height: 1.7;
  font-size: 0.95rem;
}

.announcement-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

.site-footer {
  text-align: center;
  padding: 1.25rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 860px) {
  .site-header {
    padding-top: 0.55rem;
  }

  .menu-toggle {
    display: inline-block;
  }

  .nav-actions {
    position: static;
    transform: none;
    margin-left: auto;
  }

  .lang-toggle {
    padding: 0.32rem 0.58rem;
    font-size: 0.82rem;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: auto;
    right: 1rem;
    transform: none;
    display: none;
    width: min(280px, calc(100% - 2rem));
    flex-direction: column;
    align-items: stretch;
    background: rgba(255, 253, 250, 0.98);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 0.55rem;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .section:not(.hero) {
    width: 100%;
    margin: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  body {
    scroll-snap-type: none;
  }

  * {
    animation: none !important;
    transition: none !important;
  }
}
