:root {
    --primary-color: #00a859;
    --primary-hover: #008f4c;
    --accent-color: #00c46a;
    --accent-soft: #eafff3;
    --aqua-color: #38bdf8;
    --surface: #ffffff;
    --surface-muted: #f7faf9;
    --surface-tint: #effaf8;
    --text-dark: #17211f;
    --text-medium: #4b5f5a;
    --text-light: #6b7f7a;
    --border-color: #dce9e6;
    --shadow-sm: 0 6px 18px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 16px 38px rgba(15, 23, 42, 0.1);
    --shadow-lg: 0 28px 70px rgba(15, 23, 42, 0.2);
    --radius-sm: 5px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --font-family-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans KR", sans-serif;
    --transition: 180ms ease;
}

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

html {
    scroll-behavior: smooth;
    background: #111c1a;
}

body {
    background: #111c1a;
    color: var(--text-dark);
    font-family: var(--font-family-base);
    font-size: 16px;
    line-height: 1.6;
    text-align: center;
}

main {
    background: var(--surface);
}

a {
    color: inherit;
    text-decoration: none;
}

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

.container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(220, 233, 230, 0.9);
    backdrop-filter: blur(14px);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 74px;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
}

.logo-mark {
    color: var(--text-dark);
    font-size: 23px;
    font-weight: 900;
    letter-spacing: 0;
    white-space: nowrap;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 19px;
    height: 2px;
    margin: 3px auto;
    border-radius: 8px;
    background: var(--text-dark);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
}

.nav-links a {
    color: var(--text-medium);
    font-size: 15px;
    font-weight: 800;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-call-btn {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 16px;
    border-radius: var(--radius-sm);
    background: var(--primary-color);
    color: #ffffff !important;
    box-shadow: 0 10px 22px rgba(15, 118, 110, 0.22);
}

.nav-call-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.hero {
    position: relative;
    isolation: isolate;
    display: flex;
    min-height: 650px;
    align-items: center;
    background:
        linear-gradient(90deg, rgba(10, 24, 22, 0.86) 0%, rgba(10, 24, 22, 0.68) 43%, rgba(10, 24, 22, 0.12) 100%),
        url("assets/images/work-gallery/drain-01.jpg") center / cover no-repeat;
    color: #ffffff;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    z-index: -1;
    height: 110px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.98));
}

.hero-inner {
    display: flex;
    justify-content: flex-start;
}

.hero-content {
    max-width: 720px;
    text-align: left;
}

.eyebrow {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 18px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.92);
    font-size: 14px;
    font-weight: 850;
}

h1,
h2,
h3 {
    line-height: 1.18;
    letter-spacing: 0;
}

h1 {
    max-width: 720px;
    font-size: 58px;
    font-weight: 900;
}

h1 span {
    display: block;
}

h2 {
    color: var(--text-dark);
    font-size: 38px;
    font-weight: 900;
    text-align: center;
}

.text-accent {
    color: var(--primary-color);
}

.hero-accent {
    color: #39ff7f;
    text-shadow: 0 0 22px rgba(57, 255, 127, 0.46);
}

h3 {
    color: var(--text-dark);
    font-size: 21px;
    font-weight: 850;
}

.hero-content p {
    max-width: 670px;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 19px;
    word-break: keep-all;
}

.hero-actions {
    display: flex;
    margin-top: 32px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    border-radius: var(--radius-sm);
    padding: 14px 26px;
    font-weight: 900;
    transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
}

.btn-phone {
    gap: 10px;
    background: #ffffff;
    color: var(--primary-hover);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
    font-size: 20px;
}

.btn-phone:hover {
    background: var(--accent-soft);
    transform: translateY(-1px);
}

.btn-phone span:last-child {
    display: grid;
    gap: 2px;
    line-height: 1.15;
}

.btn-phone small {
    color: var(--text-medium);
    font-size: 0.72em;
    font-weight: 900;
}

.phone-icon {
    color: var(--accent-color);
    font-size: 25px;
}

.hero .btn-phone {
    min-width: 330px;
    min-height: 84px;
    padding: 20px 56px;
    font-size: 25px;
    box-shadow: 0 20px 54px rgba(0, 0, 0, 0.28), 0 0 0 0 rgba(57, 255, 127, 0.38);
    animation: hero-phone-pulse 1.9s ease-in-out infinite;
}

.hero .btn-phone small {
    color: var(--primary-hover);
    font-size: 0.82em;
}

.status-ticker {
    overflow: hidden;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: #ffffff;
    color: var(--text-dark);
}

