/* ============================================
   立衡法律事務所 — 官方網站樣式 v2.0
   Modern Minimalist Redesign
   ============================================ */

/* Google Fonts imported via HTML <link> tags */

/* ===== CSS VARIABLES ===== */
:root {
    /* Refined palette: deeper, more authoritative */
    --navy: #0F1C2E;           /* deeper navy — more gravitas */
    --navy-light: #1B2D45;     /* original navy as secondary */
    --copper: #9C6B3C;         /* muted copper — less flashy, more refined */
    --copper-light: #B8844A;
    --copper-bg: #F8F5F1;      /* barely-there warm tint */
    --bg: #F8F9FA;             /* neutral cool white */
    --white: #FFFFFF;
    --text: #1A1D23;           /* near-black, high contrast */
    --text-muted: #5C6370;     /* professional grey */
    --border: #DFE3E8;         /* subtle grey border */
    --success: #059669;
    --error: #DC2626;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.08), 0 4px 10px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.1);

    --radius: 8px;
    --radius-lg: 12px;
    --max-width: 1120px;

    --font-serif: 'Noto Serif TC', 'Georgia', serif;
    --font-sans: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    color: var(--text);
    background: var(--bg);
    line-height: 1.75;
    font-size: 16px;
    font-weight: 400;
}

a {
    color: var(--copper);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--copper-light);
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    line-height: 1.3;
    color: var(--navy);
}

h1 { font-size: 44px; font-weight: 700; }
h2 { font-size: 30px; font-weight: 700; }
h3 { font-size: 21px; font-weight: 600; }

ul { list-style: none; }

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

/* ===== HEADER / NAV ===== */
.header {
    background: var(--navy);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nav {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-logo span {
    color: #fff;
    font-family: var(--font-serif);
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    position: relative;
    transition: all var(--transition);
    text-decoration: none;
}

.nav-links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.nav-links a.active {
    color: #fff;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--copper);
    border-radius: 1px;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 1px;
    transition: all var(--transition);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
    text-decoration: none;
    text-align: center;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
}

.btn-primary:hover {
    background: var(--copper);
    border-color: var(--copper);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}
.btn-outline-primary {
    display: inline-block;
    margin-top: 1.2rem;
    padding: 0.6rem 1.5rem;
    background: transparent;
    color: #1a3a5c;
    border: 1.5px solid #1a3a5c;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}
.btn-outline-primary:hover {
    background: #1a3a5c;
    color: #fff;
}

.btn-outline:hover {
    border-color: #fff;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.btn-copper {
    background: var(--copper);
    color: #fff;
    border-color: var(--copper);
}

.btn-copper:hover {
    background: var(--copper-light);
    border-color: var(--copper-light);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-text {
    background: none;
    border: none;
    color: var(--copper);
    padding: 8px 0;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-text:hover {
    color: var(--copper-light);
    gap: 10px;
}

/* ===== HERO (Homepage) ===== */
.hero-home {
    position: relative;
    height: 70vh;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-home .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    z-index: 0;
}

.hero-home .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(27, 45, 69, 0.55) 0%, rgba(27, 45, 69, 0.7) 100%);
    z-index: 1;
}

.hero-home .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
    padding: 0 24px;
}

.hero-home h1 {
    font-family: var(--font-serif);
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 6px;
    margin-bottom: 12px;
}

.hero-home .hero-en {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 500;
    color: var(--copper-light);
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-bottom: 28px;
}

.hero-home .hero-tagline {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin-bottom: 36px;
    font-weight: 400;
}

.hero-home .btn-primary {
    background: var(--copper);
    border-color: var(--copper);
    padding: 16px 40px;
    font-size: 16px;
}

.hero-home .btn-primary:hover {
    background: var(--copper-light);
    border-color: var(--copper-light);
}

/* ===== PAGE HERO (Inner pages) ===== */
.page-hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: #fff;
    padding: 80px 24px;
    text-align: center;
    min-height: 30vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-hero h1 {
    font-family: var(--font-serif);
    font-size: 40px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 4px;
    margin-bottom: 12px;
}

.page-hero p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 17px;
    font-weight: 400;
}

/* ===== SECTIONS ===== */
.section {
    padding: 80px 24px;
}

.section .section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-white {
    background: var(--white);
}

.section-warm {
    background: var(--copper-bg);
}

.section-navy {
    background: var(--navy);
    color: #fff;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 30px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    color: var(--navy);
}

.section-navy .section-title {
    color: #fff;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 48px;
    font-size: 16px;
    line-height: 1.75;
}

.section-navy .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

/* ===== SERVICE CARDS (Homepage) ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    border: 1px solid var(--border);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--copper);
    transform: scaleX(0);
    transition: transform var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card .icon {
    margin-bottom: 16px;
    display: block;
    color: var(--copper);
}
.service-card .icon svg {
    width: 28px;
    height: 28px;
}

.service-card h3 {
    font-family: var(--font-serif);
    font-size: 19px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 10px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.75;
}

/* ===== FEATURES (Why Choose Us) ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.feature-item {
    text-align: center;
    padding: 24px 16px;
}

.feature-item .icon {
    margin-bottom: 20px;
    display: block;
    color: var(--copper);
}
.feature-item .icon svg {
    width: 32px;
    height: 32px;
}

.feature-item h3 {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 12px;
}

.feature-item p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.75;
}

/* ===== ATTORNEY INTRO (Homepage) ===== */
.attorney-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
}

