/* ==========================================================================
   Sangjo-Bugo Theme - Main Stylesheet
   Funeral Notice Service Platform (based on 동행부고 design)
   ========================================================================== */

/* ==========================================================================
   1. CSS Custom Properties
   ========================================================================== */
:root {
    --color-black: #191919;
    --color-dark: #222222;
    --color-gray-900: #333333;
    --color-gray-700: #555555;
    --color-gray-500: #888888;
    --color-gray-300: #cccccc;
    --color-gray-200: #dddddd;
    --color-gray-100: #f5f5f5;
    --color-white: #ffffff;
    --color-primary: #333333;
    --color-accent: #8b7355;
    --color-border: #e0e0e0;
    --font-serif: 'Noto Serif KR', serif;
    --font-sans: 'Pretendard Variable', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --max-width: 1200px;
    --header-height: 72px;
    --topbar-height: 36px;
    --header-total-height: 108px;
}

/* ==========================================================================
   2. Reset & Global
   ========================================================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-gray-900);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul,
ol {
    list-style: none;
}

button {
    font-family: var(--font-sans);
    cursor: pointer;
}

input,
select,
textarea {
    font-family: var(--font-sans);
}

table {
    border-collapse: collapse;
    width: 100%;
}

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.hidden {
    display: none !important;
}

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

/* Margin Utilities */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }
.mt-8 { margin-top: 4rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 3rem; }
.mb-8 { margin-bottom: 4rem; }

.ml-auto { margin-left: auto; }
.mr-auto { margin-right: auto; }

/* Padding Utilities */
.pt-0 { padding-top: 0; }
.pt-3 { padding-top: 1rem; }
.pt-5 { padding-top: 2rem; }

.pb-0 { padding-bottom: 0; }
.pb-3 { padding-bottom: 1rem; }
.pb-5 { padding-bottom: 2rem; }

/* Flex Utilities */
.d-flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

/* ==========================================================================
   3. Header (Fixed)
   ========================================================================== */

/* Header Wrapper: wraps topbar + main header */
.header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

/* Top Bar */
.header-topbar {
    height: var(--topbar-height);
    background-color: var(--color-black);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: height 0.3s ease, opacity 0.3s ease;
    overflow: hidden;
}

.header-wrapper.scrolled .header-topbar {
    height: 0;
    opacity: 0;
    border-bottom: none;
}

.header-topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    height: var(--topbar-height);
}

.header-topbar-tagline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.5px;
}

.header-topbar-tagline i {
    font-size: 0.6875rem;
    color: var(--color-accent);
}

.header-topbar-right {
    display: flex;
    align-items: center;
}

.header-topbar-phone {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-white);
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
}

.header-topbar-phone:hover {
    color: var(--color-accent);
}

.header-topbar-phone i {
    font-size: 0.6875rem;
    color: var(--color-accent);
}