.ticker-track {
    display: flex;
    width: max-content;
    animation: ticker-move 32s linear infinite;
    will-change: transform;
}

.ticker-group {
    display: flex;
    flex: 0 0 auto;
}

.ticker-track span {
    display: inline-flex;
    align-items: center;
    min-height: 52px;
    padding: 0 32px;
    border-right: 1px solid var(--border-color);
    color: var(--text-medium);
    font-size: 16px;
    font-weight: 850;
    white-space: nowrap;
}

.emergency-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 22px max(20px, calc((100% - 980px) / 2));
    background: var(--primary-color);
    color: #ffffff;
    font-weight: 850;
}

.emergency-strip strong {
    color: #ffffff;
    font-size: 22px;
}

.emergency-strip span:last-child {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
}

.emergency-light {
    width: 11px;
    height: 11px;
    border-radius: var(--radius-sm);
    background: #ffffff;
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.18);
    animation: status-blink 1.4s ease-in-out infinite;
}

.features,
.services,
.process-section,
.gallery-section,
.contact {
    padding: 86px 0;
}

.features {
    padding-top: 24px;
}

.process-section {
    padding-bottom: 34px;
}

.contact {
    padding-top: 40px;
}

.services {
    padding-top: 74px;
    background: var(--surface-muted);
}

.section-subtitle {
    max-width: 720px;
    margin: 12px auto 38px;
    color: var(--text-light);
    font-size: 18px;
    text-align: center;
    word-break: keep-all;
}

.feature-grid,
.services-grid,
.process-steps {
    display: grid;
    gap: 18px;
}

.feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.service-card,
.process-step,
.photo-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.feature-card {
    padding: 30px 24px;
    text-align: center;
}

.feature-card:hover,
.service-card:hover,
.photo-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.feature-card,
.service-card,
.photo-card {
    transition: transform var(--transition), box-shadow var(--transition);
}

.feature-icon {
    display: inline-grid;
    width: 52px;
    height: 52px;
    place-items: center;
    margin-bottom: 16px;
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
    color: var(--primary-color);
    font-size: 28px;
    font-weight: 900;
}

.feature-card p {
    margin-top: 10px;
    color: var(--text-light);
    word-break: keep-all;
}

.process-section {
    background: #ffffff;
}

.section-label {
    display: block;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 2px;
}

.process-steps {
    position: relative;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-top: 44px;
}

.process-steps::before {
    content: "";
    position: absolute;
    top: 31px;
    left: 8%;
    right: 8%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 168, 89, 0.2), rgba(0, 168, 89, 0.52), rgba(0, 168, 89, 0.2), transparent);
}

.process-step {
    position: relative;
    z-index: 1;
    padding: 0 10px;
    border: 0;
    box-shadow: none;
    background: transparent;
    text-align: center;
}

.process-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 31px;
    left: calc(50% + 42px);
    width: calc(100% - 84px);
    height: 2px;
    background: repeating-linear-gradient(90deg, rgba(0, 168, 89, 0.45) 0 8px, transparent 8px 14px);
}

.process-step span {
    display: inline-grid;
    width: 62px;
    height: 62px;
    place-items: center;
    margin-bottom: 16px;
    border: 2px solid var(--text-dark);
    border-radius: 50%;
    background: #ffffff;
    color: var(--text-dark);
    font-size: 20px;
    font-weight: 900;
}

.process-step h3 {
    font-size: 18px;
}

.process-step p {
    margin-top: 8px;
    color: var(--text-light);
    font-size: 14px;
    word-break: keep-all;
}

.service-card {
    position: relative;
    min-height: 132px;
    display: grid;
    align-content: center;
    gap: 14px;
    padding: 24px 18px;
    text-align: left;
}

.service-card span {
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 900;
}

.service-card h3 {
    font-size: 21px;
    word-break: keep-all;
}

.section-divider {
    width: min(1120px, calc(100% - 40px));
    height: 1px;
    margin: 0 auto;
    background: linear-gradient(90deg, transparent, var(--border-color) 14%, var(--border-color) 86%, transparent);
}

.gallery-divider {
    margin-top: 12px;
}

.gallery-section {
    background: #ffffff;
}

.gallery-section h2 {
    margin-bottom: 34px;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.photo-card {
    overflow: hidden;
    text-align: left;
}

.photo-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: var(--surface-muted);
}

.photo-card figcaption {
    padding: 13px 15px 15px;
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 850;
}

.contact h2 {
    margin-bottom: 20px;
}

.btn-phone-large {
    width: min(100%, 420px);
    min-height: 66px;
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 16px 34px rgba(15, 118, 110, 0.22);
    font-size: 24px;
}

