/* ================================================
   昶永水電 - 工業職人風格設計系統
   Industrial Craftsman Design System
   ================================================ */

/* -------------------- CSS Variables -------------------- */
:root {
    /* Colors */
    --coal: #1a1a1a;
    --graphite: #2d2d2d;
    --steel: #4a4a4a;
    --concrete: #8a8a8a;
    --safety-orange: #ff6b35;
    --safety-orange-dark: #e55a2b;
    --warning-yellow: #ffc107;
    --pipe-blue: #3498db;
    --clean-white: #f5f5f5;
    --pure-white: #ffffff;
    --success-green: #27ae60;
    --danger-red: #e74c3c;

    /* Typography */
    --font-display: 'Oswald', sans-serif;
    --font-body: 'Noto Sans TC', sans-serif;

    /* Spacing */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 40px;
    --space-xl: 60px;
    --space-2xl: 100px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.3);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.4);
    --shadow-orange: 0 4px 20px rgba(255, 107, 53, 0.4);
}

/* -------------------- Reset & Base -------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--coal);
    color: var(--clean-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Industrial texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 1000;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* -------------------- Typography -------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
}

h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
h2 { font-size: clamp(2rem, 5vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

.text-orange { color: var(--safety-orange); }
.text-yellow { color: var(--warning-yellow); }
.text-muted { color: var(--concrete); }

/* -------------------- Navigation -------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 900;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--steel);
    padding: 0 var(--space-lg);
    transition: var(--transition-normal);
}

.navbar-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.navbar-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.navbar-logo span {
    color: var(--safety-orange);
}

.navbar-logo .logo-icon {
    width: 36px;
    height: 36px;
    background: var(--safety-orange);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-logo .logo-icon svg {
    width: 22px;
    height: 22px;
    color: var(--coal);
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    list-style: none;
}

.navbar-menu a {
    font-size: 0.95rem;
    font-weight: 500;
    padding: var(--space-xs) var(--space-sm);
    border-radius: 4px;
    transition: var(--transition-fast);
    position: relative;
}

.navbar-menu a:hover {
    color: var(--safety-orange);
}

.navbar-menu a.active {
    color: var(--safety-orange);
}

.navbar-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--safety-orange);
    border-radius: 2px;
}

.navbar-cta {
    background: var(--safety-orange);
    color: white !important;
    padding: 10px 20px !important;
    border-radius: 4px;
    font-weight: 700 !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-cta:hover {
    background: var(--safety-orange-dark);
    color: white !important;
}

.navbar-cta svg {
    width: 18px;
    height: 18px;
}

/* Mobile menu toggle */
.navbar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--clean-white);
    cursor: pointer;
    padding: var(--space-xs);
}

.navbar-toggle svg {
    width: 28px;
    height: 28px;
}

/* -------------------- Floating LINE Button -------------------- */
.line-float-btn {
    position: fixed;
    bottom: 100px;
    right: 24px;
    z-index: 998;
    width: 60px;
    height: 60px;
    background: #06C755;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(6, 199, 85, 0.4);
    transition: var(--transition-normal);
    animation: float-bounce 3s ease-in-out infinite;
}

.line-float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(6, 199, 85, 0.5);
}

.line-float-btn svg {
    width: 36px;
    height: 36px;
    color: white;
}

@keyframes float-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* LINE QR Modal */
.line-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

.line-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.line-modal {
    background: var(--graphite);
    border: 2px solid #06C755;
    border-radius: 16px;
    padding: var(--space-lg);
    text-align: center;
    max-width: 360px;
    width: 90%;
    transform: scale(0.9);
    transition: var(--transition-normal);
}

.line-modal-overlay.active .line-modal {
    transform: scale(1);
}

.line-modal-close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 36px;
    height: 36px;
    background: var(--steel);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.line-modal-close:hover {
    background: var(--danger-red);
}

.line-modal h3 {
    color: #06C755;
    margin-bottom: var(--space-sm);
    font-size: 1.5rem;
}

.line-modal p {
    color: var(--concrete);
    margin-bottom: var(--space-md);
}