/* Main Header */
.header {
    height: var(--header-height);
    background-color: transparent;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.header-wrapper.scrolled .header {
    background-color: var(--color-black);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

/* Subtle accent line when scrolled (::after on header) */
.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-accent);
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.header-wrapper.scrolled .header::after {
    transform: scaleX(1);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    position: relative;
}

/* Logo */
.header-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.header-logo-img {
    width: 140px;
    height: auto;
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
}

.header-logo-text {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: 1px;
}

/* Desktop Navigation */
.header-nav {
    display: flex;
    align-items: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.header-nav .nav-list {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-nav .nav-item {
    position: relative;
}

.header-nav .nav-link {
    color: var(--color-white);
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 10px 0;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    position: relative;
    transition: color 0.2s ease;
}

.header-nav .nav-link .nav-arrow {
    font-size: 0.5625rem;
    transition: transform 0.25s ease;
    opacity: 0.7;
}

.header-nav .nav-item:hover .nav-link .nav-arrow {
    transform: rotate(180deg);
    opacity: 1;
}

/* Nav link underline animation (center-out) */
.header-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-accent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.header-nav .nav-item:hover .nav-link::after,
.header-nav .nav-item.active .nav-link::after {
    transform: scaleX(1);
}

/* Dropdown - Individual per nav-item */
.nav-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background-color: var(--color-white);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
    padding: 8px 0;
    z-index: 1001;
    list-style: none;
}

/* Triangle pointer at top */
.nav-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 6px;
    background-color: var(--color-white);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

/* Invisible hover bridge between nav-link and dropdown */
.nav-dropdown::after {
    content: '';
    position: absolute;
    top: -16px;
    left: 0;
    width: 100%;
    height: 16px;
}

.nav-item:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown .dropdown-link {
    display: block;
    padding: 10px 20px;
    color: var(--color-gray-700);
    font-size: 0.875rem;
    font-weight: 400;
    transition: background-color 0.15s ease, color 0.15s ease, padding-left 0.2s ease;
}

.nav-dropdown li:not(:last-child) .dropdown-link {
    border-bottom: 1px solid var(--color-gray-100);
}

.nav-dropdown .dropdown-link:hover {
    background-color: rgba(139, 115, 85, 0.06);
    color: var(--color-accent);
    padding-left: 24px;
}

.nav-dropdown .dropdown-link.active {
    color: var(--color-accent);
    font-weight: 500;
}

/* Header Right Actions */
.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

/* CTA Button */
.header-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 20px;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-white);
    background-color: var(--color-accent);
    transition: background-color 0.25s ease, transform 0.15s ease;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.header-cta:hover {
    background-color: #7a6549;
    transform: translateY(-1px);
}

.header-cta:active {
    transform: translateY(0);
}

.header-cta i {
    font-size: 0.75rem;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 28px;
    height: 28px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    z-index: 100;
}

.hamburger .hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-white);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ==========================================================================
   4. Mobile Navigation
   ========================================================================== */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-overlay.open {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-panel {
    position: fixed;
    right: -300px;
    top: 0;
    width: 280px;
    height: 100vh;
    background-color: var(--color-white);
    z-index: 2001;
    transition: right 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
}

.mobile-nav-overlay.open .mobile-nav-panel {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--color-border);
}

.mobile-nav-title {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-gray-900);
}

.mobile-nav-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.25rem;
    color: var(--color-gray-700);
    background: none;
    border: none;
    padding: 0;
}

.mobile-nav-close:hover {
    color: var(--color-black);
}

.mobile-nav-body {
    flex: 1;
    overflow-y: auto;
}

.mobile-nav-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.mobile-nav-item {
    border-bottom: 1px solid #eee;
}

.mobile-nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 16px 24px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-gray-900);
    transition: background-color 0.15s ease;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-family: var(--font-sans);
}

.mobile-nav-link:hover {
    background-color: var(--color-gray-100);
}

.mobile-nav-link.active {
    color: var(--color-accent);
}

.mobile-nav-link i {
    margin-right: 8px;
    width: 20px;
    text-align: center;
    color: var(--color-gray-500);
}

.mobile-nav-arrow {
    font-size: 0.75rem;
    color: var(--color-gray-500);
    transition: transform 0.2s ease;
}

.mobile-nav-toggle.open .mobile-nav-arrow {
    transform: rotate(180deg);
}

.mobile-nav-sub {
    display: none;
    padding-left: 20px;
    background-color: #f8f8f8;
    list-style: none;
    margin: 0;
}

.mobile-nav-sub.open {
    display: block;
}

.mobile-nav-sub li {
    border-bottom: 1px solid #eeeeee;
}

.mobile-nav-sub li:last-child {
    border-bottom: none;
}

.mobile-nav-sub-link {
    display: block;
    padding: 12px 20px;
    font-size: 0.875rem;
    color: var(--color-gray-700);
    transition: background-color 0.15s ease, color 0.15s ease;
}

.mobile-nav-sub-link:hover {
    background-color: #f0f0f0;
    color: var(--color-black);
}

.mobile-nav-sub-link.active {
    color: var(--color-accent);
}

.mobile-nav-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--color-border);
}

.mobile-nav-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-black);
}

