/* ==========================================================================
   誠睿法律事務所 (kaohsiung-law.com) Stylesheet
   設計調性：
   - 實體擬真質感（復古紙質、黃銅金屬、卡牌堆疊）
   - 對稱、緊湊無間隙、細金線與精緻質感
   - 與成人站風格完全區隔，呈現高質感、沉穩專業法律機構形象
   ========================================================================== */

/* 變數定義：海軍藍、黃銅金、暖米白紙張背景、紅銅色 */
:root {
    --primary-color: #0d1e3d;       /* 深邃英倫海軍藍 */
    --primary-light: #162a53;       /* 淺海軍藍 */
    --accent-gold: #c5a059;         /* 復古黃銅金 */
    --accent-gold-dark: #a07d3b;    /* 深黃銅金 */
    --bg-cream: #fbf9f4;            /* 復古紙張暖米白 */
    --bg-white: #ffffff;
    --text-dark: #222c3c;           /* 深藍灰字 */
    --text-muted: #64748b;          /* 灰色字 */
    --border-gold-light: rgba(197, 160, 89, 0.25);
    --border-gold: rgba(197, 160, 89, 0.6);
    --shadow-classic: 0 10px 30px rgba(13, 30, 61, 0.08);
    --shadow-heavy: 0 15px 35px rgba(13, 30, 61, 0.15);
}

/* Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans TC', sans-serif;
    color: var(--text-dark);
    background-color: #f7f5ef; /* 微黃的仿舊底色 */
    line-height: 1.6;
}

h1, h2, h3, h4, .logo-title {
    font-family: 'Noto Serif TC', serif;
    font-weight: 700;
}

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

/* ==========================================================================
   Header & Top Accent Bar
   ========================================================================== */
.top-accent-bar {
    height: 4px;
    background: linear-gradient(90deg, #8c6239, #c5a059, #e5c185, #c5a059, #8c6239);
    width: 100%;
}

.main-header {
    background-color: var(--primary-color);
    color: var(--bg-cream);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--accent-gold);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo-area {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: #fdfaf2;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.logo-sub {
    font-size: 0.65rem;
    letter-spacing: 3.5px;
    color: var(--accent-gold);
    font-weight: 400;
    margin-top: 1px;
}

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

.nav-menu a {
    font-size: 0.95rem;
    font-weight: 500;
    color: #eae3d2;
    letter-spacing: 1px;
    padding: 5px 0;
    border-bottom: 1px solid transparent;
}

.nav-menu a:hover {
    color: var(--accent-gold);
    border-bottom: 1px solid var(--accent-gold);
}

.btn-nav-contact {
    background-color: var(--accent-gold);
    color: var(--primary-color) !important;
    padding: 8px 18px !important;
    border-radius: 3px;
    font-weight: 700 !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 2px 4px rgba(0,0,0,0.2);
    border: 1px solid var(--accent-gold-dark) !important;
}

.btn-nav-contact:hover {
    background-color: #dfba71 !important;
    transform: translateY(-1px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 4px 8px rgba(0,0,0,0.25);
}

/* ==========================================================================
   Hero Section (精緻古典海軍藍調，黃銅字體)
   ========================================================================== */
.hero-section {
    background-color: var(--primary-color);
    background-image: radial-gradient(circle at 80% 20%, #162a53 0%, #0d1e3d 100%);
    color: var(--bg-cream);
    padding: 100px 20px;
    position: relative;
    text-align: center;
    overflow: hidden;
    border-bottom: 3px double var(--accent-gold);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect fill="none" width="100" height="100"/><path stroke="rgba(197, 160, 89, 0.03)" stroke-width="1" d="M0,0 L100,100 M100,0 L0,100"/></svg>') repeat;
    opacity: 0.5;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    border: 1px solid var(--accent-gold);
    padding: 4px 16px;
    font-size: 0.8rem;
    letter-spacing: 3px;
    color: var(--accent-gold);
    text-transform: uppercase;
    margin-bottom: 25px;
    font-weight: 500;
}

.hero-title {
    font-size: 2.8rem;
    line-height: 1.35;
    margin-bottom: 25px;
    letter-spacing: 2px;
    color: #fdfaf2;
}

.hero-title span {
    color: var(--accent-gold);
    display: block;
    margin-top: 5px;
    font-weight: 900;
}

.hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #d1dbe5;
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-subtitle strong {
    color: var(--accent-gold);
    font-weight: 500;
}

.hero-cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-primary {
    background-color: var(--accent-gold);
    color: var(--primary-color);
    padding: 15px 35px;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    border: 1px solid var(--accent-gold-dark);
    border-radius: 4px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 4px 15px rgba(0,0,0,0.3);
}

.btn-primary:hover {
    background-color: #dfba71;
    transform: translateY(-2px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 6px 20px rgba(0,0,0,0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--bg-cream);
    padding: 15px 35px;
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 4px;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    transform: translateY(-2px);
}

/* ==========================================================================
   Section Layout
   ========================================================================== */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 90px 20px;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-tag {
    font-size: 0.8rem;
    letter-spacing: 4px;
    color: var(--accent-gold-dark);
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: var(--accent-gold);
}

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

/* ==========================================================================
   Core Features (擬真黃銅金邊卡片、對稱排版)
   ========================================================================== */
.features-section {
    background-color: #f5f2e9;
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--bg-cream);
    border: 1px solid var(--border-gold);
    border-radius: 6px;
    padding: 35px 30px;
    position: relative;
    box-shadow: var(--shadow-classic);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px solid rgba(197, 160, 89, 0.2);
    pointer-events: none;
    border-radius: 4px;
}

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

.icon-wrap {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-align: center;
}

.feature-card h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-align: center;
    position: relative;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-dark);
    text-align: justify;
    line-height: 1.6;
}

/* ==========================================================================
   Services Section (卡牌堆疊、細節豐富、完全無低俗感)
   ========================================================================== */
.services-section {
    background-color: var(--bg-cream);
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px; /* 緊湊對稱 */
}

.service-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-gold);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow-classic);
    display: flex;
    flex-direction: column;
    position: relative;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
    border: 1px solid rgba(197, 160, 89, 0.15);
    pointer-events: none;
}

