/**
 * 匠建設 - CSS
 * Modern Industrial Theme
 * High contrast, bold typography, asymmetrical layouts
 */

/* ========================================
   CSS Variables
   ======================================== */
:root {
    /* Colors - Modern Industrial */
    --color-primary: #0f172a;
    /* Midnight Blue */
    --color-primary-dark: #020617;
    --color-primary-light: #1e293b;

    --color-accent: #f97316;
    /* Vivid Orange */
    --color-accent-dark: #ea580c;
    --color-accent-light: #fdba74;

    --color-bg-white: #ffffff;
    --color-bg-light: #f1f5f9;
    --color-bg-gray: #cbd5e1;
    --color-bg-dark: #0f172a;

    --color-text-dark: #0f172a;
    --color-text-gray: #475569;
    --color-text-light: #94a3b8;
    --color-text-white: #ffffff;

    --color-border: #e2e8f0;

    /* Typography */
    --font-primary: 'Noto Sans JP', sans-serif;
    --font-en: 'Montserrat', sans-serif;

    /* Spacing */
    --section-padding: 120px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text-dark);
    background: var(--color-bg-white);
    letter-spacing: 0.02em;
}

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

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

ul {
    list-style: none;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   Fixed CTA
   ======================================== */
.fixed-cta {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 100;
    display: flex;
    gap: 10px;
}

.fixed-cta a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    color: white;
    font-weight: 700;
    text-align: center;
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(8px);
}

.fixed-cta-phone {
    background: rgba(15, 23, 42, 0.9);
}

.fixed-cta-estimate {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
}

@media (min-width: 769px) {
    .fixed-cta {
        display: none;
    }
}

/* ========================================
   Header
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition-normal);
}

.header-top {
    background: var(--color-primary-dark);
    color: white;
    padding: 6px 0;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.header-top .container {
    display: flex;
    justify-content: flex-end;
    /* Align to right for cleaner look */
    gap: 30px;
    align-items: center;
}

.header-message {
    margin-right: auto;
    opacity: 0.8;
}

.header-contact {
    display: flex;
    gap: 20px;
    align-items: center;
}

.header-phone {
    font-weight: 700;
    color: var(--color-accent);
}

.nav {
    padding: 20px 0;
}

.nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
    border-left: 4px solid var(--color-accent);
    padding-left: 12px;
}

.logo-main {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--color-primary);
    letter-spacing: 0.1em;
    line-height: 1;
}

.logo-sub {
    font-size: 0.65rem;
    color: var(--color-text-gray);
    letter-spacing: 0.2em;
    margin-top: 4px;
    font-weight: 700;
    font-family: var(--font-en);
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
    position: relative;
    padding: 4px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: var(--transition-fast);
}

.nav-links a:not(.nav-cta):hover::after {
    width: 100%;
}

.nav-cta {
    padding: 12px 32px !important;
    background: var(--color-accent) !important;
    color: white !important;
    border-radius: 50px;
    font-weight: 700 !important;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
    transition: var(--transition-normal) !important;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(249, 115, 22, 0.4);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 40px;
    height: 40px;
    z-index: 101;
    background: var(--color-bg-light);
    border-radius: 50%;
    align-items: center;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--color-primary);
    transition: var(--transition-fast);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99;
    background: rgba(15, 23, 42, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-links {
    text-align: center;
}

.mobile-nav-links li {
    margin: 15px 0;
}

.mobile-nav-links a {
    font-size: 1.1rem;
    color: white;
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* Mobile Contact Info */
.mobile-contact-info {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    color: white;
}

.mobile-message {
    font-size: 0.8rem;
    margin-bottom: 12px;
    opacity: 0.8;
}

.mobile-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--color-accent);
    font-family: var(--font-en);
    margin-bottom: 4px;
}

.mobile-hours {
    font-size: 0.75rem;
    opacity: 0.6;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: var(--color-primary);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Darker, moodier overlay */
    background:
        linear-gradient(to right, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.4) 100%),
        url('images/hero-bg.jpg') center/cover no-repeat;
    transform: scale(1.05);
    /* subtle zoom effect possibility */
    animation: zoomEffect 20s infinite alternate;
}

