/* Naples Korean Community Church — Polished & Upgraded Design */

:root {
  /* Core Colors - Clean, Warm, Premium */
  --bg: #F9F7F5;
  /* Very Paper White/Warm Gray */
  --bg-alt: #F0EBE6;
  /* Slightly darker warm gray */
  --surface: #FFFFFF;

  --text-main: #2D2A26;
  /* Soft Black */
  --text-muted: #66605B;
  --text-light: #99938D;

  /* Accents */
  --accent: #C89B4A;
  /* Gold/Bronze */
  --accent-hover: #B0883E;
  --primary: #1F4F66;
  /* Deep Navy/Teal */
  --primary-dark: #163A4D;

  /* UI Tokens */
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.08);

  --container: 1140px;
  --header-height: 70px;

  /* Fonts */
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-serif: 'Playfair Display', serif;
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--bg);
  background:
    radial-gradient(circle at 0% 0%, rgba(200, 155, 74, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 100% 0%, rgba(31, 79, 102, 0.03) 0%, transparent 50%);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: 0.2s ease;
}

img,
iframe {
  display: block;
  max-width: 100%;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 1rem 0;
  color: var(--text-main);
}

p {
  margin: 0 0 1rem 0;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Utilities */
.relative {
  position: relative;
}

.z-10 {
  z-index: 10;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 50px;
  /* Pillow shape for modern accessible feel */
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(31, 79, 102, 0.25);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(31, 79, 102, 0.35);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text-main);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--primary);
  color: white;
  padding: 8px;
  z-index: 1000;
}

.skip-link:focus {
  top: 0;
}

/* Topbar */
.topbar {
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  font-size: 13px;
  color: var(--text-muted);
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 40px;
}

.topbar-right {
  display: flex;
  gap: 16px;
  align-items: center;
}

.topbar-link:hover {
  color: var(--primary);
}

.badge {
  background: rgba(31, 79, 102, 0.08);
  color: var(--primary);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 11px;
  margin-right: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  background: var(--primary);
  color: #fff;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 18px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 18px;
  color: var(--text-main);
}

.brand-subtitle {
  font-size: 12px;
  color: var(--text-light);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-link {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 50px;
}

.nav-link:hover {
  color: var(--primary);
  background: rgba(31, 79, 102, 0.04);
}

.lang-toggle {
  background: rgba(0, 0, 0, 0.03);
  border: none;
  border-radius: 50px;
  padding: 4px;
  display: flex;
  cursor: pointer;
  margin-left: 12px;
}

.lang-pill {
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-light);
}

html[data-lang="ko"] .lang-pill[data-lang-pill="ko"],
html[data-lang="en"] .lang-pill[data-lang-pill="en"] {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: flex-start;
  padding-top: 220px;
  /* "Upper" placement */
  padding-bottom: 80px;
  text-align: center;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-image {
  position: absolute;
  inset: 0;
  background-image: url('../images/group_photo_cover.jpg');
  background-size: cover;
  background-position: center 30%;
  /* Focus on faces/people */
  /* Remove filter/saturate for cleaner look or keep subtle */
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0.3) 0%,
      rgba(0, 0, 0, 0.1) 50%,
      rgba(0, 0, 0, 0.4) 100%);
}

.hero-content-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
}

.hero-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  padding: 48px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 720px;
  margin: 0;
  /* Left align or auto for center? Left looks premium */
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.hero-kicker {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 12px;
}

.hero-title {
  font-size: 4.5rem;
  margin-bottom: 24px;
  line-height: 1.1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-text-main {
  display: block;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.hero-text-sub {
  display: block;
  font-size: 1.75rem;
  font-family: var(--font-sans);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0;
  text-transform: none;
}

.hero-title .e {
  display: block;
  font-size: 1.5rem;
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--text-muted);
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 90%;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-meta {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: 24px;
  display: flex;
  gap: 32px;
}

.meta-item {
  display: flex;
  flex-direction: column;
}

.meta-label {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-light);
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.meta-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
}

/* Main Sections */
.section {
  padding: 100px 0;
}

.section-alt {
  background-color: var(--bg-alt);
}

.section-head {
  margin-bottom: 48px;
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Grid & Cards */
.grid {
  display: grid;
  gap: 24px;
}

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

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--surface);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
  height: 100%;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(200, 155, 74, 0.3);
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

/* About Section Decoration */
.section-decorated {
  position: relative;
  overflow: hidden;
}

.deco-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.08;
  /* Subtle watermark effect on white background */
  z-index: 0;
  pointer-events: none;
}