.attorney-photo {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.attorney-photo img {
    width: 100%;
    display: block;
    border-radius: var(--radius-lg);
}

.attorney-info h3 {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.attorney-info .attorney-title {
    color: var(--copper);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.attorney-info .credentials {
    list-style: none;
    padding: 0;
    margin-bottom: 24px;
}

.attorney-info .credentials li {
    padding: 8px 0;
    padding-left: 28px;
    position: relative;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
}

.attorney-info .credentials li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--copper);
    font-weight: 700;
    font-size: 15px;
}

.attorney-info .attorney-desc {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.75;
    margin-bottom: 28px;
}

/* ===== BLOG PREVIEW (Homepage) ===== */
.blog-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: var(--max-width);
    margin: 0 auto 36px;
}

.blog-preview-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all var(--transition);
}

.blog-preview-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.blog-preview-card a {
    text-decoration: none;
    color: inherit;
    display: block;
    padding: 28px;
}

.blog-preview-card .blog-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.blog-preview-card h3 {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 10px;
    line-height: 1.5;
}

.blog-preview-card .excerpt {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-preview-card .read-more {
    color: var(--copper);
    font-size: 14px;
    font-weight: 600;
}

/* ===== CTA SECTION ===== */
.cta-section {
    text-align: center;
    padding: 64px 24px;
}

.cta-section h2 {
    font-family: var(--font-serif);
    font-size: 28px;
    color: #fff;
    margin-bottom: 12px;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 16px;
    margin-bottom: 32px;
}

.cta-section .btn-copper {
    padding: 16px 40px;
    font-size: 16px;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.7);
    padding: 64px 24px 32px;
    font-size: 14px;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .footer-logo {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 4px;
}

.footer-brand .footer-en {
    font-size: 12px;
    color: var(--copper-light);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
    display: block;
}

.footer-brand .footer-address {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
}

.footer-nav h4 {
    font-family: var(--font-serif);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-nav ul {
    list-style: none;
}

.footer-nav ul li {
    margin-bottom: 8px;
}

.footer-nav ul a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    transition: color var(--transition);
    text-decoration: none;
}

.footer-nav ul a:hover {
    color: #fff;
}

.footer-contact h4 {
    font-family: var(--font-serif);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-contact p {
    font-size: 14px;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.footer-contact a:hover {
    color: #fff;
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    padding-top: 24px;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
}

/* ===== ABOUT PAGE ===== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
    max-width: var(--max-width);
    margin: 0 auto;
}

.about-text h3 {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 16px;
    margin-top: 0;
}

.about-text h3.about-subsection {
    font-size: 16px;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 12px;
    color: var(--navy);
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.about-text .attorney-name-big {
    font-family: var(--font-serif);
    font-size: 26px;
    font-weight: 700;
    color: var(--copper);
    margin-bottom: 24px;
}

.about-text p {
    margin-bottom: 16px;
    color: var(--text-muted);
    line-height: 1.75;
}

.about-text ul {
    list-style: none;
    padding: 0;
}

.about-text ul li {
    padding: 8px 0;
    padding-left: 28px;
    position: relative;
    color: var(--text-muted);
    font-size: 15px;
}

.about-text ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--copper);
    font-weight: 700;
}

.about-right {
    position: sticky;
    top: 96px;
}

.about-highlight {
    background: var(--navy);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    margin-bottom: 24px;
}

.about-highlight h3 {
    font-family: var(--font-serif);
    font-size: 20px;
    margin-bottom: 16px;
    color: var(--copper-light);
}

.about-highlight p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.8;
}

.highlight-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 20px 0 0 0 !important;
}

.highlight-list li {
    padding: 14px 8px 14px 36px !important;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    list-style: none !important;
}

.highlight-list li:last-child {
    border-bottom: none;
}

.highlight-list li::before {
    content: '✦' !important;
    position: absolute;
    left: 8px;
    top: 14px;
    color: var(--copper-light);
    font-size: 13px;
}

.highlight-list li::marker {
    content: '' !important;
    display: none !important;
}

.highlight-list li strong {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
}

.highlight-list li span {
    display: block;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
    line-height: 1.7;
}

.about-photo {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-photo img {
    width: 100%;
    display: block;
    border-radius: var(--radius-lg);
}

/* Mobile-only attorney photo (shown between name and credentials) */
.about-photo-mobile {
    display: none;
}

.about-photo-mobile img {
    width: 100%;
    max-width: 320px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    margin: 0 auto 24px;
    display: block;
}

/* ===== SERVICES PAGE ===== */
.service-detail {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

.service-section {
    padding: 48px 0;
}

.service-section:first-child {
    padding-top: 0;
}

.service-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--navy);
    color: rgba(255, 255, 255, 0.85);
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    margin-bottom: 32px;
}

.service-section h2 {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.service-section .accent-bar {
    width: 48px;
    height: 3px;
    background: var(--copper);
    border-radius: 2px;
    margin-bottom: 16px;
}

.service-section p {
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.75;
}

.service-section ul {
    list-style: none;
    padding-left: 0;
}

.service-section ul li {
    padding: 10px 0;
    padding-left: 20px;
    position: relative;
    color: var(--text-muted);
    line-height: 1.75;
}

.service-section ul li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--copper);
    font-weight: 700;
}

.service-section ul li strong {
    color: var(--text);
    font-weight: 600;
}

.service-divider {
    display: block;
    padding: 10px 20px;
    background: var(--bg);
    border-radius: var(--radius);
    font-size: 14px;
    text-align: center;
    color: var(--text-muted);
    margin: 8px 0 32px;
}

/* Alternating bg for services */
.service-section-alt {
    background: var(--copper-bg);
    margin-left: -24px;
    margin-right: -24px;
    padding-left: 24px;
    padding-right: 24px;
    border-radius: var(--radius-lg);
}

/* ===== CONTACT PAGE ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 48px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.contact-info h3 {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 24px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-item .icon {
    font-size: 22px;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--copper-bg);
    border-radius: var(--radius);
}

.contact-item .label {
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 2px;
    font-size: 14px;
}

.contact-item .value {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

.contact-item .value a {
    color: var(--copper);
}

.map-container {
    margin-top: 32px;
}

.map-container h3 {
    font-family: var(--font-serif);
    margin-bottom: 16px;
    font-size: 18px;
}

.map-frame {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.map-frame iframe {
    border: 0;
    display: block;
}

.map-note {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 8px;
}

.contact-tip {
    margin-top: 24px;
    padding: 20px;
    background: var(--copper-bg);
    border-radius: var(--radius);
}

.contact-tip p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

.contact-tip strong {
    color: var(--navy);
}

/* ===== FORM ===== */
.form-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.form-card h3 {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 28px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: var(--navy);
    margin-bottom: 6px;
}

.form-group label .required {
    color: var(--error);
    margin-left: 2px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    height: 48px;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 15px;
    font-family: var(--font-sans);
    transition: all var(--transition);
    background: var(--white);
    color: var(--text);
}

.form-group textarea {
    height: auto;
    min-height: 120px;
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--copper);
    box-shadow: 0 0 0 3px rgba(184, 118, 60, 0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94A3B8;
}

.form-group .error-msg {
    color: var(--error);
    font-size: 13px;
    margin-top: 4px;
    display: none;
}

.form-group.has-error input,
.form-group.has-error select {
    border-color: var(--error);
}

.form-group.has-error .error-msg {
    display: block;
}

.privacy-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 24px;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

.privacy-check input[type="checkbox"] {
    margin-top: 4px;
    width: auto;
    height: auto;
    flex-shrink: 0;
}

.form-success {
    display: none;
    text-align: center;
    padding: 48px 24px;
}

.form-success .icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.form-success h3 {
    font-family: var(--font-serif);
    color: var(--success);
    margin-bottom: 12px;
}

.form-success p {
    color: var(--text-muted);
    line-height: 1.7;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    font-size: 16px;
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Honeypot field */
.hp-field {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    height: 0;
    width: 0;
    z-index: -1;
}

/* ===== BLOG PAGE ===== */
.blog-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 48px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.filter-btn {
    padding: 8px 20px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--white);
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}

.filter-btn:hover {
    border-color: var(--navy);
    color: var(--navy);
}

.filter-btn.active {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
    font-weight: 600;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    max-width: 900px;
    margin: 0 auto;
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all var(--transition);
}

.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.blog-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.blog-card-body {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.blog-card-title {
    font-family: var(--font-serif);
    font-size: 17px;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.5;
    margin: 0;
}

.blog-card-excerpt {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    flex: 1;
}

.blog-read-more {
    font-size: 13px;
    color: var(--copper);
    font-weight: 600;
}

.blog-category-tag {
    display: inline-block;
    padding: 3px 10px;
    background: var(--navy);
    color: #fff;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.blog-date {
    font-size: 12px;
    color: var(--text-muted);
}

.blog-empty {
    text-align: center;
    padding: 80px 24px;
    color: var(--text-muted);
    font-size: 15px;
}

/* ===== PRIVACY PAGE ===== */
.privacy-content {
    max-width: 780px;
    margin: 0 auto;
}

.privacy-content .update-date {
    color: var(--text-muted);
    margin-bottom: 32px;
    font-size: 14px;
}

.privacy-content h3 {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 600;
    color: var(--navy);
    margin-top: 40px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.privacy-content h3:first-of-type {
    margin-top: 0;
}

.privacy-content p {
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.75;
}

.privacy-content ul {
    padding-left: 24px;
    margin: 12px 0;
    list-style: disc;
}

.privacy-content ul li {
    color: var(--text-muted);
    padding: 4px 0;
    line-height: 1.7;
}

.privacy-content a {
    color: var(--copper);
}

/* ===== ARTICLE PAGE (blog/post.html) ===== */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 48px 24px 64px;
    align-items: start;
}

.article-main {
    min-width: 0;
}

.breadcrumb {
    margin-bottom: 24px;
}

.breadcrumb a {
    color: var(--copper);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color var(--transition);
}

.breadcrumb a:hover {
    color: var(--copper-light);
}

.article-header-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.article-content {
    font-size: 16px;
    line-height: 1.85;
    color: var(--text);
}

.article-content h1 {
    font-family: var(--font-serif);
    font-size: 26px;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 28px;
    line-height: 1.4;
    border-bottom: 3px solid var(--copper);
    padding-bottom: 16px;
}

.article-content h2 {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
    margin: 40px 0 16px;
    padding-left: 14px;
    border-left: 4px solid var(--copper);
}

.article-content h3 {
    font-family: var(--font-serif);
    font-size: 17px;
    font-weight: 600;
    color: var(--navy-light);
    margin: 32px 0 12px;
}

.article-content p {
    margin-bottom: 16px;
}

.article-content ul,
.article-content ol {
    padding-left: 24px;
    margin-bottom: 16px;
    list-style: disc;
}

.article-content ol {
    list-style: decimal;
}

.article-content li {
    margin-bottom: 8px;
    line-height: 1.75;
}

.article-content blockquote {
    border-left: 4px solid var(--copper);
    margin: 24px 0;
    padding: 16px 24px;
    background: var(--copper-bg);
    border-radius: 0 var(--radius) var(--radius) 0;
    color: var(--text-muted);
    font-style: italic;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
    font-size: 14px;
}

.article-content th {
    background: var(--navy);
    color: #fff;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
}

.article-content td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}

.article-content tr:hover td {
    background: var(--copper-bg);
}

.article-content a {
    color: var(--copper);
}

.article-content strong {
    font-weight: 700;
    color: var(--navy);
}

.article-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 36px 0;
}