.line-qr-placeholder {
    width: 200px;
    height: 200px;
    background: white;
    border-radius: 12px;
    margin: 0 auto var(--space-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--steel);
}

.line-qr-placeholder svg {
    width: 60px;
    height: 60px;
    margin-bottom: var(--space-xs);
    color: var(--concrete);
}

.line-qr-placeholder small {
    font-size: 0.8rem;
}

.line-id {
    background: var(--coal);
    padding: var(--space-sm);
    border-radius: 8px;
    font-family: monospace;
    font-size: 1.1rem;
    color: #06C755;
}

/* -------------------- Floating Contact Bar -------------------- */
.contact-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--safety-orange), var(--safety-orange-dark));
    padding: 12px 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
    z-index: 999;
    box-shadow: var(--shadow-orange);
}

.contact-bar a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    padding: 8px 20px;
    background: rgba(0,0,0,0.2);
    border-radius: 50px;
    transition: var(--transition-normal);
}

.contact-bar a:hover {
    background: rgba(0,0,0,0.4);
    transform: scale(1.05);
}

.contact-bar svg {
    width: 24px;
    height: 24px;
}

/* -------------------- Page Hero -------------------- */
.page-hero {
    padding: 160px var(--space-lg) var(--space-xl);
    background: linear-gradient(135deg, var(--coal) 0%, var(--graphite) 100%);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 60px,
            rgba(255,107,53,0.05) 60px,
            rgba(255,107,53,0.05) 61px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 60px,
            rgba(255,107,53,0.05) 60px,
            rgba(255,107,53,0.05) 61px
        );
}

.page-hero-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.page-hero .breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.9rem;
    color: var(--concrete);
    margin-bottom: var(--space-md);
}

.page-hero .breadcrumb a:hover {
    color: var(--safety-orange);
}

.page-hero .breadcrumb svg {
    width: 16px;
    height: 16px;
}

.page-hero h1 {
    margin-bottom: var(--space-sm);
}

.page-hero h1 span {
    color: var(--safety-orange);
}

.page-hero p {
    font-size: 1.2rem;
    color: var(--concrete);
    max-width: 600px;
}

/* -------------------- Section Styles -------------------- */
.section {
    padding: var(--space-2xl) var(--space-lg);
}

.section-dark {
    background: var(--graphite);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-tag {
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--safety-orange);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: var(--space-sm);
}

.section-title {
    margin-bottom: var(--space-sm);
}

.section-desc {
    color: var(--concrete);
    max-width: 600px;
    margin: 0 auto;
}

/* -------------------- Container -------------------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
}

/* -------------------- Cards -------------------- */
.card {
    background: var(--coal);
    border: 1px solid var(--steel);
    border-radius: 8px;
    padding: var(--space-md);
    transition: var(--transition-normal);
}

.card:hover {
    border-color: var(--safety-orange);
    transform: translateY(-4px);
}

.card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--safety-orange), var(--warning-yellow));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-sm);
}

.card-icon svg {
    width: 32px;
    height: 32px;
    color: var(--coal);
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: var(--space-xs);
}

.card p {
    color: var(--concrete);
    font-size: 0.95rem;
}

/* -------------------- Buttons -------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 14px 28px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-normal);
    text-decoration: none;
}

.btn svg {
    width: 20px;
    height: 20px;
}

.btn-primary {
    background: var(--safety-orange);
    color: white;
}

.btn-primary:hover {
    background: var(--safety-orange-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-orange);
}

.btn-secondary {
    background: var(--graphite);
    color: white;
    border: 2px solid var(--steel);
}

.btn-secondary:hover {
    border-color: var(--safety-orange);
    color: var(--safety-orange);
}

.btn-outline {
    background: transparent;
    color: var(--safety-orange);
    border: 2px solid var(--safety-orange);
}

.btn-outline:hover {
    background: var(--safety-orange);
    color: white;
}

.btn-dark {
    background: var(--coal);
    color: white;
}

.btn-dark:hover {
    background: var(--graphite);
}

.btn-line {
    background: #06C755;
    color: white;
}

.btn-line:hover {
    background: #05b34c;
}

.btn-lg {
    padding: 18px 36px;
    font-size: 1.1rem;
}

.btn-lg svg {
    width: 24px;
    height: 24px;
}

/* -------------------- Badge -------------------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    background: var(--graphite);
    border: 2px solid var(--safety-orange);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--safety-orange);
}

.badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--safety-orange);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* -------------------- Stats -------------------- */
.stats {
    display: flex;
    gap: var(--space-lg);
}

