@import url('https://fonts.googleapis.com/css2?family=Gowun+Batang:wght@400;700&family=Noto+Sans+KR:wght@300;400;500;700&display=swap');

:root {
    --primary-color: #2F3337;
    /* Charcoal for text */
    --accent-color: #C5A065;
    /* Muted Gold for accents */
    --bg-color: #F9F9F9;
    /* Ver soft gray for backgrounds */
    --white: #ffffff;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.8;
    color: var(--primary-color);
    background-color: var(--white);
    word-break: keep-all;
    /* Better Korean text wrapping */
}

h1,
h2,
h3,
.logo {
    font-family: 'Gowun Batang', serif;
    font-weight: 700;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 6rem 0;
    /* More whitespace */
}

/* Header & Nav */
header {
    height: 90vh;
    position: relative;
    background-color: #2F3337;
    /* Reliable Church Exterior Image */
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1477672680933-0287a151330e?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

nav {
    position: absolute;
    top: 0;
    width: 100%;
    padding: 0;
    /* Remove padding here, let container handle it */
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    /* Subtle divider */
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
    /* Fixed height for consistency */
}

.logo {
    font-family: 'Gowun Batang', serif;
    font-size: 2.2rem;
    /* Larger, more prominent */
    font-weight: 700;
    color: var(--white);
    letter-spacing: -1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
    /* More space between links */
}

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: var(--accent-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover {
    color: var(--white);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Content */
.hero h1 {
    font-family: 'Gowun Batang', serif;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 3.5rem;
    font-weight: 300;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1.2rem 3.5rem;
    border-radius: 50px;
    /* Pill shape */
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.btn-primary {
    background-color: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--white);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--white);
}

/* Sections */
#services {
    background-color: #f0f2f5;
    /* Slightly darker grey for contrast */
}

.services h2,
#about h2,
#location h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--primary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.service-card {
    background: var(--white);
    padding: 3rem 2rem;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.1);
    /* Added border for definition */
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    /* Softer shadow */
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
}

.service-card i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    display: block;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.service-card p {
    color: #666;
    font-size: 1rem;
}

/* About Section */
#about {
    background-color: var(--white);
}

#about h2 {
    text-align: left;
    margin-bottom: 1.5rem;
}

#about p {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.9;
}

/* Location */
#location {
    background-color: var(--bg-color);
}

.btn-naver {
    background-color: #03C75A;
    color: white;
    border: none;
    border-radius: 4px;
    /* Soft radius */
    padding: 12px 24px;
    box-shadow: 0 4px 6px rgba(3, 199, 90, 0.2);
}

.btn-naver:hover {
    background-color: #02b350;
    transform: translateY(-2px);
}

/* Footer */
/* Footer Styling */
footer {
    background-color: #1a1c1e;
    /* Darker for better contrast */
    color: rgba(255, 255, 255, 0.8);
    padding: 5rem 0 2rem;
    text-align: left;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    /* Specific widths for better balance */
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-section h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-family: 'Gowun Batang', serif;
}

.footer-section p,
.footer-section li {
    font-size: 0.95rem;
    line-height: 2;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.5rem;
}

.footer-section strong {
    color: var(--accent-color);
    font-weight: 500;
}

.footer-bottom {
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .nav-links {
        display: none;
    }

    .section {
        padding: 4rem 0;
    }
}
