/* ==========================================================================
   阿媽牌生鐵鍋幸福旗艦館 - 前台專屬風格樣式 (Bootstrap 5.3+ 增強)
   符合 WCAG 2.1 AA/AAA 無障礙對比標準，無 jQuery，純現代 CSS
   ========================================================================== */

:root {
    --brand-primary: #c2410c;      /* 熟鐵熾熱深橙 (Orange-700, 4.5:1+ 對比) */
    --brand-primary-hover: #9a3412;/* Orange-800 */
    --brand-copper: #c2410c;       /* 焱火暖銅橙 */
    --brand-amber: #b45309;        /* 匠人琥珀金 (Amber-700) */
    --brand-amber-hover: #92400e;  /* Amber-800 */
    --brand-dark: #111827;         /* 深黑墨岩 (Gray-900) */
    --brand-darker: #0b0f17;       /* 曜石深黑 (Obsidian) */
    --brand-amber-light: #fef3c7;  /* 暖白琥珀底 */
    --brand-gold: #d97706;         /* 典雅香檳金 */
    --text-main: #181c24;          /* 墨鑄黑主字體，清晰溫潤 */
    --text-muted: #52525b;         /* 次要文字清晰暖灰 (Zinc-600) */
    --bg-cream: #faf7f2;          /* 溫潤宣紙陶白底色 */
    --bg-card: #ffffff;           /* 純白卡片 */
    --border-warm: #eae4da;        /* 溫潤細緻邊框 */
    --font-heading: 'Noto Serif TC', 'Noto Sans TC', serif;
}

body {
    font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-cream);
    line-height: 1.8;
    overflow-x: hidden;
    padding-bottom: 70px; /* 為手機底部固定列預留安全距離 */
}

@media (min-width: 992px) {
    body {
        padding-bottom: 0;
    }
}

/* 品牌字型微調 */
.font-brand {
    font-family: 'Noto Sans TC', sans-serif;
    font-weight: 900;
}
.font-serif {
    font-family: 'Noto Serif TC', 'Noto Sans TC', serif !important;
    letter-spacing: -0.01em;
}
.tracking-wider {
    letter-spacing: 0.12em !important;
}
.tracking-widest {
    letter-spacing: 0.2em !important;
}

/* 溫潤中性與細緻邊框 */
.bg-warm-subtle {
    background-color: #fdfbf7 !important;
}
.border-warm {
    border: 1px solid var(--border-warm) !important;
}

/* 高對比色彩規範 (WCAG 2.1 AA/AAA) */
.text-amber-custom {
    color: var(--brand-amber) !important; /* #b45309 */
}
.text-copper-custom {
    color: var(--brand-copper) !important; /* #c2410c */
}
.text-amber-300 {
    color: #fcd34d !important; /* 適合深色底，對比 13.9:1 */
}
.text-amber-400, .text-gold {
    color: #fbbf24 !important; /* 適合深色底，對比 10.7:1 (AAA) */
}
.text-amber-700 {
    color: #b45309 !important; /* 適合淺色底，對比 5.02:1 (AA) */
}
.text-amber-800 {
    color: #92400e !important; /* 適合淺色底，對比 7.09:1 (AAA) */
}
.text-amber-900 {
    color: #78350f !important; /* 適合淺色底，對比 8.15:1 (AAA) */
}

/* Slate 灰黑階色票 (WCAG AAA) */
.text-slate-100 {
    color: #f1f5f9 !important;
}
.text-slate-200 {
    color: #e2e8f0 !important;
}
.text-slate-300 {
    color: #cbd5e1 !important;
}
.text-slate-400 {
    color: #94a3b8 !important;
}
.text-slate-600 {
    color: #475569 !important; /* 對比白底 7.58:1 (AAA) */
}
.text-slate-700 {
    color: #334155 !important; /* 對比白底 10.35:1 (AAA) */
}
.text-slate-custom {
    color: #334155 !important; /* 對比白底 10.35:1 (AAA) */
}
.text-light-slate {
    color: #cbd5e1 !important;
}

/* 強化次要文字清晰度，避免使用原生淺灰 (#6c757d) */
.text-muted, .text-secondary {
    color: #52525b !important; /* Zinc-600, 對比白底 7.0+:1 (AAA) */
}

/* 背景色設定 */
.bg-cream {
    background-color: var(--bg-cream) !important;
}
.bg-dark-slate {
    background-color: var(--brand-darker) !important;
}
.bg-amber-custom {
    background-color: var(--brand-amber) !important;
}
.bg-amber-subtle {
    background-color: #fef3c7 !important;
    border: 1px solid #fde68a !important;
    color: #78350f !important;
}
.border-amber-300 {
    border-color: #fcd34d !important;
}