.stat {
    text-align: left;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--warning-yellow);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--concrete);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* -------------------- Grid Layouts -------------------- */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

/* -------------------- Image Placeholder -------------------- */
.img-placeholder {
    background: var(--graphite);
    border: 2px dashed var(--steel);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--concrete);
    text-align: center;
    padding: var(--space-md);
    border-radius: 8px;
}

.img-placeholder svg {
    width: 48px;
    height: 48px;
    color: var(--safety-orange);
    margin-bottom: var(--space-sm);
}

.img-placeholder strong {
    color: var(--clean-white);
    display: block;
    margin-bottom: 4px;
}

.img-placeholder small {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* -------------------- Diagonal Stripe -------------------- */
.diagonal-stripe {
    height: 60px;
    background: repeating-linear-gradient(
        -45deg,
        var(--warning-yellow),
        var(--warning-yellow) 20px,
        var(--coal) 20px,
        var(--coal) 40px
    );
}

/* -------------------- CTA Section -------------------- */
.cta-section {
    padding: var(--space-2xl) var(--space-lg);
    background: linear-gradient(135deg, var(--safety-orange), var(--safety-orange-dark));
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 40px,
        rgba(0,0,0,0.05) 40px,
        rgba(0,0,0,0.05) 80px
    );
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    margin-bottom: var(--space-sm);
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: var(--space-lg);
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* -------------------- Footer -------------------- */
.footer {
    background: var(--coal);
    padding: var(--space-xl) var(--space-lg);
    padding-bottom: 120px; /* Space for contact bar */
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-lg);
}

.footer-brand .navbar-logo {
    margin-bottom: var(--space-sm);
}

.footer-brand p {
    color: var(--concrete);
    font-size: 0.95rem;
    margin-bottom: var(--space-md);
}

.footer-social {
    display: flex;
    gap: var(--space-sm);
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: var(--graphite);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.footer-social a:hover {
    background: var(--safety-orange);
}

.footer-social svg {
    width: 20px;
    height: 20px;
}

.footer-column h4 {
    font-size: 1rem;
    margin-bottom: var(--space-md);
    color: var(--safety-orange);
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: var(--space-xs);
}

.footer-column a {
    color: var(--concrete);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.footer-column a:hover {
    color: var(--safety-orange);
}

.footer-bottom {
    max-width: 1200px;
    margin: var(--space-lg) auto 0;
    padding-top: var(--space-md);
    border-top: 1px solid var(--steel);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--concrete);
    font-size: 0.85rem;
}

/* -------------------- Price Table -------------------- */
.price-table {
    width: 100%;
    border-collapse: collapse;
}

.price-table th,
.price-table td {
    padding: var(--space-sm) var(--space-md);
    text-align: left;
    border-bottom: 1px solid var(--steel);
}

.price-table th {
    background: var(--graphite);
    font-family: var(--font-display);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--safety-orange);
}

.price-table tr:hover {
    background: rgba(255, 107, 53, 0.05);
}

.price-table .price {
    color: var(--warning-yellow);
    font-weight: 700;
    font-size: 1.1rem;
}

/* -------------------- Timeline -------------------- */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--steel);
}

.timeline-item {
    position: relative;
    padding-bottom: var(--space-lg);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -33px;
    top: 4px;
    width: 16px;
    height: 16px;
    background: var(--safety-orange);
    border-radius: 50%;
    border: 3px solid var(--coal);
}

.timeline-item h4 {
    margin-bottom: var(--space-xs);
}

.timeline-item p {
    color: var(--concrete);
}

/* -------------------- FAQ Accordion -------------------- */
.faq-item {
    border: 1px solid var(--steel);
    border-radius: 8px;
    margin-bottom: var(--space-sm);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: var(--graphite);
    border: none;
    padding: var(--space-md);
    text-align: left;
    color: var(--clean-white);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-fast);
}