.btn-phone-large:hover {
    background: var(--primary-hover);
}

.btn-phone-large .phone-icon {
    color: #ffffff;
}

.contact-photo-slider {
    overflow: hidden;
    width: min(100%, 1120px);
    margin: 34px auto 0;
}

.contact-photo-track {
    display: flex;
    width: max-content;
    animation: contact-photo-slide 42s linear infinite;
    will-change: transform;
}

.contact-photo-group {
    display: flex;
    flex: 0 0 auto;
    gap: 14px;
    padding-right: 14px;
}

.contact-photo-group img {
    width: 280px;
    height: 176px;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.floating-contact {
    position: fixed;
    right: 28px;
    bottom: 96px;
    z-index: 90;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    max-width: 210px;
}

.floating-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    background: rgba(17, 28, 26, 0.88);
    color: #ffffff;
    box-shadow: var(--shadow-sm);
    text-align: left;
}

.floating-status strong {
    font-size: 13px;
    line-height: 1.1;
    white-space: nowrap;
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent-color);
    box-shadow: 0 0 0 5px rgba(20, 184, 166, 0.18);
    animation: status-blink 1.4s ease-in-out infinite;
}

.floating-call-btn {
    position: relative;
    display: grid;
    width: 72px;
    height: 72px;
    place-items: center;
    border-radius: var(--radius-md);
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 16px 38px rgba(15, 118, 110, 0.32);
    font-size: 32px;
}

.pulse {
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: var(--radius-md);
    background: var(--accent-color);
    animation: pulse-anim 1.8s ease-out infinite;
}

.footer {
    background: #111c1a;
    color: rgba(255, 255, 255, 0.82);
    padding: 40px 0;
}

.footer-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 28px;
    font-size: 14px;
}

.footer-logo-text {
    flex: 0 0 auto;
    color: #ffffff;
    font-size: 21px;
    font-weight: 900;
    white-space: nowrap;
}

.footer-info {
    display: grid;
    gap: 6px;
    flex: 1;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.7;
    text-align: left;
    word-break: keep-all;
}

.footer-mobile-details {
    display: none;
}

@keyframes pulse-anim {
    0% {
        opacity: 0.62;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(1.65);
    }
}

@keyframes hero-phone-pulse {
    0%, 100% {
        transform: translateY(0);
        box-shadow: 0 20px 54px rgba(0, 0, 0, 0.28), 0 0 0 0 rgba(57, 255, 127, 0);
    }

    50% {
        transform: translateY(-2px);
        box-shadow: 0 22px 58px rgba(0, 0, 0, 0.3), 0 0 0 9px rgba(57, 255, 127, 0.16);
    }
}

@keyframes status-blink {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.42;
    }
}

@keyframes ticker-move {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@keyframes contact-photo-slide {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }

    .ticker-track {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
    }

    .ticker-group {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 960px) {
    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .feature-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }

    .process-steps {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 18px 8px;
    }

    .process-steps::before {
        display: none;
    }

    .process-step {
        flex: 0 0 calc((100% - 16px) / 3);
        padding: 0 4px;
    }

    .process-step:not(:last-child)::after {
        display: none;
    }

    .process-step:nth-child(1)::after,
    .process-step:nth-child(2)::after {
        display: block;
        top: 23px;
        left: calc(50% + 31px);
        width: calc(100% - 62px);
        height: 2px;
        background: repeating-linear-gradient(90deg, rgba(0, 168, 89, 0.45) 0 7px, transparent 7px 12px);
    }

    .process-step:nth-child(4)::after {
        display: block;
        top: 23px;
        left: calc(50% + 31px);
        width: calc(100% - 62px);
        height: 2px;
        background: repeating-linear-gradient(90deg, rgba(0, 168, 89, 0.45) 0 7px, transparent 7px 12px);
    }

    .process-step span {
        width: 46px;
        height: 46px;
        margin-bottom: 10px;
        font-size: 16px;
    }

    .process-step h3 {
        font-size: 14px;
    }

    .process-step p {
        display: none;
    }
}