.clean-item {
  padding: 24px 16px;
  /* No background, no shadow - just text */
  text-align: left;
}

.item-title {
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

.item-title::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--accent);
  margin-top: 8px;
}

.item-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.transparent-callout {
  background: white;
  /* Or keep primary but change style? User wanted simple. */
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  /* keeping it distinct box for "callout" is usually good, but let's make it look premium */
  color: white;
}

/* Worship Section */
.section-worship {
  background: var(--bg-alt);
}

.worship-deco {
  display: none;
  /* Hidden on mobile defaults */
}

@media (min-width: 960px) {
  .section-worship {
    position: relative;
    overflow: hidden;
  }

  .section-worship .container {
    position: relative;
    z-index: 1;
  }

  .worship-deco {
    display: block;
    position: absolute;
    right: -100px;
    top: 50%;
    transform: translateY(-50%);
    width: 500px;
    height: 80%;
    z-index: 0;
    opacity: 0.8;
  }

  .deco-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 40px;
    box-shadow: -20px 20px 60px rgba(0, 0, 0, 0.1);
  }
}

.info-card {
  background: #fff;
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: 0.3s;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

/* Contact Section */
.contact-section {
  position: relative;
  color: #fff;
  padding: 120px 0;
  overflow: hidden;
}

.contact-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.contact-overlay {
  position: absolute;
  inset: 0;
  background: rgba(31, 79, 102, 0.85);
  /* Primary color overlay */
  backdrop-filter: blur(2px);
  z-index: 1;
}

.contact-section .section-title,
.contact-section .section-subtitle {
  color: #fff;
}

.contact-center-card {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
  max-width: 500px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 24px;
}

.icon-box {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 24px;
}

.info-box h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
  margin-bottom: 4px;
  color: #fff;
}

.contact-link {
  font-size: 1.25rem;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 2px;
  transition: 0.2s;
}

.contact-link:hover {
  border-bottom-color: #fff;
}

/* Visit New */
.lead-text {
  font-size: 1.2rem;
  color: var(--text-muted);
}

.map-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 400px;
  width: 100%;
}

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

.align-center {
  align-items: center;
}

.mt-4 {
  margin-top: 24px;
}

.spacer-20 {
  height: 20px;
}

/* Callout */
.callout {
  margin-top: 48px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.callout::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.1), transparent);
}

.callout-inner {
  position: relative;
  z-index: 1;
  flex: 1;
}

.callout-title {
  color: #fff;
  margin-bottom: 8px;
}

.callout-text {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.callout .btn {
  flex-shrink: 0;
}

/* Map */
.map-card {
  padding: 0;
  overflow: hidden;
  min-height: 400px;
}

.map-card iframe {
  width: 100%;
  height: 100%;
  border: 0;
  min-height: 400px;
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
}

.contact-info a {
  font-weight: 600;
  color: var(--primary);
  border-bottom: 1px solid rgba(31, 79, 102, 0.2);
}

.contact-info a:hover {
  border-bottom-color: var(--primary);
}

.quote-box {
  margin-top: 32px;
  padding: 24px;
  background: rgba(200, 155, 74, 0.08);
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
}

.quote-text {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-main);
}

.quote-ref {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 8px;
  font-weight: 600;
}

/* Footer */
.footer {
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding: 80px 0 30px;
  margin-top: 60px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h4 {
  margin-bottom: 4px;
  font-size: 1.2rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-link {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-link:hover {
  color: var(--primary);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  color: var(--text-light);
  font-size: 0.85rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.social-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Mobile Nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-main);
}

/* Responsive */
@media (max-width: 960px) {
  .hero-title {
    font-size: 3rem;
  }

  .hero-text-sub {
    font-size: 1.25rem;
  }

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

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

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

@media (max-width: 768px) {
  .nav-menu {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 99;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

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

  .nav-toggle {
    display: block;
  }

  .hero {
    align-items: center;
    justify-content: center;
    min-height: auto;
    padding-top: 120px;
    padding-bottom: 60px;
  }

  .hero-card {
    padding: 32px 24px;
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-meta {
    justify-content: center;
    text-align: center;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .callout {
    flex-direction: column;
    text-align: center;
    padding: 32px;
  }

  /* Stack contact grid on mobile */
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