.mobile-nav-phone i {
    font-size: 0.875rem;
    color: var(--color-accent);
}

/* ==========================================================================
   5. Hero / Slider Section
   ========================================================================== */
.hero-section {
    position: relative;
    height: 45vh;
    min-height: 320px;
    overflow: hidden;
}

.hero-section .swiper {
    height: 100%;
    width: 100%;
}

.hero-section .swiper-wrapper {
    height: 100%;
}

.hero-slide {
    position: relative;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    height: 100%;
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--color-white);
    z-index: 2;
    width: 90%;
    max-width: 700px;
}

.hero-slide-content h2 {
    font-family: var(--font-serif);
    font-size: 2.625rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    line-height: 1.3;
    word-break: keep-all;
}

.hero-slide-content p {
    font-size: 1.125rem;
    opacity: 0.9;
    line-height: 1.6;
    word-break: keep-all;
}

.hero-slide-content .hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 1.5rem;
    padding: 14px 32px;
    border-radius: 30px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.hero-slide-content .hero-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--color-white);
}

/* Swiper Pagination */
.hero-section .swiper-pagination {
    bottom: 20px !important;
}

.hero-section .swiper-pagination-bullet {
    background-color: var(--color-white);
    opacity: 0.5;
    width: 10px;
    height: 10px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.hero-section .swiper-pagination-bullet-active {
    opacity: 1;
    border: 2px solid var(--color-white);
    background-color: transparent;
    transform: scale(1.2);
}

/* Swiper Navigation */
.hero-section .swiper-button-next,
.hero-section .swiper-button-prev {
    color: var(--color-white);
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.hero-section .swiper-button-next:hover,
.hero-section .swiper-button-prev:hover {
    opacity: 1;
}

.hero-section .swiper-button-next::after,
.hero-section .swiper-button-prev::after {
    font-size: 1.5rem;
}

/* ==========================================================================
   6. Section Common
   ========================================================================== */
.section-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3.125rem;
    color: var(--color-gray-900);
    letter-spacing: 1px;
}

.section-title .sub-text {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 400;
    color: var(--color-gray-500);
    margin-top: 0.5rem;
    letter-spacing: 0;
}

.section-divider {
    width: 40px;
    height: 2px;
    background-color: var(--color-accent);
    margin: 0 auto 2rem;
}

/* ==========================================================================
   7. Service Cards Section
   ========================================================================== */
.service-section {
    padding: 80px 0;
    background-color: var(--color-white);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 40px 24px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--color-white);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.service-card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(139, 115, 85, 0.08);
}

.service-card-icon i {
    font-size: 2.25rem;
    color: var(--color-accent);
}

.service-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-gray-900);
}

.service-card-desc {
    font-size: 0.875rem;
    color: var(--color-gray-500);
    line-height: 1.6;
    word-break: keep-all;
}

/* ==========================================================================
   8. Q&A Section
   ========================================================================== */
.qna-section {
    padding: 60px 0;
    background-color: var(--color-gray-100);
}

.qna-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.qna-section .section-header h2 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
}

.qna-section .section-header .more-link {
    font-size: 0.8125rem;
    color: var(--color-gray-500);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.qna-section .section-header .more-link:hover {
    color: var(--color-gray-900);
}

.qna-list {
    list-style: none;
    padding: 0;
}

.qna-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-border);
    background-color: var(--color-white);
    margin-bottom: 2px;
    border-radius: 4px;
    transition: background-color 0.15s ease;
}

.qna-item:hover {
    background-color: var(--color-gray-100);
}

.qna-item-title {
    font-size: 0.9375rem;
    color: var(--color-gray-900);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 20px;
}

.qna-item-title a {
    color: inherit;
}

.qna-item-title a:hover {
    color: var(--color-black);
}

.qna-item-date {
    font-size: 0.8125rem;
    color: var(--color-gray-500);
    margin-left: 20px;
    flex-shrink: 0;
    white-space: nowrap;
}

.qna-item-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.6875rem;
    font-weight: 500;
    margin-right: 8px;
    flex-shrink: 0;
}