.service-head {
    background-color: var(--primary-color);
    color: var(--bg-cream);
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 2px solid var(--accent-gold);
}

.service-num {
    font-family: 'Noto Serif TC', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-gold);
    opacity: 0.9;
    border-right: 1px solid rgba(197, 160, 89, 0.4);
    padding-right: 15px;
}

.service-head h3 {
    font-size: 1.15rem;
    letter-spacing: 1px;
}

.service-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-body p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #334155;
    text-align: justify;
}

.service-body p strong {
    color: var(--primary-color);
    border-bottom: 1px dotted var(--accent-gold-dark);
}

.service-bullets {
    list-style: none;
    margin-top: auto;
    border-top: 1px solid #f1f5f9;
    padding-top: 15px;
}

.service-bullets li {
    font-size: 0.85rem;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-weight: 500;
}

/* ==========================================================================
   Attorneys Section (律師團隊)
   ========================================================================== */
.team-section {
    background-color: #f5f2e9;
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
}

@media (max-width: 600px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}

.team-member-card {
    background-color: var(--bg-cream);
    border: 1px solid var(--border-gold);
    border-radius: 6px;
    padding: 35px;
    display: flex;
    gap: 30px;
    box-shadow: var(--shadow-classic);
    position: relative;
}

.team-member-card::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px solid rgba(197, 160, 89, 0.2);
    pointer-events: none;
    border-radius: 4px;
}

.member-photo-frame {
    flex-shrink: 0;
    width: 140px;
    height: 180px;
    border: 2px solid var(--accent-gold);
    padding: 4px;
    background-color: var(--bg-white);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.member-photo-placeholder {
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    color: var(--bg-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Noto Serif TC', serif;
    font-size: 1rem;
    letter-spacing: 2px;
    font-weight: 600;
    text-align: center;
    writing-mode: vertical-rl;
    padding: 10px;
}

.member-info {
    display: flex;
    flex-direction: column;
}

.member-name {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.member-name span {
    font-size: 0.85rem;
    font-weight: 500;
    background-color: var(--accent-gold);
    color: var(--primary-color);
    padding: 2px 8px;
    border-radius: 2px;
    margin-left: 10px;
    vertical-align: middle;
}

.member-degree {
    font-size: 0.85rem;
    color: var(--accent-gold-dark);
    font-weight: 600;
    margin-bottom: 12px;
}

.member-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #334155;
    text-align: justify;
    margin-bottom: 15px;
}

.member-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.member-tags span {
    font-size: 0.75rem;
    color: var(--text-muted);
    background-color: rgba(13, 30, 61, 0.04);
    padding: 3px 8px;
    border-radius: 2px;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-section {
    background-color: var(--bg-cream);
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    background-color: var(--bg-white);
    border: 1px solid rgba(197, 160, 89, 0.3);
    border-radius: 4px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(13,30,61,0.02);
}

.faq-question {
    font-size: 1.15rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    border-left: 4px solid var(--accent-gold);
    padding-left: 12px;
    line-height: 1.4;
}

.faq-answer {
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.7;
    padding-left: 16px;
}

.faq-answer p {
    margin-bottom: 12px;
}

.faq-answer ul {
    list-style: none;
    padding-left: 5px;
}

.faq-answer ul li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 8px;
}

.faq-answer ul li::before {
    content: "▪";
    color: var(--accent-gold-dark);
    position: absolute;
    left: 0;
}

/* ==========================================================================
   Contact Section & Form
   ========================================================================== */
.contact-section {
    background-color: #f1ede3;
}

.contact-box-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 40px;
    box-shadow: var(--shadow-heavy);
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--accent-gold);
}