.faq-question:hover {
    background: var(--steel);
}

.faq-question svg {
    width: 24px;
    height: 24px;
    transition: var(--transition-fast);
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 var(--space-md);
    max-height: 0;
    overflow: hidden;
    transition: var(--transition-normal);
}

.faq-item.active .faq-answer {
    padding: var(--space-md);
    max-height: 500px;
}

.faq-answer p {
    color: var(--concrete);
}

/* ================================================================================
   RESPONSIVE DESIGN SYSTEM
   統一斷點：1200px (大螢幕) / 1024px (平板橫向) / 768px (平板直向) / 576px (手機) / 480px (小手機)
   ================================================================================ */

/* -------------------- Large Desktop (< 1200px) -------------------- */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 var(--space-md);
    }

    .container-narrow {
        max-width: 100%;
        padding: 0 var(--space-md);
    }
}

/* -------------------- Tablet Landscape (< 1024px) -------------------- */
@media (max-width: 1024px) {
    :root {
        --space-2xl: 80px;
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-lg);
    }

    .navbar {
        padding: 0 var(--space-md);
    }

    .navbar-menu {
        gap: var(--space-sm);
    }

    .navbar-menu a {
        padding: var(--space-xs) 10px;
        font-size: 0.9rem;
    }

    .stats {
        gap: var(--space-md);
    }

    .stat-number {
        font-size: 2.5rem;
    }

    /* Price table horizontal scroll */
    .price-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .price-table th,
    .price-table td {
        white-space: nowrap;
        min-width: 120px;
    }
}