.qna-item-badge.new {
    background-color: var(--color-accent);
    color: var(--color-white);
}

/* ==========================================================================
   9. Banner Section
   ========================================================================== */
.banner-section {
    padding: 60px 0;
}

.banner-img {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
}

.banner-img img {
    width: 100%;
    height: auto;
    display: block;
}

.banner-link {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.banner-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   10. Footer
   ========================================================================== */
.footer {
    background-color: var(--color-black);
    color: var(--color-gray-300);
}

.footer-top {
    padding: 50px 0 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-logo {
    margin-bottom: 16px;
}

.footer-logo-text {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: 1px;
}

.footer-desc {
    font-size: 0.8125rem;
    line-height: 1.8;
    color: var(--color-gray-500);
}

.footer-heading {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 16px;
}

.footer-link-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-link-list li {
    margin-bottom: 10px;
}

.footer-link-list a {
    font-size: 0.8125rem;
    color: var(--color-gray-500);
    transition: color 0.2s ease;
}

.footer-link-list a:hover {
    color: var(--color-white);
}

.footer-contact .footer-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.footer-contact .footer-phone i {
    font-size: 0.875rem;
    color: var(--color-accent);
}

.footer-contact .footer-phone a {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: 1px;
}

.footer-hours {
    font-size: 0.8125rem;
    color: var(--color-gray-500);
    margin-top: 4px;
}

.footer-email {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.footer-email i {
    font-size: 0.875rem;
    color: var(--color-gray-500);
}

.footer-email a {
    font-size: 0.8125rem;
    color: var(--color-gray-500);
    transition: color 0.2s ease;
}

.footer-email a:hover {
    color: var(--color-white);
}

.footer-bottom {
    padding: 20px 0;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-company {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--color-gray-500);
}

.footer-company span {
    white-space: nowrap;
}

.footer-company span::after {
    content: '|';
    margin-left: 8px;
    color: rgba(255, 255, 255, 0.15);
}

.footer-company span:last-child::after {
    display: none;
}

.footer-copyright {
    font-size: 0.75rem;
    color: var(--color-gray-500);
}

.footer-legal {
    display: flex;
    gap: 16px;
}

.footer-legal a {
    font-size: 0.75rem;
    color: var(--color-gray-500);
    transition: color 0.2s ease;
}

.footer-legal a:hover {
    color: var(--color-white);
}

/* ==========================================================================
   11. Back to Top Button
   ========================================================================== */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--color-black);
    color: var(--color-white);
    border: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, background-color 0.2s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

#backToTop.visible {
    opacity: 1;
    visibility: visible;
}

#backToTop:hover {
    background-color: var(--color-gray-900);
}

/* ==========================================================================
   12. Form Elements
   ========================================================================== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-gray-900);
}

.form-label .required {
    color: #e74c3c;
    margin-left: 4px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 0.9375rem;
    font-family: var(--font-sans);
    color: var(--color-gray-900);
    background-color: var(--color-white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--color-gray-900);
    outline: none;
    box-shadow: 0 0 0 3px rgba(51, 51, 51, 0.08);
}

.form-input:disabled,
.form-select:disabled,
.form-textarea:disabled {
    background-color: var(--color-gray-100);
    cursor: not-allowed;
    color: var(--color-gray-500);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--color-gray-300);
}

.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23888' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

.form-hint {
    font-size: 0.75rem;
    color: var(--color-gray-500);
    margin-top: 4px;
    line-height: 1.4;
}

.form-error {
    font-size: 0.75rem;
    color: #e74c3c;
    margin-top: 4px;
}

.form-row {
    display: flex;
    gap: 12px;
}

.form-row .form-group {
    flex: 1;
}

/* Checkbox & Radio */
.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-gray-900);
    cursor: pointer;
}

.form-check-label {
    font-size: 0.875rem;
    color: var(--color-gray-700);
    cursor: pointer;
}