@keyframes zoomEffect {
    from {
        transform: scale(1.05);
    }

    to {
        transform: scale(1.15);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 180px 0 140px;
    /* Increased bottom padding for '10 Year Warranty' spacing */
    color: white;
    width: 100%;
}

/* Hero Features (Updated Structure) */
.hero-feature-list {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
    /* Changed to top margin to separate from buttons above */
}

.hero-feature-item {
    font-size: 0.9rem;
    font-weight: 700;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    backdrop-filter: blur(4px);
    letter-spacing: 0.05em;
}

.hero-title {
    margin-bottom: 32px;
}

.hero-title-sub {
    display: block;
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--color-accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-family: var(--font-en);
}

.hero-title-main {
    display: block;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-desc {
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    color: var(--color-text-light);
    margin-bottom: 48px;
    max-width: 600px;
    line-height: 1.8;
}

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

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition-normal);
}

.btn-primary {
    background: var(--color-accent);
    color: white;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
}

.btn-primary:hover {
    background: var(--color-accent-dark);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.5);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: white;
    color: var(--color-primary);
    border-color: white;
}

.btn-large {
    padding: 18px 42px;
}

/* ========================================
   Section Design
   ======================================== */
.section-title-center {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    z-index: 1;
}

.section-title-center::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--color-accent);
    margin: 20px auto 0;
}

.title-en {
    display: block;
    font-size: 1rem;
    letter-spacing: 0.2em;
    color: var(--color-accent);
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
    font-family: var(--font-en);
}

.title-ja {
    display: block;
    font-size: clamp(2rem, 4vw, 2.6rem);
    font-weight: 900;
    letter-spacing: 0.05em;
    color: var(--color-primary);
}

.section-desc {
    text-align: center;
    margin-top: -50px;
    margin-bottom: 60px;
    color: var(--color-text-gray);
    font-size: 1rem;
}

/* Dark Section overrides */
.light .title-en {
    color: var(--color-accent-light);
}

.light .title-ja {
    color: white;
}

/* ========================================
   Troubles Section
   ======================================== */
.troubles {
    padding: var(--section-padding) 0;
    background: var(--color-bg-white);
}

.troubles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.trouble-card {
    background: white;
    padding: 40px 30px;
    border: 1px solid var(--color-border);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

/* Modern accent line */
.trouble-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--color-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-normal);
}

.trouble-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.trouble-card:hover::before {
    transform: scaleX(1);
    background: var(--color-accent);
}

.trouble-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--color-text-light);
    /* Muted initially */
    transition: var(--transition-normal);
}

.trouble-card:hover .trouble-icon {
    color: var(--color-accent);
    transform: scale(1.1);
}

.trouble-card p {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary);
}

.troubles-solution {
    text-align: center;
    background: var(--color-primary);
    color: white;
    padding: 80px 60px;
    /* Increased padding */
    border-radius: 20px;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.troubles-solution::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.05) 40%, rgba(255, 255, 255, 0.05) 60%, transparent 60%);
    background-size: 20px 20px;
}

.solution-arrow {
    display: none;
}

.solution-text {
    font-size: 1.8rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.solution-text .highlight {
    color: var(--color-accent);
    font-size: 2.2rem;
    margin: 0 10px;
    font-weight: 900;
}

/* ========================================
   Why Choose Us
   ======================================== */
.why-us {
    padding: var(--section-padding) 0;
    background: var(--color-bg-light);
}

.reasons-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.reason-card {
    background: white;
    padding: 40px;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-left: 1px solid var(--color-border);
    transition: var(--transition-normal);
    position: relative;
}

.reason-card:nth-child(1) {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: row;
    align-items: center;
    border-left: 4px solid var(--color-accent);
    /* Slight emphasis but consistent style */
}

/* Removed color overrides for consistency */

.reason-number {
    font-family: var(--font-en);
    font-size: 4rem;
    font-weight: 900;
    color: var(--color-bg-gray);
    line-height: 1;
    margin-bottom: -20px;
    z-index: 0;
    opacity: 0.5;
}

.reason-content {
    position: relative;
    z-index: 1;
}

.reason-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--color-primary);
}

.reason-content p {
    color: var(--color-text-gray);
    line-height: 1.8;
}

/* ========================================
   Services Section (Modern Checkerboard/Cards)
   ======================================== */
.services {
    padding: var(--section-padding) 0;
    background: var(--color-primary);
    color: white;
    position: relative;
    overflow: hidden;
}