@media (max-width: 900px) {
    .contact-box-grid {
        grid-template-columns: 1fr;
    }
}

/* 左側：事務所卡片 */
.contact-info-card {
    background-color: var(--primary-color);
    color: var(--bg-cream);
    padding: 50px 40px;
    position: relative;
    border-right: 1px solid var(--accent-gold);
}

.contact-info-card::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border: 1px solid rgba(197, 160, 89, 0.3);
    pointer-events: none;
}

.contact-info-card h3 {
    font-size: 1.8rem;
    color: #fdfaf2;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.law-slogan {
    font-size: 0.95rem;
    color: var(--accent-gold);
    margin-bottom: 40px;
    font-weight: 500;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    display: flex;
    gap: 20px;
}

.info-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-item h4 {
    font-size: 0.95rem;
    color: #fdfaf2;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.info-item p {
    font-size: 0.9rem;
    color: #cbd5e1;
}

.info-item a {
    color: var(--accent-gold);
    font-weight: 600;
}

.info-item a:hover {
    color: #dfba71;
}

.district-badge {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--accent-gold);
    background-color: rgba(197, 160, 89, 0.1);
    border: 1px solid rgba(197, 160, 89, 0.3);
    padding: 2px 8px;
    border-radius: 2px;
    margin-top: 8px;
}

/* 右側：預約表單 */
.contact-form-card {
    background-color: var(--bg-cream);
    padding: 50px 45px;
}

.contact-form-card h3 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.contact-form-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.law-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-color);
}

.form-group label span {
    color: #ef4444;
    font-weight: 400;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px 14px;
    border: 1px solid rgba(197, 160, 89, 0.4);
    border-radius: 3px;
    font-family: inherit;
    font-size: 0.9rem;
    background-color: var(--bg-white);
    color: var(--text-dark);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-gold-dark);
    box-shadow: 0 0 0 2px rgba(197, 160, 89, 0.15);
}

.btn-form-submit {
    background-color: var(--primary-color);
    color: var(--bg-cream);
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: 700;
    border: 1px solid var(--primary-light);
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(13,30,61,0.15);
    margin-top: 10px;
    transition: all 0.2s ease-in-out;
}

.btn-form-submit:hover {
    background-color: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(13,30,61,0.25);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.main-footer {
    background-color: var(--primary-color);
    color: #94a3b8;
    padding: 60px 20px 30px;
    border-top: 2px solid var(--accent-gold);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 40px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-brand h3 {
    font-size: 1.3rem;
    color: #fdfaf2;
    margin-bottom: 10px;
}

.footer-brand p {
    font-size: 0.85rem;
}

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

.footer-links a {
    font-size: 0.85rem;
    color: #cbd5e1;
}

.footer-links a:hover {
    color: var(--accent-gold);
}

.footer-bottom {
    text-align: center;
    font-size: 0.8rem;
}

.footer-bottom p {
    margin-bottom: 10px;
}

.seo-disclaimer {
    font-size: 0.7rem;
    color: #64748b;
    max-width: 1000px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ==========================================================================
   District Section (高雄各區在地長尾詞佈局)
   ========================================================================== */
.district-section {
    background-color: #f5f2e9;
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
}

.district-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.district-card {
    background-color: var(--bg-cream);
    border: 1px solid var(--border-gold);
    border-radius: 4px;
    padding: 28px 25px;
    position: relative;
    box-shadow: var(--shadow-classic);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.district-card::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px solid rgba(197, 160, 89, 0.18);
    pointer-events: none;
    border-radius: 3px;
}

.district-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-heavy);
}

.district-card h3 {
    font-size: 1.15rem;
    color: var(--primary-color);
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-gold);
}

.district-card p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #334155;
    text-align: justify;
}

.district-card p strong {
    color: var(--primary-color);
    border-bottom: 1px dotted var(--accent-gold-dark);
}

.fee-cta {
    text-align: center;
    margin-top: 50px;
    padding: 35px 30px;
    background-color: var(--primary-color);
    border: 2px solid var(--accent-gold);
    border-radius: 6px;
    position: relative;
}

.fee-cta p {
    font-size: 1.1rem;
    color: #fdfaf2;
    margin-bottom: 20px;
    line-height: 1.6;
}

.fee-cta p strong {
    color: var(--accent-gold);
}