/* ==========================================================================
   13. Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 0.9375rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-sans);
    text-align: center;
    white-space: nowrap;
    line-height: 1;
}

.btn:active {
    transform: scale(0.98);
}

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

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

.btn-secondary {
    background-color: var(--color-white);
    color: var(--color-gray-900);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background-color: var(--color-gray-100);
}

.btn-accent {
    background-color: var(--color-accent);
    color: var(--color-white);
}

.btn-accent:hover {
    opacity: 0.9;
}

.btn-danger {
    background-color: #e74c3c;
    color: var(--color-white);
}

.btn-danger:hover {
    background-color: #c0392b;
}

.btn-ghost {
    background: transparent;
    color: var(--color-gray-700);
    border: none;
}

.btn-ghost:hover {
    background-color: var(--color-gray-100);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.8125rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.0625rem;
}

.btn-block {
    width: 100%;
}

.btn-round {
    border-radius: 30px;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 8px;
}

.btn-icon.btn-sm {
    width: 32px;
    height: 32px;
}

.btn i {
    font-size: 0.875em;
}

/* Button Group */
.btn-group {
    display: flex;
    gap: 8px;
}

.btn-group.btn-group-center {
    justify-content: center;
}

/* ==========================================================================
   14. Cards
   ========================================================================== */
.card {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.card-img {
    width: 100%;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.card:hover .card-img img {
    transform: scale(1.03);
}

.card-body {
    padding: 24px;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--color-gray-900);
    line-height: 1.4;
}

.card-text {
    font-size: 0.875rem;
    color: var(--color-gray-700);
    line-height: 1.6;
}

.card-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--color-border);
    font-size: 0.8125rem;
    color: var(--color-gray-500);
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ==========================================================================
   15. Badges
   ========================================================================== */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
}

.badge-active {
    background-color: #27ae60;
    color: var(--color-white);
}

.badge-expired {
    background-color: var(--color-gray-500);
    color: var(--color-white);
}

.badge-draft {
    background-color: #f39c12;
    color: var(--color-white);
}

.badge-info {
    background-color: #3498db;
    color: var(--color-white);
}

.badge-accent {
    background-color: var(--color-accent);
    color: var(--color-white);
}

.badge-outline {
    background-color: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-gray-700);
}

/* ==========================================================================
   16. Modal
   ========================================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background-color: var(--color-white);
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalIn 0.25s ease;
}

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

.modal-content.modal-lg {
    max-width: 720px;
}

.modal-content.modal-sm {
    max-width: 380px;
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-gray-900);
}

.modal-close {
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--color-gray-500);
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--color-black);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* ==========================================================================
   17. Page Sections (Sub-pages)
   ========================================================================== */
.page-hero {
    background-color: var(--color-black);
    padding: 140px 0 60px;
    text-align: center;
    color: var(--color-white);
}

.page-hero h1 {
    font-family: var(--font-serif);
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.page-hero p {
    font-size: 1rem;
    opacity: 0.7;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

.page-content {
    padding: 60px 0;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    color: var(--color-gray-500);
    padding: 20px 0;
}

.breadcrumb a {
    color: var(--color-gray-500);
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: var(--color-gray-900);
}

.breadcrumb .separator {
    font-size: 0.625rem;
    color: var(--color-gray-300);
}

/* ==========================================================================
   18. Funeral Notice Specific Components
   ========================================================================== */

/* Notice Card */
.notice-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 32px;
    text-align: center;
}

.notice-card-photo {
    width: 120px;
    height: 150px;
    margin: 0 auto 20px;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--color-gray-100);
}

.notice-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.notice-card-name {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-gray-900);
}

.notice-card-info {
    font-size: 0.875rem;
    color: var(--color-gray-700);
    line-height: 1.8;
}

.notice-card-info .label {
    color: var(--color-gray-500);
    margin-right: 8px;
}

.notice-card-divider {
    width: 40px;
    height: 1px;
    background-color: var(--color-border);
    margin: 20px auto;
}

.notice-card-family {
    font-size: 0.875rem;
    color: var(--color-gray-700);
    line-height: 2;
}

.notice-card-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
}

/* Notice Grid */
.notice-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Condolence / Tribute */
.tribute-section {
    padding: 40px 0;
    background-color: var(--color-gray-100);
}