/* Background pattern */
.services::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border: 30px solid rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    top: -50px;
    right: -50px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.service-card {
    background: var(--color-primary-light);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    transition: var(--transition-normal);
    height: 100%;
}

.service-card:hover {
    background: white;
    z-index: 10;
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.service-card:hover .service-content h3 {
    color: var(--color-primary);
}

.service-card:hover .service-content p {
    color: var(--color-text-gray);
}

.service-card:hover .service-price {
    border-color: var(--color-border);
}

.service-image {
    height: 240px;
    overflow: hidden;
    position: relative;
}

/* Dark overlay on images by default */
.service-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.4);
    transition: var(--transition-normal);
}

.service-card:hover .service-image::after {
    opacity: 0;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-content {
    padding: 30px;
}

.service-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    transition: var(--transition-fast);
}

.service-content p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 20px;
    transition: var(--transition-fast);
}

.service-price {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-fast);
}

.price-value {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--color-accent);
}

/* ========================================
   Works Section
   ======================================== */
.works {
    padding: var(--section-padding) 0;
    background: var(--color-bg-white);
}

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

.work-card {
    background: white;
    border-radius: 0;
    box-shadow: none;
    transition: var(--transition-normal);
    cursor: pointer;
}

.work-card:hover {
    transform: translateY(-10px);
}

.work-images {
    position: relative;
    height: 300px;
    /* Taller images */
    display: flex;
    box-shadow: var(--shadow-md);
    border-radius: 4px;
    overflow: hidden;
}

/* Mobile Hero Feature Fix */
.hero-feature-item {
    color: white !important;
    border-color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 900px) {
    .hero-feature-list {
        flex-wrap: wrap;
        margin-top: 30px;
    }
}

/* Works Split - Standard Side-by-Side */
.work-images {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: #f0f0f0;
    display: flex;
    /* Side by side layout */
}

.work-before,
.work-after {
    position: relative;
    width: 50%;
    height: 100%;
    /* Reset absolute/clip-path */
    inset: auto;
    clip-path: none;
    z-index: auto;
}

.work-before img,
.work-after img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Hover Effect */
.work-card:hover img {
    transform: scale(1.05);
}

/* Simple Divider */
.work-before {
    border-right: 2px solid white;
}

/* Remove Diagonal Line */
.work-images::after {
    display: none;
}

.work-label {
    position: absolute;
    top: 0;
    padding: 6px 16px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 10;
    font-family: var(--font-en);
}

.work-before .work-label {
    left: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
}

.work-after .work-label {
    right: 0;
    background: var(--color-accent);
    color: white;
}

.work-info {
    padding: 24px 0;
    border-bottom: 2px solid var(--color-border);
    transition: var(--transition-normal);
}

.work-card:hover .work-info {
    border-color: var(--color-accent);
}

.work-category {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.work-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 8px 0;
}

.work-details {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--color-text-gray);
    margin-top: 12px;
}

.btn-center {
    display: table;
    margin: 60px auto 0;
}

/* ========================================
   Flow Section
   ======================================== */
.flow {
    padding: var(--section-padding) 0;
    background: var(--color-bg-light);
}

.flow-steps {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

/* Vertical line */
.flow-steps::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 40px;
    width: 4px;
    background: var(--color-border);
}

.flow-step {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    position: relative;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    margin-left: 20px;
    /* Offset for line */
    transition: var(--transition-normal);
}

.flow-step:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
}

.step-number {
    position: absolute;
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--color-accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-family: var(--font-en);
    border: 4px solid var(--color-bg-light);
    z-index: 2;
}

.step-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-primary);
}

/* ========================================
   Estimate Section
   ======================================== */
.estimate {
    padding: var(--section-padding) 0;
    background: var(--color-primary);
    color: white;
}

.estimate-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    background: white;
    padding: 60px;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    color: var(--color-text-dark);
}

.estimate-info h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.phone-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 10px;
    font-family: var(--font-en);
}

.estimate-benefits {
    margin-top: 40px;
    padding: 30px;
    background: var(--color-bg-light);
    border-radius: 12px;
}

.estimate-benefits ul li {
    margin-bottom: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

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

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.required {
    background: var(--color-accent);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 2px;
    margin-left: 8px;
}

input,
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--color-border);
    border-radius: 4px;
    font-family: inherit;
    transition: var(--transition-fast);
    background: var(--color-bg-light);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    background: white;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    cursor: pointer;
}