/* -------------------- Tablet Portrait (< 768px) -------------------- */
@media (max-width: 768px) {
    :root {
        --space-xl: 48px;
        --space-2xl: 60px;
    }

    /* Typography adjustments */
    h1 { font-size: clamp(2rem, 8vw, 3rem); }
    h2 { font-size: clamp(1.75rem, 6vw, 2.5rem); }
    h3 { font-size: clamp(1.25rem, 4vw, 1.75rem); }

    /* Navigation - Mobile Menu */
    .navbar {
        padding: 0 var(--space-sm);
    }

    .navbar-inner {
        height: 60px;
    }

    .navbar-logo {
        font-size: 1.3rem;
    }

    .navbar-logo .logo-icon {
        width: 32px;
        height: 32px;
    }

    .navbar-logo .logo-icon svg {
        width: 18px;
        height: 18px;
    }

    .navbar-menu {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(26, 26, 26, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: var(--space-lg);
        gap: var(--space-xs);
        overflow-y: auto;
        z-index: 899;
    }

    .navbar-menu.active {
        display: flex;
    }

    .navbar-menu li {
        border-bottom: 1px solid var(--steel);
    }

    .navbar-menu li:last-child {
        border-bottom: none;
        margin-top: var(--space-sm);
    }

    .navbar-menu a {
        display: block;
        padding: var(--space-md) 0;
        font-size: 1.1rem;
        /* Touch-friendly tap target */
        min-height: 48px;
        display: flex;
        align-items: center;
    }

    .navbar-menu a.active::after {
        display: none;
    }

    .navbar-cta {
        justify-content: center;
        padding: var(--space-md) !important;
    }

    .navbar-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        /* Touch-friendly */
    }

    .navbar-toggle svg {
        width: 24px;
        height: 24px;
    }

    /* Grid Systems */
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }

    /* Stats */
    .stats {
        flex-wrap: wrap;
        gap: var(--space-md);
        justify-content: center;
    }

    .stat {
        flex: 0 0 calc(50% - var(--space-sm));
        text-align: center;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    /* Section Spacing */
    .section {
        padding: var(--space-xl) var(--space-md);
    }

    .section-header {
        margin-bottom: var(--space-lg);
    }

    .section-desc {
        font-size: 0.95rem;
    }

    /* Page Hero */
    .page-hero {
        padding: 100px var(--space-md) var(--space-lg);
    }

    .page-hero p {
        font-size: 1rem;
    }

    .page-hero .breadcrumb {
        font-size: 0.85rem;
    }

    /* Cards */
    .card {
        padding: var(--space-sm);
    }

    .card-icon {
        width: 48px;
        height: 48px;
        border-radius: 10px;
    }

    .card-icon svg {
        width: 26px;
        height: 26px;
    }

    /* Buttons - Touch-friendly */
    .btn {
        padding: 14px 24px;
        min-height: 48px;
        /* Minimum touch target */
    }

    .btn-lg {
        padding: 16px 32px;
        font-size: 1rem;
        width: 100%;
        max-width: 320px;
    }

    .btn svg {
        width: 18px;
        height: 18px;
    }

    .btn-lg svg {
        width: 22px;
        height: 22px;
    }

    /* CTA Section */
    .cta-section {
        padding: var(--space-xl) var(--space-md);
    }

    .cta-section p {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: var(--space-sm);
    }

    /* Footer */
    .footer {
        padding: var(--space-lg) var(--space-md);
        padding-bottom: 100px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-lg);
    }

    .footer-brand {
        order: -1;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-column {
        padding-top: var(--space-md);
        border-top: 1px solid var(--steel);
    }

    .footer-column h4 {
        margin-bottom: var(--space-sm);
    }

    .footer-column ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-sm);
    }

    .footer-column li {
        margin-bottom: 0;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
        margin-top: var(--space-md);
    }

    /* Contact Bar */
    .contact-bar {
        padding: 10px var(--space-sm);
        gap: 8px;
    }

    .contact-bar a {
        padding: 10px 16px;
        font-size: 0.9rem;
        border-radius: 40px;
        flex: 1;
        justify-content: center;
        /* Touch-friendly */
        min-height: 44px;
    }

    .contact-bar a span {
        display: none;
    }

    .contact-bar svg {
        width: 20px;
        height: 20px;
    }

    /* LINE Float Button */
    .line-float-btn {
        bottom: 75px;
        right: 12px;
        width: 52px;
        height: 52px;
    }

    .line-float-btn svg {
        width: 30px;
        height: 30px;
    }

    /* LINE Modal */
    .line-modal {
        padding: var(--space-md);
        margin: var(--space-sm);
        max-width: calc(100vw - var(--space-lg));
    }

    .line-qr-placeholder {
        width: 160px;
        height: 160px;
    }

    .line-id {
        font-size: 1rem;
        padding: var(--space-sm);
    }

    /* Price Table - Better Mobile Experience */
    .price-table {
        font-size: 0.9rem;
    }

    .price-table th,
    .price-table td {
        padding: var(--space-sm) var(--space-xs);
        min-width: 100px;
    }

    .price-table .price {
        font-size: 1rem;
    }

    /* FAQ */
    .faq-question {
        padding: var(--space-sm);
        font-size: 0.95rem;
        /* Touch-friendly */
        min-height: 56px;
    }

    .faq-item.active .faq-answer {
        padding: var(--space-sm);
    }

    /* Timeline */
    .timeline {
        padding-left: 30px;
    }

    .timeline::before {
        left: 10px;
    }

    .timeline-item::before {
        left: -26px;
        width: 12px;
        height: 12px;
    }

    /* Badge */
    .badge {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    /* Diagonal Stripe */
    .diagonal-stripe {
        height: 40px;
    }

    /* Image Placeholder */
    .img-placeholder {
        padding: var(--space-sm);
    }

    .img-placeholder svg {
        width: 36px;
        height: 36px;
    }
}