.tribute-list {
    list-style: none;
    padding: 0;
}

.tribute-item {
    background-color: var(--color-white);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 12px;
}

.tribute-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.tribute-item-name {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--color-gray-900);
}

.tribute-item-date {
    font-size: 0.75rem;
    color: var(--color-gray-500);
}

.tribute-item-text {
    font-size: 0.875rem;
    color: var(--color-gray-700);
    line-height: 1.6;
}

/* Flower Sending */
.flower-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.flower-card {
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    transition: box-shadow 0.3s ease;
    cursor: pointer;
}

.flower-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.flower-card-img {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background-color: var(--color-gray-100);
}

.flower-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.flower-card-body {
    padding: 12px;
}

.flower-card-name {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.flower-card-price {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-accent);
}

/* ==========================================================================
   19. Tables
   ========================================================================== */
.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 12px 16px;
    text-align: left;
    font-size: 0.875rem;
    border-bottom: 1px solid var(--color-border);
}

.table th {
    font-weight: 600;
    color: var(--color-gray-900);
    background-color: var(--color-gray-100);
    white-space: nowrap;
}

.table td {
    color: var(--color-gray-700);
}

.table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

/* ==========================================================================
   20. Pagination
   ========================================================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 20px 0;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border-radius: 6px;
    font-size: 0.875rem;
    color: var(--color-gray-700);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.pagination a:hover {
    background-color: var(--color-gray-100);
}

.pagination .active {
    background-color: var(--color-black);
    color: var(--color-white);
    font-weight: 600;
}

.pagination .disabled {
    color: var(--color-gray-300);
    pointer-events: none;
}

/* ==========================================================================
   21. Animations
   ========================================================================== */
.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

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

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.slide-up {
    animation: slideUp 0.4s ease forwards;
}

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

/* Staggered animation delays */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ==========================================================================
   22. Loading & Skeleton
   ========================================================================== */