.article-loading {
    color: var(--text-muted);
    padding: 48px 0;
    text-align: center;
}

.disclaimer {
    background: rgba(27, 45, 69, 0.04);
    border: 1px solid rgba(27, 45, 69, 0.1);
    border-radius: var(--radius);
    padding: 16px 20px;
    font-size: 13px;
    color: var(--text-muted);
    margin: 36px 0 28px;
    line-height: 1.7;
}

.disclaimer strong {
    color: var(--navy);
}

.article-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
    margin-top: 8px;
}

.article-nav-link {
    color: var(--copper);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    transition: color var(--transition);
}

.article-nav-link:hover {
    color: var(--copper-light);
}

.article-sidebar {
    position: sticky;
    top: 96px;
}

.author-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 28px;
    margin-bottom: 24px;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 16px;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    border-radius: 50%;
}

.author-initial {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    font-size: 32px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.author-info h3 {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
    text-align: center;
    margin-bottom: 4px;
}

.author-firm {
    text-align: center;
    color: var(--copper);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

.author-bio {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
    overflow-wrap: anywhere;
    word-break: auto-phrase;
}

.sidebar-topics {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 24px;
}

.sidebar-topics h4 {
    font-family: var(--font-serif);
    font-size: 15px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.sidebar-topics ul {
    list-style: none;
}

.sidebar-topics li {
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
}

.sidebar-topics li:last-child {
    border-bottom: none;
}

.sidebar-topics a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color var(--transition);
}

.sidebar-topics a:hover {
    color: var(--copper);
}

/* ===== UTILITY ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .attorney-intro {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    /* Navigation */
    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--navy);
        flex-direction: column;
        padding: 16px 24px 24px;
        gap: 4px;
        box-shadow: var(--shadow-lg);
    }

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

    .nav-links a {
        padding: 12px 16px;
    }

    .nav-links a.active::after {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    /* Hero */
    .hero-home {
        height: 50vh;
        min-height: 380px;
    }

    .hero-home h1 {
        font-size: 32px;
        letter-spacing: 4px;
    }

    .hero-home .hero-en {
        font-size: 13px;
        letter-spacing: 4px;
    }

    .hero-home .hero-tagline {
        font-size: 16px;
    }

    /* Page hero */
    .page-hero {
        padding: 56px 24px;
        min-height: auto;
    }

    .page-hero h1 {
        font-size: 30px;
    }

    /* Sections */
    .section {
        padding: 56px 24px;
    }

    .section-title {
        font-size: 26px;
    }

    /* Grids */
    .services-grid,
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .blog-preview-grid {
        grid-template-columns: 1fr;
    }

    .attorney-intro {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .attorney-photo {
        max-width: 400px;
        margin: 0 auto;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-right {
        position: static;
    }

    .about-photo-mobile {
        display: block;
        margin-bottom: 8px;
    }

    .about-photo {
        display: none;
    }

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

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

    /* Footer */
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .footer-nav ul,
    .footer-contact {
        text-align: center;
    }

    /* Article page */
    .article-layout {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 32px 24px 48px;
    }

    .article-sidebar {
        position: static;
    }

    /* CTA section */
    .cta-section {
        padding: 48px 24px;
    }

    .cta-section h2 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .hero-home h1 {
        font-size: 26px;
        letter-spacing: 2px;
    }

    .hero-home .hero-en {
        letter-spacing: 2px;
        font-size: 12px;
    }

    .nav-logo span {
        font-size: 16px;
        letter-spacing: 1px;
    }

    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 24px;
    }

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

/* ===== ANIMATIONS ===== */
@media (prefers-reduced-motion: no-preference) {
    .service-card,
    .blog-card,
    .blog-preview-card,
    .feature-item,
    .btn {
        transition: all var(--transition);
    }
}