.btn-full {
    width: 100%;
    margin-top: 20px;
    font-size: 1.2rem;
}

/* ========================================
   Company Section
   ======================================== */
.company {
    padding: var(--section-padding) 0;
}

.company-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.company-table th {
    text-align: left;
    padding: 16px;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-gray);
    width: 140px;
}

.company-table td {
    padding: 16px;
    border-bottom: 1px solid var(--color-border);
    font-weight: 600;
}

.company-map iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border-radius: 12px;
    /* filter: grayscale(100%) removed for color map */
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--color-primary-dark);
    color: white;
    padding: 80px 0 20px;
    border-top: 4px solid var(--color-accent);
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo-main {
    color: white;
}

.footer-desc {
    color: var(--color-text-light);
    margin-top: 16px;
    max-width: 400px;
}

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

.footer-phone {
    font-family: var(--font-en);
    font-size: 2rem;
    font-weight: 900;
    color: var(--color-accent);
}

.footer-bottom {
    padding-top: 20px;
    text-align: center;
    color: var(--color-text-light);
    font-size: 0.8rem;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 900px) {

    .troubles-grid,
    .works-grid,
    .services-grid {
        grid-template-columns: 1fr;
        /* All single column on mobile */
    }

    .reasons-list {
        grid-template-columns: 1fr;
    }

    .estimate-content,
    .company-content,
    .footer-main {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-main {
        flex-direction: column;
    }

    .footer-contact {
        text-align: left;
        margin-top: 40px;
    }

    .hero-title-main {
        font-size: 2.8rem;
    }
}

/* ========================================
   SVG Icons
   ======================================== */
.svg-icon {
    width: 1em;
    height: 1em;
    fill: currentColor;
    display: inline-block;
    vertical-align: middle;
    position: relative;
    top: -0.1em;
}

.trouble-icon .svg-icon {
    width: 2em;
    height: 2em;
}

/* Hero Center Override (Reinforce) */
.hero-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-cta-group {
    justify-content: center;
}

.hero-desc {
    margin-left: auto;
    margin-right: auto;
}

/* Mobile Adjustments */
/* Mobile Adjustments */
@media (max-width: 900px) {
    .header-top {
        display: none;
        /* Hide top contact bar on mobile */
    }

    .nav-links {
        display: none;
        /* Hide PC nav links on mobile */
    }

    .menu-toggle {
        display: flex;
        /* Show hamburger menu on mobile */
    }

    .section-title-center::after {
        width: 40px;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 6px 14px;
    }

    /* Increase top padding to prevent overlap with header */
    .hero {
        padding-top: 140px;
    }

    .fixed-cta {
        display: none !important;
        /* Hide fixed CTA on mobile as per user request */
    }

    /* Fix Hero CTA Buttons on Mobile */
    .hero-cta-group {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .btn-large {
        width: 100%;
        max-width: 340px;
        padding: 12px 20px;
        justify-content: center;
        text-align: center;
    }

    .btn-icon {
        display: none;
        /* Hide icon on mobile to save space if needed, or keep smaller */
    }

    /* Fix Solution Text Line Breaks */
    .solution-text {
        display: flex;
        flex-direction: column;
        font-size: 1.1rem;
        line-height: 1.5;
        gap: 5px;
    }

    .solution-text span {
        display: block;
    }

    /* Fix Checkbox Readability on Mobile */
    .checkbox-group {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .checkbox-group label {
        background: white;
        padding: 16px;
        border: 1px solid var(--color-border);
        border-radius: 6px;
        width: 100%;
        font-size: 1rem;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        /* Align left */
        text-align: left;
    }

    .checkbox-group input[type="checkbox"] {
        width: auto;
        margin-right: 12px;
        transform: scale(1.2);
        /* Make checkbox bigger */
    }

    /* Polish Mobile Typography */
    p {
        text-align: justify;
        /* Better block text */
        word-break: break-all;
    }

    .hero-title-main br {
        display: none;
        /* Remove break in main title on mobile if needed, or keep */
    }
}

/* Enhanced Hero Background (Photo with Overlay) */
.hero-bg {
    background-color: var(--color-primary);
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.6), rgba(15, 23, 42, 0.8)),
        url('../images/hero-bg-new.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: zoomEffect 20s infinite alternate;
    /* Restore subtle zoom for photo */
}