.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.loading-spinner::after {
    content: '';
    width: 32px;
    height: 32px;
    border: 3px solid var(--color-gray-200);
    border-top-color: var(--color-gray-900);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.skeleton {
    background: linear-gradient(90deg, var(--color-gray-100) 25%, var(--color-gray-200) 50%, var(--color-gray-100) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ==========================================================================
   23. Toast / Notification
   ========================================================================== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 4000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--color-white);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    animation: toastIn 0.3s ease;
    max-width: 360px;
}

.toast-success {
    background-color: #27ae60;
}

.toast-error {
    background-color: #e74c3c;
}

.toast-info {
    background-color: #3498db;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ==========================================================================
   24. Responsive - 1440px (Laptop / Small Desktop)
   ========================================================================== */
@media (min-width: 1500px) {
    .hero-section {
        height: 75vh;
    }
}

@media (max-width: 1440px) {
    .container {
        max-width: 1100px;
    }

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

    .hero-slide-content h2 {
        font-size: 2.25rem;
    }

    .hero-slide-content p {
        font-size: 1rem;
    }
}

/* ==========================================================================
   25. Responsive - 1024px (Tablet Landscape)
   ========================================================================== */
@media (max-width: 1024px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

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

    .hero-slide-content h2 {
        font-size: 2rem;
    }

    .hero-slide-content p {
        font-size: 0.9375rem;
    }

    .header-nav .nav-list {
        gap: 20px;
    }

    .header-nav .nav-link {
        font-size: 0.875rem;
    }

    .header-cta span {
        display: none;
    }

    .header-cta {
        padding: 9px 12px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

/* ==========================================================================
   26. Responsive - 768px (Tablet Portrait)
   ========================================================================== */
@media (max-width: 768px) {
    /* Header */
    .header-topbar {
        display: none;
    }

    .header-wrapper.scrolled .header {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }

    .hamburger {
        display: flex;
    }

    .header-nav {
        display: none;
    }

    .header-cta {
        display: none;
    }

    .header::after {
        display: none;
    }

    /* Hero */
    .hero-section {
        height: 40vh;
        min-height: 280px;
    }

    .hero-slide-content h2 {
        font-size: 1.75rem;
        letter-spacing: 1px;
    }

    .hero-slide-content p {
        font-size: 0.875rem;
    }

    .hero-section .swiper-button-next,
    .hero-section .swiper-button-prev {
        display: none;
    }

    /* Sections */
    .service-section {
        padding: 60px 0;
    }

    .service-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .service-card {
        padding: 28px 16px;
    }

    .service-card-icon {
        width: 52px;
        height: 52px;
    }

    .service-card-icon i {
        font-size: 1.75rem;
    }

    .service-card-title {
        font-size: 1rem;
    }

    .service-card-desc {
        font-size: 0.8125rem;
    }

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

    .qna-section {
        padding: 40px 0;
    }

    .banner-section {
        padding: 40px 0;
    }

    /* Page Sub */
    .page-hero {
        padding: 100px 0 40px;
    }

    .page-hero h1 {
        font-size: 1.75rem;
    }

    .page-content {
        padding: 40px 0;
    }

    /* Cards */
    .notice-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .flower-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* Forms */
    .form-row {
        flex-direction: column;
        gap: 0;
    }

    /* Modal */
    .modal-content {
        width: 95%;
        max-height: 85vh;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-contact .footer-phone a {
        font-size: 1.125rem;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }

    /* Back to Top */
    #backToTop {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }

    /* Table */
    .table th,
    .table td {
        padding: 10px 12px;
        font-size: 0.8125rem;
    }
}

/* ==========================================================================
   27. Responsive - 480px (Mobile)
   ========================================================================== */
@media (max-width: 480px) {
    html {
        font-size: 15px;
    }

    .container {
        padding: 0 16px;
    }

    /* Hero */
    .hero-section {
        height: 35vh;
        min-height: 240px;
    }

    .hero-slide-content h2 {
        font-size: 1.5rem;
        letter-spacing: 0;
    }

    .hero-slide-content p {
        font-size: 0.8125rem;
        line-height: 1.5;
    }

    .hero-slide-content .hero-btn {
        padding: 12px 24px;
        font-size: 0.8125rem;
    }

    /* Sections */
    .service-section {
        padding: 40px 0;
    }

    .service-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .service-card {
        padding: 24px 12px;
    }

    .service-card-icon {
        width: 44px;
        height: 44px;
        margin-bottom: 12px;
    }

    .service-card-icon i {
        font-size: 1.375rem;
    }

    .service-card-title {
        font-size: 0.875rem;
    }

    .service-card-desc {
        font-size: 0.75rem;
    }

    .section-title {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .qna-section {
        padding: 30px 0;
    }

    .qna-item {
        padding: 12px 14px;
    }

    .qna-item-title {
        font-size: 0.8125rem;
    }

    .qna-item-date {
        font-size: 0.75rem;
        margin-left: 12px;
    }

    .banner-section {
        padding: 30px 0;
    }

    .banner-img {
        border-radius: 8px;
    }

    /* Buttons */
    .btn-lg {
        padding: 14px 24px;
        font-size: 0.9375rem;
    }

    /* Page */
    .page-hero {
        padding: 90px 0 30px;
    }

    .page-hero h1 {
        font-size: 1.5rem;
    }

    .page-hero p {
        font-size: 0.875rem;
    }

    .page-content {
        padding: 30px 0;
    }

    /* Notice */
    .notice-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .notice-card {
        padding: 24px 20px;
    }

    /* Cards */
    .card-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .card-body {
        padding: 16px;
    }

    /* Flowers */
    .flower-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    /* Footer */
    .footer-desc {
        font-size: 0.75rem;
    }

    .footer-company {
        justify-content: center;
    }

    .footer-copyright {
        font-size: 0.6875rem;
    }

    .footer-legal {
        flex-wrap: wrap;
        gap: 12px;
        justify-content: center;
    }

    /* Modal */
    .modal-header {
        padding: 16px 20px;
    }

    .modal-body {
        padding: 20px;
    }

    .modal-footer {
        padding: 12px 20px;
        flex-direction: column;
    }

    .modal-footer .btn {
        width: 100%;
    }

    /* Pagination */
    .pagination a,
    .pagination span {
        min-width: 32px;
        height: 32px;
        font-size: 0.8125rem;
    }

    /* Toast */
    .toast-container {
        top: auto;
        bottom: 20px;
        right: 16px;
        left: 16px;
    }

    .toast {
        max-width: 100%;
    }

    /* Tribute */
    .notice-card-actions {
        flex-direction: column;
    }

    .notice-card-actions .btn {
        width: 100%;
    }
}

/* ==========================================================================
   28. Responsive - 360px (Small Mobile / Fold)
   ========================================================================== */
@media (max-width: 359px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 12px;
    }

    .hero-section {
        height: 30vh;
        min-height: 200px;
    }

    .hero-slide-content h2 {
        font-size: 1.25rem;
    }

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

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

    .mobile-nav-panel {
        width: 260px;
    }
}

/* ==========================================================================
   29. High-Resolution Screens
   ========================================================================== */

/* FHD (1920px ~ 2559px) */
@media (min-width: 1920px) and (max-width: 2559px) {
    html {
        font-size: 17px;
    }
}

/* QHD (2560px ~ 3839px) */
@media (min-width: 2560px) and (max-width: 3839px) {
    html {
        font-size: 19px;
    }

    :root {
        --max-width: 1600px;
    }
}

/* UHD (3840px+) */
@media (min-width: 3840px) {
    html {
        font-size: 22px;
    }

    :root {
        --max-width: 2000px;
    }
}

/* ==========================================================================
   30. Print Styles
   ========================================================================== */
@media print {
    .header-wrapper,
    .header,
    .header-topbar,
    .footer,
    .hamburger,
    .mobile-nav-panel,
    .mobile-nav-overlay,
    #backToTop,
    .toast-container {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }

    .page-hero {
        background-color: #fff;
        color: #000;
        padding: 20px 0;
    }

    .page-hero h1 {
        color: #000;
    }

    .card,
    .notice-card {
        border: 1px solid #ccc;
        box-shadow: none;
    }

    a {
        text-decoration: underline;
    }
}

/* ==========================================================================
   31. Accessibility
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Focus styles for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Skip link for screen readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    padding: 8px 16px;
    background-color: var(--color-black);
    color: var(--color-white);
    font-size: 0.875rem;
    z-index: 5000;
    transition: top 0.2s ease;
}

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

/* ==========================================================================
   SMS Verify Modal (SmsVerifier.showModal 공통)
   ========================================================================== */
.sms-verify-modal .swal2-html-container {
    text-align: left;
    padding: 0 1em;
}

.sms-modal-content .sms-modal-desc {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 18px;
    text-align: center;
}

.sms-modal-content .form-group {
    margin-bottom: 16px;
}

.sms-modal-content .form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
}

.sms-modal-content .input-with-button {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.sms-modal-content .form-input {
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.sms-modal-content .form-input:focus {
    border-color: #333;
}

.sms-modal-content .btn {
    white-space: nowrap;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
}

.sms-modal-content .btn-primary {
    background-color: #333;
    color: #fff;
}

.sms-modal-content .btn-secondary {
    background-color: #666;
    color: #fff;
}

.sms-modal-content .auth-timer {
    font-size: 0.9rem;
    font-weight: 600;
    min-width: 48px;
    text-align: center;
}

.sms-modal-status-wrap {
    min-height: 22px;
    margin-bottom: 4px;
}

.sms-modal-status {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    min-height: 1.2em;
    transition: color 0.2s;
}

.sms-modal-content .form-hint {
    display: block;
    font-size: 0.8rem;
    margin-top: 6px;
}

.sms-modal-content .status-verified,
.sms-modal-status.status-verified {
    color: #4CAF50;
}

.sms-modal-content .status-error,
.sms-modal-status.status-error {
    color: #F44336;
}

.sms-modal-content .status-expired,
.sms-modal-status.status-expired {
    color: #FF9800;
}