/* -------------------- Mobile (< 576px) -------------------- */
@media (max-width: 576px) {
    :root {
        --space-lg: 32px;
        --space-xl: 40px;
        --space-2xl: 48px;
    }

    /* Typography */
    h1 { font-size: 1.875rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.1rem; }

    body {
        font-size: 0.95rem;
    }

    /* Section */
    .section {
        padding: var(--space-lg) var(--space-sm);
    }

    .section-tag {
        font-size: 0.8rem;
        letter-spacing: 2px;
    }

    /* Page Hero */
    .page-hero {
        padding: 90px var(--space-sm) var(--space-md);
    }

    /* Stats in a single row - scroll if needed */
    .stats {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: var(--space-xs);
        justify-content: flex-start;
    }

    .stat {
        flex: 0 0 auto;
        min-width: 80px;
        text-align: center;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    /* Buttons */
    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .btn-lg {
        padding: 14px 28px;
        font-size: 0.95rem;
    }

    /* CTA */
    .cta-section {
        padding: var(--space-lg) var(--space-sm);
    }

    .cta-buttons .btn-lg {
        max-width: 100%;
    }

    /* Footer */
    .footer {
        padding: var(--space-md) var(--space-sm);
        padding-bottom: 90px;
    }

    .footer-column ul {
        flex-direction: column;
        gap: var(--space-xs);
    }

    /* Contact Bar - Icon only */
    .contact-bar {
        padding: 8px var(--space-xs);
    }

    .contact-bar a {
        padding: 10px 14px;
        font-size: 0.85rem;
    }

    /* LINE Float Button */
    .line-float-btn {
        bottom: 70px;
        right: 10px;
        width: 48px;
        height: 48px;
    }

    .line-float-btn svg {
        width: 26px;
        height: 26px;
    }

    /* Card */
    .card {
        padding: var(--space-sm);
    }

    .card h3 {
        font-size: 1.1rem;
    }

    .card p {
        font-size: 0.9rem;
    }

    /* Price Table - Stack on very small screens */
    .price-table th:last-child,
    .price-table td:last-child {
        display: none;
    }

    /* Timeline */
    .timeline-item h4 {
        font-size: 1rem;
    }
}

/* -------------------- Extra Small Mobile (< 480px) -------------------- */
@media (max-width: 480px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.4rem; }

    .navbar-logo {
        font-size: 1.2rem;
    }

    .navbar-logo .logo-icon {
        width: 28px;
        height: 28px;
    }

    .page-hero {
        padding: 85px var(--space-xs) var(--space-md);
    }

    .section {
        padding: var(--space-md) var(--space-xs);
    }

    .btn {
        padding: 10px 16px;
        font-size: 0.875rem;
    }

    .btn-lg {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    /* Stats - Compact */
    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    /* Contact Bar */
    .contact-bar a {
        padding: 8px 12px;
    }

    .contact-bar svg {
        width: 18px;
        height: 18px;
    }

    /* LINE Modal */
    .line-modal {
        padding: var(--space-sm);
    }

    .line-qr-placeholder {
        width: 140px;
        height: 140px;
    }

    .line-modal h3 {
        font-size: 1.2rem;
    }
}

/* -------------------- Landscape Phone Fix -------------------- */
@media (max-height: 500px) and (orientation: landscape) {
    .navbar-menu {
        padding: var(--space-sm);
        gap: 0;
    }

    .navbar-menu a {
        padding: var(--space-xs) 0;
        min-height: 40px;
    }

    .page-hero {
        padding-top: 80px;
        min-height: auto;
    }

    .emergency-hero {
        padding-top: 80px;
    }

    .line-float-btn {
        bottom: 60px;
        width: 44px;
        height: 44px;
    }

    .contact-bar {
        padding: 6px var(--space-xs);
    }
}

/* -------------------- Touch Device Optimizations -------------------- */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices for better UX */
    .card:hover,
    .service-card:hover,
    .case-card:hover,
    .btn:hover {
        transform: none;
    }

    /* Keep color changes on active state */
    .card:active,
    .service-card:active,
    .case-card:active {
        border-color: var(--safety-orange);
    }

    .btn:active {
        transform: scale(0.98);
    }

    /* Larger touch targets */
    .filter-btn {
        padding: 12px 20px;
        min-height: 44px;
    }

    .area-tag {
        padding: 14px 20px;
        min-height: 44px;
    }
}

/* -------------------- High Contrast / Accessibility -------------------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .line-float-btn {
        animation: none;
    }

    .emergency-badge,
    .emergency-badge::before,
    .emergency-call-btn {
        animation: none;
    }
}

/* -------------------- Print Styles -------------------- */
@media print {
    .navbar,
    .contact-bar,
    .line-float-btn,
    .line-modal-overlay,
    .cta-section {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .section {
        padding: 20px 0;
    }

    .footer {
        padding-bottom: 20px;
    }
}