/* 按鈕風格 (暖銅漸層、高質感陰影) */
.btn-primary-custom {
    background: linear-gradient(135deg, #c2410c 0%, #b45309 100%);
    border: none;
    color: #ffffff !important;
    transition: all 0.25s ease-in-out;
    box-shadow: 0 4px 14px rgba(180, 83, 9, 0.25);
}
.btn-primary-custom:hover, .btn-primary-custom:focus {
    background: linear-gradient(135deg, #9a3412 0%, #92400e 100%);
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(180, 83, 9, 0.35);
}

/* 頂部通知提示條：手機版隱藏，電腦版展示 */
.top-announcement-bar {
    display: none;
}
@media (min-width: 768px) {
    .top-announcement-bar {
        display: block !important;
    }
}

.brand-icon {
    width: 44px;
    height: 44px;
}
.brand-logo-img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    display: inline-block;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease;
}
.navbar-brand .brand-logo-img {
    margin-right: 14px;
}
.navbar-brand:hover .brand-logo-img {
    transform: scale(1.06);
    box-shadow: 0 4px 12px rgba(194, 65, 12, 0.25) !important;
}

/* 僅小螢幕手機 (<576px) 輕量微調，確保漢堡按鈕與品牌同列，電腦版絕不變動 */
@media (max-width: 575.98px) {
    .navbar-brand {
        max-width: calc(100% - 56px);
    }
    .navbar-brand .font-brand {
        font-size: 1.25rem !important;
    }
    .navbar-brand .brand-logo-img {
        width: 38px !important;
        height: 38px !important;
        margin-right: 10px !important;
    }
    .navbar-brand .brand-text-group span:last-child {
        font-size: 0.72rem !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* 官方主視覺活動 Banner (電腦版 / 手機版自適應) */
.banner-kv-section {
    background-color: #0b0f17;
    border-bottom: 2px solid rgba(217, 119, 6, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.banner-kv-img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    object-position: center;
}
@media (max-width: 767.98px) {
    .banner-kv-img {
        max-height: 520px;
        object-fit: cover;
        object-position: center;
    }
}

/* 主視覺 Hero 區塊 */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.94) 0%, rgba(15, 23, 42, 0.96) 100%),
                radial-gradient(circle at top right, rgba(194, 65, 12, 0.3) 0%, transparent 60%);
    color: #ffffff;
    overflow: hidden;
    padding: 60px 0 80px 0;
}

/* 若有自訂主視覺 Banner 圖片，使用半透明防炫光漸層層罩 */
.hero-section.has-custom-bg {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
.hero-section.has-custom-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.88) 0%, rgba(30, 41, 59, 0.82) 100%);
    z-index: 1;
}
.hero-section > .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2rem, 3.8vw, 3.4rem);
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: clamp(1.05rem, 1.6vw, 1.35rem);
    color: #e2e8f0;
    line-height: 1.7;
}

/* 毛玻璃半透明資訊卡片 */
.frosted-glass-card {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* 旗艦匠人專屬展示卡片 (Hero 右側) */
.hero-showcase-card {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(251, 191, 36, 0.4);
    border-radius: 1.5rem;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

/* 四大亮點雜誌級圖文卡片 */
.highlight-editorial-card {
    background: #ffffff;
    border-radius: 1.25rem;
    border: 1px solid rgba(226, 232, 240, 0.85);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}
.highlight-editorial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.12);
    border-color: rgba(245, 158, 11, 0.5);
}
.highlight-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background-color: #0f172a;
}
.highlight-zoom-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.highlight-editorial-card:hover .highlight-zoom-img {
    transform: scale(1.08);
}
.highlight-floating-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(15, 23, 42, 0.86);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.4);
    padding: 5px 14px;
    font-weight: 700;
    border-radius: 50rem;
    font-size: 0.825rem;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.highlight-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.1) 0%, rgba(15, 23, 42, 0.4) 100%);
    pointer-events: none;
}
.highlight-tagline {
    color: #b45309;
    font-weight: 700;
    font-size: 0.95rem;
}

/* 42年傳承工藝步進卡片 */
.craft-step-card {
    background: #ffffff;
    border-radius: 1.25rem;
    padding: 1.75rem 1.5rem;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
    transition: all 0.3s ease;
    height: 100%;
}
.craft-step-card:hover {
    transform: translateY(-5px);
    border-color: #f59e0b;
    box-shadow: 0 14px 30px rgba(245, 158, 11, 0.12);
}
.craft-step-num {
    font-family: 'Noto Serif TC', serif;
    font-size: 2.25rem;
    font-weight: 900;
    line-height: 1;
    color: #d97706;
    letter-spacing: -0.03em;
}

/* 推薦特別場卡片外框 (高質感暖金視覺) */
.featured-session-card {
    border: 2px solid #d97706 !important;
    background: linear-gradient(180deg, #fffcf7 0%, #ffffff 100%) !important;
    box-shadow: 0 12px 32px rgba(180, 83, 9, 0.12) !important;
    border-radius: 1.25rem !important;
    position: relative;
}
.vip-ribbon {
    background: linear-gradient(135deg, #c2410c 0%, #b45309 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.825rem;
    padding: 5px 14px;
    border-radius: 50rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(194, 65, 12, 0.25);
}

/* 預約表單卡片 */
.booking-form-card {
    background: #ffffff;
    border-radius: 1.25rem;
    border: 1px solid var(--border-warm);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
}
.form-floating > label {
    color: var(--text-muted);
}
.form-control:focus, .form-select:focus {
    border-color: var(--brand-amber);
    box-shadow: 0 0 0 0.25rem rgba(180, 83, 9, 0.18);
}

/* 交通資訊卡片 */
.info-box-pill {
    background: #faf7f2;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    border-left: 4px solid var(--brand-amber);
    border-top: 1px solid var(--border-warm);
    border-right: 1px solid var(--border-warm);
    border-bottom: 1px solid var(--border-warm);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

/* 平滑滾動 */
html {
    scroll-behavior: smooth;
}