@media (max-width: 860px) {
    .container {
        width: min(100% - 28px, 1120px);
    }

    .nav-inner {
        min-height: 68px;
        padding: 8px 0;
        position: relative;
    }

    .logo-mark {
        font-size: 20px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        z-index: 6000;
        display: none;
        width: min(240px, calc(100vw - 28px));
        padding: 12px;
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
        background: var(--surface);
        box-shadow: var(--shadow-md);
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        gap: 8px;
        font-size: 14px;
    }

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

    .nav-links a {
        display: block;
        padding: 10px;
        border-radius: var(--radius-sm);
        text-align: center;
    }

    .nav-links a:hover {
        background: var(--surface-muted);
    }

    .hero {
        min-height: 590px;
        background:
            linear-gradient(180deg, rgba(10, 24, 22, 0.86), rgba(10, 24, 22, 0.48)),
            url("assets/images/work-gallery/drain-01.jpg") center / cover no-repeat;
    }

    .hero-inner {
        justify-content: center;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    .eyebrow {
        margin-inline: auto;
    }

    h1 {
        margin-inline: auto;
        font-size: 38px;
        text-align: center;
    }

    h2 {
        font-size: 29px;
    }

    .hero-content p {
        margin-inline: auto;
        font-size: 16px;
        text-align: center;
    }

    .section-subtitle {
        font-size: 16px;
    }

    .hero-actions {
        justify-content: center;
    }

    .features,
    .services,
    .process-section,
    .gallery-section,
    .contact {
        padding: 58px 0;
    }

    .contact {
        padding-top: 32px;
    }

    .contact-photo-slider {
        margin-top: 28px;
    }

    .contact-photo-group img {
        width: 230px;
        height: 146px;
    }

    .photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .ticker-track span {
        min-height: 48px;
        padding: 0 24px;
        font-size: 15px;
    }

    .emergency-strip {
        flex-wrap: wrap;
        gap: 8px 12px;
        padding: 16px 14px;
    }

    .emergency-strip strong {
        font-size: 20px;
    }
}

@media (max-width: 640px) {
    h1 {
        font-size: 32px;
    }

    .hero {
        min-height: 540px;
    }

    .hero-content p {
        display: block;
        max-width: 330px;
    }

    .btn-phone,
    .btn-phone-large {
        width: 100%;
    }

    .hero .btn-phone {
        min-width: 0;
        min-height: 74px;
        padding: 18px 22px;
        font-size: 21px;
    }

    .services-grid,
    .photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .feature-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .feature-card {
        padding: 16px 8px;
    }

    .feature-icon {
        width: 34px;
        height: 34px;
        margin-bottom: 8px;
        font-size: 18px;
    }

    .feature-card h3 {
        font-size: 13px;
    }

    .feature-card p {
        display: none;
    }

    .process-steps {
        margin-top: 28px;
    }

    .features {
        padding-top: 14px;
    }

    .service-card {
        min-height: 96px;
        padding: 18px 14px;
    }

    .service-card h3 {
        font-size: 18px;
    }

    .floating-contact {
        right: 18px;
        bottom: 78px;
        gap: 7px;
        align-items: flex-end;
        max-width: 150px;
    }

    .floating-status {
        width: 68px;
        justify-content: center;
        gap: 4px;
        padding: 6px 5px;
    }

    .floating-status strong {
        font-size: 11px;
    }

    .status-dot {
        width: 8px;
        height: 8px;
    }

    .floating-call-btn {
        width: 68px;
        height: 68px;
        font-size: 30px;
    }

    .footer {
        padding: 30px 0 max(34px, env(safe-area-inset-bottom));
    }

    .footer-row {
        flex-direction: column;
        justify-content: center;
        gap: 16px;
        text-align: center;
    }

    .footer-logo-text {
        font-size: 19px;
    }

    .footer-info {
        display: none !important;
    }

    .footer-mobile-details {
        display: block !important;
        width: min(100%, 360px);
        margin: 0 auto;
        color: rgba(255, 255, 255, 0.88);
    }

    .footer-mobile-details summary {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 42px;
        padding: 0 18px;
        border: 1px solid rgba(255, 255, 255, 0.18);
        border-radius: var(--radius-sm);
        background: rgba(255, 255, 255, 0.08);
        color: #ffffff;
        font-size: 14px;
        font-weight: 850;
        cursor: pointer;
        list-style: none;
    }

    .footer-mobile-details summary::-webkit-details-marker {
        display: none;
    }

    .footer-mobile-details summary::marker {
        content: "";
    }

    .footer-mobile-details summary::after {
        content: "+";
        margin-left: 8px;
        color: var(--accent-color);
        font-size: 18px;
        line-height: 1;
    }

    .footer-mobile-details[open] summary::after {
        content: "-";
    }

    .footer-mobile-info {
        display: grid;
        gap: 9px;
        margin-top: 16px;
        padding: 18px 14px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.14);
        color: rgba(255, 255, 255, 0.68);
        font-size: 13px;
        line-height: 1.65;
        word-break: keep-all;
    }
}
